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

#include <G4TextModel.hh>

+ Inheritance diagram for G4TextModel:

Public Member Functions

 G4TextModel (const G4Text &)
 
virtual ~G4TextModel ()
 
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 G4TextModel.hh.

Constructor & Destructor Documentation

◆ G4TextModel()

G4TextModel::G4TextModel ( const G4Text g4Text)

Definition at line 43 of file G4TextModel.cc.

43 : fG4Text(g4Text) {
44 fType = "G4TextModel";
45 std::ostringstream oss;
46 oss << "G4TextModel: \"" << fG4Text.GetText()
47 << "\" at " << G4BestUnit(g4Text.GetPosition(),"Length")
48 << "with size " << g4Text.GetScreenSize()
49 << " with offsets " << g4Text.GetXOffset() << ',' << g4Text.GetYOffset();
50 fGlobalTag = oss.str();
52}
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
G4double GetYOffset() const
G4double GetXOffset() const
G4String GetText() const
G4double GetScreenSize() const
G4Point3D GetPosition() const
G4String fGlobalDescription
Definition: G4VModel.hh:110
G4String fType
Definition: G4VModel.hh:108
G4String fGlobalTag
Definition: G4VModel.hh:109

◆ ~G4TextModel()

G4TextModel::~G4TextModel ( )
virtual

Definition at line 41 of file G4TextModel.cc.

41{}

Member Function Documentation

◆ DescribeYourselfTo()

void G4TextModel::DescribeYourselfTo ( G4VGraphicsScene sceneHandler)
virtual

Implements G4VModel.

Definition at line 54 of file G4TextModel.cc.

54 {
55 sceneHandler.BeginPrimitives ();
56 sceneHandler.AddPrimitive (fG4Text);
57 sceneHandler.EndPrimitives ();
58}
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: