Geant4-11
Public Member Functions | Protected Attributes | Private Member Functions | Friends
G4VModel Class Referenceabstract

#include <G4VModel.hh>

Inheritance diagram for G4VModel:
G4ArrowModel G4AxesModel G4CallbackModel< F > G4DigiModel G4GPSModel G4HitsModel G4NullModel G4PSHitsModel G4PhysicalVolumeModel G4PlotterModel G4TextModel G4TrajectoriesModel G4VFieldModel

Public Member Functions

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

Protected Attributes

G4VisExtent fExtent
 
G4String fGlobalDescription
 
G4String fGlobalTag
 
const G4ModelingParametersfpMP
 
G4String fType
 

Private Member Functions

 G4VModel (const G4VModel &)
 
G4VModeloperator= (const G4VModel &)
 

Friends

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

Detailed Description

Definition at line 51 of file G4VModel.hh.

Constructor & Destructor Documentation

◆ G4VModel() [1/2]

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:100
G4String fType
Definition: G4VModel.hh:98
const G4ModelingParameters * fpMP
Definition: G4VModel.hh:102
G4String fGlobalTag
Definition: G4VModel.hh:99

◆ ~G4VModel()

G4VModel::~G4VModel ( )
virtual

Definition at line 44 of file G4VModel.cc.

44{}

◆ G4VModel() [2/2]

G4VModel::G4VModel ( const G4VModel )
private

Member Function Documentation

◆ DescribeYourselfTo()

virtual void G4VModel::DescribeYourselfTo ( G4VGraphicsScene )
pure virtual

◆ 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}

References fGlobalDescription.

Referenced by G4OpenGLStoredQtSceneHandler::ExtraPOProcessing().

◆ 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}

References fGlobalTag.

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

◆ GetExtent()

const G4VisExtent & G4VModel::GetExtent ( ) const

◆ GetGlobalDescription()

const G4String & G4VModel::GetGlobalDescription ( ) const

◆ GetGlobalTag()

const G4String & G4VModel::GetGlobalTag ( ) const

◆ GetModelingParameters()

const G4ModelingParameters * G4VModel::GetModelingParameters ( ) const

◆ GetType()

const G4String & G4VModel::GetType ( ) const

◆ operator=()

G4VModel & G4VModel::operator= ( const G4VModel )
private

◆ SetExtent()

void G4VModel::SetExtent ( const G4VisExtent )

◆ SetGlobalDescription()

void G4VModel::SetGlobalDescription ( const G4String )

◆ SetGlobalTag()

void G4VModel::SetGlobalTag ( const G4String )

◆ SetModelingParameters()

void G4VModel::SetModelingParameters ( const G4ModelingParameters )

◆ SetType()

void G4VModel::SetType ( const G4String )

◆ Validate()

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

Reimplemented in G4PhysicalVolumeModel, and G4LogicalVolumeModel.

Definition at line 56 of file G4VModel.cc.

56 {
57 return true;
58}

Friends And Related Function 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:101

Field Documentation

◆ fExtent

G4VisExtent G4VModel::fExtent
protected

◆ fGlobalDescription

G4String G4VModel::fGlobalDescription
protected

◆ fGlobalTag

G4String G4VModel::fGlobalTag
protected

◆ fpMP

const G4ModelingParameters* G4VModel::fpMP
protected

◆ fType

G4String G4VModel::fType
protected

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