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

#include <G4Polymarker.hh>

Inheritance diagram for G4Polymarker:
G4VMarker G4Point3DList G4Visible

Public Types

enum  FillStyle { noFill , hashed , filled }
 
typedef std::vector< G4Point3D >::iterator iterator
 
enum  MarkerType { dots , circles , squares }
 
enum  SizeType { none , world , screen }
 

Public Member Functions

 G4Polymarker ()
 
 G4Polymarker (const G4VMarker &)
 
FillStyle GetFillStyle () const
 
virtual const G4StringGetInfo () const
 
MarkerType GetMarkerType () const
 
G4Point3D GetPosition () const
 
G4double GetScreenDiameter () const
 
G4double GetScreenRadius () const
 
G4double GetScreenSize () const
 
SizeType GetSizeType () const
 
const G4VisAttributesGetVisAttributes () 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 SetMarkerType (MarkerType)
 
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)
 
virtual ~G4Polymarker ()
 

Protected Attributes

G4bool fAllocatedVisAttributes
 
const G4VisAttributesfpVisAttributes
 

Private Attributes

FillStyle fFillStyle
 
G4String fInfo
 
MarkerType fMarkerType
 
G4Point3D fPosition
 
G4double fScreenSize
 
G4double fWorldSize
 

Friends

std::ostream & operator<< (std::ostream &os, const G4Polymarker &marker)
 

Detailed Description

Definition at line 42 of file G4Polymarker.hh.

Member Typedef Documentation

◆ iterator

typedef std::vector<G4Point3D>::iterator G4Point3DList::iterator
inherited

Definition at line 48 of file G4Point3DList.hh.

Member Enumeration Documentation

◆ FillStyle

enum G4VMarker::FillStyle
inherited
Enumerator
noFill 
hashed 
filled 

Definition at line 96 of file G4VMarker.hh.

◆ MarkerType

Enumerator
dots 
circles 
squares 

Definition at line 47 of file G4Polymarker.hh.

◆ SizeType

enum G4VMarker::SizeType
inherited
Enumerator
none 
world 
screen 

Definition at line 97 of file G4VMarker.hh.

Constructor & Destructor Documentation

◆ G4Polymarker() [1/2]

G4Polymarker::G4Polymarker ( )

Definition at line 33 of file G4Polymarker.cc.

33 :
35{}
MarkerType fMarkerType
Definition: G4Polymarker.hh:54

◆ G4Polymarker() [2/2]

G4Polymarker::G4Polymarker ( const G4VMarker marker)

Definition at line 37 of file G4Polymarker.cc.

37 :
38 G4VMarker (marker),
40{}

◆ ~G4Polymarker()

G4Polymarker::~G4Polymarker ( )
virtual

Definition at line 42 of file G4Polymarker.cc.

42{}

Member Function Documentation

◆ GetFillStyle()

FillStyle G4VMarker::GetFillStyle ( ) const
inherited

◆ GetInfo()

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

◆ GetMarkerType()

MarkerType G4Polymarker::GetMarkerType ( ) const

◆ 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

◆ SetMarkerType()

void G4Polymarker::SetMarkerType ( MarkerType  )

◆ 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

Friends And Related Function Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
const G4Polymarker marker 
)
friend

Definition at line 44 of file G4Polymarker.cc.

44 {
45 os << "G4Polymarker: type: ";
46 switch (marker.fMarkerType) {
48 os << "dots"; break;
50 os << "circles"; break;
52 os << "squares"; break;
53 default:
54 os << "unrecognised"; break;
55 }
56 os << "\n " << (G4VMarker) marker;
57 os << "\n " << (G4Point3DList) marker;
58 return os;
59}

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!=().

◆ fMarkerType

MarkerType G4Polymarker::fMarkerType
private

Definition at line 54 of file G4Polymarker.hh.

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