Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:59:27

0001 //
0002 // ********************************************************************
0003 // * License and Disclaimer                                           *
0004 // *                                                                  *
0005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
0006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
0007 // * conditions of the Geant4 Software License,  included in the file *
0008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
0009 // * include a list of copyright holders.                             *
0010 // *                                                                  *
0011 // * Neither the authors of this software system, nor their employing *
0012 // * institutes,nor the agencies providing financial support for this *
0013 // * work  make  any representation or  warranty, express or implied, *
0014 // * regarding  this  software system or assume any liability for its *
0015 // * use.  Please see the license in the file  LICENSE  and URL above *
0016 // * for the full disclaimer and the limitation of liability.         *
0017 // *                                                                  *
0018 // * This  code  implementation is the result of  the  scientific and *
0019 // * technical work of the GEANT4 collaboration.                      *
0020 // * By using,  copying,  modifying or  distributing the software (or *
0021 // * any work based  on the software)  you  agree  to acknowledge its *
0022 // * use  in  resulting  scientific  publications,  and indicate your *
0023 // * acceptance of all terms of the Geant4 Software license.          *
0024 // ********************************************************************
0025 //
0026 //
0027 // Jane Tinslay, John Allison, Joseph Perl October 2005
0028 //
0029 // Class Description:
0030 // Abstract base class for trajectory drawing models. Trajectory drawing
0031 // models are responsible for drawing individual trajectories according 
0032 // to a particular style.
0033 // Class Description - End:
0034 
0035 #ifndef G4VTRAJECTORYMODEL_HH
0036 #define G4VTRAJECTORYMODEL_HH
0037 
0038 #include "G4String.hh"
0039 #include "G4VTrajectory.hh"
0040 
0041 class G4VisTrajContext;
0042 
0043 class G4VTrajectoryModel {
0044 
0045 public:
0046 
0047   // Construct with context object
0048   G4VTrajectoryModel(const G4String& name, G4VisTrajContext* fpContext=0);
0049 
0050   // Destructor
0051   virtual ~G4VTrajectoryModel();
0052   
0053   // Draw method
0054   virtual void Draw(const G4VTrajectory& trajectory, 
0055             const G4bool& visible = true) const = 0;
0056   
0057   // Print configuration
0058   virtual void Print(std::ostream& ostr) const = 0;
0059   
0060   // Accessors
0061   G4String Name() const ;
0062   const G4VisTrajContext& GetContext() const;
0063   
0064   // Set verbosity
0065   void SetVerbose(const G4bool&);
0066   G4bool GetVerbose() const;
0067 
0068 private:
0069 
0070   // Private copy constructor and assigment operator - copying and
0071   // assignment not allowed.  Keeps Coverity happy.
0072   G4VTrajectoryModel (const G4VTrajectoryModel&);
0073   G4VTrajectoryModel& operator = (const G4VTrajectoryModel&);
0074 
0075   G4String fName;
0076   G4bool fVerbose;
0077   G4VisTrajContext* fpContext;
0078   
0079 };
0080 
0081 #endif
0082