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

Last change on this file since 1282 was 1140, checked in by garnier, 16 years ago

update to CVS

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.4 2009/10/21 15:28:53 allison 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 AddCompound(const G4THitsMap<G4double>&);
79 // void PreAddSolid(const G4Transform3D& objectTransformation,
80 // const G4VisAttributes&);
81 // void PostAddSolid();
82
83 ////////////////////////////////////////////////////////////////
84 // Required implementation of pure virtual functions...
85
86 void AddPrimitive(const G4Polyline&);
87 void AddPrimitive(const G4Text&);
88 void AddPrimitive(const G4Circle&);
89 void AddPrimitive(const G4Square&);
90 void AddPrimitive(const G4Polyhedron&);
91 void AddPrimitive(const G4NURBS&);
92 // Further optional AddPrimitive methods. Explicitly invoke base
93 // class methods if not otherwise defined to avoid warnings about
94 // hiding of base class methods.
95 void AddPrimitive(const G4Polymarker& polymarker)
96 {G4VSceneHandler::AddPrimitive (polymarker);}
97 void AddPrimitive(const G4Scale& scale)
98 {G4VSceneHandler::AddPrimitive (scale);}
99 // Further related optional virtual functions...
100 // void BeginPrimitives(const G4Transform3D& objectTransformation);
101 // void EndPrimitives();
102
103 ////////////////////////////////////////////////////////////////
104 // Further optional virtual functions...
105
106 // void BeginModeling();
107 // void EndModeling();
108
109 //////////////////////////////////////////////////////////////
110 // Administration functions.
111
112 // void ClearStore ();
113 // void ClearTransientStore ();
114
115protected:
116
117 static G4int fSceneIdCount; // Counter for XXXFile scene handlers.
118
119private:
120
121#ifdef G4XXXFileDEBUG
122 void PrintThings();
123#endif
124
125};
126
127#endif
Note: See TracBrowser for help on using the repository browser.