Geant4  10.02.p03
G4ScaleModel Class Reference

#include <G4ScaleModel.hh>

Inheritance diagram for G4ScaleModel:
Collaboration diagram for G4ScaleModel:

Public Member Functions

 G4ScaleModel (const G4Scale &)
 
virtual ~G4ScaleModel ()
 
virtual void DescribeYourselfTo (G4VGraphicsScene &)
 
- Public Member Functions inherited from G4VModel
 G4VModel (const G4Transform3D &modelTransformation=G4Transform3D(), const G4ModelingParameters *=0)
 
virtual ~G4VModel ()
 
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)
 

Private Member Functions

 G4ScaleModel (const G4ScaleModel &)
 
G4ScaleModel & operator= (const G4ScaleModel &)
 

Private Attributes

G4Scale fScale
 

Additional Inherited Members

- Protected Attributes inherited from G4VModel
G4String fType
 
G4String fGlobalTag
 
G4String fGlobalDescription
 
G4VisExtent fExtent
 
G4Transform3D fTransform
 
const G4ModelingParameters * fpMP
 

Detailed Description

Definition at line 46 of file G4ScaleModel.hh.

Constructor & Destructor Documentation

◆ G4ScaleModel() [1/2]

G4ScaleModel::G4ScaleModel ( const G4Scale &  scale)

Definition at line 40 of file G4ScaleModel.cc.

40  : fScale(scale) {
41  fType = "G4ScaleModel";
42  fGlobalTag = "G4ScaleModel: " + fScale.GetAnnotation();
43  switch (fScale.GetDirection()) {
44  case G4Scale::x:
45  fGlobalTag += " x";
46  break;
47  case G4Scale::y:
48  fGlobalTag += " y";
49  break;
50  case G4Scale::z:
51  fGlobalTag += " z";
52  break;
53  }
55 }
G4String fType
Definition: G4VModel.hh:108
const G4String & GetAnnotation() const
G4String fGlobalTag
Definition: G4VModel.hh:109
Direction GetDirection() const
G4String fGlobalDescription
Definition: G4VModel.hh:110
G4Scale fScale
Definition: G4ScaleModel.hh:63
Here is the call graph for this function:

◆ ~G4ScaleModel()

G4ScaleModel::~G4ScaleModel ( )
virtual

Definition at line 38 of file G4ScaleModel.cc.

38 {}

◆ G4ScaleModel() [2/2]

G4ScaleModel::G4ScaleModel ( const G4ScaleModel &  )
private

Member Function Documentation

◆ DescribeYourselfTo()

void G4ScaleModel::DescribeYourselfTo ( G4VGraphicsScene &  sceneHandler)
virtual

Implements G4VModel.

Definition at line 57 of file G4ScaleModel.cc.

57  {
58  sceneHandler.BeginPrimitives ();
59  sceneHandler.AddPrimitive (fScale);
60  sceneHandler.EndPrimitives ();
61 }
virtual void BeginPrimitives(const G4Transform3D &objectTransformation=G4Transform3D())=0
virtual void AddPrimitive(const G4Polyline &)=0
G4Scale fScale
Definition: G4ScaleModel.hh:63
virtual void EndPrimitives()=0
Here is the call graph for this function:

◆ operator=()

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

Member Data Documentation

◆ fScale

G4Scale G4ScaleModel::fScale
private

Definition at line 63 of file G4ScaleModel.hh.


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