Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4VModel Class Referenceabstract

#include <G4VModel.hh>

+ Inheritance diagram for G4VModel:

Public Member Functions

 G4VModel (const G4ModelingParameters *=0)
 
virtual ~G4VModel ()
 
virtual void DescribeYourselfTo (G4VGraphicsScene &)=0
 
const G4ModelingParametersGetModelingParameters () const
 
const G4StringGetType () const
 
virtual G4String GetCurrentDescription () const
 
virtual G4String GetCurrentTag () const
 
const G4VisExtentGetExtent () const
 
const G4StringGetGlobalDescription () const
 
const G4StringGetGlobalTag () const
 
void SetModelingParameters (const G4ModelingParameters *)
 
void SetExtent (const G4VisExtent &)
 
void SetType (const G4String &)
 
void SetGlobalDescription (const G4String &)
 
void SetGlobalTag (const G4String &)
 
virtual G4bool Validate (G4bool warn=true)
 

Protected Attributes

G4String fType
 
G4String fGlobalTag
 
G4String fGlobalDescription
 
G4VisExtent fExtent
 
const G4ModelingParametersfpMP
 

Friends

std::ostream & operator<< (std::ostream &os, const G4VModel &model)
 

Detailed Description

Definition at line 47 of file G4VModel.hh.

Constructor & Destructor Documentation

◆ G4VModel()

G4VModel::G4VModel ( const G4ModelingParameters * pMP = 0)

Definition at line 37 of file G4VModel.cc.

37 :
38 fType ("Other"),
39 fGlobalTag ("Empty"),
40 fGlobalDescription ("Empty"),
41 fpMP (pMP)
42{}
G4String fGlobalDescription
Definition G4VModel.hh:96
G4String fType
Definition G4VModel.hh:94
const G4ModelingParameters * fpMP
Definition G4VModel.hh:98
G4String fGlobalTag
Definition G4VModel.hh:95

◆ ~G4VModel()

G4VModel::~G4VModel ( )
virtual

Definition at line 44 of file G4VModel.cc.

44{}

Member Function Documentation

◆ DescribeYourselfTo()

◆ GetCurrentDescription()

G4String G4VModel::GetCurrentDescription ( ) const
virtual

Reimplemented in G4GPSModel, and G4PhysicalVolumeModel.

Definition at line 51 of file G4VModel.cc.

51 {
52 // Override in concrete class if concept of "current" is meaningful.
53 return fGlobalDescription;
54}

Referenced by G4OpenGLStoredQtSceneHandler::ExtraPOProcessing(), and G4VisCommandSceneAddPlotter::SetNewValue().

◆ GetCurrentTag()

G4String G4VModel::GetCurrentTag ( ) const
virtual

Reimplemented in G4GPSModel, and G4PhysicalVolumeModel.

Definition at line 46 of file G4VModel.cc.

46 {
47 // Override in concrete class if concept of "current" is meaningful.
48 return fGlobalTag;
49}

Referenced by G4Qt3DSceneHandler::AddPrimitive(), and G4ToolsSGSceneHandler::AddPrimitive().

◆ GetExtent()

◆ GetGlobalDescription()

◆ GetGlobalTag()

const G4String & G4VModel::GetGlobalTag ( ) const

◆ GetModelingParameters()

const G4ModelingParameters * G4VModel::GetModelingParameters ( ) const

◆ GetType()

◆ SetExtent()

◆ SetGlobalDescription()

◆ SetGlobalTag()

◆ SetModelingParameters()

◆ SetType()

◆ Validate()

G4bool G4VModel::Validate ( G4bool warn = true)
virtual

Reimplemented in G4LogicalVolumeModel, and G4PhysicalVolumeModel.

Definition at line 56 of file G4VModel.cc.

56 {
57 return true;
58}

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream & os,
const G4VModel & model )
friend

Definition at line 60 of file G4VModel.cc.

60 {
61 os << model.fGlobalDescription;
62 os << "\n Modeling parameters:";
63 const G4ModelingParameters* mp = model.fpMP;
64 if (mp) os << "\n " << *mp;
65 else os << " none.";
66 os << "\n Extent: " << model.fExtent;
67 return os;
68}
G4VisExtent fExtent
Definition G4VModel.hh:97

Member Data Documentation

◆ fExtent

◆ fGlobalDescription

◆ fGlobalTag

◆ fpMP

◆ fType


The documentation for this class was generated from the following files: