Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:58:41

0001 //
0002 // ********************************************************************
0003 // * License and Disclaimer                                           *
0004 // *                                                                  *
0005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
0006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
0007 // * conditions of the Geant4 Software License,  included in the file *
0008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
0009 // * include a list of copyright holders.                             *
0010 // *                                                                  *
0011 // * Neither the authors of this software system, nor their employing *
0012 // * institutes,nor the agencies providing financial support for this *
0013 // * work  make  any representation or  warranty, express or implied, *
0014 // * regarding  this  software system or assume any liability for its *
0015 // * use.  Please see the license in the file  LICENSE  and URL above *
0016 // * for the full disclaimer and the limitation of liability.         *
0017 // *                                                                  *
0018 // * This  code  implementation is the result of  the  scientific and *
0019 // * technical work of the GEANT4 collaboration.                      *
0020 // * By using,  copying,  modifying or  distributing the software (or *
0021 // * any work based  on the software)  you  agree  to acknowledge its *
0022 // * use  in  resulting  scientific  publications,  and indicate your *
0023 // * acceptance of all terms of the Geant4 Software license.          *
0024 // ********************************************************************
0025 //
0026 //
0027 //
0028 // 
0029 // John Allison  31st December 1997.
0030 // Parameters associated with the modeling of GEANT4 objects.
0031 
0032 inline G4bool G4ModelingParameters::IsWarning () const {
0033   return fWarning;
0034 }
0035 
0036 inline const G4VisAttributes*
0037 G4ModelingParameters::GetDefaultVisAttributes () const {
0038   return fpDefaultVisAttributes;
0039 }
0040 
0041 inline G4ModelingParameters::DrawingStyle
0042 G4ModelingParameters::GetDrawingStyle () const {
0043   return fDrawingStyle;
0044 }
0045 
0046 inline G4int G4ModelingParameters::GetNumberOfCloudPoints () const {
0047   return fNumberOfCloudPoints;
0048 }
0049 
0050 inline G4bool G4ModelingParameters::IsCulling () const {
0051   return fCulling;
0052 }
0053 
0054 inline G4bool G4ModelingParameters::IsCullingInvisible () const {
0055   return fCullInvisible;
0056 }
0057 
0058 inline G4bool G4ModelingParameters::IsDensityCulling () const {
0059   return fDensityCulling;
0060 }
0061 
0062 inline G4double G4ModelingParameters::GetVisibleDensity () const {
0063   return fVisibleDensity;
0064 }
0065 
0066 inline G4bool G4ModelingParameters::IsCullingCovered () const {
0067   return fCullCovered;
0068 }
0069 
0070 inline G4int G4ModelingParameters::GetCBDAlgorithmNumber () const {
0071   return fCBDAlgorithmNumber;
0072 }
0073 
0074 inline const std::vector<G4double>& G4ModelingParameters::GetCBDParameters () const {
0075   return fCBDParameters;
0076 }
0077 
0078 inline G4bool G4ModelingParameters::IsExplode () const {
0079   return fExplodeFactor > 1.;
0080 }
0081 
0082 inline G4double G4ModelingParameters::GetExplodeFactor () const {
0083   return fExplodeFactor;
0084 }
0085 
0086 inline const G4Point3D& G4ModelingParameters::GetExplodeCentre () const {
0087   return fExplodeCentre;
0088 }
0089 
0090 inline G4int G4ModelingParameters::GetNoOfSides () const {
0091   return fNoOfSides;
0092 }
0093 
0094 inline G4DisplacedSolid* G4ModelingParameters::GetSectionSolid () const
0095 {return fpSectionSolid;}
0096 
0097 inline G4ModelingParameters::CutawayMode G4ModelingParameters::GetCutawayMode () const
0098 { return fCutawayMode;}
0099 
0100 inline G4DisplacedSolid* G4ModelingParameters::GetCutawaySolid () const
0101 {return fpCutawaySolid;}
0102 
0103 inline const G4Event* G4ModelingParameters::GetEvent () const
0104 {return fpEvent;}
0105 
0106 inline const std::vector<G4ModelingParameters::VisAttributesModifier>&
0107 G4ModelingParameters::GetVisAttributesModifiers() const {
0108   return fVisAttributesModifiers;
0109 }
0110 
0111 inline G4bool G4ModelingParameters::IsSpecialMeshRendering () const
0112 {return fSpecialMeshRendering;}
0113 
0114 inline const std::vector<G4ModelingParameters::PVNameCopyNo>&
0115 G4ModelingParameters::GetSpecialMeshVolumes() const
0116 {return fSpecialMeshVolumes;}
0117 
0118 inline void G4ModelingParameters::SetWarning (G4bool value) {
0119   fWarning = value;
0120 }
0121 
0122 inline void G4ModelingParameters::SetDefaultVisAttributes
0123 (const G4VisAttributes* pDefaultVisAttributes) {
0124   fpDefaultVisAttributes = pDefaultVisAttributes;
0125 }
0126 
0127 inline void
0128 G4ModelingParameters::SetDrawingStyle
0129 (G4ModelingParameters::DrawingStyle style) {
0130   fDrawingStyle = style;
0131 }
0132 
0133 inline void G4ModelingParameters::SetNumberOfCloudPoints (G4int n) {
0134   fNumberOfCloudPoints = n;
0135 }
0136 
0137 inline void G4ModelingParameters::SetCulling (G4bool value) {
0138   fCulling = value;
0139 }
0140 
0141 inline void G4ModelingParameters::SetCullingInvisible (G4bool value) {
0142   fCullInvisible = value;
0143 }
0144 
0145 inline void G4ModelingParameters::SetDensityCulling (G4bool value) {
0146   fDensityCulling = value;
0147 }
0148 
0149 inline void G4ModelingParameters::SetCullingCovered (G4bool value) {
0150   fCullCovered = value;
0151 }
0152 
0153 inline void G4ModelingParameters::SetCBDAlgorithmNumber (G4int n) {
0154   fCBDAlgorithmNumber = n;
0155 }
0156 
0157 inline void G4ModelingParameters::SetCBDParameters (const std::vector<G4double>& p) {
0158   fCBDParameters = p;
0159 }
0160 
0161 inline void G4ModelingParameters::SetExplodeFactor (G4double explodeFactor) {
0162   fExplodeFactor = explodeFactor;
0163 }
0164 
0165 inline void G4ModelingParameters::SetExplodeCentre
0166 (const G4Point3D& explodeCentre) {
0167   fExplodeCentre = explodeCentre;
0168 }
0169 
0170 inline void G4ModelingParameters::SetCutawayMode
0171 (G4ModelingParameters::CutawayMode cutawayMode) {
0172   fCutawayMode = cutawayMode;
0173 }
0174 
0175 inline void G4ModelingParameters::SetEvent(const G4Event* pEvent) {
0176   fpEvent = pEvent;
0177 }
0178 
0179 inline void G4ModelingParameters::SetVisAttributesModifiers
0180 (const std::vector<G4ModelingParameters::VisAttributesModifier>& vams) {
0181   fVisAttributesModifiers = vams;
0182 }
0183 
0184 inline void G4ModelingParameters::SetSpecialMeshRendering (G4bool smr)
0185 {fSpecialMeshRendering = smr;}
0186 
0187 inline void G4ModelingParameters::SetSpecialMeshVolumes
0188 (const std::vector<G4ModelingParameters::PVNameCopyNo>& smvs)
0189 {fSpecialMeshVolumes = smvs;}