Geant4 10.7.0
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 279 of file G4ModelingParameters.cc.

281{
282 if (fSignifier != rhs.fSignifier) return true;
283 if (fPVNameCopyNoPath != rhs.fPVNameCopyNoPath) return true;
284 switch (fSignifier) {
286 if (fVisAtts.IsVisible() != rhs.fVisAtts.IsVisible())
287 return true;
288 break;
290 if (fVisAtts.IsDaughtersInvisible() !=
291 rhs.fVisAtts.IsDaughtersInvisible())
292 return true;
293 break;
295 if (fVisAtts.GetColour() != rhs.fVisAtts.GetColour())
296 return true;
297 break;
299 if (fVisAtts.GetLineStyle() != rhs.fVisAtts.GetLineStyle())
300 return true;
301 break;
303 if (fVisAtts.GetLineWidth() != rhs.fVisAtts.GetLineWidth())
304 return true;
305 break;
309 if (fVisAtts.GetForcedDrawingStyle() !=
310 rhs.fVisAtts.GetForcedDrawingStyle())
311 return true;
312 break;
314 if (fVisAtts.GetForcedNumberOfCloudPoints() !=
315 rhs.fVisAtts.GetForcedNumberOfCloudPoints())
316 return true;
317 break;
319 if (fVisAtts.IsForceAuxEdgeVisible() !=
320 rhs.fVisAtts.IsForceAuxEdgeVisible() ||
321 fVisAtts.IsForcedAuxEdgeVisible() !=
322 rhs.fVisAtts.IsForcedAuxEdgeVisible())
323 return true;
324 break;
326 if (fVisAtts.GetForcedLineSegmentsPerCircle() !=
327 rhs.fVisAtts.GetForcedLineSegmentsPerCircle())
328 return true;
329 break;
330 }
331 return false;
332}
static G4bool GetColour(const G4String &key, G4Colour &result)
Definition: G4Colour.cc:162
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: