Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
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// G4DrawVoxels
27//
28// Class description:
29//
30// Utility class for the visualization of voxels in the detector geometry.
31
32// Original author: L.G., 29 July 1999
33// --------------------------------------------------------------------
34#ifndef G4DrawVoxels_HH
35#define G4DrawVoxels_HH 1
36
37#include "G4VisAttributes.hh"
38#include "G4VoxelLimits.hh"
39#include "G4PlacedPolyhedron.hh"
40
42class G4LogicalVolume;
43
44/**
45 * @brief G4DrawVoxels is a utility class for the visualization of voxels
46 * in the detector geometry.
47 */
48
50{
51 public:
52
53 /**
54 * Constructor. It initialises the members data to default colors.
55 */
57
58 /**
59 * Copy constructor and assignment operator not allowed.
60 */
61 G4DrawVoxels(const G4DrawVoxels&) = delete;
63
64 /**
65 * Default Destructor.
66 */
67 ~G4DrawVoxels() = default;
68
69 /**
70 * Draws voxels for the specified logical volume.
71 */
72 void DrawVoxels(const G4LogicalVolume* lv) const;
73
74 /**
75 * Creates polyhedra for the specified logical volume.
76 */
78
79 /**
80 * Visualisation attributes control. Allow changing colors of the drawing.
81 */
86
87 private:
88
89 void ComputeVoxelPolyhedra(const G4LogicalVolume*,
90 const G4SmartVoxelHeader*,
93
94 private:
95
96 G4VisAttributes fVoxelsVisAttributes[3];
97 G4VisAttributes fBoundingBoxVisAttributes;
98};
99
100#endif
std::vector< G4PlacedPolyhedron > G4PlacedPolyhedronList
void DrawVoxels(const G4LogicalVolume *lv) const
void SetVoxelsVisAttributes(G4VisAttributes &, G4VisAttributes &, G4VisAttributes &)
G4PlacedPolyhedronList * CreatePlacedPolyhedra(const G4LogicalVolume *) const
~G4DrawVoxels()=default
G4DrawVoxels(const G4DrawVoxels &)=delete
G4DrawVoxels operator=(const G4DrawVoxels &)=delete
void SetBoundingBoxVisAttributes(G4VisAttributes &)
G4LogicalVolume represents a leaf node or unpositioned subtree in the geometry hierarchy....
G4SmartVoxelHeader represents a set of voxels, created by a single axis of virtual division....
G4VoxelLimits represents limitation/restrictions of space, where restrictions are only made perpendic...