Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 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 ( 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 ( )
virtual

Definition at line 47 of file G4VModel.cc.

47 {}

Member Function Documentation

virtual void G4VModel::DescribeYourselfTo ( G4VGraphicsScene )
pure virtual
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
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
const G4VisExtent& G4VModel::GetExtent ( ) const

Here is the caller graph for this function:

const G4String& G4VModel::GetGlobalDescription ( ) const

Here is the caller graph for this function:

const G4String& G4VModel::GetGlobalTag ( ) const
const G4ModelingParameters* G4VModel::GetModelingParameters ( ) const

Here is the caller graph for this function:

const G4Transform3D& G4VModel::GetTransformation ( ) const

Here is the caller graph for this function:

const G4String& G4VModel::GetType ( ) const
void G4VModel::SetExtent ( const G4VisExtent )

Here is the caller graph for this function:

void G4VModel::SetGlobalDescription ( const G4String )

Here is the caller graph for this function:

void G4VModel::SetGlobalTag ( const G4String )

Here is the caller graph for this function:

void G4VModel::SetModelingParameters ( const G4ModelingParameters )

Here is the caller graph for this function:

void G4VModel::SetTransformation ( const G4Transform3D )

Here is the caller graph for this function:

void G4VModel::SetType ( const G4String )

Here is the caller graph for this function:

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

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

Member Data Documentation

G4VisExtent G4VModel::fExtent
protected

Definition at line 111 of file G4VModel.hh.

G4String G4VModel::fGlobalDescription
protected

Definition at line 110 of file G4VModel.hh.

G4String G4VModel::fGlobalTag
protected

Definition at line 109 of file G4VModel.hh.

const G4ModelingParameters* G4VModel::fpMP
protected

Definition at line 113 of file G4VModel.hh.

G4Transform3D G4VModel::fTransform
protected

Definition at line 112 of file G4VModel.hh.

G4String G4VModel::fType
protected

Definition at line 108 of file G4VModel.hh.


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