Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
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//
28//
29// John Allison 7th March 2006
30// A template for a file-writing graphics driver.
31//?? Lines beginning like this require specialisation for your driver.
32
33#ifndef G4XXXFileSCENEHANDLER_HH
34#define G4XXXFileSCENEHANDLER_HH
35
36#include "G4VSceneHandler.hh"
37
39
40 friend class G4XXXFileViewer;
41
42public:
44 const G4String& name);
45 virtual ~G4XXXFileSceneHandler();
46
47 ////////////////////////////////////////////////////////////////
48 // Optional virtual functions...
49 void AddSolid(const G4Box&);
50 // Further optional AddSolid functions. Explicitly invoke base
51 // class methods if not otherwise defined to avoid warnings about
52 // hiding of base class methods.
53 void AddSolid(const G4Cons& cons)
55 void AddSolid(const G4Tubs& tubs)
57 void AddSolid(const G4Trd& trd)
59 void AddSolid(const G4Trap& trap)
61 void AddSolid(const G4Sphere& sphere)
63 void AddSolid(const G4Para& para)
65 void AddSolid(const G4Torus& torus)
67 void AddSolid(const G4Polycone& polycone)
68 {G4VSceneHandler::AddSolid(polycone);}
69 void AddSolid(const G4Polyhedra& polyhedra)
70 {G4VSceneHandler::AddSolid(polyhedra);}
71 void AddSolid(const G4Orb& orb)
73 void AddSolid(const G4Ellipsoid& ellipsoid)
74 {G4VSceneHandler::AddSolid(ellipsoid);}
75 void AddSolid(const G4TessellatedSolid& tess)
77 void AddSolid(const G4VSolid& solid)
79 // More optional functions...
80 // void AddCompound(const G4VTrajectory&);
81 // void AddCompound(const G4VHit&);
82 // void AddCompound(const G4THitsMap<G4double>&);
83 // void AddCompound(const G4THitsMap<G4StatDouble>&);
84 // void PreAddSolid(const G4Transform3D& objectTransformation,
85 // const G4VisAttributes&);
86 // void PostAddSolid();
87
88 ////////////////////////////////////////////////////////////////
89 // Required implementation of pure virtual functions...
90
91 void AddPrimitive(const G4Polyline&);
92 void AddPrimitive(const G4Text&);
93 void AddPrimitive(const G4Circle&);
94 void AddPrimitive(const G4Square&);
95 void AddPrimitive(const G4Polyhedron&);
96 // Further optional AddPrimitive methods. Explicitly invoke base
97 // class methods if not otherwise defined to avoid warnings about
98 // hiding of base class methods.
99 void AddPrimitive(const G4Polymarker& polymarker)
100 {G4VSceneHandler::AddPrimitive (polymarker);}
101 void AddPrimitive(const G4Scale& scale)
103 // Further related optional virtual functions...
104 // void BeginPrimitives(const G4Transform3D& objectTransformation);
105 // void EndPrimitives();
106
107 ////////////////////////////////////////////////////////////////
108 // Further optional virtual functions...
109
110 // void BeginModeling();
111 // void EndModeling();
112
113 //////////////////////////////////////////////////////////////
114 // Administration functions.
115
116 // void ClearStore ();
117 // void ClearTransientStore ();
118
119protected:
120
121 static G4int fSceneIdCount; // Counter for XXXFile scene handlers.
122
123private:
124
125#ifdef G4XXXFileDEBUG
126 void PrintThings();
127#endif
128
129};
130
131#endif
int G4int
Definition: G4Types.hh:85
Definition: G4Box.hh:56
Definition: G4Cons.hh:78
Definition: G4Orb.hh:56
Definition: G4Para.hh:79
Definition: G4Text.hh:72
Definition: G4Trd.hh:63
Definition: G4Tubs.hh:75
virtual void AddSolid(const G4Box &)
virtual void AddPrimitive(const G4Polyline &)=0
void AddPrimitive(const G4Polymarker &polymarker)
void AddSolid(const G4Trd &trd)
void AddPrimitive(const G4Polyline &)
void AddSolid(const G4Tubs &tubs)
void AddSolid(const G4Sphere &sphere)
void AddSolid(const G4Polycone &polycone)
void AddSolid(const G4Para &para)
void AddSolid(const G4VSolid &solid)
void AddSolid(const G4Torus &torus)
void AddSolid(const G4Ellipsoid &ellipsoid)
void AddSolid(const G4Orb &orb)
void AddSolid(const G4Cons &cons)
void AddSolid(const G4Polyhedra &polyhedra)
void AddSolid(const G4Box &)
void AddSolid(const G4Trap &trap)
void AddSolid(const G4TessellatedSolid &tess)
void AddPrimitive(const G4Scale &scale)