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