3#include "vtkRegressionTestImage.h"
24 iren->SetRenderWindow(renWin);
27 renWin->AddRenderer(renderer);
29 renderer->SetBackground(0.0, 0.0, 0.5);
30 renWin->SetSize(300, 300);
34 renWin->SetMultiSamples(1);
35 renWin->SetAlphaBitPlanes(1);
36 renderer->SetUseDepthPeeling(1);
37 renderer->SetMaximumNumberOfPeels(200);
38 renderer->SetOcclusionRatio(0.1);
41 renderer->AddActor(textActor);
49 renderer->ResetCamera();
52 if (depthPeeling && !renderer->GetLastRenderingUsedDepthPeeling())
54 std::cerr <<
"depth peeling was not used\n";
59 int retVal = vtkRegressionTestImage(renWin);
60 if (retVal == vtkRegressionTester::DO_INTERACTOR)
Allocate and hold a VTK object.
abstract superclass for all actors, volumes and annotations
represent text properties.
void SetFontFamilyToArial()
Set/Get the font family.
void SetJustificationToCentered()
Set/Get the horizontal justification to left (default), centered, or right.
void SetVerticalJustificationToCentered()
Set/Get the vertical justification to bottom (default), middle, or top.
virtual void SetFontSize(int)
Set/Get the font size (in points).
int CreatePipeline(int argc, char *argv[], vtkProp *textActor, vtkTextProperty *textProperty, bool depthPeeling)