2// ********************************************************************
 
    3// * License and Disclaimer                                           *
 
    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.                             *
 
   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.         *
 
   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// ********************************************************************
 
   29// John Allison  31st December 1997.
 
   30// Parameters associated with the modeling of GEANT4 objects.
 
   32inline G4bool G4ModelingParameters::IsWarning () const {
 
   36inline const G4VisAttributes*
 
   37G4ModelingParameters::GetDefaultVisAttributes () const {
 
   38  return fpDefaultVisAttributes;
 
   41inline G4ModelingParameters::DrawingStyle
 
   42G4ModelingParameters::GetDrawingStyle () const {
 
   46inline G4int G4ModelingParameters::GetNumberOfCloudPoints () const {
 
   47  return fNumberOfCloudPoints;
 
   50inline G4bool G4ModelingParameters::IsCulling () const {
 
   54inline G4bool G4ModelingParameters::IsCullingInvisible () const {
 
   55  return fCullInvisible;
 
   58inline G4bool G4ModelingParameters::IsDensityCulling () const {
 
   59  return fDensityCulling;
 
   62inline G4double G4ModelingParameters::GetVisibleDensity () const {
 
   63  return fVisibleDensity;
 
   66inline G4bool G4ModelingParameters::IsCullingCovered () const {
 
   70inline G4int G4ModelingParameters::GetCBDAlgorithmNumber () const {
 
   71  return fCBDAlgorithmNumber;
 
   74inline const std::vector<G4double>& G4ModelingParameters::GetCBDParameters () const {
 
   75  return fCBDParameters;
 
   78inline G4bool G4ModelingParameters::IsExplode () const {
 
   79  return fExplodeFactor > 1.;
 
   82inline G4double G4ModelingParameters::GetExplodeFactor () const {
 
   83  return fExplodeFactor;
 
   86inline const G4Point3D& G4ModelingParameters::GetExplodeCentre () const {
 
   87  return fExplodeCentre;
 
   90inline G4int G4ModelingParameters::GetNoOfSides () const {
 
   94inline G4DisplacedSolid* G4ModelingParameters::GetSectionSolid () const
 
   95{return fpSectionSolid;}
 
   97inline G4DisplacedSolid* G4ModelingParameters::GetCutawaySolid () const
 
   98{return fpCutawaySolid;}
 
  100inline const G4Event* G4ModelingParameters::GetEvent () const
 
  103inline const std::vector<G4ModelingParameters::VisAttributesModifier>&
 
  104G4ModelingParameters::GetVisAttributesModifiers() const {
 
  105  return fVisAttributesModifiers;
 
  108inline G4bool G4ModelingParameters::IsSpecialMeshRendering () const
 
  109{return fSpecialMeshRendering;}
 
  111inline const std::vector<G4ModelingParameters::PVNameCopyNo>&
 
  112G4ModelingParameters::GetSpecialMeshVolumes() const
 
  113{return fSpecialMeshVolumes;}
 
  115inline void G4ModelingParameters::SetWarning (G4bool value) {
 
  119inline void G4ModelingParameters::SetDefaultVisAttributes
 
  120(const G4VisAttributes* pDefaultVisAttributes) {
 
  121  fpDefaultVisAttributes = pDefaultVisAttributes;
 
  125G4ModelingParameters::SetDrawingStyle
 
  126(G4ModelingParameters::DrawingStyle style) {
 
  127  fDrawingStyle = style;
 
  130inline void G4ModelingParameters::SetNumberOfCloudPoints (G4int n) {
 
  131  fNumberOfCloudPoints = n;
 
  134inline void G4ModelingParameters::SetCulling (G4bool value) {
 
  138inline void G4ModelingParameters::SetCullingInvisible (G4bool value) {
 
  139  fCullInvisible = value;
 
  142inline void G4ModelingParameters::SetDensityCulling (G4bool value) {
 
  143  fDensityCulling = value;
 
  146inline void G4ModelingParameters::SetCullingCovered (G4bool value) {
 
  147  fCullCovered = value;
 
  150inline void G4ModelingParameters::SetCBDAlgorithmNumber (G4int n) {
 
  151  fCBDAlgorithmNumber = n;
 
  154inline void G4ModelingParameters::SetCBDParameters (const std::vector<G4double>& p) {
 
  158inline void G4ModelingParameters::SetExplodeFactor (G4double explodeFactor) {
 
  159  fExplodeFactor = explodeFactor;
 
  162inline void G4ModelingParameters::SetExplodeCentre
 
  163(const G4Point3D& explodeCentre) {
 
  164  fExplodeCentre = explodeCentre;
 
  167inline void G4ModelingParameters::SetEvent(const G4Event* pEvent) {
 
  171inline void G4ModelingParameters::SetVisAttributesModifiers
 
  172(const std::vector<G4ModelingParameters::VisAttributesModifier>& vams) {
 
  173  fVisAttributesModifiers = vams;
 
  176inline void G4ModelingParameters::SetSpecialMeshRendering (G4bool smr)
 
  177{fSpecialMeshRendering = smr;}
 
  179inline void G4ModelingParameters::SetSpecialMeshVolumes
 
  180(const std::vector<G4ModelingParameters::PVNameCopyNo>& smvs)
 
  181{fSpecialMeshVolumes = smvs;}