00001 // 00002 // ******************************************************************** 00003 // * License and Disclaimer * 00004 // * * 00005 // * The Geant4 software is copyright of the Copyright Holders of * 00006 // * the Geant4 Collaboration. It is provided under the terms and * 00007 // * conditions of the Geant4 Software License, included in the file * 00008 // * LICENSE and available at http://cern.ch/geant4/license . These * 00009 // * include a list of copyright holders. * 00010 // * * 00011 // * Neither the authors of this software system, nor their employing * 00012 // * institutes,nor the agencies providing financial support for this * 00013 // * work make any representation or warranty, express or implied, * 00014 // * regarding this software system or assume any liability for its * 00015 // * use. Please see the license in the file LICENSE and URL above * 00016 // * for the full disclaimer and the limitation of liability. * 00017 // * * 00018 // * This code implementation is the result of the scientific and * 00019 // * technical work of the GEANT4 collaboration. * 00020 // * By using, copying, modifying or distributing the software (or * 00021 // * any work based on the software) you agree to acknowledge its * 00022 // * use in resulting scientific publications, and indicate your * 00023 // * acceptance of all terms of the Geant4 Software license. * 00024 // ******************************************************************** 00025 // 00026 // 00027 // $Id$ 00028 // 00029 // 00030 // John Allison 31st December 1997. 00031 // Parameters associated with the modeling of GEANT4 objects. 00032 00033 inline G4bool G4ModelingParameters::IsWarning () const { 00034 return fWarning; 00035 } 00036 00037 inline const G4VisAttributes* 00038 G4ModelingParameters::GetDefaultVisAttributes () const { 00039 return fpDefaultVisAttributes; 00040 } 00041 00042 inline G4ModelingParameters::DrawingStyle 00043 G4ModelingParameters::GetDrawingStyle () const { 00044 return fDrawingStyle; 00045 } 00046 00047 inline G4bool G4ModelingParameters::IsCulling () const { 00048 return fCulling; 00049 } 00050 00051 inline G4bool G4ModelingParameters::IsCullingInvisible () const { 00052 return fCullInvisible; 00053 } 00054 00055 inline G4bool G4ModelingParameters::IsDensityCulling () const { 00056 return fDensityCulling; 00057 } 00058 00059 inline G4double G4ModelingParameters::GetVisibleDensity () const { 00060 return fVisibleDensity; 00061 } 00062 00063 inline G4bool G4ModelingParameters::IsCullingCovered () const { 00064 return fCullCovered; 00065 } 00066 00067 inline G4bool G4ModelingParameters::IsExplode () const { 00068 return fExplodeFactor > 1.; 00069 } 00070 00071 inline G4double G4ModelingParameters::GetExplodeFactor () const { 00072 return fExplodeFactor; 00073 } 00074 00075 inline const G4Point3D& G4ModelingParameters::GetExplodeCentre () const { 00076 return fExplodeCentre; 00077 } 00078 00079 inline G4int G4ModelingParameters::GetNoOfSides () const { 00080 return fNoOfSides; 00081 } 00082 00083 inline G4VSolid* G4ModelingParameters::GetSectionSolid () const 00084 {return fpSectionSolid;} 00085 00086 inline G4VSolid* G4ModelingParameters::GetCutawaySolid () const 00087 {return fpCutawaySolid;} 00088 00089 inline const G4Event* G4ModelingParameters::GetEvent () const 00090 {return fpEvent;} 00091 00092 inline const std::vector<G4ModelingParameters::VisAttributesModifier>& 00093 G4ModelingParameters::GetVisAttributesModifiers() const { 00094 return fVisAttributesModifiers; 00095 } 00096 00097 inline void G4ModelingParameters::SetWarning (G4bool value) { 00098 fWarning = value; 00099 } 00100 00101 inline void G4ModelingParameters::SetDefaultVisAttributes 00102 (const G4VisAttributes* pDefaultVisAttributes) { 00103 fpDefaultVisAttributes = pDefaultVisAttributes; 00104 } 00105 00106 inline void 00107 G4ModelingParameters::SetDrawingStyle 00108 (G4ModelingParameters::DrawingStyle style) { 00109 fDrawingStyle = style; 00110 } 00111 00112 inline void G4ModelingParameters::SetCulling (G4bool value) { 00113 fCulling = value; 00114 } 00115 00116 inline void G4ModelingParameters::SetCullingInvisible (G4bool value) { 00117 fCullInvisible = value; 00118 } 00119 00120 inline void G4ModelingParameters::SetDensityCulling (G4bool value) { 00121 fDensityCulling = value; 00122 } 00123 00124 inline void G4ModelingParameters::SetCullingCovered (G4bool value) { 00125 fCullCovered = value; 00126 } 00127 00128 inline void G4ModelingParameters::SetExplodeFactor (G4double explodeFactor) { 00129 fExplodeFactor = explodeFactor; 00130 } 00131 00132 inline void G4ModelingParameters::SetExplodeCentre 00133 (const G4Point3D& explodeCentre) { 00134 fExplodeCentre = explodeCentre; 00135 } 00136 00137 inline void G4ModelingParameters::SetEvent(const G4Event* pEvent) { 00138 fpEvent = pEvent; 00139 } 00140 00141 inline void G4ModelingParameters::SetVisAttributesModifiers 00142 (const std::vector<G4ModelingParameters::VisAttributesModifier> vams) { 00143 fVisAttributesModifiers = vams; 00144 } 00145