Geant4
10.03
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
G4VTreeSceneHandler.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: G4VTreeSceneHandler.hh 66870 2013-01-14 23:38:59Z adotti $
28
//
29
//
30
// John Allison 5th April 2001
31
// A base class for a scene handler to dump geometry hierarchy.
32
// In the derived class, override G4VScenehandler::RequestPrimitives
33
// to implement dump of the geometry hierarchy.
34
35
#ifndef G4VTREESCENEHANDLER_HH
36
#define G4VTREESCENEHANDLER_HH
37
38
#include "
G4VSceneHandler.hh
"
39
40
#include "
G4PhysicalVolumeModel.hh
"
41
#include <vector>
42
#include <set>
43
44
class
G4VPhysicalVolume
;
45
class
G4LogicalVolume
;
46
class
G4ModelingParameters
;
47
48
class
G4VTreeSceneHandler
:
public
G4VSceneHandler
{
49
50
public
:
51
G4VTreeSceneHandler
(
G4VGraphicsSystem
& system,
52
const
G4String
&
name
);
53
virtual
~G4VTreeSceneHandler
();
54
void
PreAddSolid
(
const
G4Transform3D
& objectTransformation,
55
const
G4VisAttributes
&);
56
void
PostAddSolid
();
57
59
// Functions not used but required by the abstract interface.
60
61
virtual
void
AddPrimitive
(
const
G4Polyline
&) {}
62
virtual
void
AddPrimitive
(
const
G4Text
&) {}
63
virtual
void
AddPrimitive
(
const
G4Circle
&) {}
64
virtual
void
AddPrimitive
(
const
G4Square
&) {}
65
virtual
void
AddPrimitive
(
const
G4Polyhedron
&) {}
66
virtual
void
AddPrimitive
(
const
G4Polymarker
&) {}
67
virtual
void
AddPrimitive
(
const
G4Scale
&) {}
68
69
virtual
void
BeginModeling
();
70
virtual
void
EndModeling
();
71
72
protected
:
73
74
// In the derived class, override G4VScenehandler::RequestPrimitives
75
// to implement dump of the geometry hierarchy.
76
static
G4int
fSceneIdCount
;
// Counter for Tree scene handlers.
77
const
G4Transform3D
*
fpCurrentObjectTransformation
;
78
std::set<G4LogicalVolume*>
fDrawnLVStore
;
// Stores encountered LVs.
79
};
80
81
#include "
G4VTreeSceneHandler.icc
"
82
83
#endif
G4Circle
Definition:
G4Circle.hh:43
G4ModelingParameters
Definition:
G4ModelingParameters.hh:52
G4VTreeSceneHandler::~G4VTreeSceneHandler
virtual ~G4VTreeSceneHandler()
Definition:
G4VTreeSceneHandler.cc:50
G4Text
Definition:
G4Text.hh:73
G4VTreeSceneHandler
Definition:
G4VTreeSceneHandler.hh:48
G4VTreeSceneHandler::AddPrimitive
virtual void AddPrimitive(const G4Polyline &)
Definition:
G4VTreeSceneHandler.hh:61
G4VPhysicalVolume
Definition:
G4VPhysicalVolume.hh:82
G4PhysicalVolumeModel.hh
G4InuclParticleNames::name
const char * name(G4int ptype)
Definition:
G4InuclParticleNames.hh:77
G4VTreeSceneHandler::fDrawnLVStore
std::set< G4LogicalVolume * > fDrawnLVStore
Definition:
G4VTreeSceneHandler.hh:78
G4int
int G4int
Definition:
G4Types.hh:78
G4VTreeSceneHandler::AddPrimitive
virtual void AddPrimitive(const G4Text &)
Definition:
G4VTreeSceneHandler.hh:62
G4VGraphicsSystem
Definition:
G4VGraphicsSystem.hh:46
G4VisAttributes
Definition:
G4VisAttributes.hh:65
G4VSceneHandler
Definition:
G4VSceneHandler.hh:61
G4VTreeSceneHandler::PostAddSolid
void PostAddSolid()
G4VTreeSceneHandler.icc
G4LogicalVolume
Definition:
G4LogicalVolume.hh:190
G4VSceneHandler.hh
G4Transform3D
HepGeom::Transform3D G4Transform3D
Definition:
G4Transform3D.hh:35
G4VTreeSceneHandler::AddPrimitive
virtual void AddPrimitive(const G4Polymarker &)
Definition:
G4VTreeSceneHandler.hh:66
G4VTreeSceneHandler::AddPrimitive
virtual void AddPrimitive(const G4Square &)
Definition:
G4VTreeSceneHandler.hh:64
G4VTreeSceneHandler::G4VTreeSceneHandler
G4VTreeSceneHandler(G4VGraphicsSystem &system, const G4String &name)
Definition:
G4VTreeSceneHandler.cc:44
G4VTreeSceneHandler::fpCurrentObjectTransformation
const G4Transform3D * fpCurrentObjectTransformation
Definition:
G4VTreeSceneHandler.hh:77
G4Polyline
Definition:
G4Polyline.hh:47
G4Square
Definition:
G4Square.hh:43
G4VTreeSceneHandler::EndModeling
virtual void EndModeling()
Definition:
G4VTreeSceneHandler.cc:56
G4VTreeSceneHandler::fSceneIdCount
static G4int fSceneIdCount
Definition:
G4VTreeSceneHandler.hh:76
G4VTreeSceneHandler::AddPrimitive
virtual void AddPrimitive(const G4Scale &)
Definition:
G4VTreeSceneHandler.hh:67
G4VTreeSceneHandler::AddPrimitive
virtual void AddPrimitive(const G4Circle &)
Definition:
G4VTreeSceneHandler.hh:63
G4Polyhedron
Definition:
G4Polyhedron.hh:115
G4VTreeSceneHandler::PreAddSolid
void PreAddSolid(const G4Transform3D &objectTransformation, const G4VisAttributes &)
Definition:
G4VTreeSceneHandler.cc:62
G4Scale
Definition:
G4Scale.hh:38
G4VTreeSceneHandler::AddPrimitive
virtual void AddPrimitive(const G4Polyhedron &)
Definition:
G4VTreeSceneHandler.hh:65
G4VTreeSceneHandler::BeginModeling
virtual void BeginModeling()
Definition:
G4VTreeSceneHandler.cc:52
G4Polymarker
Definition:
G4Polymarker.hh:43
G4String
Definition:
G4String.hh:45
geant4.10.03
source
visualization
Tree
include
G4VTreeSceneHandler.hh
Generated on Thu Feb 14 2002 02:29:36 for Geant4 by
1.8.8