Geant4 9.6.0
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 G4Transform3D &modelTransformation=G4Transform3D(), 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
 
const G4Transform3DGetTransformation () const
 
void SetModelingParameters (const G4ModelingParameters *)
 
void SetExtent (const G4VisExtent &)
 
void SetType (const G4String &)
 
void SetGlobalDescription (const G4String &)
 
void SetGlobalTag (const G4String &)
 
void SetTransformation (const G4Transform3D &)
 
virtual G4bool Validate (G4bool warn=true)
 

Protected Attributes

G4String fType
 
G4String fGlobalTag
 
G4String fGlobalDescription
 
G4VisExtent fExtent
 
G4Transform3D fTransform
 
const G4ModelingParametersfpMP
 

Friends

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

Detailed Description

Definition at line 53 of file G4VModel.hh.

Constructor & Destructor Documentation

◆ G4VModel()

G4VModel::G4VModel ( const G4Transform3D modelTransformation = G4Transform3D(),
const G4ModelingParameters pMP = 0 
)

Definition at line 38 of file G4VModel.cc.

39 :
40 fType ("Other"),
41 fGlobalTag ("Empty"),
42 fGlobalDescription ("Empty"),
43 fTransform (modelTransformation),
44 fpMP (pMP)
45{}
G4String fGlobalDescription
Definition: G4VModel.hh:110
G4String fType
Definition: G4VModel.hh:108
const G4ModelingParameters * fpMP
Definition: G4VModel.hh:113
G4Transform3D fTransform
Definition: G4VModel.hh:112
G4String fGlobalTag
Definition: G4VModel.hh:109

◆ ~G4VModel()

G4VModel::~G4VModel ( )
virtual

Definition at line 47 of file G4VModel.cc.

47{}

Member Function Documentation

◆ DescribeYourselfTo()

◆ GetCurrentDescription()

G4String G4VModel::GetCurrentDescription ( ) const
virtual

Reimplemented in G4PhysicalVolumeModel.

Definition at line 54 of file G4VModel.cc.

54 {
55 // Override in concrete class if concept of "current" is meaningful.
56 return fGlobalDescription;
57}

◆ GetCurrentTag()

G4String G4VModel::GetCurrentTag ( ) const
virtual

Reimplemented in G4PhysicalVolumeModel.

Definition at line 49 of file G4VModel.cc.

49 {
50 // Override in concrete class if concept of "current" is meaningful.
51 return fGlobalTag;
52}

◆ GetExtent()

const G4VisExtent & G4VModel::GetExtent ( ) const

◆ GetGlobalDescription()

const G4String & G4VModel::GetGlobalDescription ( ) const

◆ GetGlobalTag()

const G4String & G4VModel::GetGlobalTag ( ) const

◆ GetModelingParameters()

const G4ModelingParameters * G4VModel::GetModelingParameters ( ) const

◆ GetTransformation()

const G4Transform3D & G4VModel::GetTransformation ( ) const

◆ GetType()

const G4String & G4VModel::GetType ( ) const

◆ SetExtent()

◆ SetGlobalDescription()

◆ SetGlobalTag()

◆ SetModelingParameters()

◆ SetTransformation()

void G4VModel::SetTransformation ( const G4Transform3D )

◆ SetType()

◆ Validate()

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

Reimplemented in G4PhysicalVolumeModel, and G4LogicalVolumeModel.

Definition at line 59 of file G4VModel.cc.

59 {
60 return true;
61}

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 63 of file G4VModel.cc.

63 {
64 os << model.fGlobalDescription;
65 os << "\n Modeling parameters:";
66 const G4ModelingParameters* mp = model.fpMP;
67 if (mp) os << "\n " << *mp;
68 else os << " none.";
69 os << "\n Extent: " << model.fExtent;
70 os << "\n Transformation: ";
71 os << "\n Rotation: ";
72 G4RotationMatrix rotation = model.fTransform.getRotation ();
73 os << rotation.thetaX() << ", "
74 << rotation.phiX() << ", "
75 << rotation.thetaY() << ", "
76 << rotation.phiY() << ", "
77 << rotation.thetaZ() << ", "
78 << rotation.phiZ();
79 os << "\n Translation: " << model.fTransform.getTranslation ();
80 return os;
81}
double thetaY() const
Definition: Rotation.cc:145
double phiY() const
Definition: Rotation.cc:133
double thetaX() const
Definition: Rotation.cc:141
double phiX() const
Definition: Rotation.cc:129
double thetaZ() const
Definition: Rotation.cc:149
double phiZ() const
Definition: Rotation.cc:137
G4VisExtent fExtent
Definition: G4VModel.hh:111
CLHEP::HepRotation getRotation() const
CLHEP::Hep3Vector getTranslation() const

Member Data Documentation

◆ fExtent

G4VisExtent G4VModel::fExtent
protected

◆ fGlobalDescription

◆ fGlobalTag

◆ fpMP

◆ fTransform

◆ fType


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