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 // $Id: G4VTrajectoryModel.hh,v 1.7 2006/08/14 11:43:34 allison Exp $ 00027 // GEANT4 tag $Name: geant4-09-01-patch-01 $ 00028 // 00029 // Jane Tinslay, John Allison, Joseph Perl October 2005 00030 // 00031 // Class Description: 00032 // Abstract base class for trajectory drawing models. Trajectory drawing 00033 // models are responsible for drawing individual trajectories according 00034 // to a particular style. 00035 // Class Description - End: 00036 00037 #ifndef G4VTRAJECTORYMODEL_HH 00038 #define G4VTRAJECTORYMODEL_HH 00039 00040 #include "G4String.hh" 00041 #include "G4VTrajectory.hh" 00042 00043 class G4VisTrajContext; 00044 00045 class G4VTrajectoryModel { 00046 00047 public: 00048 00049 // Construct with context object 00050 G4VTrajectoryModel(const G4String& name, G4VisTrajContext* fpContext=0); 00051 00052 // Destructor 00053 virtual ~G4VTrajectoryModel(); 00054 00055 // Draw method 00056 virtual void Draw(const G4VTrajectory& trajectory, const G4int& i_mode = 0, 00057 const G4bool& visible = true) const = 0; 00058 00059 // Print configuration 00060 virtual void Print(std::ostream& ostr) const = 0; 00061 00062 // Accessors 00063 G4String Name() const ; 00064 const G4VisTrajContext& GetContext() const; 00065 00066 // Set verbosity 00067 void SetVerbose(const G4bool&); 00068 G4bool GetVerbose() const; 00069 00070 private: 00071 00072 G4String fName; 00073 G4bool fVerbose; 00074 G4VisTrajContext* fpContext; 00075 00076 }; 00077 00078 #endif 00079
1.4.7