Geant4-11
source
visualization
OpenInventor
include
G4OpenInventorSceneHandler.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
// J Kallenbach 27th Aug 1996
30
// OpenInventor scene handler - creates OpenInventor Display lists.
31
// 20 dec 1996 jck Add HEPVis primitives - trd, box, etc.
32
33
#ifndef G4OPENINVENTORSCENEHANDLER_HH
34
#define G4OPENINVENTORSCENEHANDLER_HH
35
36
// Inheritance :
37
#include "
G4VSceneHandler.hh
"
38
39
#include "
G4PhysicalVolumeModel.hh
"
40
41
#include <map>
42
43
class
G4OpenInventor
;
44
class
SoSeparator;
45
class
Geant4_SoStyleCache;
46
class
G4VisAttributes
;
47
48
// Base class for various OpenInventorScene classes.
49
class
G4OpenInventorSceneHandler
:
public
G4VSceneHandler
{
50
51
friend
class
G4OpenInventorViewer
;
52
53
public
:
54
55
G4OpenInventorSceneHandler
(
G4OpenInventor
& system,
const
G4String
&
name
=
""
);
56
virtual
~G4OpenInventorSceneHandler
();
57
58
using
G4VSceneHandler::AddPrimitive
;
59
void
AddPrimitive
(
const
G4Polyline
& line);
60
void
AddPrimitive
(
const
G4Text
&);
61
void
AddPrimitive
(
const
G4Circle
&);
62
void
AddPrimitive
(
const
G4Square
&);
63
void
AddPrimitive
(
const
G4Polyhedron
& p);
64
void
AddPrimitive
(
const
G4Polymarker
&);
65
67
// Other inherited functions.
68
void
ClearStore
();
69
void
ClearTransientStore
();
70
71
//
72
// Primitives for use of HEPVis
73
//
74
void
PreAddSolid
(
const
G4Transform3D
& objectTransformation,
75
const
G4VisAttributes
& visAttribs);
76
void
BeginPrimitives
(
const
G4Transform3D
& objectTransformation);
77
78
private
:
79
80
static
G4int
fSceneIdCount
;
// static counter for OpenInventor scenes.
81
enum
G4OIMarker
{
G4OICircle
,
G4OISquare
};
82
void
AddCircleSquare
(
G4OIMarker
markerType,
const
G4VMarker
&);
83
void
GeneratePrerequisites
();
84
void
AddProperties
(
const
G4VisAttributes
*);
85
// AddTransform takes fObjectTransformation and "adds" a translation.
86
void
AddTransform
(
const
G4Point3D
& translation =
G4Point3D
());
87
std::map
<
G4LogicalVolume
*, SoSeparator*,
88
std::less <G4LogicalVolume*> >
fSeparatorMap
;
89
SoSeparator*
fRoot
;
90
SoSeparator*
fDetectorRoot
;
91
SoSeparator*
fTransientRoot
;
92
SoSeparator*
fCurrentSeparator
;
93
G4bool
fModelingSolid
;
94
G4bool
fReducedWireFrame
;
95
Geant4_SoStyleCache*
fStyleCache
;
96
bool
fPreviewAndFull
;
97
};
98
99
#endif
G4PhysicalVolumeModel.hh
G4Point3D
HepGeom::Point3D< G4double > G4Point3D
Definition:
G4Point3D.hh:34
G4bool
bool G4bool
Definition:
G4Types.hh:86
G4int
int G4int
Definition:
G4Types.hh:85
G4VSceneHandler.hh
G4Circle
Definition:
G4Circle.hh:42
G4LogicalVolume
Definition:
G4LogicalVolume.hh:182
G4OpenInventorSceneHandler
Definition:
G4OpenInventorSceneHandler.hh:49
G4OpenInventorSceneHandler::AddPrimitive
void AddPrimitive(const G4Polyline &line)
Definition:
G4OpenInventorSceneHandler.cc:180
G4OpenInventorSceneHandler::~G4OpenInventorSceneHandler
virtual ~G4OpenInventorSceneHandler()
Definition:
G4OpenInventorSceneHandler.cc:130
G4OpenInventorSceneHandler::ClearStore
void ClearStore()
Definition:
G4OpenInventorSceneHandler.cc:136
G4OpenInventorSceneHandler::fReducedWireFrame
G4bool fReducedWireFrame
Definition:
G4OpenInventorSceneHandler.hh:94
G4OpenInventorSceneHandler::G4OIMarker
G4OIMarker
Definition:
G4OpenInventorSceneHandler.hh:81
G4OpenInventorSceneHandler::G4OICircle
@ G4OICircle
Definition:
G4OpenInventorSceneHandler.hh:81
G4OpenInventorSceneHandler::G4OISquare
@ G4OISquare
Definition:
G4OpenInventorSceneHandler.hh:81
G4OpenInventorSceneHandler::fPreviewAndFull
bool fPreviewAndFull
Definition:
G4OpenInventorSceneHandler.hh:96
G4OpenInventorSceneHandler::AddCircleSquare
void AddCircleSquare(G4OIMarker markerType, const G4VMarker &)
Definition:
G4OpenInventorSceneHandler.cc:438
G4OpenInventorSceneHandler::fSeparatorMap
std::map< G4LogicalVolume *, SoSeparator *, std::less< G4LogicalVolume * > > fSeparatorMap
Definition:
G4OpenInventorSceneHandler.hh:88
G4OpenInventorSceneHandler::PreAddSolid
void PreAddSolid(const G4Transform3D &objectTransformation, const G4VisAttributes &visAttribs)
Definition:
G4OpenInventorSceneHandler.cc:153
G4OpenInventorSceneHandler::AddTransform
void AddTransform(const G4Point3D &translation=G4Point3D())
Definition:
G4OpenInventorSceneHandler.cc:819
G4OpenInventorSceneHandler::fTransientRoot
SoSeparator * fTransientRoot
Definition:
G4OpenInventorSceneHandler.hh:91
G4OpenInventorSceneHandler::fRoot
SoSeparator * fRoot
Definition:
G4OpenInventorSceneHandler.hh:89
G4OpenInventorSceneHandler::GeneratePrerequisites
void GeneratePrerequisites()
Definition:
G4OpenInventorSceneHandler.cc:584
G4OpenInventorSceneHandler::fStyleCache
Geant4_SoStyleCache * fStyleCache
Definition:
G4OpenInventorSceneHandler.hh:95
G4OpenInventorSceneHandler::fDetectorRoot
SoSeparator * fDetectorRoot
Definition:
G4OpenInventorSceneHandler.hh:90
G4OpenInventorSceneHandler::G4OpenInventorSceneHandler
G4OpenInventorSceneHandler(G4OpenInventor &system, const G4String &name="")
Definition:
G4OpenInventorSceneHandler.cc:100
G4OpenInventorSceneHandler::fCurrentSeparator
SoSeparator * fCurrentSeparator
Definition:
G4OpenInventorSceneHandler.hh:92
G4OpenInventorSceneHandler::ClearTransientStore
void ClearTransientStore()
Definition:
G4OpenInventorSceneHandler.cc:144
G4OpenInventorSceneHandler::BeginPrimitives
void BeginPrimitives(const G4Transform3D &objectTransformation)
Definition:
G4OpenInventorSceneHandler.cc:166
G4OpenInventorSceneHandler::fModelingSolid
G4bool fModelingSolid
Definition:
G4OpenInventorSceneHandler.hh:93
G4OpenInventorSceneHandler::AddProperties
void AddProperties(const G4VisAttributes *)
Definition:
G4OpenInventorSceneHandler.cc:772
G4OpenInventorSceneHandler::fSceneIdCount
static G4int fSceneIdCount
Definition:
G4OpenInventorSceneHandler.hh:80
G4OpenInventorViewer
Definition:
G4OpenInventorViewer.hh:49
G4OpenInventor
Definition:
G4OpenInventor.hh:38
G4Polyhedron
Definition:
G4Polyhedron.hh:123
G4Polyline
Definition:
G4Polyline.hh:46
G4Polymarker
Definition:
G4Polymarker.hh:42
G4Square
Definition:
G4Square.hh:42
G4String
Definition:
G4String.hh:62
G4Text
Definition:
G4Text.hh:72
G4VMarker
Definition:
G4VMarker.hh:90
G4VSceneHandler
Definition:
G4VSceneHandler.hh:51
G4VSceneHandler::AddPrimitive
virtual void AddPrimitive(const G4Polyline &)=0
G4VisAttributes
Definition:
G4VisAttributes.hh:69
HepGeom::Point3D< G4double >
HepGeom::Transform3D
Definition:
Transform3D.h:170
G4InuclParticleNames::name
const char * name(G4int ptype)
Definition:
G4InuclParticleNames.hh:76
anonymous_namespace{G4QuasiElRatios.cc}::map
const G4double map
Definition:
G4QuasiElRatios.cc:81
Generated by
1.9.3