Geant4  10.02.p02
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 // $Id: G4ModelingParameters.icc 77479 2013-11-25 10:01:22Z gcosmo $
28 //
29 //
30 // John Allison 31st December 1997.
31 // Parameters associated with the modeling of GEANT4 objects.
32 
33 inline G4bool G4ModelingParameters::IsWarning () const {
34  return fWarning;
35 }
36 
37 inline const G4VisAttributes*
38 G4ModelingParameters::GetDefaultVisAttributes () const {
39  return fpDefaultVisAttributes;
40 }
41 
42 inline G4ModelingParameters::DrawingStyle
43 G4ModelingParameters::GetDrawingStyle () const {
44  return fDrawingStyle;
45 }
46 
47 inline G4bool G4ModelingParameters::IsCulling () const {
48  return fCulling;
49 }
50 
51 inline G4bool G4ModelingParameters::IsCullingInvisible () const {
52  return fCullInvisible;
53 }
54 
55 inline G4bool G4ModelingParameters::IsDensityCulling () const {
56  return fDensityCulling;
57 }
58 
59 inline G4double G4ModelingParameters::GetVisibleDensity () const {
60  return fVisibleDensity;
61 }
62 
63 inline G4bool G4ModelingParameters::IsCullingCovered () const {
64  return fCullCovered;
65 }
66 
67 inline G4bool G4ModelingParameters::IsExplode () const {
68  return fExplodeFactor > 1.;
69 }
70 
71 inline G4double G4ModelingParameters::GetExplodeFactor () const {
72  return fExplodeFactor;
73 }
74 
75 inline const G4Point3D& G4ModelingParameters::GetExplodeCentre () const {
76  return fExplodeCentre;
77 }
78 
79 inline G4int G4ModelingParameters::GetNoOfSides () const {
80  return fNoOfSides;
81 }
82 
83 inline G4VSolid* G4ModelingParameters::GetSectionSolid () const
84 {return fpSectionSolid;}
85 
86 inline G4VSolid* G4ModelingParameters::GetCutawaySolid () const
87 {return fpCutawaySolid;}
88 
89 inline const G4Event* G4ModelingParameters::GetEvent () const
90 {return fpEvent;}
91 
92 inline const std::vector<G4ModelingParameters::VisAttributesModifier>&
93 G4ModelingParameters::GetVisAttributesModifiers() const {
94  return fVisAttributesModifiers;
95 }
96 
97 inline void G4ModelingParameters::SetWarning (G4bool value) {
98  fWarning = value;
99 }
100 
101 inline void G4ModelingParameters::SetDefaultVisAttributes
102 (const G4VisAttributes* pDefaultVisAttributes) {
103  fpDefaultVisAttributes = pDefaultVisAttributes;
104 }
105 
106 inline void
107 G4ModelingParameters::SetDrawingStyle
108 (G4ModelingParameters::DrawingStyle style) {
109  fDrawingStyle = style;
110 }
111 
112 inline void G4ModelingParameters::SetCulling (G4bool value) {
113  fCulling = value;
114 }
115 
116 inline void G4ModelingParameters::SetCullingInvisible (G4bool value) {
117  fCullInvisible = value;
118 }
119 
120 inline void G4ModelingParameters::SetDensityCulling (G4bool value) {
121  fDensityCulling = value;
122 }
123 
124 inline void G4ModelingParameters::SetCullingCovered (G4bool value) {
125  fCullCovered = value;
126 }
127 
128 inline void G4ModelingParameters::SetExplodeFactor (G4double explodeFactor) {
129  fExplodeFactor = explodeFactor;
130 }
131 
132 inline void G4ModelingParameters::SetExplodeCentre
133 (const G4Point3D& explodeCentre) {
134  fExplodeCentre = explodeCentre;
135 }
136 
137 inline void G4ModelingParameters::SetEvent(const G4Event* pEvent) {
138  fpEvent = pEvent;
139 }
140 
141 inline void G4ModelingParameters::SetVisAttributesModifiers
142 (const std::vector<G4ModelingParameters::VisAttributesModifier>& vams) {
143  fVisAttributesModifiers = vams;
144 }
145