Geant4  10.02.p03
G4ModelingParameters::VisAttributesModifier Class Reference

#include <G4ModelingParameters.hh>

Collaboration diagram for G4ModelingParameters::VisAttributesModifier:

Public Member Functions

 VisAttributesModifier (const G4VisAttributes &visAtts, VisAttributesSignifier signifier, const PVNameCopyNoPath &path)
 
 VisAttributesModifier (const G4VisAttributes &visAtts, VisAttributesSignifier signifier, const std::vector< G4PhysicalVolumeModel::G4PhysicalVolumeNodeID > &path)
 
const G4VisAttributesGetVisAttributes () const
 
VisAttributesSignifier GetVisAttributesSignifier () const
 
const PVNameCopyNoPathGetPVNameCopyNoPath () const
 
G4bool operator!= (const VisAttributesModifier &) const
 
G4bool operator== (const VisAttributesModifier &rhs) const
 

Private Attributes

G4VisAttributes fVisAtts
 
VisAttributesSignifier fSignifier
 
PVNameCopyNoPath fPVNameCopyNoPath
 

Detailed Description

Definition at line 93 of file G4ModelingParameters.hh.

Constructor & Destructor Documentation

◆ VisAttributesModifier() [1/2]

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

Definition at line 96 of file G4ModelingParameters.hh.

Here is the caller graph for this function:

◆ VisAttributesModifier() [2/2]

G4ModelingParameters::VisAttributesModifier::VisAttributesModifier ( const G4VisAttributes visAtts,
G4ModelingParameters::VisAttributesSignifier  signifier,
const std::vector< G4PhysicalVolumeModel::G4PhysicalVolumeNodeID > &  path 
)

Definition at line 91 of file G4ModelingParameters.cc.

93  :
94 fVisAtts(visAtts), fSignifier(signifier)
95 {
97  typedef std::vector<PVNodeID> PVPath;
98  typedef PVPath::const_iterator PVPathConstIterator;
99  PVPathConstIterator i;
100  for (i = path.begin();
101  i != path.end();
102  ++i) {
103  fPVNameCopyNoPath.push_back
104  (PVNameCopyNo
105  (i->GetPhysicalVolume()->GetName(),
106  i->GetCopyNo()));
107  }
108 }
G4PhysicalVolumeModel::G4PhysicalVolumeNodeID PVNodeID
std::vector< PVNodeID > PVPath

Member Function Documentation

◆ GetPVNameCopyNoPath()

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

Definition at line 108 of file G4ModelingParameters.hh.

Here is the call graph for this function:

◆ GetVisAttributes()

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

Definition at line 104 of file G4ModelingParameters.hh.

◆ GetVisAttributesSignifier()

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

Definition at line 106 of file G4ModelingParameters.hh.

107  {return fSignifier;}

◆ operator!=()

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

Definition at line 261 of file G4ModelingParameters.cc.

262 {
263  if (fSignifier != rhs.fSignifier) return true;
264  if (fPVNameCopyNoPath != rhs.fPVNameCopyNoPath) return true;
265  switch (fSignifier) {
267  if (fVisAtts.IsVisible() != rhs.fVisAtts.IsVisible())
268  return true;
269  break;
272  rhs.fVisAtts.IsDaughtersInvisible())
273  return true;
274  break;
276  if (fVisAtts.GetColour() != rhs.fVisAtts.GetColour())
277  return true;
278  break;
280  if (fVisAtts.GetLineStyle() != rhs.fVisAtts.GetLineStyle())
281  return true;
282  break;
284  if (fVisAtts.GetLineWidth() != rhs.fVisAtts.GetLineWidth())
285  return true;
286  break;
289  rhs.fVisAtts.GetForcedDrawingStyle())
290  return true;
291  break;
294  rhs.fVisAtts.GetForcedDrawingStyle())
295  return true;
296  break;
299  rhs.fVisAtts.IsForceAuxEdgeVisible())
300  return true;
301  break;
304  rhs.fVisAtts.GetForcedLineSegmentsPerCircle())
305  return true;
306  break;
307  }
308  return false;
309 }
ForcedDrawingStyle GetForcedDrawingStyle() const
G4bool IsForceAuxEdgeVisible() const
static G4bool GetColour(const G4String &key, G4Colour &result)
Definition: G4Colour.cc:126
G4bool IsDaughtersInvisible() const
G4double GetLineWidth() const
LineStyle GetLineStyle() const
G4bool IsVisible() const
G4int GetForcedLineSegmentsPerCircle() const
const G4Colour & GetColour() const

◆ operator==()

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

Definition at line 111 of file G4ModelingParameters.hh.

112  {return !operator!=(rhs);}
G4bool operator!=(const VisAttributesModifier &) const
Here is the call graph for this function:

Member Data Documentation

◆ fPVNameCopyNoPath

PVNameCopyNoPath G4ModelingParameters::VisAttributesModifier::fPVNameCopyNoPath
private

Definition at line 116 of file G4ModelingParameters.hh.

◆ fSignifier

VisAttributesSignifier G4ModelingParameters::VisAttributesModifier::fSignifier
private

Definition at line 115 of file G4ModelingParameters.hh.

◆ fVisAtts

G4VisAttributes G4ModelingParameters::VisAttributesModifier::fVisAtts
private

Definition at line 114 of file G4ModelingParameters.hh.


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