Geant4 11.2.2
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="none")
 
 G4Text (const G4String &text, const G4Point3D &position)
 
 G4Text (const G4VMarker &)
 
 G4Text (const G4Text &)=default
 
 G4Text (G4Text &&)=default
 
 ~G4Text () override
 
G4Textoperator= (const G4Text &)=default
 
G4Textoperator= (G4Text &&)=default
 
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 &)=default
 
 G4VMarker (G4VMarker &&)=default
 
 G4VMarker (const G4Point3D &position)
 
 ~G4VMarker () override
 
G4VMarkeroperator= (const G4VMarker &)=default
 
G4VMarkeroperator= (G4VMarker &&)=default
 
G4bool operator!= (const G4VMarker &) const
 
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)
 
- Public Member Functions inherited from G4Visible
 G4Visible ()
 
 G4Visible (const G4Visible &)
 
 G4Visible (G4Visible &&)
 
 G4Visible (const G4VisAttributes *)
 
virtual ~G4Visible ()
 
G4Visibleoperator= (const G4Visible &)
 
G4Visibleoperator= (G4Visible &&)
 
G4bool operator!= (const G4Visible &right) const
 
const G4VisAttributesGetVisAttributes () const
 
void SetVisAttributes (const G4VisAttributes *)
 
void SetVisAttributes (const G4VisAttributes &)
 
virtual const G4StringGetInfo () const
 
virtual void SetInfo (const G4String &info)
 

Additional Inherited Members

- Protected Attributes inherited from G4Visible
G4String fInfo
 
const G4VisAttributesfpVisAttributes
 
G4bool fAllocatedVisAttributes
 

Detailed Description

Definition at line 72 of file G4Text.hh.

Member Enumeration Documentation

◆ Layout

Enumerator
left 
centre 
right 

Definition at line 76 of file G4Text.hh.

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

Constructor & Destructor Documentation

◆ G4Text() [1/5]

G4Text::G4Text ( const G4String & text = "none")

Definition at line 33 of file G4Text.cc.

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

◆ G4Text() [2/5]

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

Definition at line 39 of file G4Text.cc.

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

◆ G4Text() [3/5]

G4Text::G4Text ( const G4VMarker & marker)

Definition at line 46 of file G4Text.cc.

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

◆ G4Text() [4/5]

G4Text::G4Text ( const G4Text & )
default

◆ G4Text() [5/5]

G4Text::G4Text ( G4Text && )
default

◆ ~G4Text()

G4Text::~G4Text ( )
overridedefault

Member Function Documentation

◆ GetLayout()

◆ GetText()

◆ GetXOffset()

◆ GetYOffset()

◆ operator=() [1/2]

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

◆ operator=() [2/2]

G4Text & G4Text::operator= ( G4Text && )
default

◆ 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: