Geant4_10
G4XXXFileSceneHandler.hh
Go to the documentation of this file.
1 //
2 // ********************************************************************
3 // * License and Disclaimer *
4 // * *
5 // * The Geant4 software is copyright of the Copyright Holders of *
6 // * the Geant4 Collaboration. It is provided under the terms and *
7 // * conditions of the Geant4 Software License, included in the file *
8 // * LICENSE and available at http://cern.ch/geant4/license . These *
9 // * include a list of copyright holders. *
10 // * *
11 // * Neither the authors of this software system, nor their employing *
12 // * institutes,nor the agencies providing financial support for this *
13 // * work make any representation or warranty, express or implied, *
14 // * regarding this software system or assume any liability for its *
15 // * use. Please see the license in the file LICENSE and URL above *
16 // * for the full disclaimer and the limitation of liability. *
17 // * *
18 // * This code implementation is the result of the scientific and *
19 // * technical work of the GEANT4 collaboration. *
20 // * By using, copying, modifying or distributing the software (or *
21 // * any work based on the software) you agree to acknowledge its *
22 // * use in resulting scientific publications, and indicate your *
23 // * acceptance of all terms of the Geant4 Software license. *
24 // ********************************************************************
25 //
26 //
27 // $Id: G4XXXFileSceneHandler.hh 66870 2013-01-14 23:38:59Z adotti $
28 //
29 //
30 // John Allison 7th March 2006
31 // A template for a file-writing graphics driver.
32 //?? Lines beginning like this require specialisation for your driver.
33 
34 #ifndef G4XXXFileSCENEHANDLER_HH
35 #define G4XXXFileSCENEHANDLER_HH
36 
37 #include "G4VSceneHandler.hh"
38 
40 
41  friend class G4XXXFileViewer;
42 
43 public:
45  const G4String& name);
46  virtual ~G4XXXFileSceneHandler();
47 
49  // Optional virtual functions...
50  void AddSolid(const G4Box&);
51  // Further optional AddSolid functions. Explicitly invoke base
52  // class methods if not otherwise defined to avoid warnings about
53  // hiding of base class methods.
54  void AddSolid(const G4Cons& cons)
56  void AddSolid(const G4Tubs& tubs)
58  void AddSolid(const G4Trd& trd)
60  void AddSolid(const G4Trap& trap)
62  void AddSolid(const G4Sphere& sphere)
63  {G4VSceneHandler::AddSolid(sphere);}
64  void AddSolid(const G4Para& para)
66  void AddSolid(const G4Torus& torus)
68  void AddSolid(const G4Polycone& polycone)
69  {G4VSceneHandler::AddSolid(polycone);}
70  void AddSolid(const G4Polyhedra& polyhedra)
71  {G4VSceneHandler::AddSolid(polyhedra);}
72  void AddSolid(const G4VSolid& solid)
74  // More optional functions...
75  // void AddCompound(const G4VTrajectory&);
76  // void AddCompound(const G4VHit&);
77  // void AddCompound(const G4THitsMap<G4double>&);
78  // void PreAddSolid(const G4Transform3D& objectTransformation,
79  // const G4VisAttributes&);
80  // void PostAddSolid();
81 
83  // Required implementation of pure virtual functions...
84 
85  void AddPrimitive(const G4Polyline&);
86  void AddPrimitive(const G4Text&);
87  void AddPrimitive(const G4Circle&);
88  void AddPrimitive(const G4Square&);
89  void AddPrimitive(const G4Polyhedron&);
90  // Further optional AddPrimitive methods. Explicitly invoke base
91  // class methods if not otherwise defined to avoid warnings about
92  // hiding of base class methods.
93  void AddPrimitive(const G4Polymarker& polymarker)
94  {G4VSceneHandler::AddPrimitive (polymarker);}
95  void AddPrimitive(const G4Scale& scale)
97  // Further related optional virtual functions...
98  // void BeginPrimitives(const G4Transform3D& objectTransformation);
99  // void EndPrimitives();
100 
102  // Further optional virtual functions...
103 
104  // void BeginModeling();
105  // void EndModeling();
106 
108  // Administration functions.
109 
110  // void ClearStore ();
111  // void ClearTransientStore ();
112 
113 protected:
114 
115  static G4int fSceneIdCount; // Counter for XXXFile scene handlers.
116 
117 private:
118 
119 #ifdef G4XXXFileDEBUG
120  void PrintThings();
121 #endif
122 
123 };
124 
125 #endif
void AddSolid(const G4Polycone &polycone)
void AddPrimitive(const G4Polymarker &polymarker)
Definition: G4Para.hh:76
virtual void AddSolid(const G4Box &)
Definition: G4Text.hh:73
Definition: G4Box.hh:63
Definition: G4Tubs.hh:84
const XML_Char * name
Definition: expat.h:151
Definition: G4Trd.hh:71
int G4int
Definition: G4Types.hh:78
virtual void AddPrimitive(const G4Polyline &)=0
void AddSolid(const G4Tubs &tubs)
void AddSolid(const G4Cons &cons)
void AddSolid(const G4Trd &trd)
Definition: G4Cons.hh:82
G4XXXFileSceneHandler(G4VGraphicsSystem &system, const G4String &name)
void AddPrimitive(const G4Polyline &)
void AddSolid(const G4VSolid &solid)
void AddSolid(const G4Torus &torus)
Double_t scale
Definition: plot.C:11
void AddPrimitive(const G4Scale &scale)
void AddSolid(const G4Trap &trap)
system("rm -rf dna.root")
void AddSolid(const G4Box &)
void AddSolid(const G4Polyhedra &polyhedra)
void AddSolid(const G4Sphere &sphere)
void AddSolid(const G4Para &para)