Geant4
9.6.p02
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
geant4_9_6_p02
source
visualization
XXX
include
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$
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
39
class
G4XXXFileSceneHandler
:
public
G4VSceneHandler
{
40
41
friend
class
G4XXXFileViewer
;
42
43
public
:
44
G4XXXFileSceneHandler
(
G4VGraphicsSystem
& system,
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)
55
{
G4VSceneHandler::AddSolid
(cons);}
56
void
AddSolid
(
const
G4Tubs
& tubs)
57
{
G4VSceneHandler::AddSolid
(tubs);}
58
void
AddSolid
(
const
G4Trd
& trd)
59
{
G4VSceneHandler::AddSolid
(trd);}
60
void
AddSolid
(
const
G4Trap
& trap)
61
{
G4VSceneHandler::AddSolid
(trap);}
62
void
AddSolid
(
const
G4Sphere
& sphere)
63
{
G4VSceneHandler::AddSolid
(sphere);}
64
void
AddSolid
(
const
G4Para
& para)
65
{
G4VSceneHandler::AddSolid
(para);}
66
void
AddSolid
(
const
G4Torus
& torus)
67
{
G4VSceneHandler::AddSolid
(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)
73
{
G4VSceneHandler::AddSolid
(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
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
103
// Further optional virtual functions...
104
105
// void BeginModeling();
106
// void EndModeling();
107
109
// Administration functions.
110
111
// void ClearStore ();
112
// void ClearTransientStore ();
113
114
protected
:
115
116
static
G4int
fSceneIdCount
;
// Counter for XXXFile scene handlers.
117
118
private
:
119
120
#ifdef G4XXXFileDEBUG
121
void
PrintThings();
122
#endif
123
124
};
125
126
#endif
Generated on Sat May 25 2013 14:34:19 for Geant4 by
1.8.4