3 #ifndef TestAxisActor2DInternal_h
4 #define TestAxisActor2DInternal_h
6 #include "vtkTestUtilities.h"
21 VTK_ABI_NAMESPACE_BEGIN
39 if (nbOfLabels != static_cast<int>(strings.size()))
42 "Wrong number of labels strings: has " << nbOfLabels <<
" instead of " << strings.size());
49 if (label != strings[
index])
51 vtkErrorMacro(
"Wrong label: <" << label <<
"> instead of <" << strings[index] <<
">");
78 return vtkTestUtilities::ComparePoints(ticks, expectedTicks);
104 VTK_ABI_NAMESPACE_END
void AddActor(vtkProp *p)
Add/Remove different types of props to the renderer.
vtkIdType GetNumberOfPoints() override
See vtkDataSet for additional information.
static vtkAxisActor2DMock * New()
static constexpr int END_POINT
vtkAlgorithmOutput * GetOutputPort(int index)
Get a proxy object corresponding to the given output port of this algorithm.
vtkPoints * GetTickPositions()
Return the positions of ticks along the axis.
virtual void SetPoints(vtkPoints *)
Specify point array to define point coordinates.
void SetupPipeline(vtkAxisActor2D *axis, vtkRenderWindow *window)
Create an axis with tick marks and labels.
bool CompareTicksPosition(vtkAxisActor2D *axis, vtkRenderWindow *window, vtkPoints *expectedPoints)
Compare the provided vtkPoints with TickPositions from axis.
virtual void AddRenderer(vtkRenderer *)
Add a renderer to the list of renderers.
void Render() override
Ask each renderer owned by this RenderWindow to render its image and synchronize this process...
virtual char * GetInput()
The input text string to the mapper.
vtkCamera * GetActiveCamera()
Get the current camera.
virtual void SetSize(int width, int height)
Set the size (width and height) of the rendering window in screen coordinates (in pixels)...
#define VTK_STANDARD_NEW_BODY(thisClass)
virtual void SetInputConnection(int port, vtkAlgorithmOutput *input)
Set the connection for the given input port index.
virtual void SetPoint2(double x[2])
Specify the position of the second point defining the axis.
virtual void ParallelProjectionOn()
Set/Get the value of the ParallelProjection instance variable.
virtual void SetPoint1(double x[2])
Specify the position of the first point defining the axis.
vtkIdType GetNumberOfPoints() const
Return number of points in array.
create a window for renderers to draw into
static constexpr int START_POINT
bool CompareLabelMapperString(const std::vector< std::string > &strings)
virtual void SetMapper(vtkMapper *)
This is the method that is used to connect an actor to the end of a visualization pipeline...
Mock vtkAxisActor2D to access inner member for comparison.
virtual std::vector< vtkSmartPointer< vtkTextMapper > > GetLabelMappers()
Get the label mappers.
represent and manipulate 3D points