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

#include <G4ModelingParameters.hh>

Classes

class  PVNameCopyNo
class  PVPointerCopyNo
class  VisAttributesModifier
struct  TimeParameters

Public Types

enum  DrawingStyle {
  wf , hlr , hsr , hlhsr ,
  cloud
}
enum  CutawayMode { cutawayUnion , cutawayIntersection }
enum  VisAttributesSignifier {
  VASVisibility , VASDaughtersInvisible , VASColour , VASLineStyle ,
  VASLineWidth , VASForceWireframe , VASForceSolid , VASForceCloud ,
  VASForceNumberOfCloudPoints , VASForceAuxEdgeVisible , VASForceLineSegmentsPerCircle
}
typedef std::vector< PVNameCopyNoPVNameCopyNoPath
typedef PVNameCopyNoPath::const_iterator PVNameCopyNoPathConstIterator
typedef std::vector< PVPointerCopyNoPVPointerCopyNoPath
typedef PVPointerCopyNoPath::const_iterator PVPointerCopyNoPathConstIterator

Public Member Functions

 G4ModelingParameters ()
 G4ModelingParameters (const G4VisAttributes *pDefaultVisAttributes, DrawingStyle drawingStyle, G4bool isCulling, G4bool isCullingInvisible, G4bool isDensityCulling, G4double visibleDensity, G4bool isCullingCovered, G4int noOfSides)
 ~G4ModelingParameters ()
G4bool operator!= (const G4ModelingParameters &) const
G4bool IsWarning () const
const G4VisAttributesGetDefaultVisAttributes () const
DrawingStyle GetDrawingStyle () const
G4int GetNumberOfCloudPoints () const
G4bool IsCulling () const
G4bool IsCullingInvisible () const
G4bool IsDensityCulling () const
G4double GetVisibleDensity () const
G4bool IsCullingCovered () const
G4int GetCBDAlgorithmNumber () const
const std::vector< G4double > & GetCBDParameters () const
G4bool IsExplode () const
G4double GetExplodeFactor () const
const G4Point3DGetExplodeCentre () const
G4int GetNoOfSides () const
G4DisplacedSolidGetSectionSolid () const
CutawayMode GetCutawayMode () const
G4DisplacedSolidGetCutawaySolid () const
const G4EventGetEvent () const
const std::vector< VisAttributesModifier > & GetVisAttributesModifiers () const
const TimeParametersGetTimeParameters () const
G4bool IsSpecialMeshRendering () const
const std::vector< PVNameCopyNo > & GetSpecialMeshVolumes () const
G4double GetTransparencyByDepth () const
G4int GetTransparencyByDepthOption () const
void SetWarning (G4bool)
void SetDefaultVisAttributes (const G4VisAttributes *pDefaultVisAttributes)
void SetDrawingStyle (DrawingStyle)
void SetNumberOfCloudPoints (G4int)
void SetCulling (G4bool)
void SetCullingInvisible (G4bool)
void SetDensityCulling (G4bool)
void SetVisibleDensity (G4double)
void SetCullingCovered (G4bool)
void SetCBDAlgorithmNumber (G4int)
void SetCBDParameters (const std::vector< G4double > &)
void SetExplodeFactor (G4double explodeFactor)
void SetExplodeCentre (const G4Point3D &explodeCentre)
G4int SetNoOfSides (G4int)
void SetSectionSolid (G4DisplacedSolid *pSectionSolid)
void SetCutawayMode (CutawayMode)
void SetCutawaySolid (G4DisplacedSolid *pCutawaySolid)
void SetEvent (const G4Event *pEvent)
void SetVisAttributesModifiers (const std::vector< VisAttributesModifier > &)
void SetTimeParameters (const TimeParameters &)
void SetSpecialMeshRendering (G4bool)
void SetSpecialMeshVolumes (const std::vector< PVNameCopyNo > &)
void SetTransparencyByDepth (G4double)
void SetTransparencyByDepthOption (G4int)

Friends

std::ostream & operator<< (std::ostream &os, const G4ModelingParameters &mp)
std::ostream & operator<< (std::ostream &os, const PVNameCopyNoPath &path)
std::ostream & operator<< (std::ostream &os, const PVPointerCopyNoPath &path)
std::ostream & operator<< (std::ostream &os, const std::vector< VisAttributesModifier > &vams)

Detailed Description

Definition at line 52 of file G4ModelingParameters.hh.

Member Typedef Documentation

◆ PVNameCopyNoPath

Definition at line 99 of file G4ModelingParameters.hh.

◆ PVNameCopyNoPathConstIterator

typedef PVNameCopyNoPath::const_iterator G4ModelingParameters::PVNameCopyNoPathConstIterator

Definition at line 100 of file G4ModelingParameters.hh.

◆ PVPointerCopyNoPath

◆ PVPointerCopyNoPathConstIterator

typedef PVPointerCopyNoPath::const_iterator G4ModelingParameters::PVPointerCopyNoPathConstIterator

Definition at line 117 of file G4ModelingParameters.hh.

Member Enumeration Documentation

◆ CutawayMode

Enumerator
cutawayUnion 
cutawayIntersection 

Definition at line 65 of file G4ModelingParameters.hh.

65 {
66 cutawayUnion, // Union (addition) of result of each cutaway plane.
67 cutawayIntersection // Intersection (multiplication).
68 };

◆ DrawingStyle

Enumerator
wf 
hlr 
hsr 
hlhsr 
cloud 

Definition at line 57 of file G4ModelingParameters.hh.

57 {
58 wf, // Draw edges - no hidden line removal (wireframe).
59 hlr, // Draw edges - hidden lines removed.
60 hsr, // Draw surfaces - hidden surfaces removed.
61 hlhsr, // Draw surfaces and edges - hidden removed.
62 cloud // Draw as a cloud of points
63 };

◆ VisAttributesSignifier

Enumerator
VASVisibility 
VASDaughtersInvisible 
VASColour 
VASLineStyle 
VASLineWidth 
VASForceWireframe 
VASForceSolid 
VASForceCloud 
VASForceNumberOfCloudPoints 
VASForceAuxEdgeVisible 
VASForceLineSegmentsPerCircle 

Definition at line 72 of file G4ModelingParameters.hh.

Constructor & Destructor Documentation

◆ G4ModelingParameters() [1/2]

G4ModelingParameters::G4ModelingParameters ( )

Definition at line 46 of file G4ModelingParameters.cc.

46 :
47 fWarning (true),
48 fpDefaultVisAttributes (0),
49 fDrawingStyle (wf),
50 fNumberOfCloudPoints (10000),
51 fCulling (false),
52 fCullInvisible (false),
53 fDensityCulling (false),
54 fVisibleDensity (0.01 * g / cm3),
55 fCullCovered (false),
56 fCBDAlgorithmNumber (0),
57 fExplodeFactor (1.),
58 fNoOfSides (24),
59 fpSectionSolid (0),
60 fCutawayMode (cutawayUnion),
61 fpCutawaySolid (0),
62 fpEvent (0),
63 fSpecialMeshRendering (false),
64 fTransparencyByDepth (0.),
65 fTransparencyByDepthOption (1)
66{}

Referenced by operator!=(), operator<<, and SetTransparencyByDepthOption().

◆ G4ModelingParameters() [2/2]

G4ModelingParameters::G4ModelingParameters ( const G4VisAttributes * pDefaultVisAttributes,
G4ModelingParameters::DrawingStyle drawingStyle,
G4bool isCulling,
G4bool isCullingInvisible,
G4bool isDensityCulling,
G4double visibleDensity,
G4bool isCullingCovered,
G4int noOfSides )

Definition at line 68 of file G4ModelingParameters.cc.

77 :
78 fWarning (true),
79 fpDefaultVisAttributes (pDefaultVisAttributes),
80 fDrawingStyle (drawingStyle),
81 fNumberOfCloudPoints (10000),
82 fCulling (isCulling),
83 fCullInvisible (isCullingInvisible),
84 fDensityCulling (isDensityCulling),
85 fVisibleDensity (visibleDensity),
86 fCullCovered (isCullingCovered),
87 fCBDAlgorithmNumber (0),
88 fExplodeFactor (1.),
89 fNoOfSides (noOfSides),
90 fpSectionSolid (0),
91 fCutawayMode (cutawayUnion),
92 fpCutawaySolid (0),
93 fpEvent (0),
94 fSpecialMeshRendering (false),
95 fTransparencyByDepth (0.),
96 fTransparencyByDepthOption (1)
97{}

◆ ~G4ModelingParameters()

G4ModelingParameters::~G4ModelingParameters ( )

Definition at line 99 of file G4ModelingParameters.cc.

100{
101 delete fpSectionSolid;
102 delete fpCutawaySolid;
103}

Member Function Documentation

◆ GetCBDAlgorithmNumber()

G4int G4ModelingParameters::GetCBDAlgorithmNumber ( ) const

◆ GetCBDParameters()

const std::vector< G4double > & G4ModelingParameters::GetCBDParameters ( ) const

◆ GetCutawayMode()

CutawayMode G4ModelingParameters::GetCutawayMode ( ) const

Referenced by operator<<.

◆ GetCutawaySolid()

G4DisplacedSolid * G4ModelingParameters::GetCutawaySolid ( ) const

◆ GetDefaultVisAttributes()

const G4VisAttributes * G4ModelingParameters::GetDefaultVisAttributes ( ) const

◆ GetDrawingStyle()

DrawingStyle G4ModelingParameters::GetDrawingStyle ( ) const

◆ GetEvent()

const G4Event * G4ModelingParameters::GetEvent ( ) const

◆ GetExplodeCentre()

const G4Point3D & G4ModelingParameters::GetExplodeCentre ( ) const

◆ GetExplodeFactor()

G4double G4ModelingParameters::GetExplodeFactor ( ) const

◆ GetNoOfSides()

G4int G4ModelingParameters::GetNoOfSides ( ) const

◆ GetNumberOfCloudPoints()

G4int G4ModelingParameters::GetNumberOfCloudPoints ( ) const

◆ GetSectionSolid()

G4DisplacedSolid * G4ModelingParameters::GetSectionSolid ( ) const

◆ GetSpecialMeshVolumes()

const std::vector< PVNameCopyNo > & G4ModelingParameters::GetSpecialMeshVolumes ( ) const

◆ GetTimeParameters()

const TimeParameters & G4ModelingParameters::GetTimeParameters ( ) const

◆ GetTransparencyByDepth()

G4double G4ModelingParameters::GetTransparencyByDepth ( ) const

◆ GetTransparencyByDepthOption()

G4int G4ModelingParameters::GetTransparencyByDepthOption ( ) const

◆ GetVisAttributesModifiers()

const std::vector< VisAttributesModifier > & G4ModelingParameters::GetVisAttributesModifiers ( ) const

◆ GetVisibleDensity()

G4double G4ModelingParameters::GetVisibleDensity ( ) const

◆ IsCulling()

G4bool G4ModelingParameters::IsCulling ( ) const

◆ IsCullingCovered()

G4bool G4ModelingParameters::IsCullingCovered ( ) const

◆ IsCullingInvisible()

G4bool G4ModelingParameters::IsCullingInvisible ( ) const

◆ IsDensityCulling()

G4bool G4ModelingParameters::IsDensityCulling ( ) const

◆ IsExplode()

G4bool G4ModelingParameters::IsExplode ( ) const

◆ IsSpecialMeshRendering()

G4bool G4ModelingParameters::IsSpecialMeshRendering ( ) const

◆ IsWarning()

G4bool G4ModelingParameters::IsWarning ( ) const

◆ operator!=()

G4bool G4ModelingParameters::operator!= ( const G4ModelingParameters & mp) const

Definition at line 273 of file G4ModelingParameters.cc.

274 {
275
276 if (
277 (fWarning != mp.fWarning) ||
278 (*fpDefaultVisAttributes != *mp.fpDefaultVisAttributes) ||
279 (fDrawingStyle != mp.fDrawingStyle) ||
280 (fNumberOfCloudPoints != mp.fNumberOfCloudPoints) ||
281 (fCulling != mp.fCulling) ||
282 (fCullInvisible != mp.fCullInvisible) ||
283 (fDensityCulling != mp.fDensityCulling) ||
284 (fCullCovered != mp.fCullCovered) ||
285 (fCBDAlgorithmNumber != mp.fCBDAlgorithmNumber) ||
286 (fExplodeFactor != mp.fExplodeFactor) ||
287 (fExplodeCentre != mp.fExplodeCentre) ||
288 (fNoOfSides != mp.fNoOfSides) ||
289 (fpSectionSolid != mp.fpSectionSolid) ||
290 (fCutawayMode != mp.fCutawayMode) ||
291 (fpCutawaySolid != mp.fpCutawaySolid) ||
292 (fpEvent != mp.fpEvent) ||
293 (fSpecialMeshRendering != mp.fSpecialMeshRendering) ||
294 (fTransparencyByDepth != mp.fTransparencyByDepth) ||
295 (fTransparencyByDepthOption != mp.fTransparencyByDepthOption)
296 )
297 return true;
298
299 if (fDensityCulling &&
300 (fVisibleDensity != mp.fVisibleDensity)) return true;
301
302 if (fCBDAlgorithmNumber > 0) {
303 if (fCBDParameters.size() != mp.fCBDParameters.size()) return true;
304 else if (fCBDParameters != mp.fCBDParameters) return true;
305 }
306
307 if (fVisAttributesModifiers != mp.fVisAttributesModifiers)
308 return true;
309
310 if (fSpecialMeshRendering) {
311 if (fSpecialMeshVolumes != mp.fSpecialMeshVolumes)
312 return true;;
313 }
314
315 return false;
316}

◆ SetCBDAlgorithmNumber()

void G4ModelingParameters::SetCBDAlgorithmNumber ( G4int )

◆ SetCBDParameters()

void G4ModelingParameters::SetCBDParameters ( const std::vector< G4double > & )

◆ SetCulling()

◆ SetCullingCovered()

void G4ModelingParameters::SetCullingCovered ( G4bool )

◆ SetCullingInvisible()

◆ SetCutawayMode()

void G4ModelingParameters::SetCutawayMode ( CutawayMode )

◆ SetCutawaySolid()

void G4ModelingParameters::SetCutawaySolid ( G4DisplacedSolid * pCutawaySolid)

Definition at line 161 of file G4ModelingParameters.cc.

162 {
163 delete fpCutawaySolid;
164 fpCutawaySolid = pCutawaySolid;
165}

Referenced by G4VSceneHandler::CreateModelingParameters().

◆ SetDefaultVisAttributes()

void G4ModelingParameters::SetDefaultVisAttributes ( const G4VisAttributes * pDefaultVisAttributes)

◆ SetDensityCulling()

void G4ModelingParameters::SetDensityCulling ( G4bool )

◆ SetDrawingStyle()

void G4ModelingParameters::SetDrawingStyle ( DrawingStyle )

◆ SetEvent()

void G4ModelingParameters::SetEvent ( const G4Event * pEvent)

◆ SetExplodeCentre()

void G4ModelingParameters::SetExplodeCentre ( const G4Point3D & explodeCentre)

◆ SetExplodeFactor()

void G4ModelingParameters::SetExplodeFactor ( G4double explodeFactor)

◆ SetNoOfSides()

G4int G4ModelingParameters::SetNoOfSides ( G4int nSides)

Definition at line 142 of file G4ModelingParameters.cc.

142 {
143 const G4int nSidesMin = fpDefaultVisAttributes->GetMinLineSegmentsPerCircle();
144 if (nSides < nSidesMin) {
145 nSides = nSidesMin;
146 if (fWarning)
147 G4warn << "G4ModelingParameters::SetNoOfSides: attempt to set the"
148 "\nnumber of sides per circle < " << nSidesMin
149 << "; forced to" << nSides << G4endl;
150 }
151 fNoOfSides = nSides;
152 return fNoOfSides;
153}
#define G4warn
Definition G4Scene.cc:41
int G4int
Definition G4Types.hh:85
#define G4endl
Definition G4ios.hh:67

◆ SetNumberOfCloudPoints()

void G4ModelingParameters::SetNumberOfCloudPoints ( G4int )

◆ SetSectionSolid()

void G4ModelingParameters::SetSectionSolid ( G4DisplacedSolid * pSectionSolid)

Definition at line 155 of file G4ModelingParameters.cc.

156 {
157 delete fpSectionSolid;
158 fpSectionSolid = pSectionSolid;
159}

Referenced by G4VSceneHandler::CreateModelingParameters().

◆ SetSpecialMeshRendering()

void G4ModelingParameters::SetSpecialMeshRendering ( G4bool )

◆ SetSpecialMeshVolumes()

void G4ModelingParameters::SetSpecialMeshVolumes ( const std::vector< PVNameCopyNo > & )

◆ SetTimeParameters()

void G4ModelingParameters::SetTimeParameters ( const TimeParameters & )

◆ SetTransparencyByDepth()

void G4ModelingParameters::SetTransparencyByDepth ( G4double )

◆ SetTransparencyByDepthOption()

void G4ModelingParameters::SetTransparencyByDepthOption ( G4int )

◆ SetVisAttributesModifiers()

void G4ModelingParameters::SetVisAttributesModifiers ( const std::vector< VisAttributesModifier > & )

◆ SetVisibleDensity()

void G4ModelingParameters::SetVisibleDensity ( G4double visibleDensity)

Definition at line 125 of file G4ModelingParameters.cc.

125 {
126 const G4double reasonableMaximum = 10.0 * g / cm3;
127 if (visibleDensity < 0 && fWarning) {
128 G4warn << "G4ModelingParameters::SetVisibleDensity: attempt to set negative "
129 "density - ignored." << G4endl;
130 }
131 else {
132 if (fVisibleDensity > reasonableMaximum && fWarning) {
133 G4warn << "G4ModelingParameters::SetVisibleDensity: density > "
134 << reasonableMaximum
135 << " g / cm3 - did you mean this?"
136 << G4endl;
137 }
138 fVisibleDensity = visibleDensity;
139 }
140}
double G4double
Definition G4Types.hh:83

◆ SetWarning()

void G4ModelingParameters::SetWarning ( G4bool )

◆ operator<< [1/4]

std::ostream & operator<< ( std::ostream & os,
const G4ModelingParameters & mp )
friend

Definition at line 167 of file G4ModelingParameters.cc.

168{
169 os << "Modeling parameters (warning ";
170 if (mp.fWarning) os << "true";
171 else os << "false";
172 os << "):";
173
174 const G4VisAttributes* va = mp.fpDefaultVisAttributes;
175 os << "\n Default vis. attributes: ";
176 if (va) os << *va;
177 else os << "none";
178
179 os << "\n Current requested drawing style: ";
180 switch (mp.fDrawingStyle) {
182 os << "wireframe"; break;
184 os << "hidden line removal (hlr)"; break;
186 os << "surface (hsr)"; break;
188 os << "surface and edges (hlhsr)"; break;
190 os << "cloud"; break;
191 default: os << "unrecognised"; break;
192 }
193
194 os << "\n Number of cloud points: " << mp.fNumberOfCloudPoints;
195
196 os << "\n Culling: ";
197 if (mp.fCulling) os << "on";
198 else os << "off";
199
200 os << "\n Culling invisible objects: ";
201 if (mp.fCullInvisible) os << "on";
202 else os << "off";
203
204 os << "\n Density culling: ";
205 if (mp.fDensityCulling) {
206 os << "on - invisible if density less than "
207 << mp.fVisibleDensity / (1. * g / cm3) << " g cm^-3";
208 }
209 else os << "off";
210
211 os << "\n Culling daughters covered by opaque mothers: ";
212 if (mp.fCullCovered) os << "on";
213 else os << "off";
214
215 os << "\n Colour by density: ";
216 if (mp.fCBDAlgorithmNumber <= 0) {
217 os << "inactive";
218 } else {
219 os << "Algorithm " << mp.fCBDAlgorithmNumber << ", Parameters:";
220 for (auto p: mp.fCBDParameters) {
221 os << ' ' << G4BestUnit(p,"Volumic Mass");
222 }
223 }
224
225 os << "\n Explode factor: " << mp.fExplodeFactor
226 << " about centre: " << mp.fExplodeCentre;
227
228 os << "\n No. of sides used in circle polygon approximation: "
229 << mp.fNoOfSides;
230
231 os << "\n Section (DCUT) shape (G4DisplacedSolid) pointer: ";
232 if (!mp.fpSectionSolid) os << "non-";
233 os << "null";
234
235 os << "\n Cutaway mode: ";
236 if (mp.GetCutawayMode() == G4ModelingParameters::cutawayUnion) os << "union";
237 else if (mp.GetCutawayMode() == G4ModelingParameters::cutawayIntersection) os << "intersection";
238
239 os << "\n Cutaway (DCUT) shape (G4DisplacedSolid) pointer: ";
240 if (!mp.fpCutawaySolid) os << "non-";
241 os << "null";
242
243 os << "\n Event pointer: " << mp.fpEvent;
244
245 os << "\n Vis attributes modifiers: ";
246 const std::vector<G4ModelingParameters::VisAttributesModifier>& vams =
247 mp.fVisAttributesModifiers;
248 if (vams.empty()) {
249 os << "None";
250 } else {
251 os << vams;
252 }
253
254 os << "\n Special Mesh Rendering: ";
255 if (mp.fSpecialMeshRendering) {
256 os << "on: ";
257 if (mp.fSpecialMeshVolumes.empty()) {
258 os << "all meshes";
259 } else {
260 os << "selected meshes";
261 for (const auto& vol: mp.fSpecialMeshVolumes) {
262 os << "\n " << vol.GetName() << ':' << vol.GetCopyNo();
263 }
264 }
265 } else os << "off";
266
267 os << "\nTransparency by depth: " << mp.fTransparencyByDepth
268 << ", option: " << mp.fTransparencyByDepthOption;
269
270 return os;
271}
#define G4BestUnit(a, b)
CutawayMode GetCutawayMode() const

◆ operator<< [2/4]

std::ostream & operator<< ( std::ostream & os,
const PVNameCopyNoPath & path )
friend

Definition at line 381 of file G4ModelingParameters.cc.

383{
384 os << "Touchable path: ";
385 if (path.empty()) {
386 os << "empty";
387 } else {
388 os << "physical-volume-name:copy-number pairs:\n ";
390 for (i = path.begin(); i != path.end(); ++i) {
391 if (i != path.begin()) {
392 os << ',';
393 }
394 os << i->GetName() << ':' << i->GetCopyNo();
395 }
396 }
397 return os;
398}
PVNameCopyNoPath::const_iterator PVNameCopyNoPathConstIterator

◆ operator<< [3/4]

std::ostream & operator<< ( std::ostream & os,
const PVPointerCopyNoPath & path )
friend

Definition at line 413 of file G4ModelingParameters.cc.

415{
416 os << "Touchable path: physical-volume-pointer:copy-number pairs:\n ";
418 for (i = path.begin(); i != path.end(); ++i) {
419 if (i != path.begin()) {
420 os << ',';
421 }
422 os << '(' << (void*)(i->GetPVPointer()) << ')' << i->GetName() << ':' << i->GetCopyNo();
423 }
424 return os;
425}
PVPointerCopyNoPath::const_iterator PVPointerCopyNoPathConstIterator

◆ operator<< [4/4]

std::ostream & operator<< ( std::ostream & os,
const std::vector< VisAttributesModifier > & vams )
friend

Definition at line 427 of file G4ModelingParameters.cc.

430{
431 std::vector<G4ModelingParameters::VisAttributesModifier>::const_iterator
432 iModifier;
433 for (iModifier = vams.begin();
434 iModifier != vams.end();
435 ++iModifier) {
437 iModifier->GetPVNameCopyNoPath();
438 os << '\n' << vamPath;
439 const G4VisAttributes& vamVisAtts = iModifier->GetVisAttributes();
440 const G4Colour& c = vamVisAtts.GetColour();
441 switch (iModifier->GetVisAttributesSignifier()) {
443 os << " visibility ";
444 if (vamVisAtts.IsVisible()) {
445 os << "true";
446 } else {
447 os << "false";
448 }
449 break;
451 os << " daughtersInvisible ";
452 if (vamVisAtts.IsDaughtersInvisible()) {
453 os << "true";
454 } else {
455 os << "false";
456 }
457 break;
459 os << " colour " << c;
460 break;
462 os << " lineStyle ";
463 switch (vamVisAtts.GetLineStyle()) {
465 os << "unbroken";
466 break;
468 os << "dashed";
469 break;
471 os << "dotted";
472 }
473 break;
475 os << " lineWidth "
476 << vamVisAtts.GetLineWidth();
477 break;
480 os << " forceWireframe ";
481 if (vamVisAtts.IsForceDrawingStyle()) {
482 os << "true";
483 } else {
484 os << "false";
485 }
486 }
487 break;
489 if (vamVisAtts.GetForcedDrawingStyle() == G4VisAttributes::solid) {
490 os << " forceSolid ";
491 if (vamVisAtts.IsForceDrawingStyle()) {
492 os << "true";
493 } else {
494 os << "false";
495 }
496 }
497 break;
499 if (vamVisAtts.GetForcedDrawingStyle() == G4VisAttributes::cloud) {
500 os << " forceCloud ";
501 if (vamVisAtts.IsForceDrawingStyle()) {
502 os << "true";
503 } else {
504 os << "false";
505 }
506 }
507 break;
509 os << " numberOfCloudPoints "
510 << vamVisAtts.GetForcedNumberOfCloudPoints();
511 break;
513 os << " forceAuxEdgeVisible: ";
514 if (!vamVisAtts.IsForceDrawingStyle()) {
515 os << "not ";
516 }
517 os << " forced";
518 if (vamVisAtts.IsForceAuxEdgeVisible()) {
519 os << ": ";
520 if (vamVisAtts.IsForcedAuxEdgeVisible()) {
521 os << "true";
522 } else {
523 os << "false";
524 }
525 }
526 break;
528 os << " lineSegmentsPerCircle "
529 << vamVisAtts.GetForcedLineSegmentsPerCircle();
530 break;
531 }
532 }
533
534 return os;
535}
std::vector< PVNameCopyNo > PVNameCopyNoPath
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
G4bool IsForceDrawingStyle() const

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