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

#include <G4Scale.hh>

+ Inheritance diagram for G4Scale:

Public Types

enum  Direction { x , y , z }
 
- Public Types inherited from G4VMarker
enum  FillStyle { noFill , hashed , filled }
 
enum  SizeType { none , world , screen }
 

Public Member Functions

 G4Scale (G4double length, const G4String &annotation="", Direction direction=x, G4bool autoPlacing=true, G4double xmid=0., G4double ymid=0., G4double zmid=0., G4double annotationSize=12.)
 
 ~G4Scale ()
 
G4double GetLength () const
 
const G4StringGetAnnotation () const
 
G4double GetAnnotationSize () const
 
Direction GetDirection () const
 
G4bool GetAutoPlacing () const
 
G4double GetXmid () const
 
G4double GetYmid () const
 
G4double GetZmid () const
 
- 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 &)
 

Static Public Member Functions

static const G4StringGetGuidanceString ()
 

Additional Inherited Members

- Protected Attributes inherited from G4Visible
const G4VisAttributesfpVisAttributes
 
G4bool fAllocatedVisAttributes
 

Detailed Description

Definition at line 37 of file G4Scale.hh.

Member Enumeration Documentation

◆ Direction

Enumerator

Definition at line 41 of file G4Scale.hh.

41{x, y, z};

Constructor & Destructor Documentation

◆ G4Scale()

G4Scale::G4Scale ( G4double  length,
const G4String annotation = "",
G4Scale::Direction  direction = x,
G4bool  autoPlacing = true,
G4double  xmid = 0.,
G4double  ymid = 0.,
G4double  zmid = 0.,
G4double  annotationSize = 12. 
)

Definition at line 33 of file G4Scale.cc.

37 :
38 fLength(length),
39 fAnnotation(annotation),
40 fAnnotationSize(annotationSize),
41 fDirection(direction),
42 fAutoPlacing(autoPlacing),
43 fXmid(xmid), fYmid(ymid), fZmid(zmid) {}

◆ ~G4Scale()

G4Scale::~G4Scale ( )

Definition at line 45 of file G4Scale.cc.

45{}

Member Function Documentation

◆ GetAnnotation()

const G4String & G4Scale::GetAnnotation ( ) const

◆ GetAnnotationSize()

G4double G4Scale::GetAnnotationSize ( ) const

◆ GetAutoPlacing()

G4bool G4Scale::GetAutoPlacing ( ) const

◆ GetDirection()

Direction G4Scale::GetDirection ( ) const

◆ GetGuidanceString()

const G4String & G4Scale::GetGuidanceString ( )
static

Definition at line 65 of file G4Scale.cc.

66{
67 return GuidanceString;
68}

Referenced by G4VisCommandSceneAddScale::G4VisCommandSceneAddScale().

◆ GetLength()

G4double G4Scale::GetLength ( ) const

◆ GetXmid()

G4double G4Scale::GetXmid ( ) const

◆ GetYmid()

G4double G4Scale::GetYmid ( ) const

◆ GetZmid()

G4double G4Scale::GetZmid ( ) const

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