Geant4 11.2.2
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 119 of file G4ModelingParameters.hh.

Constructor & Destructor Documentation

◆ VisAttributesModifier()

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

Definition at line 121 of file G4ModelingParameters.hh.

124 :
125 fVisAtts(visAtts), fSignifier(signifier), fPVNameCopyNoPath(path) {}

Member Function Documentation

◆ GetPVNameCopyNoPath()

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

Definition at line 130 of file G4ModelingParameters.hh.

131 {return fPVNameCopyNoPath;}

Referenced by G4ViewParameters::AddVisAttributesModifier().

◆ GetVisAttributes()

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

Definition at line 126 of file G4ModelingParameters.hh.

127 {return fVisAtts;}

Referenced by G4ViewParameters::AddVisAttributesModifier().

◆ GetVisAttributesSignifier()

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

Definition at line 128 of file G4ModelingParameters.hh.

129 {return fSignifier;}

Referenced by G4ViewParameters::AddVisAttributesModifier().

◆ operator!=()

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

Definition at line 309 of file G4ModelingParameters.cc.

311{
312 if (fSignifier != rhs.fSignifier) return true;
313 if (fPVNameCopyNoPath != rhs.fPVNameCopyNoPath) return true;
314 switch (fSignifier) {
316 if (fVisAtts.IsVisible() != rhs.fVisAtts.IsVisible())
317 return true;
318 break;
320 if (fVisAtts.IsDaughtersInvisible() !=
321 rhs.fVisAtts.IsDaughtersInvisible())
322 return true;
323 break;
325 if (fVisAtts.GetColour() != rhs.fVisAtts.GetColour())
326 return true;
327 break;
329 if (fVisAtts.GetLineStyle() != rhs.fVisAtts.GetLineStyle())
330 return true;
331 break;
333 if (fVisAtts.GetLineWidth() != rhs.fVisAtts.GetLineWidth())
334 return true;
335 break;
339 if (fVisAtts.GetForcedDrawingStyle() !=
340 rhs.fVisAtts.GetForcedDrawingStyle())
341 return true;
342 break;
344 if (fVisAtts.GetForcedNumberOfCloudPoints() !=
345 rhs.fVisAtts.GetForcedNumberOfCloudPoints())
346 return true;
347 break;
349 if (fVisAtts.IsForceAuxEdgeVisible() !=
350 rhs.fVisAtts.IsForceAuxEdgeVisible() ||
351 fVisAtts.IsForcedAuxEdgeVisible() !=
352 rhs.fVisAtts.IsForcedAuxEdgeVisible())
353 return true;
354 break;
356 if (fVisAtts.GetForcedLineSegmentsPerCircle() !=
357 rhs.fVisAtts.GetForcedLineSegmentsPerCircle())
358 return true;
359 break;
360 }
361 return false;
362}
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 139 of file G4ModelingParameters.hh.

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

◆ SetPVNameCopyNoPath()

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

Definition at line 136 of file G4ModelingParameters.hh.

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

◆ SetVisAttributes()

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

Definition at line 132 of file G4ModelingParameters.hh.

133 {fVisAtts = visAtts;}

◆ SetVisAttributesSignifier()

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

Definition at line 134 of file G4ModelingParameters.hh.

135 {fSignifier = signifier;}

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