source: trunk/source/visualization/XXX/include/G4XXXFileSceneHandler.hh@ 1121

Last change on this file since 1121 was 944, checked in by garnier, 17 years ago

mise a jour des tags

File size: 4.8 KB
Line 
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,v 1.3 2006/06/29 21:26:42 gunter Exp $
28// GEANT4 tag $Name: $
29//
30//
31// John Allison 7th March 2006
32// A template for a file-writing graphics driver.
33//?? Lines beginning like this require specialisation for your driver.
34
35#ifndef G4XXXFileSCENEHANDLER_HH
36#define G4XXXFileSCENEHANDLER_HH
37
38#include "G4VSceneHandler.hh"
39
40class G4XXXFileSceneHandler: public G4VSceneHandler {
41
42 friend class G4XXXFileViewer;
43
44public:
45 G4XXXFileSceneHandler(G4VGraphicsSystem& system,
46 const G4String& name);
47 virtual ~G4XXXFileSceneHandler();
48
49 ////////////////////////////////////////////////////////////////
50 // Optional virtual functions...
51 void AddSolid(const G4Box&);
52 // Further optional AddSolid functions. Explicitly invoke base
53 // class methods if not otherwise defined to avoid warnings about
54 // hiding of base class methods.
55 void AddSolid(const G4Cons& cons)
56 {G4VSceneHandler::AddSolid(cons);}
57 void AddSolid(const G4Tubs& tubs)
58 {G4VSceneHandler::AddSolid(tubs);}
59 void AddSolid(const G4Trd& trd)
60 {G4VSceneHandler::AddSolid(trd);}
61 void AddSolid(const G4Trap& trap)
62 {G4VSceneHandler::AddSolid(trap);}
63 void AddSolid(const G4Sphere& sphere)
64 {G4VSceneHandler::AddSolid(sphere);}
65 void AddSolid(const G4Para& para)
66 {G4VSceneHandler::AddSolid(para);}
67 void AddSolid(const G4Torus& torus)
68 {G4VSceneHandler::AddSolid(torus);}
69 void AddSolid(const G4Polycone& polycone)
70 {G4VSceneHandler::AddSolid(polycone);}
71 void AddSolid(const G4Polyhedra& polyhedra)
72 {G4VSceneHandler::AddSolid(polyhedra);}
73 void AddSolid(const G4VSolid& solid)
74 {G4VSceneHandler::AddSolid(solid);}
75 // More optional functions...
76 // void AddCompound(const G4VTrajectory&);
77 // void AddCompound(const G4VHit&);
78 // void PreAddSolid(const G4Transform3D& objectTransformation,
79 // const G4VisAttributes&);
80 // void PostAddSolid();
81
82 ////////////////////////////////////////////////////////////////
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 void AddPrimitive(const G4NURBS&);
91 // Further optional AddPrimitive methods. Explicitly invoke base
92 // class methods if not otherwise defined to avoid warnings about
93 // hiding of base class methods.
94 void AddPrimitive(const G4Polymarker& polymarker)
95 {G4VSceneHandler::AddPrimitive (polymarker);}
96 void AddPrimitive(const G4Scale& scale)
97 {G4VSceneHandler::AddPrimitive (scale);}
98 // Further related optional virtual functions...
99 // void BeginPrimitives(const G4Transform3D& objectTransformation);
100 // void EndPrimitives();
101
102 ////////////////////////////////////////////////////////////////
103 // Further optional virtual functions...
104
105 // void BeginModeling();
106 // void EndModeling();
107
108 //////////////////////////////////////////////////////////////
109 // Administration functions.
110
111 // void ClearStore ();
112 // void ClearTransientStore ();
113
114protected:
115
116 static G4int fSceneIdCount; // Counter for XXXFile scene handlers.
117
118private:
119
120#ifdef G4XXXFileDEBUG
121 void PrintThings();
122#endif
123
124};
125
126#endif
Note: See TracBrowser for help on using the repository browser.