source: trunk/source/visualization/modeling/include/G4ModelingParameters.icc @ 954

Last change on this file since 954 was 954, checked in by garnier, 15 years ago

remise a jour

File size: 4.6 KB
Line 
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,v 1.11 2006/11/14 14:42:08 allison Exp $
28// GEANT4 tag $Name:  $
29//
30//
31// John Allison  31st December 1997.
32// Parameters associated with the modeling of GEANT4 objects.
33
34inline G4bool G4ModelingParameters::IsWarning () const {
35  return fWarning;
36}
37
38inline const G4VisAttributes*
39G4ModelingParameters::GetDefaultVisAttributes () const {
40  return fpDefaultVisAttributes;
41}
42
43inline G4ModelingParameters::DrawingStyle
44G4ModelingParameters::GetDrawingStyle () const {
45  return fDrawingStyle;
46}
47
48inline G4bool G4ModelingParameters::IsCulling () const {
49  return fCulling;
50}
51
52inline G4bool G4ModelingParameters::IsCullingInvisible () const {
53  return fCullInvisible;
54}
55
56inline G4bool G4ModelingParameters::IsDensityCulling () const {
57  return fDensityCulling;
58}
59
60inline G4double G4ModelingParameters::GetVisibleDensity () const {
61  return fVisibleDensity;
62}
63
64inline G4bool G4ModelingParameters::IsCullingCovered () const {
65  return fCullCovered;
66}
67
68inline G4bool G4ModelingParameters::IsExplode () const {
69  return fExplodeFactor > 1.;
70}
71
72inline G4double G4ModelingParameters::GetExplodeFactor () const {
73  return fExplodeFactor;
74}
75
76inline const G4Point3D& G4ModelingParameters::GetExplodeCentre () const {
77  return fExplodeCentre;
78}
79
80inline G4int G4ModelingParameters::GetNoOfSides () const {
81  return fNoOfSides;
82}
83
84inline const G4Polyhedron* G4ModelingParameters::GetSectionPolyhedron () const
85{return fpSectionPolyhedron;}
86
87inline const G4Polyhedron* G4ModelingParameters::GetCutawayPolyhedron () const
88{return fpCutawayPolyhedron;}
89
90inline const G4Event* G4ModelingParameters::GetEvent () const
91{return fpEvent;}
92
93inline void G4ModelingParameters::SetWarning (G4bool value) {
94  fWarning = value;
95}
96
97inline void G4ModelingParameters::SetDefaultVisAttributes
98(const G4VisAttributes* pDefaultVisAttributes) {
99  fpDefaultVisAttributes = pDefaultVisAttributes;
100}
101
102inline void
103G4ModelingParameters::SetDrawingStyle
104(G4ModelingParameters::DrawingStyle style) {
105  fDrawingStyle = style;
106}
107
108inline void G4ModelingParameters::SetCulling (G4bool value) {
109  fCulling = value;
110}
111
112inline void G4ModelingParameters::SetCullingInvisible (G4bool value) {
113  fCullInvisible = value;
114}
115
116inline void G4ModelingParameters::SetDensityCulling (G4bool value) {
117  fDensityCulling = value;
118}
119
120inline void G4ModelingParameters::SetCullingCovered (G4bool value) {
121  fCullCovered = value;
122}
123
124inline void G4ModelingParameters::SetExplodeFactor (G4double explodeFactor) {
125  fExplodeFactor = explodeFactor;
126}
127
128inline void G4ModelingParameters::SetExplodeCentre
129(const G4Point3D& explodeCentre) {
130  fExplodeCentre = explodeCentre;
131}
132
133inline void G4ModelingParameters::SetSectionPolyhedron
134(const G4Polyhedron* pSectionPolyhedron) {
135  fpSectionPolyhedron = pSectionPolyhedron;
136}
137
138inline void G4ModelingParameters::SetCutawayPolyhedron
139(const G4Polyhedron* pCutawayPolyhedron) {
140  fpCutawayPolyhedron = pCutawayPolyhedron;
141}
142
143inline void G4ModelingParameters::SetEvent(const G4Event* pEvent) {
144  fpEvent = pEvent;
145}
Note: See TracBrowser for help on using the repository browser.