VTK
vtkSliderRepresentation2D.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkSliderRepresentation2D.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
35#ifndef vtkSliderRepresentation2D_h
36#define vtkSliderRepresentation2D_h
37
38#include "vtkInteractionWidgetsModule.h" // For export macro
40#include "vtkCoordinate.h" // For vtkViewportCoordinateMacro
41
42class vtkPoints;
43class vtkCellArray;
44class vtkPolyData;
46class vtkActor2D;
47class vtkCoordinate;
48class vtkProperty2D;
50class vtkWindow;
51class vtkViewport;
52class vtkTransform;
54class vtkTextProperty;
55class vtkTextMapper;
56class vtkTextActor;
57
58
59class VTKINTERACTIONWIDGETS_EXPORT vtkSliderRepresentation2D : public vtkSliderRepresentation
60{
61public:
66
68
72 void PrintSelf(ostream& os, vtkIndent indent);
74
84
94
96
100 virtual void SetTitleText(const char*);
101 virtual const char* GetTitleText();
103
105
109 vtkGetObjectMacro(SliderProperty,vtkProperty2D);
111
113
116 vtkGetObjectMacro(TubeProperty,vtkProperty2D);
117 vtkGetObjectMacro(CapProperty,vtkProperty2D);
119
121
125 vtkGetObjectMacro(SelectedProperty,vtkProperty2D);
127
129
132 vtkGetObjectMacro(LabelProperty,vtkTextProperty);
133 vtkGetObjectMacro(TitleProperty,vtkTextProperty);
135
137
142 virtual void PlaceWidget(double bounds[6]);
143 virtual void BuildRepresentation();
144 virtual void StartWidgetInteraction(double eventPos[2]);
145 virtual void WidgetInteraction(double newEventPos[2]);
146 virtual void Highlight(int);
148
150
158
159protected:
162
163 // Positioning the widget
166
167 // Determine the parameter t along the slider
168 virtual double ComputePickPosition(double eventPos[2]);
169
170 // Define the geometry. It is constructed in canaonical position
171 // along the x-axis and then rotated into position.
174
181
188
195
199
203
205
206 // internal variables used for computation
207 double X;
208
209private:
210 vtkSliderRepresentation2D(const vtkSliderRepresentation2D&) VTK_DELETE_FUNCTION;
211 void operator=(const vtkSliderRepresentation2D&) VTK_DELETE_FUNCTION;
212};
213
214#endif
a actor that draws 2D data
Definition: vtkActor2D.h:46
object to represent cell connectivity
Definition: vtkCellArray.h:51
perform coordinate transformation, and represent position, in a variety of vtk coordinate systems
Definition: vtkCoordinate.h:71
a simple class to control print indentation
Definition: vtkIndent.h:40
represent and manipulate 3D points
Definition: vtkPoints.h:40
draw vtkPolyData onto the image plane
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:86
a list of Props
represent surface properties of a 2D image
Definition: vtkProperty2D.h:41
provide the representation for a vtkSliderWidget with a 3D skin
virtual void ReleaseGraphicsResources(vtkWindow *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
virtual int RenderOverlay(vtkViewport *)
virtual const char * GetTitleText()
static vtkSliderRepresentation2D * New()
Instantiate the class.
vtkTransformPolyDataFilter * TubeXForm
vtkTransformPolyDataFilter * SliderXForm
vtkCoordinate * GetPoint1Coordinate()
Position the first end point of the slider.
vtkTransformPolyDataFilter * CapXForm
virtual void Highlight(int)
virtual void PlaceWidget(double bounds[6])
Methods to interface with the vtkSliderWidget.
virtual void BuildRepresentation()
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual double ComputePickPosition(double eventPos[2])
virtual void StartWidgetInteraction(double eventPos[2])
virtual void WidgetInteraction(double newEventPos[2])
virtual void SetTitleText(const char *)
Specify the label text for this widget.
vtkCoordinate * GetPoint2Coordinate()
Position the second end point of the slider.
virtual void GetActors2D(vtkPropCollection *)
Methods supporting the rendering process.
virtual int RenderOpaqueGeometry(vtkViewport *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
abstract class defines the representation for a vtkSliderWidget
An actor that displays text.
Definition: vtkTextActor.h:57
2D text annotation
Definition: vtkTextMapper.h:54
represent text properties.
transform points and associated normals and vectors for polygonal dataset
describes linear transformations via a 4x4 matrix
Definition: vtkTransform.h:61
abstract specification for Viewports
Definition: vtkViewport.h:48
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35