Geant4  10.00.p03
G4VisAttributes Class Reference

#include <G4VisAttributes.hh>

+ Collaboration diagram for G4VisAttributes:

Public Types

enum  LineStyle { unbroken, dashed, dotted }
 
enum  ForcedDrawingStyle { wireframe, solid }
 

Public Member Functions

 G4VisAttributes ()
 
 G4VisAttributes (const G4VisAttributes &)
 
 G4VisAttributes (G4bool visibility)
 
 G4VisAttributes (const G4Colour &colour)
 
 G4VisAttributes (G4bool visibility, const G4Colour &colour)
 
 ~G4VisAttributes ()
 
G4VisAttributesoperator= (const G4VisAttributes &)
 
G4bool operator!= (const G4VisAttributes &a) const
 
G4bool operator== (const G4VisAttributes &a) const
 
void SetVisibility (G4bool)
 
void SetDaughtersInvisible (G4bool)
 
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)
 
void SetForceSolid (G4bool)
 
void SetForceAuxEdgeVisible (G4bool)
 
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 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 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
 
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

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 58 of file G4VisAttributes.cc.

G4VisAttributes::G4VisAttributes ( const G4VisAttributes va)

Definition at line 37 of file G4VisAttributes.cc.

G4VisAttributes::G4VisAttributes ( G4bool  visibility)

Definition at line 74 of file G4VisAttributes.cc.

G4VisAttributes::G4VisAttributes ( const G4Colour colour)

Definition at line 90 of file G4VisAttributes.cc.

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

Definition at line 106 of file G4VisAttributes.cc.

G4VisAttributes::~G4VisAttributes ( )

Definition at line 123 of file G4VisAttributes.cc.

Member Function Documentation

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

Definition at line 153 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(), export_G4VisAttributes(), and G4HepRepSceneHandler::getColorFor().

+ Here is the caller graph for this function:

G4double G4VisAttributes::GetEndTime ( ) const
ForcedDrawingStyle G4VisAttributes::GetForcedDrawingStyle ( ) 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:

G4int G4VisAttributes::GetForcedLineSegmentsPerCircle ( ) const

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

+ Here is the caller graph for this function:

static const G4VisAttributes& G4VisAttributes::GetInvisible ( )
static

Referenced by RE05DetectorConstruction::Construct(), and export_G4VisAttributes().

+ Here is the caller 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:

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::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 229 of file G4VisAttributes.cc.

References fAttDefs, fAttValues, fColour, fDaughtersInvisible, fEndTime, fForceAuxEdgeVisible, 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 254 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  )

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  )

Referenced by 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 158 of file G4VisAttributes.cc.

References fForcedLineSegmentsPerCircle, G4cout, and G4endl.

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

+ Here is the caller graph for this function:

void G4VisAttributes::SetForceSolid ( G4bool  )

Referenced by G4MIRDLiver::Construct(), G4MIRDLeftAdrenal::Construct(), G4MIRDLeftClavicle::Construct(), G4MIRDLeftScapula::Construct(), G4MIRDRightLegBone::Construct(), G4MIRDRightScapula::Construct(), G4MIRDLeftOvary::Construct(), G4MIRDSkull::Construct(), G4MIRDLeftTeste::Construct(), G4MIRDSmallIntestine::Construct(), G4MIRDLowerLargeIntestine::Construct(), G4MIRDMaleGenitalia::Construct(), G4MIRDThyroid::Construct(), G4MIRDUpperLargeIntestine::Construct(), G4MIRDLeftKidney::Construct(), G4MIRDLeftLeg::Construct(), G4MIRDPelvis::Construct(), G4MIRDRightAdrenal::Construct(), G4MIRDLeftLegBone::Construct(), G4MIRDRightClavicle::Construct(), B03DetectorConstruction::Construct(), G4MIRDRightKidney::Construct(), G4MIRDRightLeg::Construct(), G4MIRDRightLung::Construct(), G4MIRDRightOvary::Construct(), G4MIRDRightTeste::Construct(), G4MIRDUterus::Construct(), G4MIRDSpleen::Construct(), G4MIRDUpperSpine::Construct(), G4MIRDStomach::Construct(), G4MIRDThymus::Construct(), G4MIRDBrain::Construct(), G4MIRDTrunk::Construct(), G4MIRDLeftBreast::Construct(), G4MIRDMiddleLowerSpine::Construct(), G4MIRDPancreas::Construct(), G4MIRDRibCage::Construct(), G4MIRDHeart::Construct(), G4MIRDRightBreast::Construct(), G4MIRDLeftLung::Construct(), G4MIRDLeftArmBone::Construct(), G4MIRDUrinaryBladder::Construct(), G4MIRDRightArmBone::Construct(), G4MIRDHead::Construct(), B02DetectorConstruction::Construct(), B01DetectorConstruction::Construct(), DMXDetectorConstruction::Construct(), XrayFluoMercuryDetectorConstruction::ConstructApparate(), XrayFluoPlaneDetectorConstruction::ConstructApparate(), XrayFluoDetectorConstruction::ConstructApparate(), PurgMagDetectorConstruction::ConstructCalorimeter(), DetectorConstruction::ConstructLine(), GammaRayTelDetectorConstruction::ConstructPayload(), G4HumanPhantomConstruction::ConstructWorld(), CML2PhaseSpaces::createPlane(), G4PhysicalVolumeModel::DescribeAndDescend(), UVA_VisAction::Draw(), G4ScoringCylinder::Draw(), G4ScoringBox::Draw(), ExN04CalorimeterHit::Draw(), RE01CalorimeterHit::Draw(), RE05CalorimeterHit::Draw(), Par01CalorimeterHit::Draw(), ExGflashHit::Draw(), LXePMTHit::Draw(), G4ScoringCylinder::DrawColumn(), G4ScoringBox::DrawColumn(), export_G4VisAttributes(), G4ArrowModel::G4ArrowModel(), 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  )

Referenced by CML2Acc1::BeWindow(), eRositaDetectorConstruction::Construct(), B5DetectorConstruction::Construct(), CML2PhantomConstruction::Construct(), CML2AcceleratorConstruction::Construct(), UltraDetectorConstruction::Construct(), CML2Ph_FullWater::Construct(), DMXDetectorConstruction::Construct(), CML2Ph_BoxInBox::Construct(), XrayFluoMercuryDetectorConstruction::ConstructApparate(), XrayFluoPlaneDetectorConstruction::ConstructApparate(), XrayFluoDetectorConstruction::ConstructApparate(), ExN03DetectorConstruction::ConstructCalorimeter(), PurgMagDetectorConstruction::ConstructCalorimeter(), G4tgbVolume::ConstructG4LogVol(), UltraDetectorConstruction::ConstructGround(), DetectorConstruction::ConstructLine(), UltraDetectorConstruction::ConstructMirror(), GammaRayTelDetectorConstruction::ConstructPayload(), UltraDetectorConstruction::ConstructUVscope(), CML2WorldConstruction::create(), CML2PhaseSpaces::createPlane(), B4cDetectorConstruction::DefineVolumes(), B4dDetectorConstruction::DefineVolumes(), B4DetectorConstruction::DefineVolumes(), 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(), XDetectorConstruction::SetupGeometry(), RE03DetectorConstruction::SetupGeometry(), RE04DetectorConstruction::SetupGeometry(), G4ScoringBox::SetupGeometry(), G4ScoringCylinder::SetupGeometry(), RE06DetectorConstruction::SetupGeometry(), CCalG4Able::setVisType(), G3toG4DetectorConstruction::SimpleConstruct(), and CML2Acc1::target().

Friends And Related Function Documentation

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

Definition at line 170 of file G4VisAttributes.cc.

Member Data Documentation

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

Definition at line 145 of file G4VisAttributes.hh.

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

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

Definition at line 144 of file G4VisAttributes.hh.

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

G4Colour G4VisAttributes::fColour
private

Definition at line 134 of file G4VisAttributes.hh.

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

G4bool G4VisAttributes::fDaughtersInvisible
private

Definition at line 133 of file G4VisAttributes.hh.

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

G4double G4VisAttributes::fEndTime
private

Definition at line 143 of file G4VisAttributes.hh.

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

G4bool G4VisAttributes::fForceAuxEdgeVisible
private

Definition at line 140 of file G4VisAttributes.hh.

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

G4int G4VisAttributes::fForcedLineSegmentsPerCircle
private
G4bool G4VisAttributes::fForceDrawingStyle
private

Definition at line 138 of file G4VisAttributes.hh.

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

ForcedDrawingStyle G4VisAttributes::fForcedStyle
private

Definition at line 139 of file G4VisAttributes.hh.

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

LineStyle G4VisAttributes::fLineStyle
private

Definition at line 135 of file G4VisAttributes.hh.

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

G4double G4VisAttributes::fLineWidth
private

Definition at line 136 of file G4VisAttributes.hh.

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

G4double G4VisAttributes::fStartTime
private

Definition at line 143 of file G4VisAttributes.hh.

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

G4bool G4VisAttributes::fVisible
private

Definition at line 132 of file G4VisAttributes.hh.

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

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

Definition at line 82 of file G4VisAttributes.hh.

Referenced by UltraFresnelLens::BuildLens(), HadrontherapyModulator::BuildModulator(), Par01DetectorConstruction::Construct(), exGPSGeometryConstruction::Construct(), G4MIRDRibCage::Construct(), B3DetectorConstruction::Construct(), ExGflashDetectorConstruction::Construct(), FCALCryostatVolumes::Construct(), FCALEMModule::Construct(), exrdmDetectorConstruction::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(), PassiveCarbonBeamLine::ConstructPassiveCarbonBeamLine(), PassiveProtonBeamLine::ConstructPassiveProtonBeamLine(), GammaRayTelDetectorConstruction::ConstructPayload(), DicomNestedParamDetectorConstruction::ConstructPhantom(), BrachyDetectorConstruction::ConstructPhantom(), DicomRegularDetectorConstruction::ConstructPhantom(), XrayTelDetectorConstruction::ConstructTelescope(), G4HumanPhantomConstruction::ConstructWorld(), B4dDetectorConstruction::DefineVolumes(), B4cDetectorConstruction::DefineVolumes(), B4DetectorConstruction::DefineVolumes(), export_G4VisAttributes(), G4BuildGeom(), F04ElementField::GetVisAttribute(), G4GDMLReadStructure::GetWorldVolume(), XDetectorConstruction::SetupGeometry(), RE04DetectorConstruction::SetupGeometry(), RE06DetectorConstruction::SetupGeometry(), and G3toG4DetectorConstruction::SimpleConstruct().


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