55 :
G4VVtkPipeline(text.GetText().c_str(),
"G4VtkText2DPipeline", vcIn, false, vcIn.fViewer->renderer)
65 actor->GetPositionCoordinate()->SetCoordinateSystemToNormalizedViewport();
67 actor->SetPosition((x + 1.) / 2.0, (y + 1.) / 2.);
70 actor->GetTextProperty()->SetOpacity(opacity);
74 actor->GetTextProperty()->SetJustificationToLeft();
77 actor->GetTextProperty()->SetJustificationToCentered();
80 actor->GetTextProperty()->SetJustificationToRight();
vtkSmartPointer< vtkTextActor > actor
G4VtkText2DPipeline(const G4Text &text, const G4VtkVisContext &vc, const G4VisAttributes *pVisAttributes)
virtual void SetText(const G4String &text)
static std::size_t MakeHash(const G4Text &text, const G4VtkVisContext &vc, const G4VisAttributes *pVA)
const G4VtkViewer * fViewer