G4LogicalVolumeModel.hh

Go to the documentation of this file.
00001 //
00002 // ********************************************************************
00003 // * License and Disclaimer                                           *
00004 // *                                                                  *
00005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
00006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
00007 // * conditions of the Geant4 Software License,  included in the file *
00008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
00009 // * include a list of copyright holders.                             *
00010 // *                                                                  *
00011 // * Neither the authors of this software system, nor their employing *
00012 // * institutes,nor the agencies providing financial support for this *
00013 // * work  make  any representation or  warranty, express or implied, *
00014 // * regarding  this  software system or assume any liability for its *
00015 // * use.  Please see the license in the file  LICENSE  and URL above *
00016 // * for the full disclaimer and the limitation of liability.         *
00017 // *                                                                  *
00018 // * This  code  implementation is the result of  the  scientific and *
00019 // * technical work of the GEANT4 collaboration.                      *
00020 // * By using,  copying,  modifying or  distributing the software (or *
00021 // * any work based  on the software)  you  agree  to acknowledge its *
00022 // * use  in  resulting  scientific  publications,  and indicate your *
00023 // * acceptance of all terms of the Geant4 Software license.          *
00024 // ********************************************************************
00025 //
00026 //
00027 // $Id$
00028 //
00029 // 
00030 // John Allison  26th July 1999.
00031 //
00032 // Class Description:
00033 //
00034 // Model for logical volumes.  It describes a logical volume and its
00035 // daughters to any depth - usually only the first by default.
00036 //
00037 // Inherits from G4PhysicalVolumeModel; for more information see that
00038 // class description.
00039 
00040 #ifndef G4LOGICALVOLUMEMODEL_HH
00041 #define G4LOGICALVOLUMEMODEL_HH
00042 
00043 #include "G4PhysicalVolumeModel.hh"
00044 
00045 #include "globals.hh"
00046 #include "G4Transform3D.hh"
00047 
00048 class G4LogicalVolume;
00049 class G4ModelingParameters;
00050 
00051 class G4LogicalVolumeModel: public G4PhysicalVolumeModel {
00052 
00053 public: // With description
00054 
00055   G4LogicalVolumeModel
00056   (G4LogicalVolume*,
00057    G4int soughtDepth = 1,
00058    G4bool booleans = true,
00059    G4bool voxels = true,
00060    G4bool readout = true,
00061    const G4Transform3D& modelTransformation = G4Transform3D(),
00062    const G4ModelingParameters* = 0);
00063 
00064   virtual ~G4LogicalVolumeModel ();
00065 
00066   void DescribeYourselfTo (G4VGraphicsScene&);
00067 
00068   G4bool Validate (G4bool) {return true;}
00069 
00070 protected:
00071 
00072   // This called from G4PhysicalVolumeModel::DescribeAndDescend by the
00073   // virtual function mechanism.
00074   void DescribeSolid
00075   (const G4Transform3D& theAT,
00076    G4VSolid* pSol,
00077    const G4VisAttributes* pVisAttribs,
00078    G4VGraphicsScene& sceneHandler);
00079 
00081   // Data members...
00082 
00083   G4LogicalVolume* fpLV;
00084   G4bool fBooleans;  // Flag for drawing boolean components.
00085   G4bool fVoxels;    // Flag for drawing voxels.
00086   G4bool fReadout;   // Flag for drawing readout geometry.
00087 
00088 };
00089 
00090 #endif

Generated on Mon May 27 17:48:49 2013 for Geant4 by  doxygen 1.4.7