Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4VMarker Class Reference

#include <G4VMarker.hh>

Inheritance diagram for G4VMarker:
Collaboration diagram for G4VMarker:

Public Types

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

Public Member Functions

 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 &)
 

Friends

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

Additional Inherited Members

- Protected Attributes inherited from G4Visible
const G4VisAttributesfpVisAttributes
 
G4bool fAllocatedVisAttributes
 

Detailed Description

Definition at line 91 of file G4VMarker.hh.

Member Enumeration Documentation

Enumerator
noFill 
hashed 
filled 

Definition at line 97 of file G4VMarker.hh.

Enumerator
none 
world 
screen 

Definition at line 98 of file G4VMarker.hh.

Constructor & Destructor Documentation

G4VMarker::G4VMarker ( )

Definition at line 35 of file G4VMarker.cc.

35  :
36  fPosition (G4Point3D ()),
37  fWorldSize (0.),
38  fScreenSize (0.),
39  fFillStyle (noFill)
40 {
41  // fInfo: default initialisation.
42 }
G4VMarker::G4VMarker ( const G4VMarker mk)

Definition at line 44 of file G4VMarker.cc.

44  :
45  G4Visible (mk),
46  fPosition (mk.fPosition),
47  fWorldSize (mk.fWorldSize),
48  fScreenSize (mk.fScreenSize),
49  fFillStyle (mk.fFillStyle),
50  fInfo (mk.fInfo)
51 {}
G4VMarker::G4VMarker ( const G4Point3D position)

Definition at line 53 of file G4VMarker.cc.

53  :
54  fPosition (pos),
55  fWorldSize (0.),
56  fScreenSize (0.),
57  fFillStyle (noFill),
58  fInfo (G4String())
59 {
60  // fInfo: default initialisation.
61 }
static const G4double pos
G4VMarker::~G4VMarker ( )
virtual

Definition at line 63 of file G4VMarker.cc.

63 {}

Member Function Documentation

FillStyle G4VMarker::GetFillStyle ( ) const
virtual const G4String& G4VMarker::GetInfo ( ) const
virtual
G4Point3D G4VMarker::GetPosition ( ) const

Here is the caller graph for this function:

G4double G4VMarker::GetScreenDiameter ( ) const
G4double G4VMarker::GetScreenRadius ( ) const
G4double G4VMarker::GetScreenSize ( ) const

Here is the caller graph for this function:

G4VMarker::SizeType G4VMarker::GetSizeType ( ) const

Definition at line 112 of file G4VMarker.cc.

112  {
113  SizeType type = none;
114  if (fWorldSize) type = world;
115  else if (fScreenSize) type = screen;
116  return type;
117 }
G4double G4VMarker::GetWorldDiameter ( ) const
G4double G4VMarker::GetWorldRadius ( ) const

Here is the caller graph for this function:

G4double G4VMarker::GetWorldSize ( ) const

Here is the caller graph for this function:

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

Definition at line 76 of file G4VMarker.cc.

76  {
77  if (
78  (G4Visible::operator != (mk)) ||
79  (fWorldSize != mk.fWorldSize) ||
80  (fScreenSize != mk.fScreenSize) ||
81  (fFillStyle != mk.fFillStyle) ||
82  !(fPosition == mk.fPosition) ||
83  (fInfo != mk.fInfo)
84  )
85  return true;
86  return false;
87 }
G4VMarker & G4VMarker::operator= ( const G4VMarker mk)

Definition at line 65 of file G4VMarker.cc.

65  {
66  if (&mk == this) return *this;
68  fPosition = mk.fPosition;
69  fWorldSize = mk.fWorldSize;
70  fScreenSize = mk.fScreenSize;
71  fFillStyle = mk.fFillStyle;
72  fInfo = mk.fInfo;
73  return *this;
74 }
G4Visible & operator=(const G4Visible &)
Definition: G4Visible.cc:58

Here is the call graph for this function:

Here is the caller graph for this function:

void G4VMarker::SetDiameter ( SizeType  ,
G4double   
)
void G4VMarker::SetFillStyle ( FillStyle  )

Here is the caller graph for this function:

virtual void G4VMarker::SetInfo ( const G4String info)
virtual
void G4VMarker::SetPosition ( const G4Point3D )

Here is the caller graph for this function:

void G4VMarker::SetRadius ( SizeType  ,
G4double   
)
void G4VMarker::SetScreenDiameter ( G4double  )
void G4VMarker::SetScreenRadius ( G4double  )
void G4VMarker::SetScreenSize ( G4double  )

Here is the caller graph for this function:

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

Definition at line 119 of file G4VMarker.cc.

119  {
120  fWorldSize = fScreenSize = 0.;
121  if (sizeType == world) fWorldSize = size;
122  else if (sizeType == screen) fScreenSize = size;
123 }

Here is the caller graph for this function:

void G4VMarker::SetWorldDiameter ( G4double  )
void G4VMarker::SetWorldRadius ( G4double  )
void G4VMarker::SetWorldSize ( G4double  )

Here is the caller graph for this function:

Friends And Related Function Documentation

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

Definition at line 89 of file G4VMarker.cc.

89  {
90  os << "G4VMarker: position: " << marker.fPosition
91  << ", world size: " << marker.fWorldSize
92  << ", screen size: " << marker.fScreenSize << '\n'
93  << " fill style: ";
94  switch (marker.fFillStyle) {
95  case G4VMarker::noFill:
96  os << "no fill";
97  break;
98  case G4VMarker::hashed:
99  os << "hashed";
100  break;
101  case G4VMarker::filled:
102  os << "filled";
103  break;
104  default:
105  os << "unrecognised"; break;
106  }
107  if (!marker.fInfo.empty()) os << "\n User information: " << marker.fInfo;
108  os << "\n " << (const G4Visible&) marker;
109  return os;
110 }

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