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

#include <G4Text.hh>

+ Inheritance diagram for G4Text:

Public Types

enum  Layout { left , centre , right }
 
- Public Types inherited from G4VMarker
enum  FillStyle { noFill , hashed , filled }
 
enum  SizeType { none , world , screen }
 

Public Member Functions

 G4Text (const G4String &text)
 
 G4Text (const G4String &text, const G4Point3D &position)
 
 G4Text (const G4VMarker &)
 
 G4Text (const G4Text &)
 
virtual ~G4Text ()
 
G4Textoperator= (const G4Text &)
 
G4String GetText () const
 
Layout GetLayout () const
 
G4double GetXOffset () const
 
G4double GetYOffset () const
 
void SetText (const G4String &text)
 
void SetLayout (Layout)
 
void SetOffset (double dx, double dy)
 
- Public Member Functions inherited from G4VMarker
 G4VMarker ()
 
 G4VMarker (const G4VMarker &)
 
 G4VMarker (const G4Point3D &position)
 
virtual ~G4VMarker ()
 
G4VMarkeroperator= (const G4VMarker &)
 
G4bool operator!= (const G4VMarker &) const
 
G4Point3D GetPosition () const
 
SizeType GetSizeType () const
 
G4double GetWorldSize () const
 
G4double GetWorldDiameter () const
 
G4double GetWorldRadius () const
 
G4double GetScreenSize () const
 
G4double GetScreenDiameter () const
 
G4double GetScreenRadius () const
 
FillStyle GetFillStyle () const
 
void SetPosition (const G4Point3D &)
 
void SetSize (SizeType, G4double)
 
void SetDiameter (SizeType, G4double)
 
void SetRadius (SizeType, G4double)
 
void SetWorldSize (G4double)
 
void SetWorldDiameter (G4double)
 
void SetWorldRadius (G4double)
 
void SetScreenSize (G4double)
 
void SetScreenDiameter (G4double)
 
void SetScreenRadius (G4double)
 
void SetFillStyle (FillStyle)
 
virtual const G4StringGetInfo () const
 
virtual void SetInfo (const G4String &info)
 
- Public Member Functions inherited from G4Visible
 G4Visible ()
 
 G4Visible (const G4Visible &)
 
 G4Visible (const G4VisAttributes *)
 
virtual ~G4Visible ()
 
G4Visibleoperator= (const G4Visible &)
 
G4bool operator!= (const G4Visible &right) const
 
const G4VisAttributesGetVisAttributes () const
 
void SetVisAttributes (const G4VisAttributes *)
 
void SetVisAttributes (const G4VisAttributes &)
 

Additional Inherited Members

- Protected Attributes inherited from G4Visible
const G4VisAttributesfpVisAttributes
 
G4bool fAllocatedVisAttributes
 

Detailed Description

Definition at line 73 of file G4Text.hh.

Member Enumeration Documentation

◆ Layout

Enumerator
left 
centre 
right 

Definition at line 77 of file G4Text.hh.

77{left, centre, right};
@ centre
Definition: G4Text.hh:77
@ right
Definition: G4Text.hh:77
@ left
Definition: G4Text.hh:77

Constructor & Destructor Documentation

◆ G4Text() [1/4]

G4Text::G4Text ( const G4String text)

Definition at line 34 of file G4Text.cc.

34 :
35fText (text),
36fLayout (left),
37fXOffset(0.) , fYOffset(0.)
38{}

◆ G4Text() [2/4]

G4Text::G4Text ( const G4String text,
const G4Point3D position 
)

Definition at line 40 of file G4Text.cc.

40 :
41G4VMarker (pos),
42fText (text),
43fLayout (left),
44fXOffset(0.) , fYOffset(0.)
45{}

◆ G4Text() [3/4]

G4Text::G4Text ( const G4VMarker marker)

Definition at line 47 of file G4Text.cc.

47 :
48G4VMarker (marker),
49fText ("") ,
50fLayout (left) ,
51fXOffset(0.) , fYOffset(0.)
52{}

◆ G4Text() [4/4]

G4Text::G4Text ( const G4Text text)

Definition at line 54 of file G4Text.cc.

54 :
55G4VMarker (text),
56fText (text.fText),
57fLayout (text.fLayout),
58fXOffset (text.fXOffset),
59fYOffset (text.fYOffset)
60{}

◆ ~G4Text()

G4Text::~G4Text ( )
virtual

Definition at line 62 of file G4Text.cc.

62{}

Member Function Documentation

◆ GetLayout()

Layout G4Text::GetLayout ( ) const

Referenced by operator<<().

◆ GetText()

◆ GetXOffset()

◆ GetYOffset()

◆ operator=()

G4Text & G4Text::operator= ( const G4Text rhs)

Definition at line 64 of file G4Text.cc.

65{
66 if (&rhs == this) return *this;
68 fText = rhs.fText;
69 fLayout = rhs.fLayout;
70 fXOffset = rhs.fXOffset;
71 fYOffset = rhs.fYOffset;
72 return *this;
73}
G4VMarker & operator=(const G4VMarker &)
Definition: G4VMarker.cc:65

◆ SetLayout()

◆ SetOffset()

void G4Text::SetOffset ( double  dx,
double  dy 
)

◆ SetText()

void G4Text::SetText ( const G4String text)

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