Files
geant4/source/visualization/modeling/include/G4LogicalVolumeModel.hh
T
2016-06-09 12:11:21 +02:00

90 lines
3.1 KiB
C++

//
// ********************************************************************
// * DISCLAIMER *
// * *
// * The following disclaimer summarizes all the specific disclaimers *
// * of contributors to this software. The specific disclaimers,which *
// * govern, are listed with their locations in: *
// * http://cern.ch/geant4/license *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. *
// * *
// * This code implementation is the intellectual property of the *
// * GEANT4 collaboration. *
// * By copying, distributing or modifying the Program (or any work *
// * based on the Program) you indicate your acceptance of this *
// * statement, and all its terms. *
// ********************************************************************
//
//
// $Id: G4LogicalVolumeModel.hh,v 1.6 2005/02/15 14:51:25 johna Exp $
// GEANT4 tag $Name: geant4-07-01 $
//
//
// John Allison 26th July 1999.
//
// Class Description:
//
// Model for logical volumes. It describes a logical volume and its
// daughters to any depth - usually only the first by default.
//
// Inherits from G4PhysicalVolumeModel; for more information see that
// class description.
#ifndef G4LOGICALVOLUMEMODEL_HH
#define G4LOGICALVOLUMEMODEL_HH
#include "G4PhysicalVolumeModel.hh"
#include "globals.hh"
#include "G4Transform3D.hh"
class G4LogicalVolume;
class G4ModelingParameters;
class G4LogicalVolumeModel: public G4PhysicalVolumeModel {
public: // With description
G4LogicalVolumeModel
(G4LogicalVolume*,
G4int soughtDepth = 1,
G4bool booleans = true,
G4bool voxels = true,
G4bool readout = true,
const G4Transform3D& modelTransformation = G4Transform3D::Identity,
const G4ModelingParameters* = 0);
virtual ~G4LogicalVolumeModel ();
void DescribeYourselfTo (G4VGraphicsScene&);
G4String GetCurrentDescription () const;
// A description which depends on the current state of the model.
protected:
// This called from G4PhysicalVolumeModel::DescribeAndDescend by the
// virtual function mechanism.
void DescribeSolid
(const G4Transform3D& theAT,
G4VSolid* pSol,
const G4VisAttributes* pVisAttribs,
G4VGraphicsScene& sceneHandler);
/////////////////////////////////////////////////////////
// Data members...
G4LogicalVolume* fpLV;
G4bool fBooleans; // Flag for drawing boolean components.
G4bool fVoxels; // Flag for drawing voxels.
G4bool fReadout; // Flag for drawing readout geometry.
};
#endif