Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4ScaleModel Class Reference

#include <G4ScaleModel.hh>

+ Inheritance 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 ()
 
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)
 

Additional Inherited Members

- Protected Attributes inherited from G4VModel
G4String fType
 
G4String fGlobalTag
 
G4String fGlobalDescription
 
G4VisExtent fExtent
 
G4Transform3D fTransform
 
const G4ModelingParametersfpMP
 

Detailed Description

Definition at line 46 of file G4ScaleModel.hh.

Constructor & Destructor Documentation

◆ G4ScaleModel()

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}
Direction GetDirection() const
const G4String & GetAnnotation() const
G4String fGlobalDescription
Definition: G4VModel.hh:110
G4String fType
Definition: G4VModel.hh:108
G4String fGlobalTag
Definition: G4VModel.hh:109

◆ ~G4ScaleModel()

G4ScaleModel::~G4ScaleModel ( )
virtual

Definition at line 38 of file G4ScaleModel.cc.

38{}

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
virtual void EndPrimitives()=0

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