Geant4-11
G4ModelingParameters.icc
Go to the documentation of this file.
1//
2// ********************************************************************
3// * License and Disclaimer *
4// * *
5// * The Geant4 software is copyright of the Copyright Holders of *
6// * the Geant4 Collaboration. It is provided under the terms and *
7// * conditions of the Geant4 Software License, included in the file *
8// * LICENSE and available at http://cern.ch/geant4/license . These *
9// * include a list of copyright holders. *
10// * *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work make any representation or warranty, express or implied, *
14// * regarding this software system or assume any liability for its *
15// * use. Please see the license in the file LICENSE and URL above *
16// * for the full disclaimer and the limitation of liability. *
17// * *
18// * This code implementation is the result of the scientific and *
19// * technical work of the GEANT4 collaboration. *
20// * By using, copying, modifying or distributing the software (or *
21// * any work based on the software) you agree to acknowledge its *
22// * use in resulting scientific publications, and indicate your *
23// * acceptance of all terms of the Geant4 Software license. *
24// ********************************************************************
25//
26//
27//
28//
29// John Allison 31st December 1997.
30// Parameters associated with the modeling of GEANT4 objects.
31
32inline G4bool G4ModelingParameters::IsWarning () const {
33 return fWarning;
34}
35
36inline const G4VisAttributes*
37G4ModelingParameters::GetDefaultVisAttributes () const {
38 return fpDefaultVisAttributes;
39}
40
41inline G4ModelingParameters::DrawingStyle
42G4ModelingParameters::GetDrawingStyle () const {
43 return fDrawingStyle;
44}
45
46inline G4int G4ModelingParameters::GetNumberOfCloudPoints () const {
47 return fNumberOfCloudPoints;
48}
49
50inline G4bool G4ModelingParameters::IsCulling () const {
51 return fCulling;
52}
53
54inline G4bool G4ModelingParameters::IsCullingInvisible () const {
55 return fCullInvisible;
56}
57
58inline G4bool G4ModelingParameters::IsDensityCulling () const {
59 return fDensityCulling;
60}
61
62inline G4double G4ModelingParameters::GetVisibleDensity () const {
63 return fVisibleDensity;
64}
65
66inline G4bool G4ModelingParameters::IsCullingCovered () const {
67 return fCullCovered;
68}
69
70inline G4int G4ModelingParameters::GetCBDAlgorithmNumber () const {
71 return fCBDAlgorithmNumber;
72}
73
74inline const std::vector<G4double>& G4ModelingParameters::GetCBDParameters () const {
75 return fCBDParameters;
76}
77
78inline G4bool G4ModelingParameters::IsExplode () const {
79 return fExplodeFactor > 1.;
80}
81
82inline G4double G4ModelingParameters::GetExplodeFactor () const {
83 return fExplodeFactor;
84}
85
86inline const G4Point3D& G4ModelingParameters::GetExplodeCentre () const {
87 return fExplodeCentre;
88}
89
90inline G4int G4ModelingParameters::GetNoOfSides () const {
91 return fNoOfSides;
92}
93
94inline G4DisplacedSolid* G4ModelingParameters::GetSectionSolid () const
95{return fpSectionSolid;}
96
97inline G4DisplacedSolid* G4ModelingParameters::GetCutawaySolid () const
98{return fpCutawaySolid;}
99
100inline const G4Event* G4ModelingParameters::GetEvent () const
101{return fpEvent;}
102
103inline const std::vector<G4ModelingParameters::VisAttributesModifier>&
104G4ModelingParameters::GetVisAttributesModifiers() const {
105 return fVisAttributesModifiers;
106}
107
108inline G4bool G4ModelingParameters::IsSpecialMeshRendering () const
109{return fSpecialMeshRendering;}
110
111inline const std::vector<G4ModelingParameters::PVNameCopyNo>&
112G4ModelingParameters::GetSpecialMeshVolumes() const
113{return fSpecialMeshVolumes;}
114
115inline void G4ModelingParameters::SetWarning (G4bool value) {
116 fWarning = value;
117}
118
119inline void G4ModelingParameters::SetDefaultVisAttributes
120(const G4VisAttributes* pDefaultVisAttributes) {
121 fpDefaultVisAttributes = pDefaultVisAttributes;
122}
123
124inline void
125G4ModelingParameters::SetDrawingStyle
126(G4ModelingParameters::DrawingStyle style) {
127 fDrawingStyle = style;
128}
129
130inline void G4ModelingParameters::SetNumberOfCloudPoints (G4int n) {
131 fNumberOfCloudPoints = n;
132}
133
134inline void G4ModelingParameters::SetCulling (G4bool value) {
135 fCulling = value;
136}
137
138inline void G4ModelingParameters::SetCullingInvisible (G4bool value) {
139 fCullInvisible = value;
140}
141
142inline void G4ModelingParameters::SetDensityCulling (G4bool value) {
143 fDensityCulling = value;
144}
145
146inline void G4ModelingParameters::SetCullingCovered (G4bool value) {
147 fCullCovered = value;
148}
149
150inline void G4ModelingParameters::SetCBDAlgorithmNumber (G4int n) {
151 fCBDAlgorithmNumber = n;
152}
153
154inline void G4ModelingParameters::SetCBDParameters (const std::vector<G4double>& p) {
155 fCBDParameters = p;
156}
157
158inline void G4ModelingParameters::SetExplodeFactor (G4double explodeFactor) {
159 fExplodeFactor = explodeFactor;
160}
161
162inline void G4ModelingParameters::SetExplodeCentre
163(const G4Point3D& explodeCentre) {
164 fExplodeCentre = explodeCentre;
165}
166
167inline void G4ModelingParameters::SetEvent(const G4Event* pEvent) {
168 fpEvent = pEvent;
169}
170
171inline void G4ModelingParameters::SetVisAttributesModifiers
172(const std::vector<G4ModelingParameters::VisAttributesModifier>& vams) {
173 fVisAttributesModifiers = vams;
174}
175
176inline void G4ModelingParameters::SetSpecialMeshRendering (G4bool smr)
177{fSpecialMeshRendering = smr;}
178
179inline void G4ModelingParameters::SetSpecialMeshVolumes
180(const std::vector<G4ModelingParameters::PVNameCopyNo>& smvs)
181{fSpecialMeshVolumes = smvs;}