#include <G4VMarker.hh>
Inheritance diagram for G4VMarker:
Definition at line 91 of file G4VMarker.hh.
enum G4VMarker::FillStyle |
enum G4VMarker::SizeType |
G4VMarker::G4VMarker | ( | ) |
Definition at line 35 of file G4VMarker.cc.
00035 : 00036 fPosition (G4Point3D ()), 00037 fWorldSize (0.), 00038 fScreenSize (0.), 00039 fFillStyle (noFill) 00040 { 00041 // fInfo: default initialisation. 00042 }
G4VMarker::G4VMarker | ( | const G4VMarker & | ) |
Definition at line 44 of file G4VMarker.cc.
00044 : 00045 G4Visible (mk), 00046 fPosition (mk.fPosition), 00047 fWorldSize (mk.fWorldSize), 00048 fScreenSize (mk.fScreenSize), 00049 fFillStyle (mk.fFillStyle), 00050 fInfo (mk.fInfo) 00051 {}
G4VMarker::G4VMarker | ( | const G4Point3D & | position | ) |
Definition at line 53 of file G4VMarker.cc.
00053 : 00054 fPosition (pos), 00055 fWorldSize (0.), 00056 fScreenSize (0.), 00057 fFillStyle (noFill), 00058 fInfo (G4String()) 00059 { 00060 // fInfo: default initialisation. 00061 }
G4VMarker::~G4VMarker | ( | ) | [virtual] |
G4VMarker::FillStyle G4VMarker::GetFillStyle | ( | ) | const [inline] |
const G4String & G4VMarker::GetInfo | ( | ) | const [inline, virtual] |
G4Point3D G4VMarker::GetPosition | ( | ) | const [inline] |
Definition at line 31 of file G4VMarker.icc.
Referenced by G4HepRepSceneHandler::AddPrimitive(), G4HepRepFileSceneHandler::AddPrimitive(), and G4TextModel::G4TextModel().
G4double G4VMarker::GetScreenDiameter | ( | ) | const [inline] |
G4double G4VMarker::GetScreenRadius | ( | ) | const [inline] |
G4double G4VMarker::GetScreenSize | ( | ) | const [inline] |
Definition at line 47 of file G4VMarker.icc.
Referenced by G4TextModel::G4TextModel(), and G4VSceneHandler::GetMarkerSize().
G4VMarker::SizeType G4VMarker::GetSizeType | ( | ) | const |
G4double G4VMarker::GetWorldDiameter | ( | ) | const [inline] |
G4double G4VMarker::GetWorldRadius | ( | ) | const [inline] |
Definition at line 43 of file G4VMarker.icc.
Referenced by G4HepRepFileSceneHandler::AddPrimitive().
G4double G4VMarker::GetWorldSize | ( | ) | const [inline] |
Definition at line 76 of file G4VMarker.cc.
References fFillStyle, fInfo, fPosition, fScreenSize, and fWorldSize.
00076 { 00077 if ( 00078 (G4Visible::operator != (mk)) || 00079 (fWorldSize != mk.fWorldSize) || 00080 (fScreenSize != mk.fScreenSize) || 00081 (fFillStyle != mk.fFillStyle) || 00082 !(fPosition == mk.fPosition) || 00083 (fInfo != mk.fInfo) 00084 ) 00085 return true; 00086 return false; 00087 }
Definition at line 65 of file G4VMarker.cc.
References fFillStyle, fInfo, fPosition, fScreenSize, fWorldSize, and G4Visible::operator=().
Referenced by G4Text::operator=().
00065 { 00066 if (&mk == this) return *this; 00067 G4Visible::operator = (mk); 00068 fPosition = mk.fPosition; 00069 fWorldSize = mk.fWorldSize; 00070 fScreenSize = mk.fScreenSize; 00071 fFillStyle = mk.fFillStyle; 00072 fInfo = mk.fInfo; 00073 return *this; 00074 }
Definition at line 67 of file G4VMarker.icc.
References SetSize().
00067 { 00068 SetSize(sizeType, size); 00069 }
void G4VMarker::SetFillStyle | ( | FillStyle | ) | [inline] |
void G4VMarker::SetInfo | ( | const G4String & | info | ) | [inline, virtual] |
void G4VMarker::SetPosition | ( | const G4Point3D & | ) | [inline] |
Definition at line 71 of file G4VMarker.icc.
References SetSize().
00071 { 00072 SetSize(sizeType, 2. * size); 00073 }
void G4VMarker::SetScreenDiameter | ( | G4double | ) | [inline] |
void G4VMarker::SetScreenRadius | ( | G4double | ) | [inline] |
void G4VMarker::SetScreenSize | ( | G4double | ) | [inline] |
Definition at line 87 of file G4VMarker.icc.
Referenced by G4VScoreColorMap::DrawColorChartText(), G4ScoreLogColorMap::DrawColorChartText(), G4AxesModel::G4AxesModel(), G4ViewParameters::G4ViewParameters(), G4VisCommandSceneAddText2D::SetNewValue(), and G4VisCommandSceneAddText::SetNewValue().
Definition at line 119 of file G4VMarker.cc.
Referenced by SetDiameter(), and SetRadius().
00119 { 00120 fWorldSize = fScreenSize = 0.; 00121 if (sizeType == world) fWorldSize = size; 00122 else if (sizeType == screen) fScreenSize = size; 00123 }
void G4VMarker::SetWorldDiameter | ( | G4double | ) | [inline] |
void G4VMarker::SetWorldRadius | ( | G4double | ) | [inline] |
void G4VMarker::SetWorldSize | ( | G4double | ) | [inline] |
std::ostream& operator<< | ( | std::ostream & | os, | |
const G4VMarker & | marker | |||
) | [friend] |
Definition at line 89 of file G4VMarker.cc.
00089 { 00090 os << "G4VMarker: position: " << marker.fPosition 00091 << ", world size: " << marker.fWorldSize 00092 << ", screen size: " << marker.fScreenSize << '\n' 00093 << " fill style: "; 00094 switch (marker.fFillStyle) { 00095 case G4VMarker::noFill: 00096 os << "no fill"; 00097 break; 00098 case G4VMarker::hashed: 00099 os << "hashed"; 00100 break; 00101 case G4VMarker::filled: 00102 os << "filled"; 00103 break; 00104 default: 00105 os << "unrecognised"; break; 00106 } 00107 if (!marker.fInfo.empty()) os << "\n User information: " << marker.fInfo; 00108 os << "\n " << (const G4Visible&) marker; 00109 return os; 00110 }