00001 // 00002 // ******************************************************************** 00003 // * License and Disclaimer * 00004 // * * 00005 // * The Geant4 software is copyright of the Copyright Holders of * 00006 // * the Geant4 Collaboration. It is provided under the terms and * 00007 // * conditions of the Geant4 Software License, included in the file * 00008 // * LICENSE and available at http://cern.ch/geant4/license . These * 00009 // * include a list of copyright holders. * 00010 // * * 00011 // * Neither the authors of this software system, nor their employing * 00012 // * institutes,nor the agencies providing financial support for this * 00013 // * work make any representation or warranty, express or implied, * 00014 // * regarding this software system or assume any liability for its * 00015 // * use. Please see the license in the file LICENSE and URL above * 00016 // * for the full disclaimer and the limitation of liability. * 00017 // * * 00018 // * This code implementation is the result of the scientific and * 00019 // * technical work of the GEANT4 collaboration. * 00020 // * By using, copying, modifying or distributing the software (or * 00021 // * any work based on the software) you agree to acknowledge its * 00022 // * use in resulting scientific publications, and indicate your * 00023 // * acceptance of all terms of the Geant4 Software license. * 00024 // ******************************************************************** 00025 // 00026 // 00027 // $Id: G4VTrajectoryPoint.hh 67009 2013-01-29 16:00:21Z gcosmo $ 00028 // 00029 //--------------------------------------------------------------- 00030 // 00031 // G4VTrajectoryPoint.hh 00032 // 00033 // class description: 00034 // This class is the abstract base class which represents the point 00035 // which consists of a trajectory. 00036 // It includes information of a the point. 00037 // 00038 // --------------------------------------------------------------- 00039 00040 #ifndef G4VTrajectoryPoint_h 00041 #define G4VTrajectoryPoint_h 1 00042 00043 #include "globals.hh" 00044 #include <vector> 00045 #include <map> 00046 #include "G4ThreeVector.hh" 00047 00048 class G4AttDef; 00049 class G4AttValue; 00050 00051 class G4VTrajectoryPoint 00052 { 00053 public: // with description 00054 00055 // Constructor/Destructor 00056 G4VTrajectoryPoint(); 00057 virtual ~G4VTrajectoryPoint(); 00058 00059 // Operators 00060 G4bool operator==(const G4VTrajectoryPoint& right) const; 00061 00062 // Get/Set functions 00063 virtual const G4ThreeVector GetPosition() const = 0; 00064 00065 // Get method for a vector of auxiliary points 00066 virtual const std::vector<G4ThreeVector>* GetAuxiliaryPoints() const 00067 { return 0; } 00068 // If implemented by a derived class, returns a pointer to a list 00069 // of auxiliary points, e.g., intermediate points used during the 00070 // calculation of the step that can be used for drawing a smoother 00071 // trajectory. The user must test the validity of this pointer. 00072 00073 // Get method for HEPRep style attribute definitions 00074 virtual const std::map<G4String,G4AttDef>* GetAttDefs() const 00075 { return 0; } 00076 // If implemented by a derived class, returns a pointer to a map of 00077 // attribute definitions for the attribute values below. The user 00078 // must test the validity of this pointer. See G4Trajectory for an 00079 // example of a concrete implementation of this method. 00080 00081 // Get method for HEPRep style attribute values 00082 virtual std::vector<G4AttValue>* CreateAttValues() const 00083 { return 0; } 00084 // If implemented by a derived class, returns a pointer to a list 00085 // of attribute values suitable, e.g., for picking. Each must 00086 // refer to an attribute definition in the above map; its name is 00087 // the key. The user must test the validity of this pointer (it 00088 // must be non-zero and conform to the G4AttDefs, which may be 00089 // checked with G4AttCheck) and delete the list after use. See 00090 // G4Trajectory for an example of a concrete implementation of this 00091 // method and G4VTrajectory::ShowTrajectory for an example of its 00092 // use. 00093 00094 }; 00095 00096 #endif 00097