G4VModel Class Reference

#include <G4VModel.hh>

Inheritance diagram for G4VModel:

G4ArrowModel G4AxesModel G4CallbackModel< F > G4DigiModel G4HitsModel G4NullModel G4PhysicalVolumeModel G4PSHitsModel G4ScaleModel G4TextModel G4TrajectoriesModel

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 = 0 
)

Definition at line 38 of file G4VModel.cc.

00039                                                     :
00040   fType ("Other"),
00041   fGlobalTag ("Empty"),
00042   fGlobalDescription ("Empty"),
00043   fTransform (modelTransformation),
00044   fpMP (pMP)
00045 {}

G4VModel::~G4VModel (  )  [virtual]

Definition at line 47 of file G4VModel.cc.

00047 {}


Member Function Documentation

virtual void G4VModel::DescribeYourselfTo ( G4VGraphicsScene  )  [pure virtual]

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

Referenced by G4AxesModel::DescribeYourselfTo().

G4String G4VModel::GetCurrentDescription (  )  const [virtual]

Reimplemented in G4PhysicalVolumeModel.

Definition at line 54 of file G4VModel.cc.

References fGlobalDescription.

00054                                                 {
00055   // Override in concrete class if concept of "current" is meaningful.
00056   return fGlobalDescription;
00057 }

G4String G4VModel::GetCurrentTag (  )  const [virtual]

Reimplemented in G4PhysicalVolumeModel.

Definition at line 49 of file G4VModel.cc.

References fGlobalTag.

00049                                         {
00050   // Override in concrete class if concept of "current" is meaningful.
00051   return fGlobalTag;
00052 }

const G4VisExtent & G4VModel::GetExtent (  )  const [inline]

Definition at line 49 of file G4VModel.icc.

References fExtent.

Referenced by G4PhysicalVolumeModel::CalculateExtent().

00049                                                      {
00050   return fExtent;
00051 }

const G4String & G4VModel::GetGlobalDescription (  )  const [inline]

Definition at line 45 of file G4VModel.icc.

References fGlobalDescription.

Referenced by G4Scene::AddRunDurationModel(), and G4Scene::CalculateExtent().

00045                                                              {
00046   return fGlobalDescription;
00047 }

const G4String & G4VModel::GetGlobalTag (  )  const [inline]

Definition at line 41 of file G4VModel.icc.

References fGlobalTag.

00041                                                      {
00042   return fGlobalTag;
00043 }

const G4ModelingParameters * G4VModel::GetModelingParameters (  )  const [inline]

Definition at line 33 of file G4VModel.icc.

References fpMP.

00033                                                                           {
00034   return fpMP;
00035 }

const G4Transform3D & G4VModel::GetTransformation (  )  const [inline]

Definition at line 53 of file G4VModel.icc.

References fTransform.

Referenced by G4VSceneHandler::AddPrimitive().

00053                                                                {
00054   return fTransform;
00055 }

const G4String & G4VModel::GetType (  )  const [inline]

Definition at line 37 of file G4VModel.icc.

References fType.

00037                                                 {
00038   return fType;
00039 }

void G4VModel::SetExtent ( const G4VisExtent  )  [inline]

Definition at line 61 of file G4VModel.icc.

References fExtent.

Referenced by G4VisCommandSceneAddScale::SetNewValue(), and G4VisCommandSceneAddLogo::SetNewValue().

00061                                                           {
00062   fExtent = extent;
00063 }

void G4VModel::SetGlobalDescription ( const G4String  )  [inline]

Definition at line 65 of file G4VModel.icc.

References fGlobalDescription.

Referenced by G4VisCommandSceneAddText2D::SetNewValue(), G4VisCommandSceneAddLogo2D::SetNewValue(), G4VisCommandSceneAddLogo::SetNewValue(), G4VisCommandSceneAddLine2D::SetNewValue(), G4VisCommandSceneAddLine::SetNewValue(), G4VisCommandSceneAddFrame::SetNewValue(), G4VisCommandSceneAddEventID::SetNewValue(), G4VisCommandSceneAddDate::SetNewValue(), and G4VisCommandSceneAddArrow2D::SetNewValue().

00065                                                                 {
00066   fGlobalDescription = desc;
00067 }

void G4VModel::SetGlobalTag ( const G4String  )  [inline]

Definition at line 73 of file G4VModel.icc.

References fGlobalTag.

Referenced by G4VisCommandSceneAddText2D::SetNewValue(), G4VisCommandSceneAddLogo2D::SetNewValue(), G4VisCommandSceneAddLogo::SetNewValue(), G4VisCommandSceneAddLine2D::SetNewValue(), G4VisCommandSceneAddLine::SetNewValue(), G4VisCommandSceneAddFrame::SetNewValue(), G4VisCommandSceneAddEventID::SetNewValue(), G4VisCommandSceneAddDate::SetNewValue(), and G4VisCommandSceneAddArrow2D::SetNewValue().

00073                                                        {
00074   fGlobalTag = tag;
00075 }

void G4VModel::SetModelingParameters ( const G4ModelingParameters  )  [inline]

Definition at line 57 of file G4VModel.icc.

References fpMP.

Referenced by G4LogicalVolumeModel::DescribeYourselfTo(), and G4PhysicalVolumeModel::Validate().

00057                                                                             {
00058   fpMP = pMP;
00059 }

void G4VModel::SetTransformation ( const G4Transform3D  )  [inline]

Definition at line 77 of file G4VModel.icc.

References fTransform.

Referenced by G4VisCommandSceneAddScale::SetNewValue(), and G4VisCommandSceneAddLogo::SetNewValue().

00077                                                                        {
00078   fTransform = transform;
00079 }

void G4VModel::SetType ( const G4String  )  [inline]

Definition at line 69 of file G4VModel.icc.

References fType.

Referenced by G4VisCommandSceneAddText2D::SetNewValue(), G4VisCommandSceneAddLogo2D::SetNewValue(), G4VisCommandSceneAddLogo::SetNewValue(), G4VisCommandSceneAddLine2D::SetNewValue(), G4VisCommandSceneAddLine::SetNewValue(), G4VisCommandSceneAddFrame::SetNewValue(), G4VisCommandSceneAddEventID::SetNewValue(), G4VisCommandSceneAddDate::SetNewValue(), and G4VisCommandSceneAddArrow2D::SetNewValue().

00069                                                    {
00070   fType = type;
00071 }

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

Reimplemented in G4LogicalVolumeModel, and G4PhysicalVolumeModel.

Definition at line 59 of file G4VModel.cc.

00059                                  {
00060   return true;
00061 }


Friends And Related Function Documentation

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

Definition at line 63 of file G4VModel.cc.

00063                                                                 {
00064   os << model.fGlobalDescription;
00065   os << "\n  Modeling parameters:";
00066   const G4ModelingParameters* mp = model.fpMP;
00067   if (mp) os << "\n  " << *mp;
00068   else os << " none.";
00069   os << "\n  Extent: " << model.fExtent;
00070   os << "\n  Transformation: ";
00071   os << "\n    Rotation: ";
00072   G4RotationMatrix rotation = model.fTransform.getRotation ();
00073   os << rotation.thetaX() << ", "
00074      << rotation.phiX() << ", "
00075      << rotation.thetaY() << ", "
00076      << rotation.phiY() << ", "
00077      << rotation.thetaZ() << ", "
00078      << rotation.phiZ();
00079   os << "\n    Translation: " << model.fTransform.getTranslation ();
00080   return os;
00081 }


Field Documentation

G4VisExtent G4VModel::fExtent [protected]

Definition at line 111 of file G4VModel.hh.

Referenced by G4PhysicalVolumeModel::CalculateExtent(), GetExtent(), operator<<(), and SetExtent().

G4String G4VModel::fGlobalDescription [protected]

Definition at line 110 of file G4VModel.hh.

Referenced by G4DigiModel::G4DigiModel(), G4HitsModel::G4HitsModel(), G4PSHitsModel::G4PSHitsModel(), G4ScaleModel::G4ScaleModel(), G4TextModel::G4TextModel(), G4TrajectoriesModel::G4TrajectoriesModel(), GetCurrentDescription(), GetGlobalDescription(), operator<<(), and SetGlobalDescription().

G4String G4VModel::fGlobalTag [protected]

Definition at line 109 of file G4VModel.hh.

Referenced by G4DigiModel::G4DigiModel(), G4HitsModel::G4HitsModel(), G4PSHitsModel::G4PSHitsModel(), G4ScaleModel::G4ScaleModel(), G4TextModel::G4TextModel(), G4TrajectoriesModel::G4TrajectoriesModel(), GetCurrentTag(), G4PhysicalVolumeModel::GetCurrentTag(), GetGlobalTag(), and SetGlobalTag().

const G4ModelingParameters* G4VModel::fpMP [protected]

Definition at line 113 of file G4VModel.hh.

Referenced by G4PhysicalVolumeModel::CalculateExtent(), G4TrajectoriesModel::DescribeYourselfTo(), G4HitsModel::DescribeYourselfTo(), G4DigiModel::DescribeYourselfTo(), GetModelingParameters(), operator<<(), SetModelingParameters(), and G4PhysicalVolumeModel::Validate().

G4Transform3D G4VModel::fTransform [protected]

Definition at line 112 of file G4VModel.hh.

Referenced by G4PhysicalVolumeModel::CalculateExtent(), G4CallbackModel< F >::DescribeYourselfTo(), GetTransformation(), operator<<(), and SetTransformation().

G4String G4VModel::fType [protected]

Definition at line 108 of file G4VModel.hh.

Referenced by G4DigiModel::G4DigiModel(), G4HitsModel::G4HitsModel(), G4PSHitsModel::G4PSHitsModel(), G4ScaleModel::G4ScaleModel(), G4TextModel::G4TextModel(), G4TrajectoriesModel::G4TrajectoriesModel(), GetType(), and SetType().


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:53:51 2013 for Geant4 by  doxygen 1.4.7