source: trunk/source/geometry/navigation/include/G4DrawVoxels.hh@ 1307

Last change on this file since 1307 was 1228, checked in by garnier, 16 years ago

update geant4.9.3 tag

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