#include <G4ModelingParameters.hh>
|
enum | DrawingStyle { wf,
hlr,
hsr,
hlhsr
} |
|
enum | VisAttributesSignifier {
VASVisibility,
VASDaughtersInvisible,
VASColour,
VASLineStyle,
VASLineWidth,
VASForceWireframe,
VASForceSolid,
VASForceAuxEdgeVisible,
VASForceLineSegmentsPerCircle
} |
|
typedef std::vector< PVNameCopyNo > | PVNameCopyNoPath |
|
typedef
PVNameCopyNoPath::const_iterator | PVNameCopyNoPathConstIterator |
|
Definition at line 52 of file G4ModelingParameters.hh.
Enumerator |
---|
VASVisibility |
|
VASDaughtersInvisible |
|
VASColour |
|
VASLineStyle |
|
VASLineWidth |
|
VASForceWireframe |
|
VASForceSolid |
|
VASForceAuxEdgeVisible |
|
VASForceLineSegmentsPerCircle |
|
Definition at line 66 of file G4ModelingParameters.hh.
G4ModelingParameters::G4ModelingParameters |
( |
| ) |
|
Definition at line 43 of file G4ModelingParameters.cc.
45 fpDefaultVisAttributes (0),
48 fCullInvisible (
false),
49 fDensityCulling (
false),
50 fVisibleDensity (0.01 *
g /
cm3),
static constexpr double cm3
Definition at line 60 of file G4ModelingParameters.cc.
70 fpDefaultVisAttributes (pDefaultVisAttributes),
71 fDrawingStyle (drawingStyle),
73 fCullInvisible (isCullingInvisible),
74 fDensityCulling (isDensityCulling),
75 fVisibleDensity (visibleDensity),
76 fCullCovered (isCullingCovered),
78 fNoOfSides (noOfSides),
G4ModelingParameters::~G4ModelingParameters |
( |
| ) |
|
G4VSolid* G4ModelingParameters::GetCutawaySolid |
( |
| ) |
const |
const G4VisAttributes* G4ModelingParameters::GetDefaultVisAttributes |
( |
| ) |
const |
DrawingStyle G4ModelingParameters::GetDrawingStyle |
( |
| ) |
const |
const G4Event* G4ModelingParameters::GetEvent |
( |
| ) |
const |
const G4Point3D& G4ModelingParameters::GetExplodeCentre |
( |
| ) |
const |
G4double G4ModelingParameters::GetExplodeFactor |
( |
| ) |
const |
G4int G4ModelingParameters::GetNoOfSides |
( |
| ) |
const |
G4VSolid* G4ModelingParameters::GetSectionSolid |
( |
| ) |
const |
G4double G4ModelingParameters::GetVisibleDensity |
( |
| ) |
const |
G4bool G4ModelingParameters::IsCulling |
( |
| ) |
const |
G4bool G4ModelingParameters::IsCullingCovered |
( |
| ) |
const |
G4bool G4ModelingParameters::IsCullingInvisible |
( |
| ) |
const |
G4bool G4ModelingParameters::IsDensityCulling |
( |
| ) |
const |
G4bool G4ModelingParameters::IsExplode |
( |
| ) |
const |
G4bool G4ModelingParameters::IsWarning |
( |
| ) |
const |
Definition at line 225 of file G4ModelingParameters.cc.
228 (fWarning != mp.fWarning) ||
229 (*fpDefaultVisAttributes != *mp.fpDefaultVisAttributes) ||
230 (fCulling != mp.fCulling) ||
231 (fCullInvisible != mp.fCullInvisible) ||
232 (fDensityCulling != mp.fDensityCulling) ||
233 (fCullCovered != mp.fCullCovered) ||
234 (fExplodeFactor != mp.fExplodeFactor) ||
235 (fExplodeCentre != mp.fExplodeCentre) ||
236 (fNoOfSides != mp.fNoOfSides) ||
237 (fpSectionSolid != mp.fpSectionSolid) ||
238 (fpCutawaySolid != mp.fpCutawaySolid) ||
239 (fpEvent != mp.fpEvent)
243 if (fDensityCulling &&
244 (fVisibleDensity != mp.fVisibleDensity))
return true;
246 if (fVisAttributesModifiers != mp.fVisAttributesModifiers)
void G4ModelingParameters::SetCullingCovered |
( |
G4bool |
| ) |
|
void G4ModelingParameters::SetCullingInvisible |
( |
G4bool |
| ) |
|
void G4ModelingParameters::SetCutawaySolid |
( |
G4VSolid * |
pCutawaySolid | ) |
|
void G4ModelingParameters::SetDefaultVisAttributes |
( |
const G4VisAttributes * |
pDefaultVisAttributes | ) |
|
void G4ModelingParameters::SetDensityCulling |
( |
G4bool |
| ) |
|
void G4ModelingParameters::SetEvent |
( |
const G4Event * |
pEvent | ) |
|
void G4ModelingParameters::SetExplodeCentre |
( |
const G4Point3D & |
explodeCentre | ) |
|
void G4ModelingParameters::SetExplodeFactor |
( |
G4double |
explodeFactor | ) |
|
G4int G4ModelingParameters::SetNoOfSides |
( |
G4int |
nSides | ) |
|
Definition at line 127 of file G4ModelingParameters.cc.
129 if (nSides < nSidesMin) {
132 G4cout <<
"G4ModelingParameters::SetNoOfSides: attempt to set the"
133 "\nnumber of sides per circle < " << nSidesMin
134 <<
"; forced to" << nSides <<
G4endl;
G4GLOB_DLL std::ostream G4cout
static G4int GetMinLineSegmentsPerCircle()
void G4ModelingParameters::SetSectionSolid |
( |
G4VSolid * |
pSectionSolid | ) |
|
void G4ModelingParameters::SetVisibleDensity |
( |
G4double |
visibleDensity | ) |
|
Definition at line 110 of file G4ModelingParameters.cc.
112 if (visibleDensity < 0 && fWarning) {
113 G4cout <<
"G4ModelingParameters::SetVisibleDensity: attempt to set negative "
114 "density - ignored." <<
G4endl;
117 if (fVisibleDensity > reasonableMaximum && fWarning) {
118 G4cout <<
"G4ModelingParameters::SetVisibleDensity: density > "
120 <<
" g / cm3 - did you mean this?"
123 fVisibleDensity = visibleDensity;
G4GLOB_DLL std::ostream G4cout
static constexpr double cm3
Definition at line 152 of file G4ModelingParameters.cc.
154 os <<
"Modeling parameters (warning ";
155 if (mp.fWarning) os <<
"true";
160 os <<
"\n Default vis. attributes: ";
164 os <<
"\n Current requested drawing style: ";
165 switch (mp.fDrawingStyle) {
167 os <<
"wireframe";
break;
169 os <<
"hidden line removal (hlr)";
break;
171 os <<
"surface (hsr)";
break;
173 os <<
"surface and edges (hlhsr)";
break;
174 default: os <<
"unrecognised";
break;
177 os <<
"\n Culling: ";
178 if (mp.fCulling) os <<
"on";
181 os <<
"\n Culling invisible objects: ";
182 if (mp.fCullInvisible) os <<
"on";
185 os <<
"\n Density culling: ";
186 if (mp.fDensityCulling) {
187 os <<
"on - invisible if density less than "
188 << mp.fVisibleDensity / (1. *
g /
cm3) <<
" g cm^-3";
192 os <<
"\n Culling daughters covered by opaque mothers: ";
193 if (mp.fCullCovered) os <<
"on";
196 os <<
"\n Explode factor: " << mp.fExplodeFactor
197 <<
" about centre: " << mp.fExplodeCentre;
199 os <<
"\n No. of sides used in circle polygon approximation: "
202 os <<
"\n Section (DCUT) shape (G4VSolid) pointer: ";
203 if (!mp.fpSectionSolid) os <<
"non-";
206 os <<
"\n Cutaway (DCUT) shape (G4VSolid) pointer: ";
207 if (!mp.fpCutawaySolid) os <<
"non-";
210 os <<
"\n Event pointer: " << mp.fpEvent;
212 os <<
"\n Vis attributes modifiers: ";
213 const std::vector<G4ModelingParameters::VisAttributesModifier>& vams =
214 mp.fVisAttributesModifiers;
static constexpr double cm3
Definition at line 314 of file G4ModelingParameters.cc.
316 os <<
"Touchable path: physical-volume-name:copy-number pairs:\n ";
318 for (i = path.begin(); i != path.end(); ++i) {
319 if (i != path.begin()) {
322 os << i->GetName() <<
':' << i->GetCopyNo();
PVNameCopyNoPath::const_iterator PVNameCopyNoPathConstIterator
Definition at line 328 of file G4ModelingParameters.cc.
331 std::vector<G4ModelingParameters::VisAttributesModifier>::const_iterator
333 for (iModifier = vams.begin();
334 iModifier != vams.end();
337 iModifier->GetPVNameCopyNoPath();
338 os <<
'\n' << vamPath;
341 switch (iModifier->GetVisAttributesSignifier()) {
343 os <<
" visibility ";
351 os <<
" daughtersInvisible ";
359 os <<
" colour " <<
c;
380 os <<
" forceWireframe ";
390 os <<
" forceSolid ";
399 os <<
" forceAuxEdgeVisible: ";
414 os <<
" lineSegmentsPerCircle "
G4bool IsForceAuxEdgeVisible() const
G4double GetLineWidth() const
const G4Colour & GetColour() const
LineStyle GetLineStyle() const
G4bool IsDaughtersInvisible() const
G4bool IsForcedAuxEdgeVisible() const
G4int GetForcedLineSegmentsPerCircle() const
std::vector< PVNameCopyNo > PVNameCopyNoPath
G4bool IsForceDrawingStyle() const
ForcedDrawingStyle GetForcedDrawingStyle() const
The documentation for this class was generated from the following files: