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

#include <G4Polyline.hh>

Inheritance diagram for G4Polyline:
G4Visible G4Point3DList

Public Types

typedef G4Point3DList::iterator iterator
 

Public Member Functions

 G4Polyline ()
 
const G4VisAttributesGetVisAttributes () const
 
G4bool operator!= (const G4Visible &right) const
 
void SetVisAttributes (const G4VisAttributes &)
 
void SetVisAttributes (const G4VisAttributes *)
 
G4Polylinetransform (const G4Transform3D &)
 
virtual ~G4Polyline ()
 

Protected Attributes

G4bool fAllocatedVisAttributes
 
const G4VisAttributesfpVisAttributes
 

Friends

std::ostream & operator<< (std::ostream &os, const G4Polyline &)
 

Detailed Description

Definition at line 46 of file G4Polyline.hh.

Member Typedef Documentation

◆ iterator

Definition at line 52 of file G4Polyline.hh.

Constructor & Destructor Documentation

◆ G4Polyline()

G4Polyline::G4Polyline ( )

Definition at line 33 of file G4Polyline.cc.

33{}

◆ ~G4Polyline()

G4Polyline::~G4Polyline ( )
virtual

Definition at line 35 of file G4Polyline.cc.

35{}

Member Function Documentation

◆ GetVisAttributes()

const G4VisAttributes * G4Visible::GetVisAttributes ( ) const
inherited

◆ operator!=()

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.

◆ 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().

◆ transform()

G4Polyline & G4Polyline::transform ( const G4Transform3D transformation)

Definition at line 37 of file G4Polyline.cc.

37 {
38 for (iterator i = begin(); i != end(); ++i) i->transform(transformation);
39 return *this;
40}
G4Point3DList::iterator iterator
Definition: G4Polyline.hh:52

References transform().

Referenced by G4VisCommandSceneAddScale::Scale::Scale(), and transform().

Friends And Related Function Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
const G4Polyline line 
)
friend

Definition at line 42 of file G4Polyline.cc.

42 {
43 os << "G4Polyline: ";
44 os << '\n' << (const G4Visible&) line;
45 os << '\n' << (const G4Point3DList&) line;
46 return os;
47}

Field Documentation

◆ fAllocatedVisAttributes

G4bool G4Visible::fAllocatedVisAttributes
protectedinherited

◆ fpVisAttributes

const G4VisAttributes* G4Visible::fpVisAttributes
protectedinherited

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