Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4ModelingParameters::VisAttributesModifier Class Reference

#include <G4ModelingParameters.hh>

Public Member Functions

 VisAttributesModifier (const G4VisAttributes &visAtts, VisAttributesSignifier signifier, const PVNameCopyNoPath &path)
 
const G4VisAttributesGetVisAttributes () const
 
VisAttributesSignifier GetVisAttributesSignifier () const
 
const PVNameCopyNoPathGetPVNameCopyNoPath () const
 
void SetVisAttributes (const G4VisAttributes &visAtts)
 
void SetVisAttributesSignifier (VisAttributesSignifier signifier)
 
void SetPVNameCopyNoPath (const PVNameCopyNoPath &PVNameCopyNoPath)
 
G4bool operator!= (const VisAttributesModifier &) const
 
G4bool operator== (const VisAttributesModifier &rhs) const
 

Detailed Description

Definition at line 114 of file G4ModelingParameters.hh.

Constructor & Destructor Documentation

◆ VisAttributesModifier()

G4ModelingParameters::VisAttributesModifier::VisAttributesModifier ( const G4VisAttributes visAtts,
VisAttributesSignifier  signifier,
const PVNameCopyNoPath path 
)
inline

Definition at line 116 of file G4ModelingParameters.hh.

119 :
120 fVisAtts(visAtts), fSignifier(signifier), fPVNameCopyNoPath(path) {}

Member Function Documentation

◆ GetPVNameCopyNoPath()

const PVNameCopyNoPath & G4ModelingParameters::VisAttributesModifier::GetPVNameCopyNoPath ( ) const
inline

Definition at line 125 of file G4ModelingParameters.hh.

126 {return fPVNameCopyNoPath;}

Referenced by G4ViewParameters::AddVisAttributesModifier().

◆ GetVisAttributes()

const G4VisAttributes & G4ModelingParameters::VisAttributesModifier::GetVisAttributes ( ) const
inline

Definition at line 121 of file G4ModelingParameters.hh.

122 {return fVisAtts;}

Referenced by G4ViewParameters::AddVisAttributesModifier().

◆ GetVisAttributesSignifier()

VisAttributesSignifier G4ModelingParameters::VisAttributesModifier::GetVisAttributesSignifier ( ) const
inline

Definition at line 123 of file G4ModelingParameters.hh.

124 {return fSignifier;}

Referenced by G4ViewParameters::AddVisAttributesModifier().

◆ operator!=()

G4bool G4ModelingParameters::VisAttributesModifier::operator!= ( const VisAttributesModifier rhs) const

Definition at line 302 of file G4ModelingParameters.cc.

304{
305 if (fSignifier != rhs.fSignifier) return true;
306 if (fPVNameCopyNoPath != rhs.fPVNameCopyNoPath) return true;
307 switch (fSignifier) {
309 if (fVisAtts.IsVisible() != rhs.fVisAtts.IsVisible())
310 return true;
311 break;
313 if (fVisAtts.IsDaughtersInvisible() !=
314 rhs.fVisAtts.IsDaughtersInvisible())
315 return true;
316 break;
318 if (fVisAtts.GetColour() != rhs.fVisAtts.GetColour())
319 return true;
320 break;
322 if (fVisAtts.GetLineStyle() != rhs.fVisAtts.GetLineStyle())
323 return true;
324 break;
326 if (fVisAtts.GetLineWidth() != rhs.fVisAtts.GetLineWidth())
327 return true;
328 break;
332 if (fVisAtts.GetForcedDrawingStyle() !=
333 rhs.fVisAtts.GetForcedDrawingStyle())
334 return true;
335 break;
337 if (fVisAtts.GetForcedNumberOfCloudPoints() !=
338 rhs.fVisAtts.GetForcedNumberOfCloudPoints())
339 return true;
340 break;
342 if (fVisAtts.IsForceAuxEdgeVisible() !=
343 rhs.fVisAtts.IsForceAuxEdgeVisible() ||
344 fVisAtts.IsForcedAuxEdgeVisible() !=
345 rhs.fVisAtts.IsForcedAuxEdgeVisible())
346 return true;
347 break;
349 if (fVisAtts.GetForcedLineSegmentsPerCircle() !=
350 rhs.fVisAtts.GetForcedLineSegmentsPerCircle())
351 return true;
352 break;
353 }
354 return false;
355}
static G4bool GetColour(const G4String &key, G4Colour &result)
Definition: G4Colour.cc:155
G4int GetForcedNumberOfCloudPoints() const
G4double GetLineWidth() const
G4bool IsDaughtersInvisible() const
G4int GetForcedLineSegmentsPerCircle() const
LineStyle GetLineStyle() const
const G4Colour & GetColour() const
G4bool IsVisible() const
G4bool IsForceAuxEdgeVisible() const
G4bool IsForcedAuxEdgeVisible() const
ForcedDrawingStyle GetForcedDrawingStyle() const

Referenced by operator==().

◆ operator==()

G4bool G4ModelingParameters::VisAttributesModifier::operator== ( const VisAttributesModifier rhs) const
inline

Definition at line 134 of file G4ModelingParameters.hh.

135 {return !operator!=(rhs);}
G4bool operator!=(const VisAttributesModifier &) const

◆ SetPVNameCopyNoPath()

void G4ModelingParameters::VisAttributesModifier::SetPVNameCopyNoPath ( const PVNameCopyNoPath PVNameCopyNoPath)
inline

Definition at line 131 of file G4ModelingParameters.hh.

132 {fPVNameCopyNoPath = PVNameCopyNoPath;}
std::vector< PVNameCopyNo > PVNameCopyNoPath

◆ SetVisAttributes()

void G4ModelingParameters::VisAttributesModifier::SetVisAttributes ( const G4VisAttributes visAtts)
inline

Definition at line 127 of file G4ModelingParameters.hh.

128 {fVisAtts = visAtts;}

◆ SetVisAttributesSignifier()

void G4ModelingParameters::VisAttributesModifier::SetVisAttributesSignifier ( VisAttributesSignifier  signifier)
inline

Definition at line 129 of file G4ModelingParameters.hh.

130 {fSignifier = signifier;}

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