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 // ********************************************************************
 
   27 // $Id: G4ModelingParameters.icc 99418 2016-09-21 09:18:42Z gcosmo $
 
   30 // John Allison  31st December 1997.
 
   31 // Parameters associated with the modeling of GEANT4 objects.
 
   33 inline G4bool G4ModelingParameters::IsWarning () const {
 
   37 inline const G4VisAttributes*
 
   38 G4ModelingParameters::GetDefaultVisAttributes () const {
 
   39   return fpDefaultVisAttributes;
 
   42 inline G4ModelingParameters::DrawingStyle
 
   43 G4ModelingParameters::GetDrawingStyle () const {
 
   47 inline G4bool G4ModelingParameters::IsCulling () const {
 
   51 inline G4bool G4ModelingParameters::IsCullingInvisible () const {
 
   52   return fCullInvisible;
 
   55 inline G4bool G4ModelingParameters::IsDensityCulling () const {
 
   56   return fDensityCulling;
 
   59 inline G4double G4ModelingParameters::GetVisibleDensity () const {
 
   60   return fVisibleDensity;
 
   63 inline G4bool G4ModelingParameters::IsCullingCovered () const {
 
   67 inline G4bool G4ModelingParameters::IsExplode () const {
 
   68   return fExplodeFactor > 1.;
 
   71 inline G4double G4ModelingParameters::GetExplodeFactor () const {
 
   72   return fExplodeFactor;
 
   75 inline const G4Point3D& G4ModelingParameters::GetExplodeCentre () const {
 
   76   return fExplodeCentre;
 
   79 inline G4int G4ModelingParameters::GetNoOfSides () const {
 
   83 inline G4VSolid* G4ModelingParameters::GetSectionSolid () const
 
   84 {return fpSectionSolid;}
 
   86 inline G4VSolid* G4ModelingParameters::GetCutawaySolid () const
 
   87 {return fpCutawaySolid;}
 
   89 inline const G4Event* G4ModelingParameters::GetEvent () const
 
   92 inline const std::vector<G4ModelingParameters::VisAttributesModifier>&
 
   93 G4ModelingParameters::GetVisAttributesModifiers() const {
 
   94   return fVisAttributesModifiers;
 
   97 inline void G4ModelingParameters::SetWarning (G4bool value) {
 
  101 inline void G4ModelingParameters::SetDefaultVisAttributes
 
  102 (const G4VisAttributes* pDefaultVisAttributes) {
 
  103   fpDefaultVisAttributes = pDefaultVisAttributes;
 
  107 G4ModelingParameters::SetDrawingStyle
 
  108 (G4ModelingParameters::DrawingStyle style) {
 
  109   fDrawingStyle = style;
 
  112 inline void G4ModelingParameters::SetCulling (G4bool value) {
 
  116 inline void G4ModelingParameters::SetCullingInvisible (G4bool value) {
 
  117   fCullInvisible = value;
 
  120 inline void G4ModelingParameters::SetDensityCulling (G4bool value) {
 
  121   fDensityCulling = value;
 
  124 inline void G4ModelingParameters::SetCullingCovered (G4bool value) {
 
  125   fCullCovered = value;
 
  128 inline void G4ModelingParameters::SetExplodeFactor (G4double explodeFactor) {
 
  129   fExplodeFactor = explodeFactor;
 
  132 inline void G4ModelingParameters::SetExplodeCentre
 
  133 (const G4Point3D& explodeCentre) {
 
  134   fExplodeCentre = explodeCentre;
 
  137 inline void G4ModelingParameters::SetEvent(const G4Event* pEvent) {
 
  141 inline void G4ModelingParameters::SetVisAttributesModifiers
 
  142 (const std::vector<G4ModelingParameters::VisAttributesModifier>& vams) {
 
  143   fVisAttributesModifiers = vams;