Geant4 10.7.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 G4VisExtentGetTransformedExtent () 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 45 of file G4ScaleModel.hh.

Constructor & Destructor Documentation

◆ G4ScaleModel()

G4ScaleModel::G4ScaleModel ( const G4Scale scale)

Definition at line 39 of file G4ScaleModel.cc.

39 : fScale(scale) {
40 fType = "G4ScaleModel";
41 fGlobalTag = "G4ScaleModel: " + fScale.GetAnnotation();
42 switch (fScale.GetDirection()) {
43 case G4Scale::x:
44 fGlobalTag += " x";
45 break;
46 case G4Scale::y:
47 fGlobalTag += " y";
48 break;
49 case G4Scale::z:
50 fGlobalTag += " z";
51 break;
52 }
54}
Direction GetDirection() const
const G4String & GetAnnotation() const
G4String fGlobalDescription
Definition: G4VModel.hh:112
G4String fType
Definition: G4VModel.hh:110
G4String fGlobalTag
Definition: G4VModel.hh:111

◆ ~G4ScaleModel()

G4ScaleModel::~G4ScaleModel ( )
virtual

Definition at line 37 of file G4ScaleModel.cc.

37{}

Member Function Documentation

◆ DescribeYourselfTo()

void G4ScaleModel::DescribeYourselfTo ( G4VGraphicsScene sceneHandler)
virtual

Implements G4VModel.

Definition at line 56 of file G4ScaleModel.cc.

56 {
57 sceneHandler.BeginPrimitives ();
58 sceneHandler.AddPrimitive (fScale);
59 sceneHandler.EndPrimitives ();
60}
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: