#include <G4VtkText2DPipeline.hh>
Definition at line 38 of file G4VtkText2DPipeline.hh.
◆ G4VtkText2DPipeline()
Definition at line 53 of file G4VtkText2DPipeline.cc.
56{
59
62
65 actor->GetPositionCoordinate()->SetCoordinateSystemToNormalizedViewport();
66
67 actor->SetPosition((x + 1.) / 2.0, (y + 1.) / 2.);
70 actor->GetTextProperty()->SetOpacity(opacity);
71
74 actor->GetTextProperty()->SetJustificationToLeft();
75 break;
77 actor->GetTextProperty()->SetJustificationToCentered();
78 break;
80 actor->GetTextProperty()->SetJustificationToRight();
81 break;
82 }
83
85}
static G4bool GetColour(const G4String &key, G4Colour &result)
G4double GetAlpha() const
G4double GetGreen() const
G4double GetScreenSize() const
G4Point3D GetPosition() const
vtkSmartPointer< vtkTextActor > actor
vtkNew< vtkRenderer > renderer
const G4VtkViewer * fViewer
◆ ~G4VtkText2DPipeline()
G4VtkText2DPipeline::~G4VtkText2DPipeline |
( |
| ) |
|
|
overridedefault |
◆ Clear()
void G4VtkText2DPipeline::Clear |
( |
| ) |
|
|
overridevirtual |
◆ Disable()
void G4VtkText2DPipeline::Disable |
( |
| ) |
|
|
overridevirtual |
◆ Enable()
void G4VtkText2DPipeline::Enable |
( |
| ) |
|
|
overridevirtual |
◆ GetActor()
◆ MakeHash()
Definition at line 38 of file G4VtkText2DPipeline.cc.
40{
41 std::size_t hash = std::hash<G4VisAttributes>{}(*pVA);
42
45
49
50 return hash;
51}
void hash_combine(std::size_t)
◆ Modified()
void G4VtkText2DPipeline::Modified |
( |
| ) |
|
|
overridevirtual |
◆ Print()
void G4VtkText2DPipeline::Print |
( |
| ) |
|
|
overridevirtual |
◆ SetText()
void G4VtkText2DPipeline::SetText |
( |
const G4String & | text | ) |
|
|
virtual |
◆ actor
The documentation for this class was generated from the following files: