VTK  9.6.1
vtkCheckerboardRepresentation.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
22
23#ifndef vtkCheckerboardRepresentation_h
24#define vtkCheckerboardRepresentation_h
25
26#include "vtkInteractionWidgetsModule.h" // For export macro
28#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
29
30VTK_ABI_NAMESPACE_BEGIN
32class vtkImageActor;
34
35class VTKINTERACTIONWIDGETS_EXPORT VTK_MARSHALAUTO vtkCheckerboardRepresentation
37{
38public:
43
45
49 void PrintSelf(ostream& os, vtkIndent indent) override;
51
53
59
61
64 void SetImageActor(vtkImageActor* imageActor);
65 vtkGetObjectMacro(ImageActor, vtkImageActor);
67
69
74 vtkSetClampMacro(CornerOffset, double, 0.0, 0.4);
75 vtkGetMacro(CornerOffset, double);
77
78 enum
79 {
84 };
85
90 void SliderValueChanged(int sliderNum);
91
93
107
109
112 void BuildRepresentation() override;
115 int RenderOverlay(vtkViewport* viewport) override;
116 int RenderOpaqueGeometry(vtkViewport* viewport) override;
120
121protected:
124
125 // Instances that this class manipulates
128
129 // The internal widgets for each side
134
135 // The corner offset
137
138 // Direction index of image actor's plane normal
140
141private:
143 void operator=(const vtkCheckerboardRepresentation&) = delete;
144};
145
146VTK_ABI_NAMESPACE_END
147#endif
void SetImageActor(vtkImageActor *imageActor)
Specify an instance of vtkImageActor to decorate.
int RenderOverlay(vtkViewport *viewport) override
Methods required by superclass.
void GetActors(vtkPropCollection *) override
Methods required by superclass.
void SetCheckerboard(vtkImageCheckerboard *chkrbrd)
Specify an instance of vtkImageCheckerboard to manipulate.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard VTK methods.
int RenderOpaqueGeometry(vtkViewport *viewport) override
Methods required by superclass.
vtkTypeBool HasTranslucentPolygonalGeometry() override
Methods required by superclass.
void SliderValueChanged(int sliderNum)
This method is invoked by the vtkCheckerboardWidget() when a value of some slider has changed.
void SetRightRepresentation(vtkSliderRepresentation3D *)
Set and get the instances of vtkSliderRepresentation used to implement this representation.
vtkSliderRepresentation3D * RightRepresentation
vtkSliderRepresentation3D * LeftRepresentation
void SetLeftRepresentation(vtkSliderRepresentation3D *)
Set and get the instances of vtkSliderRepresentation used to implement this representation.
int RenderTranslucentPolygonalGeometry(vtkViewport *viewport) override
Methods required by superclass.
void BuildRepresentation() override
Methods required by superclass.
void SetBottomRepresentation(vtkSliderRepresentation3D *)
Set and get the instances of vtkSliderRepresentation used to implement this representation.
vtkSliderRepresentation3D * TopRepresentation
~vtkCheckerboardRepresentation() override
void ReleaseGraphicsResources(vtkWindow *w) override
Methods required by superclass.
vtkSliderRepresentation3D * BottomRepresentation
void SetTopRepresentation(vtkSliderRepresentation3D *)
Set and get the instances of vtkSliderRepresentation used to implement this representation.
static vtkCheckerboardRepresentation * New()
Instantiate class.
draw an image in a rendered 3D scene
show two images at once using a checkboard pattern
a simple class to control print indentation
Definition vtkIndent.h:29
an ordered list of Props
provide the representation for a vtkSliderWidget with a 3D skin
abstract specification for Viewports
Definition vtkViewport.h:47
window superclass for vtkRenderWindow
Definition vtkWindow.h:29
int vtkTypeBool
Definition vtkABI.h:64
#define VTK_MARSHALAUTO