Geant4  10.02.p03
G4VModel Class Referenceabstract

#include <G4VModel.hh>

Inheritance diagram for G4VModel:
Collaboration diagram for G4VModel:

Public Member Functions

 G4VModel (const G4Transform3D &modelTransformation=G4Transform3D(), const G4ModelingParameters *=0)
 
virtual ~G4VModel ()
 
virtual void DescribeYourselfTo (G4VGraphicsScene &)=0
 
const G4ModelingParameters * GetModelingParameters () const
 
const G4String & GetType () const
 
virtual G4String GetCurrentDescription () const
 
virtual G4String GetCurrentTag () const
 
const G4VisExtent & GetExtent () const
 
const G4String & GetGlobalDescription () const
 
const G4String & GetGlobalTag () const
 
const G4Transform3D & GetTransformation () 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 G4ModelingParameters * fpMP
 

Private Member Functions

 G4VModel (const G4VModel &)
 
G4VModel & operator= (const G4VModel &)
 

Friends

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

Detailed Description

Definition at line 53 of file G4VModel.hh.

Constructor & Destructor Documentation

◆ G4VModel() [1/2]

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 {}
G4Transform3D fTransform
Definition: G4VModel.hh:112
G4String fType
Definition: G4VModel.hh:108
G4String fGlobalTag
Definition: G4VModel.hh:109
const G4ModelingParameters * fpMP
Definition: G4VModel.hh:113
G4String fGlobalDescription
Definition: G4VModel.hh:110

◆ ~G4VModel()

G4VModel::~G4VModel ( )
virtual

Definition at line 47 of file G4VModel.cc.

47 {}

◆ G4VModel() [2/2]

G4VModel::G4VModel ( const G4VModel &  )
private

Member Function Documentation

◆ DescribeYourselfTo()

virtual void G4VModel::DescribeYourselfTo ( G4VGraphicsScene &  )
pure virtual

Implemented in G4PhysicalVolumeModel, CexmcScenePrimitives, G4LogicalVolumeModel, G4CallbackModel< F >, G4AxesModel, G4TrajectoriesModel, G4ArrowModel, G4DigiModel, G4HitsModel, G4MagneticFieldModel, G4ScaleModel, G4TextModel, G4PSHitsModel, and G4NullModel.

Here is the caller graph for this function:

◆ 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 }
G4String fGlobalDescription
Definition: G4VModel.hh:110
Here is the caller graph for this function:

◆ 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 }
G4String fGlobalTag
Definition: G4VModel.hh:109
Here is the caller graph for this function:

◆ GetExtent()

const G4VisExtent& G4VModel::GetExtent ( ) const
Here is the caller graph for this function:

◆ GetGlobalDescription()

const G4String& G4VModel::GetGlobalDescription ( ) const
Here is the caller graph for this function:

◆ GetGlobalTag()

const G4String& G4VModel::GetGlobalTag ( ) const

◆ GetModelingParameters()

const G4ModelingParameters* G4VModel::GetModelingParameters ( ) const
Here is the caller graph for this function:

◆ GetTransformation()

const G4Transform3D& G4VModel::GetTransformation ( ) const
Here is the caller graph for this function:

◆ GetType()

const G4String& G4VModel::GetType ( ) const

◆ operator=()

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

◆ SetExtent()

void G4VModel::SetExtent ( const G4VisExtent &  )
Here is the caller graph for this function:

◆ SetGlobalDescription()

void G4VModel::SetGlobalDescription ( const G4String &  )
Here is the caller graph for this function:

◆ SetGlobalTag()

void G4VModel::SetGlobalTag ( const G4String &  )
Here is the caller graph for this function:

◆ SetModelingParameters()

void G4VModel::SetModelingParameters ( const G4ModelingParameters *  )
Here is the caller graph for this function:

◆ SetTransformation()

void G4VModel::SetTransformation ( const G4Transform3D &  )
Here is the caller graph for this function:

◆ SetType()

void G4VModel::SetType ( const G4String &  )
Here is the caller graph for this function:

◆ 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 phiX() const
Definition: Rotation.cc:129
G4Transform3D fTransform
Definition: G4VModel.hh:112
double thetaX() const
Definition: Rotation.cc:141
CLHEP::Hep3Vector getTranslation() const
double phiY() const
Definition: Rotation.cc:133
const G4ModelingParameters * fpMP
Definition: G4VModel.hh:113
G4String fGlobalDescription
Definition: G4VModel.hh:110
double thetaY() const
Definition: Rotation.cc:145
G4VisExtent fExtent
Definition: G4VModel.hh:111
CLHEP::HepRotation getRotation() const
double phiZ() const
Definition: Rotation.cc:137
double thetaZ() const
Definition: Rotation.cc:149

Member Data Documentation

◆ fExtent

G4VisExtent G4VModel::fExtent
protected

Definition at line 111 of file G4VModel.hh.

◆ fGlobalDescription

G4String G4VModel::fGlobalDescription
protected

Definition at line 110 of file G4VModel.hh.

◆ fGlobalTag

G4String G4VModel::fGlobalTag
protected

Definition at line 109 of file G4VModel.hh.

◆ fpMP

const G4ModelingParameters* G4VModel::fpMP
protected

Definition at line 113 of file G4VModel.hh.

◆ fTransform

G4Transform3D G4VModel::fTransform
protected

Definition at line 112 of file G4VModel.hh.

◆ fType

G4String G4VModel::fType
protected

Definition at line 108 of file G4VModel.hh.


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