Geant4-11
Public Types | Public Member Functions | Protected Attributes | Private Attributes
G4Square Class Reference

#include <G4Square.hh>

Inheritance diagram for G4Square:
G4VMarker G4Visible

Public Types

enum  FillStyle { noFill , hashed , filled }
 
enum  SizeType { none , world , screen }
 

Public Member Functions

 G4Square ()
 
 G4Square (const G4Point3D &position)
 
 G4Square (const G4VMarker &)
 
FillStyle GetFillStyle () const
 
virtual const G4String & GetInfo () const
 
G4Point3D GetPosition () const
 
G4double GetScreenDiameter () const
 
G4double GetScreenRadius () const
 
G4double GetScreenSize () const
 
SizeType GetSizeType () const
 
const G4VisAttributes * GetVisAttributes () const
 
G4double GetWorldDiameter () const
 
G4double GetWorldRadius () const
 
G4double GetWorldSize () const
 
G4bool operator!= (const G4Visible &right) const
 
G4bool operator!= (const G4VMarker &) const
 
G4bool operator== (const G4VMarker &) const
 
void SetDiameter (SizeType, G4double)
 
void SetFillStyle (FillStyle)
 
virtual void SetInfo (const G4String &info)
 
void SetPosition (const G4Point3D &)
 
void SetRadius (SizeType, G4double)
 
void SetScreenDiameter (G4double)
 
void SetScreenRadius (G4double)
 
void SetScreenSize (G4double)
 
void SetSize (SizeType, G4double)
 
void SetVisAttributes (const G4VisAttributes &)
 
void SetVisAttributes (const G4VisAttributes *)
 
void SetWorldDiameter (G4double)
 
void SetWorldRadius (G4double)
 
void SetWorldSize (G4double)
 
 ~G4Square ()
 

Protected Attributes

G4bool fAllocatedVisAttributes
 
const G4VisAttributes * fpVisAttributes
 

Private Attributes

FillStyle fFillStyle
 
G4String fInfo
 
G4Point3D fPosition
 
G4double fScreenSize
 
G4double fWorldSize
 

Detailed Description

Definition at line 42 of file G4Square.hh.

Member Enumeration Documentation

◆ FillStyle

enum G4VMarker::FillStyle
inherited
Enumerator
noFill 
hashed 
filled 

Definition at line 96 of file G4VMarker.hh.

◆ SizeType

enum G4VMarker::SizeType
inherited
Enumerator
none 
world 
screen 

Definition at line 97 of file G4VMarker.hh.

Constructor & Destructor Documentation

◆ G4Square() [1/3]

G4Square::G4Square ( )

◆ G4Square() [2/3]

G4Square::G4Square ( const G4VMarker &  )

◆ G4Square() [3/3]

G4Square::G4Square ( const G4Point3D &  position)

◆ ~G4Square()

G4Square::~G4Square ( )

Definition at line 34 of file G4Square.cc.

34{}

Member Function Documentation

◆ GetFillStyle()

FillStyle G4VMarker::GetFillStyle ( ) const
inherited

◆ GetInfo()

virtual const G4String & G4VMarker::GetInfo ( ) const
virtualinherited

◆ GetPosition()

G4Point3D G4VMarker::GetPosition ( ) const
inherited

◆ GetScreenDiameter()

G4double G4VMarker::GetScreenDiameter ( ) const
inherited

◆ GetScreenRadius()

G4double G4VMarker::GetScreenRadius ( ) const
inherited

◆ GetScreenSize()

G4double G4VMarker::GetScreenSize ( ) const
inherited

◆ GetSizeType()

G4VMarker::SizeType G4VMarker::GetSizeType ( ) const
inherited

Definition at line 87 of file G4VMarker.cc.

87 {
88 SizeType type = none;
89 if (fWorldSize) type = world;
90 else if (fScreenSize) type = screen;
91 return type;
92}
G4double fScreenSize
Definition: G4VMarker.hh:153
G4double fWorldSize
Definition: G4VMarker.hh:152

References G4VMarker::fScreenSize, G4VMarker::fWorldSize, G4VMarker::none, G4VMarker::screen, and G4VMarker::world.

Referenced by G4Qt3DSceneHandler::AddPrimitive().

◆ GetVisAttributes()

const G4VisAttributes * G4Visible::GetVisAttributes ( ) const
inherited

◆ GetWorldDiameter()

G4double G4VMarker::GetWorldDiameter ( ) const
inherited

◆ GetWorldRadius()

G4double G4VMarker::GetWorldRadius ( ) const
inherited

◆ GetWorldSize()

G4double G4VMarker::GetWorldSize ( ) const
inherited

◆ operator!=() [1/2]

G4bool G4Visible::operator!= ( const G4Visible &  right) const
inherited

Definition at line 103 of file G4Visible.cc.

103 {
104 if (fpVisAttributes && right.fpVisAttributes)
105 return *fpVisAttributes != *right.fpVisAttributes;
106 else if (!fpVisAttributes && !right.fpVisAttributes) return false;
107 else return true;
108}
const G4VisAttributes * fpVisAttributes
Definition: G4Visible.hh:82

References G4Visible::fpVisAttributes.

◆ operator!=() [2/2]

G4bool G4VMarker::operator!= ( const G4VMarker &  mk) const
inherited

Definition at line 55 of file G4VMarker.cc.

55 {
56 return ( (G4Visible::operator != (mk)) ||
57 (fWorldSize != mk.fWorldSize) ||
58 (fScreenSize != mk.fScreenSize) ||
59 (fFillStyle != mk.fFillStyle) ||
60 !(fPosition == mk.fPosition) ||
61 (fInfo != mk.fInfo) );
62}
G4String fInfo
Definition: G4VMarker.hh:157
G4Point3D fPosition
Definition: G4VMarker.hh:151
FillStyle fFillStyle
Definition: G4VMarker.hh:154

References G4VMarker::fFillStyle, G4VMarker::fInfo, G4VMarker::fPosition, G4VMarker::fScreenSize, and G4VMarker::fWorldSize.

◆ operator==()

G4bool G4VMarker::operator== ( const G4VMarker &  ) const
inherited

◆ SetDiameter()

void G4VMarker::SetDiameter ( SizeType  ,
G4double   
)
inherited

◆ SetFillStyle()

void G4VMarker::SetFillStyle ( FillStyle  )
inherited

◆ SetInfo()

virtual void G4VMarker::SetInfo ( const G4String &  info)
virtualinherited

◆ SetPosition()

void G4VMarker::SetPosition ( const G4Point3D &  )
inherited

◆ SetRadius()

void G4VMarker::SetRadius ( SizeType  ,
G4double   
)
inherited

◆ SetScreenDiameter()

void G4VMarker::SetScreenDiameter ( G4double  )
inherited

◆ SetScreenRadius()

void G4VMarker::SetScreenRadius ( G4double  )
inherited

◆ SetScreenSize()

void G4VMarker::SetScreenSize ( G4double  )
inherited

◆ SetSize()

void G4VMarker::SetSize ( SizeType  sizeType,
G4double  size 
)
inherited

◆ SetVisAttributes() [1/2]

void G4Visible::SetVisAttributes ( const G4VisAttributes &  VA)
inherited

Definition at line 85 of file G4Visible.cc.

85 {
86 // Allocate G4VisAttributes on the heap in case the user specifies a
87 // short-lived VA for a long-lived G4Visible. Flag so that it can
88 // be deleted in the destructor.
89 // First delete any G4VisAttributes already on the heap...
93}
G4bool fAllocatedVisAttributes
Definition: G4Visible.hh:83

References G4Visible::fAllocatedVisAttributes, and G4Visible::fpVisAttributes.

◆ SetVisAttributes() [2/2]

void G4Visible::SetVisAttributes ( const G4VisAttributes *  pVA)
inherited

Definition at line 96 of file G4Visible.cc.

96 {
97 // First delete any G4VisAttributes already on the heap...
99 fpVisAttributes = pVA;
101}

References G4Visible::fAllocatedVisAttributes, and G4Visible::fpVisAttributes.

Referenced by G4OpenGLSceneHandler::AddCompound(), G4Qt3DSceneHandler::AddCompound(), G4VisCommandSceneAddArrow2D::Arrow2D::Arrow2D(), G4DrawVoxels::ComputeVoxelPolyhedra(), G4AxesModel::Construct(), G4PhysicalVolumeModel::DescribeSolid(), G4GPSModel::DescribeYourselfTo(), G4VFieldModel::DescribeYourselfTo(), G4ScoringBox::Draw(), G4ScoringCylinder::Draw(), G4ScoreLogColorMap::DrawColorChartBar(), G4VScoreColorMap::DrawColorChartBar(), G4ScoreLogColorMap::DrawColorChartText(), G4VScoreColorMap::DrawColorChartText(), G4ScoringBox::DrawColumn(), G4ScoringCylinder::DrawColumn(), G4OpenGLStoredViewer::DrawDisplayLists(), anonymous_namespace{G4LogicalVolumeModel.cc}::DrawPoint(), G4TrajectoryDrawerUtils::DrawWithoutTime(), G4TrajectoryDrawerUtils::DrawWithTime(), G4ArrowModel::G4ArrowModel(), G4VisCommandSceneAddLogo::G4Logo::G4Logo(), G4VisCommandSceneAddLine::Line::Line(), G4VisCommandSceneAddLine2D::Line2D::Line2D(), G4VisCommandSceneAddDate::Date::operator()(), G4VisCommandSceneAddEventID::EventID::operator()(), G4VisCommandSceneAddFrame::Frame::operator()(), G4VisCommandSceneAddLogo2D::Logo2D::operator()(), G4VSceneHandler::RequestPrimitives(), G4VisCommandSceneAddScale::Scale::Scale(), G4VisCommandSceneAddText::SetNewValue(), and G4VisCommandSceneAddText2D::SetNewValue().

◆ SetWorldDiameter()

void G4VMarker::SetWorldDiameter ( G4double  )
inherited

◆ SetWorldRadius()

void G4VMarker::SetWorldRadius ( G4double  )
inherited

◆ SetWorldSize()

void G4VMarker::SetWorldSize ( G4double  )
inherited

Field Documentation

◆ fAllocatedVisAttributes

G4bool G4Visible::fAllocatedVisAttributes
protectedinherited

◆ fFillStyle

FillStyle G4VMarker::fFillStyle
privateinherited

Definition at line 154 of file G4VMarker.hh.

Referenced by G4VMarker::operator!=().

◆ fInfo

G4String G4VMarker::fInfo
privateinherited

Definition at line 157 of file G4VMarker.hh.

Referenced by G4VMarker::operator!=().

◆ fPosition

G4Point3D G4VMarker::fPosition
privateinherited

Definition at line 151 of file G4VMarker.hh.

Referenced by G4VMarker::operator!=().

◆ fpVisAttributes

const G4VisAttributes* G4Visible::fpVisAttributes
protectedinherited

◆ fScreenSize

G4double G4VMarker::fScreenSize
privateinherited

Definition at line 153 of file G4VMarker.hh.

Referenced by G4VMarker::GetSizeType(), G4VMarker::operator!=(), and G4VMarker::SetSize().

◆ fWorldSize

G4double G4VMarker::fWorldSize
privateinherited

Definition at line 152 of file G4VMarker.hh.

Referenced by G4VMarker::GetSizeType(), G4VMarker::operator!=(), and G4VMarker::SetSize().


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