Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4ModelingParameters::VisAttributesModifier Class Reference

#include <G4ModelingParameters.hh>

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
 
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 94 of file G4ModelingParameters.hh.

Constructor & Destructor Documentation

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

Definition at line 97 of file G4ModelingParameters.hh.

99  :
100  fVisAtts(visAtts), fSignifier(signifier), fPVNameCopyNoPath(path) {}
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

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

Definition at line 109 of file G4ModelingParameters.hh.

110  {return fPVNameCopyNoPath;}

Here is the caller graph for this function:

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

Definition at line 105 of file G4ModelingParameters.hh.

106  {return fVisAtts;}

Here is the caller graph for this function:

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

Definition at line 107 of file G4ModelingParameters.hh.

108  {return fSignifier;}

Here is the caller graph for this function:

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;
271  if (fVisAtts.IsDaughtersInvisible() !=
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;
288  if (fVisAtts.GetForcedDrawingStyle() !=
289  rhs.fVisAtts.GetForcedDrawingStyle())
290  return true;
291  break;
293  if (fVisAtts.GetForcedDrawingStyle() !=
294  rhs.fVisAtts.GetForcedDrawingStyle())
295  return true;
296  break;
298  if (fVisAtts.IsForceAuxEdgeVisible() !=
299  rhs.fVisAtts.IsForceAuxEdgeVisible() ||
300  fVisAtts.IsForcedAuxEdgeVisible() !=
301  rhs.fVisAtts.IsForcedAuxEdgeVisible())
302  return true;
303  break;
305  if (fVisAtts.GetForcedLineSegmentsPerCircle() !=
306  rhs.fVisAtts.GetForcedLineSegmentsPerCircle())
307  return true;
308  break;
309  }
310  return false;
311 }
G4bool IsForceAuxEdgeVisible() const
G4double GetLineWidth() const
G4bool IsVisible() const
static G4bool GetColour(const G4String &key, G4Colour &result)
Definition: G4Colour.cc:126
const G4Colour & GetColour() const
LineStyle GetLineStyle() const
G4bool IsDaughtersInvisible() const
G4bool IsForcedAuxEdgeVisible() const
G4int GetForcedLineSegmentsPerCircle() const
ForcedDrawingStyle GetForcedDrawingStyle() const

Here is the caller graph for this function:

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

Definition at line 118 of file G4ModelingParameters.hh.

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

Here is the call graph for this function:

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

Definition at line 115 of file G4ModelingParameters.hh.

116  {fPVNameCopyNoPath = PVNameCopyNoPath;}
std::vector< PVNameCopyNo > PVNameCopyNoPath
void G4ModelingParameters::VisAttributesModifier::SetVisAttributes ( const G4VisAttributes visAtts)
inline

Definition at line 111 of file G4ModelingParameters.hh.

112  {fVisAtts = visAtts;}
void G4ModelingParameters::VisAttributesModifier::SetVisAttributesSignifier ( VisAttributesSignifier  signifier)
inline

Definition at line 113 of file G4ModelingParameters.hh.

114  {fSignifier = signifier;}

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