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
geometry
navigation
include
G4DrawVoxels.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
// class G4DrawVoxels
31
//
32
// Class description:
33
//
34
// Utility class for the visualization of voxels in the detector geometry.
35
// Define G4DrawVoxelsDebug in the environment at compilation for debugging
36
// information printed to G4cout.
37
38
// History:
39
// 03/08/1999 The G4VisAttributes have been made member data for lifetime
40
// reasons / visualisation - L.G (ask John Allison for further
41
// explanation).
42
// 29/07/1999 First comitted version - L.G.
43
// --------------------------------------------------------------------
44
#ifndef G4DrawVoxels_HH
45
#define G4DrawVoxels_HH
46
47
#include "
G4VisAttributes.hh
"
48
#include "
G4VoxelLimits.hh
"
49
#include "
G4PlacedPolyhedron.hh
"
50
51
class
G4SmartVoxelHeader
;
52
class
G4LogicalVolume
;
53
54
// ***********************************************************************
55
56
class
G4DrawVoxels
57
{
58
public
:
// with description
59
60
G4DrawVoxels
();
61
// Constructor. It initialises the members data to default colors
62
// Copy constructor and assignment operator not supported (array
63
// fvoxelcolours ...).
64
65
~G4DrawVoxels
();
66
// Destructor NOT virtual. Not a base class.
67
68
void
DrawVoxels
(
const
G4LogicalVolume
* lv)
const
;
69
G4PlacedPolyhedronList
*
CreatePlacedPolyhedra
(
const
G4LogicalVolume
*)
const
;
70
71
void
SetVoxelsVisAttributes
(
G4VisAttributes
&,
72
G4VisAttributes
&,
73
G4VisAttributes
&);
74
void
SetBoundingBoxVisAttributes
(
G4VisAttributes
&);
75
76
private
:
77
78
// Member data
79
G4VisAttributes
fVoxelsVisAttributes[3];
80
G4VisAttributes
fBoundingBoxVisAttributes;
81
82
void
ComputeVoxelPolyhedra(
const
G4LogicalVolume
*,
83
const
G4SmartVoxelHeader
*,
84
G4VoxelLimits
&,
85
G4PlacedPolyhedronList
*)
const
;
86
87
// Copy constructor Assignment operator not supported
88
// (array fvoxelcolours ...)
89
G4DrawVoxels
(
const
G4DrawVoxels
&);
90
G4DrawVoxels
operator=(
const
G4DrawVoxels
&);
91
};
92
93
#endif
Generated on Sat May 25 2013 14:33:11 for Geant4 by
1.8.4