Geant4-11
|
#include <G4VisAttributes.hh>
Public Types | |
enum | ForcedDrawingStyle { wireframe , solid , cloud } |
enum | LineStyle { unbroken , dashed , dotted } |
Static Public Member Functions | |
static const G4VisAttributes & | GetInvisible () |
static G4int | GetMinLineSegmentsPerCircle () |
Static Public Attributes | |
static constexpr G4int | fMinLineSegmentsPerCircle = 3 |
static constexpr G4double | fVeryLongTime = 1.e100 * CLHEP::ns |
Private Attributes | |
const std::map< G4String, G4AttDef > * | fAttDefs |
const std::vector< G4AttValue > * | fAttValues |
G4Colour | fColour |
G4bool | fDaughtersInvisible |
G4double | fEndTime |
G4bool | fForceAuxEdgeVisible |
G4bool | fForcedAuxEdgeVisible |
G4int | fForcedLineSegmentsPerCircle |
G4int | fForcedNumberOfCloudPoints |
G4bool | fForceDrawingStyle |
ForcedDrawingStyle | fForcedStyle |
LineStyle | fLineStyle |
G4double | fLineWidth |
G4double | fStartTime |
G4bool | fVisible |
Friends | |
std::ostream & | operator<< (std::ostream &os, const G4VisAttributes &a) |
Definition at line 69 of file G4VisAttributes.hh.
G4VisAttributes::G4VisAttributes | ( | ) |
Definition at line 36 of file G4VisAttributes.cc.
Referenced by GetInvisible().
G4VisAttributes::G4VisAttributes | ( | G4bool | visibility | ) |
Definition at line 54 of file G4VisAttributes.cc.
G4VisAttributes::G4VisAttributes | ( | const G4Colour & | colour | ) |
Definition at line 72 of file G4VisAttributes.cc.
Definition at line 90 of file G4VisAttributes.cc.
G4VisAttributes::G4VisAttributes | ( | const G4VisAttributes & | va | ) |
Definition at line 109 of file G4VisAttributes.cc.
G4VisAttributes::~G4VisAttributes | ( | ) |
Definition at line 132 of file G4VisAttributes.cc.
const std::vector< G4AttValue > * G4VisAttributes::CreateAttValues | ( | ) | const |
Definition at line 221 of file G4VisAttributes.cc.
References fAttValues.
Referenced by G4VSceneHandler::LoadAtts().
Referenced by G4VSceneHandler::LoadAtts().
const G4Color & G4VisAttributes::GetColor | ( | ) | const |
const G4Colour & G4VisAttributes::GetColour | ( | ) | const |
Referenced by G4HepRepFileSceneHandler::AddHepRepInstance(), G4Qt3DSceneHandler::AddPrimitive(), G4VtkSceneHandler::AddPrimitive(), G4VtkSceneHandler::AddPrimitiveTensorGlyph(), G4OpenInventorSceneHandler::AddProperties(), G4RTRun::Attenuate(), G4TheRayTracer::Attenuate(), G4ViewParameters::CameraAndLightingCommands(), G4OpenGLStoredQtViewer::CompareForKernelVisit(), G4OpenGLStoredViewer::CompareForKernelVisit(), G4OpenInventorViewer::CompareForKernelVisit(), G4Qt3DViewer::CompareForKernelVisit(), G4ToolsSGViewer< SG_SESSION, SG_VIEWER >::CompareForKernelVisit(), G4PhysicalVolumeModel::DescribeAndDescend(), export_G4VisAttributes(), G4OpenInventorSceneHandler::GeneratePrerequisites(), G4VSceneHandler::GetColour(), G4RTRun::GetSurfaceColour(), G4TheRayTracer::GetSurfaceColour(), G4VSceneHandler::GetTextColour(), std::hash< G4VisAttributes >::operator()(), G4VisCommandsViewerSet::SetNewValue(), G4ViewParameters::TouchableCommands(), and G4RTSteppingAction::UserSteppingAction().
G4double G4VisAttributes::GetEndTime | ( | ) | const |
Referenced by G4OpenGLStoredSceneHandler::AddPrimitivePreambleInternal().
G4VisAttributes::ForcedDrawingStyle G4VisAttributes::GetForcedDrawingStyle | ( | ) | const |
Definition at line 211 of file G4VisAttributes.cc.
References fForceDrawingStyle, fForcedStyle, and wireframe.
Referenced by G4PhysicalVolumeModel::DescribeAndDescend(), export_G4VisAttributes(), G4ViewParameters::TouchableCommands(), G4RTSteppingAction::UserSteppingAction(), G4RTRun::ValidColour(), and G4TheRayTracer::ValidColour().
G4int G4VisAttributes::GetForcedLineSegmentsPerCircle | ( | ) | const |
G4int G4VisAttributes::GetForcedNumberOfCloudPoints | ( | ) | const |
Referenced by G4PhysicalVolumeModel::DescribeAndDescend(), and G4ViewParameters::TouchableCommands().
|
static |
Definition at line 161 of file G4VisAttributes.cc.
References G4VisAttributes().
Referenced by ExN03DetectorConstruction::ConstructCalorimeter(), export_G4VisAttributes(), G4BuildGeom(), and G4GDMLReadStructure::GetWorldVolume().
LineStyle G4VisAttributes::GetLineStyle | ( | ) | const |
G4double G4VisAttributes::GetLineWidth | ( | ) | const |
|
static |
G4double G4VisAttributes::GetStartTime | ( | ) | const |
Referenced by G4OpenGLStoredSceneHandler::AddPrimitivePreambleInternal().
G4bool G4VisAttributes::IsDaughtersInvisible | ( | ) | const |
G4bool G4VisAttributes::IsForceAuxEdgeVisible | ( | ) | const |
G4bool G4VisAttributes::IsForcedAuxEdgeVisible | ( | ) | const |
Definition at line 216 of file G4VisAttributes.cc.
References fForceAuxEdgeVisible, and fForcedAuxEdgeVisible.
Referenced by G4PhysicalVolumeModel::DescribeAndDescend(), G4VSceneHandler::GetAuxEdgeVisible(), and G4ViewParameters::TouchableCommands().
G4bool G4VisAttributes::IsForceDrawingStyle | ( | ) | const |
G4bool G4VisAttributes::IsForceLineSegmentsPerCircle | ( | ) | const |
Referenced by G4PhysicalVolumeModel::DescribeSolid(), and G4VSceneHandler::GetNoOfSides().
G4bool G4VisAttributes::IsVisible | ( | ) | const |
Referenced by G4HepRepFileSceneHandler::AddHepRepInstance(), G4HepRepFileSceneHandler::AddPrimitive(), G4VtkSceneHandler::AddPrimitive(), G4HepRepFileSceneHandler::AddSolid(), G4PhysicalVolumeModel::DescribeAndDescend(), export_G4VisAttributes(), G4GMocrenFileSceneHandler::IsVisible(), std::hash< G4VisAttributes >::operator()(), G4ViewParameters::TouchableCommands(), G4RTSteppingAction::UserSteppingAction(), G4RTRun::ValidColour(), and G4TheRayTracer::ValidColour().
G4bool G4VisAttributes::operator!= | ( | const G4VisAttributes & | a | ) | const |
Definition at line 300 of file G4VisAttributes.cc.
References fAttDefs, fAttValues, fColour, fDaughtersInvisible, fEndTime, fForceAuxEdgeVisible, fForcedAuxEdgeVisible, fForcedLineSegmentsPerCircle, fForceDrawingStyle, fForcedStyle, fLineStyle, fLineWidth, fStartTime, and fVisible.
Referenced by operator==().
G4VisAttributes & G4VisAttributes::operator= | ( | const G4VisAttributes & | rhs | ) |
Definition at line 135 of file G4VisAttributes.cc.
References fAttDefs, fAttValues, fColour, fDaughtersInvisible, fEndTime, fForceAuxEdgeVisible, fForcedAuxEdgeVisible, fForcedLineSegmentsPerCircle, fForcedNumberOfCloudPoints, fForceDrawingStyle, fForcedStyle, fLineStyle, fLineWidth, fStartTime, and fVisible.
G4bool G4VisAttributes::operator== | ( | const G4VisAttributes & | a | ) | const |
Definition at line 329 of file G4VisAttributes.cc.
References operator!=().
Referenced by export_G4VisAttributes().
void G4VisAttributes::SetAttValues | ( | const std::vector< G4AttValue > * | ) |
Referenced by export_G4VisAttributes().
void G4VisAttributes::SetColor | ( | const G4Color & | ) |
void G4VisAttributes::SetColour | ( | const G4Colour & | ) |
Referenced by G4VisCommandSceneAddArrow2D::Arrow2D::Arrow2D(), G4ViewParameters::CatmullRomCubicSplineInterpolation(), G4tgbVolume::ConstructG4LogVol(), G4PhysicalVolumeModel::DescribeAndDescend(), G4GPSModel::DescribeYourselfTo(), G4ScoringBox::Draw(), G4ScoringCylinder::Draw(), G4ScoringBox::DrawColumn(), G4ScoringCylinder::DrawColumn(), G4ArrowModel::G4ArrowModel(), G4DrawVoxels::G4DrawVoxels(), G4VisCommandSceneAddLine::Line::Line(), G4VisCommandSceneAddLine2D::Line2D::Line2D(), G4VisCommandSceneAddFrame::Frame::operator()(), G4VisCommandsTouchableSet::SetNewValue(), G4VisCommandsViewerSet::SetNewValue(), and G4VViewer::TouchableSetColour().
void G4VisAttributes::SetColour | ( | G4double | red, |
G4double | green, | ||
G4double | blue, | ||
G4double | alpha = 1. |
||
) |
void G4VisAttributes::SetDaughtersInvisible | ( | G4bool | = true | ) |
void G4VisAttributes::SetEndTime | ( | G4double | ) |
Referenced by G4TrajectoryDrawerUtils::DrawWithTime().
void G4VisAttributes::SetForceAuxEdgeVisible | ( | G4bool | visibility = true | ) |
Definition at line 205 of file G4VisAttributes.cc.
References fForceAuxEdgeVisible, and fForcedAuxEdgeVisible.
Referenced by G4VSceneHandler::AddSolidWithAuxiliaryEdges(), G4PhysicalVolumeModel::DescribeAndDescend(), G4ScoringBox::Draw(), G4ScoringCylinder::Draw(), G4ScoringBox::DrawColumn(), G4ScoringCylinder::DrawColumn(), export_G4VisAttributes(), and G4VisCommandsTouchableSet::SetNewValue().
void G4VisAttributes::SetForceCloud | ( | G4bool | force = true | ) |
Definition at line 184 of file G4VisAttributes.cc.
References cloud, fForceDrawingStyle, and fForcedStyle.
Referenced by G4PhysicalVolumeModel::DescribeAndDescend(), G4VisCommandGeometrySetForceCloudFunction::operator()(), and G4VisCommandsTouchableSet::SetNewValue().
void G4VisAttributes::SetForceLineSegmentsPerCircle | ( | G4int | nSegments | ) |
Definition at line 226 of file G4VisAttributes.cc.
References fForcedLineSegmentsPerCircle, fMinLineSegmentsPerCircle, G4cout, and G4endl.
Referenced by G4PhysicalVolumeModel::DescribeAndDescend(), and G4VisCommandsTouchableSet::SetNewValue().
void G4VisAttributes::SetForceNumberOfCloudPoints | ( | G4int | nPoints | ) |
Definition at line 193 of file G4VisAttributes.cc.
References fForcedNumberOfCloudPoints, G4cout, and G4endl.
Referenced by G4PhysicalVolumeModel::DescribeAndDescend(), G4VisCommandGeometrySetForceCloudFunction::operator()(), and G4VisCommandsTouchableSet::SetNewValue().
void G4VisAttributes::SetForceSolid | ( | G4bool | force = true | ) |
Definition at line 175 of file G4VisAttributes.cc.
References fForceDrawingStyle, fForcedStyle, and solid.
Referenced by G4PhysicalVolumeModel::DescribeAndDescend(), G4GPSModel::DescribeYourselfTo(), G4ScoringBox::Draw(), G4ScoringCylinder::Draw(), G4ScoringBox::DrawColumn(), G4ScoringCylinder::DrawColumn(), export_G4VisAttributes(), G4ArrowModel::G4ArrowModel(), G4VisCommandSceneAddLogo::SetNewValue(), and G4VisCommandsTouchableSet::SetNewValue().
void G4VisAttributes::SetForceWireframe | ( | G4bool | force = true | ) |
Definition at line 166 of file G4VisAttributes.cc.
References fForceDrawingStyle, fForcedStyle, and wireframe.
Referenced by G4PhysicalVolumeModel::DescribeAndDescend(), G4LogicalVolumeModel::DescribeSolid(), export_G4VisAttributes(), and G4VisCommandsTouchableSet::SetNewValue().
void G4VisAttributes::SetLineStyle | ( | LineStyle | ) |
void G4VisAttributes::SetLineWidth | ( | G4double | ) |
Referenced by G4VisCommandSceneAddArrow2D::Arrow2D::Arrow2D(), G4PhysicalVolumeModel::DescribeAndDescend(), G4VFieldModel::DescribeYourselfTo(), anonymous_namespace{G4LogicalVolumeModel.cc}::DrawSolid(), G4TrajectoryDrawerUtils::DrawWithoutTime(), G4TrajectoryDrawerUtils::DrawWithTime(), export_G4VisAttributes(), G4VisCommandSceneAddLine::Line::Line(), G4VisCommandSceneAddLine2D::Line2D::Line2D(), G4VisCommandSceneAddFrame::Frame::operator()(), and G4VisCommandsTouchableSet::SetNewValue().
void G4VisAttributes::SetStartTime | ( | G4double | ) |
Referenced by G4TrajectoryDrawerUtils::DrawWithTime().
void G4VisAttributes::SetVisibility | ( | G4bool | = true | ) |
Referenced by ExN03DetectorConstruction::ConstructCalorimeter(), G4tgbVolume::ConstructG4LogVol(), G4PhysicalVolumeModel::DescribeAndDescend(), export_G4VisAttributes(), G4VisCommandsTouchableSet::SetNewValue(), G4ScoringProbe::SetupGeometry(), G4ScoringBox::SetupGeometry(), G4ScoringCylinder::SetupGeometry(), and G4VViewer::TouchableSetVisibility().
|
friend |
Definition at line 238 of file G4VisAttributes.cc.
Definition at line 162 of file G4VisAttributes.hh.
Referenced by operator!=(), and operator=().
|
private |
Definition at line 161 of file G4VisAttributes.hh.
Referenced by CreateAttValues(), operator!=(), and operator=().
|
private |
Definition at line 148 of file G4VisAttributes.hh.
Referenced by operator!=(), and operator=().
|
private |
Definition at line 147 of file G4VisAttributes.hh.
Referenced by operator!=(), and operator=().
|
private |
Definition at line 160 of file G4VisAttributes.hh.
Referenced by operator!=(), and operator=().
|
private |
Definition at line 156 of file G4VisAttributes.hh.
Referenced by IsForcedAuxEdgeVisible(), operator!=(), operator=(), and SetForceAuxEdgeVisible().
|
private |
Definition at line 157 of file G4VisAttributes.hh.
Referenced by IsForcedAuxEdgeVisible(), operator!=(), operator=(), and SetForceAuxEdgeVisible().
|
private |
Definition at line 158 of file G4VisAttributes.hh.
Referenced by operator!=(), operator=(), and SetForceLineSegmentsPerCircle().
|
private |
Definition at line 154 of file G4VisAttributes.hh.
Referenced by operator=(), and SetForceNumberOfCloudPoints().
|
private |
Definition at line 152 of file G4VisAttributes.hh.
Referenced by GetForcedDrawingStyle(), operator!=(), operator=(), SetForceCloud(), SetForceSolid(), and SetForceWireframe().
|
private |
Definition at line 153 of file G4VisAttributes.hh.
Referenced by GetForcedDrawingStyle(), operator!=(), operator=(), SetForceCloud(), SetForceSolid(), and SetForceWireframe().
|
private |
Definition at line 149 of file G4VisAttributes.hh.
Referenced by operator!=(), and operator=().
|
private |
Definition at line 150 of file G4VisAttributes.hh.
Referenced by operator!=(), and operator=().
|
staticconstexpr |
Definition at line 138 of file G4VisAttributes.hh.
Referenced by SetForceLineSegmentsPerCircle().
|
private |
Definition at line 160 of file G4VisAttributes.hh.
Referenced by operator!=(), and operator=().
Definition at line 141 of file G4VisAttributes.hh.
Referenced by G4OpenGLStoredViewer::DrawDisplayLists(), and G4VisCommandsViewerSet::G4VisCommandsViewerSet().
|
private |
Definition at line 146 of file G4VisAttributes.hh.
Referenced by operator!=(), and operator=().