Geant4  10.03
G4VisAttributes Class Reference

#include <G4VisAttributes.hh>

+ Collaboration diagram for G4VisAttributes:

Public Types

enum  LineStyle { unbroken, dashed, dotted }
 
enum  ForcedDrawingStyle { wireframe, solid }
 
enum  { fMinLineSegmentsPerCircle = 3 }
 

Public Member Functions

 G4VisAttributes ()
 
 G4VisAttributes (G4bool visibility)
 
 G4VisAttributes (const G4Colour &colour)
 
 G4VisAttributes (G4bool visibility, const G4Colour &colour)
 
 G4VisAttributes (const G4VisAttributes &)
 
 ~G4VisAttributes ()
 
G4VisAttributesoperator= (const G4VisAttributes &)
 
G4bool operator!= (const G4VisAttributes &a) const
 
G4bool operator== (const G4VisAttributes &a) const
 
void SetVisibility (G4bool=true)
 
void SetDaughtersInvisible (G4bool=true)
 
void SetColour (const G4Colour &)
 
void SetColor (const G4Color &)
 
void SetColour (G4double red, G4double green, G4double blue, G4double alpha=1.)
 
void SetColor (G4double red, G4double green, G4double blue, G4double alpha=1.)
 
void SetLineStyle (LineStyle)
 
void SetLineWidth (G4double)
 
void SetForceWireframe (G4bool=true)
 
void SetForceSolid (G4bool=true)
 
void SetForceAuxEdgeVisible (G4bool=true)
 
void SetForceLineSegmentsPerCircle (G4int nSegments)
 
void SetStartTime (G4double)
 
void SetEndTime (G4double)
 
void SetAttValues (const std::vector< G4AttValue > *)
 
void SetAttDefs (const std::map< G4String, G4AttDef > *)
 
G4bool IsVisible () const
 
G4bool IsDaughtersInvisible () const
 
const G4ColourGetColour () const
 
const G4ColorGetColor () const
 
LineStyle GetLineStyle () const
 
G4double GetLineWidth () const
 
G4bool IsForceDrawingStyle () const
 
ForcedDrawingStyle GetForcedDrawingStyle () const
 
G4bool IsForceAuxEdgeVisible () const
 
G4bool IsForcedAuxEdgeVisible () const
 
G4bool IsForceLineSegmentsPerCircle () const
 
G4int GetForcedLineSegmentsPerCircle () const
 
G4double GetStartTime () const
 
G4double GetEndTime () const
 
const std::vector< G4AttValue > * CreateAttValues () const
 
const std::map< G4String,
G4AttDef > * 
GetAttDefs () const
 

Static Public Member Functions

static const G4VisAttributesGetInvisible ()
 
static G4int GetMinLineSegmentsPerCircle ()
 

Static Public Attributes

static const G4VisAttributes Invisible = G4VisAttributes (false)
 

Private Attributes

G4bool fVisible
 
G4bool fDaughtersInvisible
 
G4Colour fColour
 
LineStyle fLineStyle
 
G4double fLineWidth
 
G4bool fForceDrawingStyle
 
ForcedDrawingStyle fForcedStyle
 
G4bool fForceAuxEdgeVisible
 
G4bool fForcedAuxEdgeVisible
 
G4int fForcedLineSegmentsPerCircle
 
G4double fStartTime
 
G4double fEndTime
 
const std::vector< G4AttValue > * fAttValues
 
const std::map< G4String,
G4AttDef > * 
fAttDefs
 

Friends

std::ostream & operator<< (std::ostream &os, const G4VisAttributes &a)
 

Detailed Description

Definition at line 65 of file G4VisAttributes.hh.

Member Enumeration Documentation

anonymous enum
Enumerator
fMinLineSegmentsPerCircle 

Definition at line 73 of file G4VisAttributes.hh.

Enumerator
wireframe 
solid 

Definition at line 72 of file G4VisAttributes.hh.

Enumerator
unbroken 
dashed 
dotted 

Definition at line 71 of file G4VisAttributes.hh.

Constructor & Destructor Documentation

G4VisAttributes::G4VisAttributes ( )

Definition at line 37 of file G4VisAttributes.cc.

Referenced by GetInvisible().

+ Here is the caller graph for this function:

G4VisAttributes::G4VisAttributes ( G4bool  visibility)

Definition at line 54 of file G4VisAttributes.cc.

G4VisAttributes::G4VisAttributes ( const G4Colour colour)

Definition at line 71 of file G4VisAttributes.cc.

G4VisAttributes::G4VisAttributes ( G4bool  visibility,
const G4Colour colour 
)

Definition at line 88 of file G4VisAttributes.cc.

G4VisAttributes::G4VisAttributes ( const G4VisAttributes va)

Definition at line 106 of file G4VisAttributes.cc.

G4VisAttributes::~G4VisAttributes ( )

Definition at line 128 of file G4VisAttributes.cc.

Member Function Documentation

const std::vector< G4AttValue > * G4VisAttributes::CreateAttValues ( ) const

Definition at line 198 of file G4VisAttributes.cc.

Referenced by G4VSceneHandler::LoadAtts(), and G4XXXStoredSceneHandler::PreAddSolid().

+ Here is the caller graph for this function:

const std::map<G4String,G4AttDef>* G4VisAttributes::GetAttDefs ( ) const

Referenced by G4VSceneHandler::LoadAtts(), and G4XXXStoredSceneHandler::PreAddSolid().

+ Here is the caller graph for this function:

const G4Color& G4VisAttributes::GetColor ( ) const

Referenced by G4GMocrenFileSceneHandler::AddDetector(), G4GMocrenFileSceneHandler::AddPrimitive(), G03ColorWriter::ColorWrite(), and export_G4VisAttributes().

+ Here is the caller graph for this function:

G4double G4VisAttributes::GetEndTime ( ) const
G4VisAttributes::ForcedDrawingStyle G4VisAttributes::GetForcedDrawingStyle ( ) const

Definition at line 188 of file G4VisAttributes.cc.

References fForceDrawingStyle, fForcedStyle, and wireframe.

Referenced by G4PhysicalVolumeModel::DescribeAndDescend(), export_G4VisAttributes(), operator<<(), G4ViewParameters::TouchableCommands(), G4RTSteppingAction::UserSteppingAction(), G4RTRun::ValidColour(), and G4TheRayTracer::ValidColour().

+ Here is the caller graph for this function:

G4int G4VisAttributes::GetForcedLineSegmentsPerCircle ( ) const

Referenced by G4PhysicalVolumeModel::DescribeAndDescend(), G4PhysicalVolumeModel::DescribeSolid(), G4VSceneHandler::GetNoOfSides(), operator<<(), and G4ViewParameters::TouchableCommands().

+ Here is the caller graph for this function:

const G4VisAttributes & G4VisAttributes::GetInvisible ( )
static

Definition at line 159 of file G4VisAttributes.cc.

References G4VisAttributes().

Referenced by UltraFresnelLens::BuildLens(), HadrontherapyModulator::BuildSteps(), Par01DetectorConstruction::Construct(), G4MIRDRibCage::Construct(), RE05DetectorConstruction::Construct(), GeometryConstruction::Construct(), ExGflashDetectorConstruction::Construct(), B3DetectorConstruction::Construct(), FCALCryostatVolumes::Construct(), FCALEMModule::Construct(), ExUCNDetectorConstruction::Construct(), FCALTestbeamSetup::Construct(), XrayTelDetectorConstruction::Construct(), UltraDetectorConstruction::Construct(), DMXDetectorConstruction::Construct(), RE02DetectorConstruction::Construct(), XrayFluoMercuryDetectorConstruction::ConstructApparate(), XrayFluoPlaneDetectorConstruction::ConstructApparate(), XrayFluoDetectorConstruction::ConstructApparate(), GammaKnifeDetectorConstruction::ConstructBeamLine(), DetectorConstruction::ConstructCalorimeter(), ExN03DetectorConstruction::ConstructCalorimeter(), Collimator100BeamLine::ConstructCollimator100BeamLine(), Collimator40BeamLine::ConstructCollimator40BeamLine(), Collimator50BeamLine::ConstructCollimator50BeamLine(), Collimator60BeamLine::ConstructCollimator60BeamLine(), Collimator70BeamLine::ConstructCollimator70BeamLine(), Collimator80BeamLine::ConstructCollimator80BeamLine(), LXeDetectorConstruction::ConstructDetector(), LaserDrivenBeamLine::ConstructLaserDrivenBeamLine(), PassiveCarbonBeamLine::ConstructPassiveCarbonBeamLine(), PassiveProtonBeamLine::ConstructPassiveProtonBeamLine(), GammaRayTelDetectorConstruction::ConstructPayload(), DicomNestedParamDetectorConstruction::ConstructPhantom(), BrachyDetectorConstruction::ConstructPhantom(), DicomRegularDetectorConstruction::ConstructPhantom(), XrayTelDetectorConstruction::ConstructTelescope(), G4HumanPhantomConstruction::ConstructWorld(), B4dDetectorConstruction::DefineVolumes(), B4cDetectorConstruction::DefineVolumes(), B4DetectorConstruction::DefineVolumes(), export_G4VisAttributes(), LaserDrivenBeamLine::FaradayCup(), G4BuildGeom(), F04ElementField::GetVisAttribute(), G4GDMLReadStructure::GetWorldVolume(), XDetectorConstruction::SetupGeometry(), RE04DetectorConstruction::SetupGeometry(), GB03DetectorConstruction::SetupGeometry(), RE06DetectorConstruction::SetupGeometry(), and G3toG4DetectorConstruction::SimpleConstruct().

+ Here is the call graph for this function:

LineStyle G4VisAttributes::GetLineStyle ( ) const

Referenced by G4PhysicalVolumeModel::DescribeAndDescend(), export_G4VisAttributes(), operator<<(), and G4ViewParameters::TouchableCommands().

+ Here is the caller graph for this function:

G4double G4VisAttributes::GetLineWidth ( ) const

Referenced by G4PhysicalVolumeModel::DescribeAndDescend(), export_G4VisAttributes(), G4VSceneHandler::GetLineWidth(), operator<<(), and G4ViewParameters::TouchableCommands().

+ Here is the caller graph for this function:

static G4int G4VisAttributes::GetMinLineSegmentsPerCircle ( )
static

Referenced by G4VSceneHandler::GetNoOfSides(), operator<<(), G4ModelingParameters::SetNoOfSides(), and G4ViewParameters::SetNoOfSides().

+ Here is the caller graph for this function:

G4double G4VisAttributes::GetStartTime ( ) const
G4bool G4VisAttributes::IsDaughtersInvisible ( ) const

Referenced by G4PhysicalVolumeModel::DescribeAndDescend(), export_G4VisAttributes(), operator<<(), and G4ViewParameters::TouchableCommands().

+ Here is the caller graph for this function:

G4bool G4VisAttributes::IsForceAuxEdgeVisible ( ) const

Referenced by G4PhysicalVolumeModel::DescribeAndDescend(), export_G4VisAttributes(), operator<<(), and G4ViewParameters::TouchableCommands().

+ Here is the caller graph for this function:

G4bool G4VisAttributes::IsForcedAuxEdgeVisible ( ) const

Definition at line 193 of file G4VisAttributes.cc.

References fForceAuxEdgeVisible, and fForcedAuxEdgeVisible.

Referenced by G4PhysicalVolumeModel::DescribeAndDescend(), G4VSceneHandler::GetAuxEdgeVisible(), operator<<(), and G4ViewParameters::TouchableCommands().

+ Here is the caller graph for this function:

G4bool G4VisAttributes::IsForceDrawingStyle ( ) const

Referenced by G4PhysicalVolumeModel::DescribeAndDescend(), export_G4VisAttributes(), operator<<(), G4ViewParameters::TouchableCommands(), G4RTSteppingAction::UserSteppingAction(), G4RTRun::ValidColour(), and G4TheRayTracer::ValidColour().

+ Here is the caller graph for this function:

G4bool G4VisAttributes::IsForceLineSegmentsPerCircle ( ) const

Referenced by G4PhysicalVolumeModel::DescribeSolid(), and G4VSceneHandler::GetNoOfSides().

+ Here is the caller graph for this function:

G4bool G4VisAttributes::operator!= ( const G4VisAttributes a) const

Definition at line 277 of file G4VisAttributes.cc.

References fAttDefs, fAttValues, fColour, fDaughtersInvisible, fEndTime, fForceAuxEdgeVisible, fForcedAuxEdgeVisible, fForcedLineSegmentsPerCircle, fForceDrawingStyle, fForcedStyle, fLineStyle, fLineWidth, fStartTime, and fVisible.

Referenced by operator==().

+ Here is the caller graph for this function:

G4bool G4VisAttributes::operator== ( const G4VisAttributes a) const

Definition at line 306 of file G4VisAttributes.cc.

References operator!=().

+ Here is the call graph for this function:

void G4VisAttributes::SetAttDefs ( const std::map< G4String, G4AttDef > *  )

Referenced by export_G4VisAttributes().

+ Here is the caller graph for this function:

void G4VisAttributes::SetAttValues ( const std::vector< G4AttValue > *  )

Referenced by export_G4VisAttributes().

+ Here is the caller graph for this function:

void G4VisAttributes::SetColor ( const G4Color )

Referenced by eRositaDetectorConstruction::Construct().

+ Here is the caller graph for this function:

void G4VisAttributes::SetColor ( G4double  red,
G4double  green,
G4double  blue,
G4double  alpha = 1. 
)
void G4VisAttributes::SetColour ( G4double  red,
G4double  green,
G4double  blue,
G4double  alpha = 1. 
)
void G4VisAttributes::SetDaughtersInvisible ( G4bool  = true)

Referenced by DetectorConstruction::ConstructLine(), G4PhysicalVolumeModel::DescribeAndDescend(), export_G4VisAttributes(), F04ElementField::GetVisAttribute(), and G4VisCommandsTouchableSet::SetNewValue().

+ Here is the caller graph for this function:

void G4VisAttributes::SetEndTime ( G4double  )

Referenced by XAluminumElectrodeHit::Draw().

+ Here is the caller graph for this function:

void G4VisAttributes::SetForceAuxEdgeVisible ( G4bool  visibility = true)

Definition at line 182 of file G4VisAttributes.cc.

References fForceAuxEdgeVisible, and fForcedAuxEdgeVisible.

Referenced by G4VSceneHandler::AddSolidWithAuxiliaryEdges(), G4PhysicalVolumeModel::DescribeAndDescend(), G4ScoringCylinder::Draw(), G4ScoringBox::Draw(), G4ScoringCylinder::DrawColumn(), G4ScoringBox::DrawColumn(), export_G4VisAttributes(), and G4VisCommandsTouchableSet::SetNewValue().

+ Here is the caller graph for this function:

void G4VisAttributes::SetForceLineSegmentsPerCircle ( G4int  nSegments)

Definition at line 203 of file G4VisAttributes.cc.

References fForcedLineSegmentsPerCircle, fMinLineSegmentsPerCircle, G4cout, and G4endl.

Referenced by G4PhysicalVolumeModel::DescribeAndDescend(), and G4VisCommandsTouchableSet::SetNewValue().

+ Here is the caller graph for this function:

void G4VisAttributes::SetForceSolid ( G4bool  force = true)

Definition at line 173 of file G4VisAttributes.cc.

References fForceDrawingStyle, fForcedStyle, and solid.

Referenced by DetectorConstruction::AtomisticView(), DetectorConstruction::BarycenterView(), G4MIRDLiver::Construct(), G4MIRDLeftLeg::Construct(), G4MIRDLeftLegBone::Construct(), G4MIRDRightClavicle::Construct(), G4MIRDRightKidney::Construct(), G4MIRDRightLeg::Construct(), G4MIRDRightLegBone::Construct(), G4MIRDLeftOvary::Construct(), G4MIRDRightScapula::Construct(), G4MIRDLeftAdrenal::Construct(), G4MIRDLeftTeste::Construct(), G4MIRDSkull::Construct(), G4MIRDSmallIntestine::Construct(), G4MIRDLeftScapula::Construct(), G4MIRDThyroid::Construct(), G4MIRDLowerLargeIntestine::Construct(), G4MIRDUpperLargeIntestine::Construct(), G4MIRDMaleGenitalia::Construct(), G4MIRDPelvis::Construct(), G4MIRDLeftClavicle::Construct(), G4MIRDRightAdrenal::Construct(), B03DetectorConstruction::Construct(), G4MIRDLeftKidney::Construct(), G4MIRDRightLung::Construct(), G4MIRDRightOvary::Construct(), G4MIRDLeftLung::Construct(), G4MIRDRightTeste::Construct(), G4MIRDBrain::Construct(), G4MIRDSpleen::Construct(), G4MIRDStomach::Construct(), G4MIRDThymus::Construct(), G4MIRDHeart::Construct(), G4MIRDTrunk::Construct(), G4MIRDLeftBreast::Construct(), G4MIRDUpperSpine::Construct(), G4MIRDMiddleLowerSpine::Construct(), G4MIRDUterus::Construct(), G4MIRDPancreas::Construct(), G4MIRDRibCage::Construct(), G4MIRDRightBreast::Construct(), G4MIRDHead::Construct(), G4MIRDUrinaryBladder::Construct(), G4MIRDLeftArmBone::Construct(), B01DetectorConstruction::Construct(), B02DetectorConstruction::Construct(), G4MIRDRightArmBone::Construct(), ExUCNDetectorConstruction::Construct(), DMXDetectorConstruction::Construct(), XrayFluoMercuryDetectorConstruction::ConstructApparate(), XrayFluoPlaneDetectorConstruction::ConstructApparate(), XrayFluoDetectorConstruction::ConstructApparate(), ExExChDetectorConstruction::ConstructBeamPipe(), PurgMagDetectorConstruction::ConstructCalorimeter(), DetectorConstruction::ConstructLine(), GammaRayTelDetectorConstruction::ConstructPayload(), ExExChDetectorConstruction::ConstructSiSD(), G4HumanPhantomConstruction::ConstructWorld(), TSDetectorConstruction::ConstructWorld(), CML2PhaseSpaces::createPlane(), G4PhysicalVolumeModel::DescribeAndDescend(), UVA_VisAction::Draw(), G4ScoringCylinder::Draw(), G4ScoringBox::Draw(), ExN04CalorimeterHit::Draw(), RE01CalorimeterHit::Draw(), ExGflashHit::Draw(), RE05CalorimeterHit::Draw(), LXePMTHit::Draw(), Par01CalorimeterHit::Draw(), G4ScoringCylinder::DrawColumn(), G4ScoringBox::DrawColumn(), export_G4VisAttributes(), G4ArrowModel::G4ArrowModel(), DetectorConstruction::ResiduesView(), G4VisCommandsTouchableSet::SetNewValue(), G4VisCommandSceneAddLogo::SetNewValue(), and LXeMainVolume::VisAttributes().

void G4VisAttributes::SetLineStyle ( LineStyle  )

Referenced by G4PhysicalVolumeModel::DescribeAndDescend(), export_G4VisAttributes(), and G4VisCommandsTouchableSet::SetNewValue().

+ Here is the caller graph for this function:

void G4VisAttributes::SetStartTime ( G4double  )

Referenced by XAluminumElectrodeHit::Draw().

+ Here is the caller graph for this function:

void G4VisAttributes::SetVisibility ( G4bool  = true)

Referenced by CML2Acc1::BeWindow(), ExUCNDetectorConstruction::Construct(), eRositaDetectorConstruction::Construct(), CML2PhantomConstruction::Construct(), CML2AcceleratorConstruction::Construct(), UltraDetectorConstruction::Construct(), CML2Ph_FullWater::Construct(), CML2Ph_BoxInBox::Construct(), DMXDetectorConstruction::Construct(), XrayFluoMercuryDetectorConstruction::ConstructApparate(), XrayFluoPlaneDetectorConstruction::ConstructApparate(), XrayFluoDetectorConstruction::ConstructApparate(), ExN03DetectorConstruction::ConstructCalorimeter(), PurgMagDetectorConstruction::ConstructCalorimeter(), DetectorConstruction::ConstructDetector(), G4tgbVolume::ConstructG4LogVol(), UltraDetectorConstruction::ConstructGround(), DetectorConstruction::ConstructLine(), UltraDetectorConstruction::ConstructMirror(), GammaRayTelDetectorConstruction::ConstructPayload(), UltraDetectorConstruction::ConstructUVscope(), DetectorConstruction::ConstructWorld(), TSDetectorConstruction::ConstructWorld(), CML2WorldConstruction::create(), CML2PhaseSpaces::createPlane(), G4PhysicalVolumeModel::DescribeAndDescend(), G4TrajectoryDrawerUtils::DrawWithoutTime(), G4TrajectoryDrawerUtils::DrawWithTime(), export_G4VisAttributes(), CML2Acc1::flatteningFilter(), CML2Acc1::ionizationChamber(), CML2Acc1::Jaw1X(), CML2Acc1::Jaw1Y(), CML2Acc1::Jaw2X(), CML2Acc1::Jaw2Y(), CML2Acc1::mirror(), CML2Acc1::MLC(), CML2Acc1::primaryCollimator(), DicomPhantomParameterisationColour::ReadColourData(), DicomNestedPhantomParameterisation::ReadColourData(), G4VisCommandsTouchableSet::SetNewValue(), G4ScoringCylinder::SetupGeometry(), G4ScoringBox::SetupGeometry(), XDetectorConstruction::SetupGeometry(), RE03DetectorConstruction::SetupGeometry(), RE04DetectorConstruction::SetupGeometry(), GB03DetectorConstruction::SetupGeometry(), RE06DetectorConstruction::SetupGeometry(), CCalG4Able::setVisType(), G3toG4DetectorConstruction::SimpleConstruct(), CML2Acc1::target(), and G4VViewer::TouchableSetVisibility().

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const G4VisAttributes a 
)
friend

Definition at line 215 of file G4VisAttributes.cc.

Member Data Documentation

const std::map<G4String,G4AttDef>* G4VisAttributes::fAttDefs
private

Definition at line 154 of file G4VisAttributes.hh.

Referenced by operator!=(), operator<<(), and operator=().

const std::vector<G4AttValue>* G4VisAttributes::fAttValues
private

Definition at line 153 of file G4VisAttributes.hh.

Referenced by operator!=(), operator<<(), and operator=().

G4Colour G4VisAttributes::fColour
private

Definition at line 142 of file G4VisAttributes.hh.

Referenced by operator!=(), operator<<(), and operator=().

G4bool G4VisAttributes::fDaughtersInvisible
private

Definition at line 141 of file G4VisAttributes.hh.

Referenced by operator!=(), operator<<(), and operator=().

G4double G4VisAttributes::fEndTime
private

Definition at line 152 of file G4VisAttributes.hh.

Referenced by operator!=(), operator<<(), and operator=().

G4bool G4VisAttributes::fForceAuxEdgeVisible
private
G4bool G4VisAttributes::fForcedAuxEdgeVisible
private
G4int G4VisAttributes::fForcedLineSegmentsPerCircle
private
G4bool G4VisAttributes::fForceDrawingStyle
private
ForcedDrawingStyle G4VisAttributes::fForcedStyle
private
LineStyle G4VisAttributes::fLineStyle
private

Definition at line 143 of file G4VisAttributes.hh.

Referenced by operator!=(), operator<<(), and operator=().

G4double G4VisAttributes::fLineWidth
private

Definition at line 144 of file G4VisAttributes.hh.

Referenced by operator!=(), operator<<(), and operator=().

G4double G4VisAttributes::fStartTime
private

Definition at line 152 of file G4VisAttributes.hh.

Referenced by operator!=(), operator<<(), and operator=().

G4bool G4VisAttributes::fVisible
private

Definition at line 140 of file G4VisAttributes.hh.

Referenced by operator!=(), operator<<(), and operator=().

const G4VisAttributes G4VisAttributes::Invisible = G4VisAttributes (false)
static

Definition at line 88 of file G4VisAttributes.hh.


The documentation for this class was generated from the following files: