[834] | 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: G4LogicalVolumeModel.hh,v 1.9 2006/11/01 10:28:42 allison Exp $ |
---|
[850] | 28 | // GEANT4 tag $Name: HEAD $ |
---|
[834] | 29 | // |
---|
| 30 | // |
---|
| 31 | // John Allison 26th July 1999. |
---|
| 32 | // |
---|
| 33 | // Class Description: |
---|
| 34 | // |
---|
| 35 | // Model for logical volumes. It describes a logical volume and its |
---|
| 36 | // daughters to any depth - usually only the first by default. |
---|
| 37 | // |
---|
| 38 | // Inherits from G4PhysicalVolumeModel; for more information see that |
---|
| 39 | // class description. |
---|
| 40 | |
---|
| 41 | #ifndef G4LOGICALVOLUMEMODEL_HH |
---|
| 42 | #define G4LOGICALVOLUMEMODEL_HH |
---|
| 43 | |
---|
| 44 | #include "G4PhysicalVolumeModel.hh" |
---|
| 45 | |
---|
| 46 | #include "globals.hh" |
---|
| 47 | #include "G4Transform3D.hh" |
---|
| 48 | |
---|
| 49 | class G4LogicalVolume; |
---|
| 50 | class G4ModelingParameters; |
---|
| 51 | |
---|
| 52 | class G4LogicalVolumeModel: public G4PhysicalVolumeModel { |
---|
| 53 | |
---|
| 54 | public: // With description |
---|
| 55 | |
---|
| 56 | G4LogicalVolumeModel |
---|
| 57 | (G4LogicalVolume*, |
---|
| 58 | G4int soughtDepth = 1, |
---|
| 59 | G4bool booleans = true, |
---|
| 60 | G4bool voxels = true, |
---|
| 61 | G4bool readout = true, |
---|
| 62 | const G4Transform3D& modelTransformation = G4Transform3D(), |
---|
| 63 | const G4ModelingParameters* = 0); |
---|
| 64 | |
---|
| 65 | virtual ~G4LogicalVolumeModel (); |
---|
| 66 | |
---|
| 67 | void DescribeYourselfTo (G4VGraphicsScene&); |
---|
| 68 | |
---|
| 69 | protected: |
---|
| 70 | |
---|
| 71 | // This called from G4PhysicalVolumeModel::DescribeAndDescend by the |
---|
| 72 | // virtual function mechanism. |
---|
| 73 | void DescribeSolid |
---|
| 74 | (const G4Transform3D& theAT, |
---|
| 75 | G4VSolid* pSol, |
---|
| 76 | const G4VisAttributes* pVisAttribs, |
---|
| 77 | G4VGraphicsScene& sceneHandler); |
---|
| 78 | |
---|
| 79 | ///////////////////////////////////////////////////////// |
---|
| 80 | // Data members... |
---|
| 81 | |
---|
| 82 | G4LogicalVolume* fpLV; |
---|
| 83 | G4bool fBooleans; // Flag for drawing boolean components. |
---|
| 84 | G4bool fVoxels; // Flag for drawing voxels. |
---|
| 85 | G4bool fReadout; // Flag for drawing readout geometry. |
---|
| 86 | |
---|
| 87 | }; |
---|
| 88 | |
---|
| 89 | #endif |
---|