23 #ifndef vtkMeasurementCubeHandleRepresentation3D_h 24 #define vtkMeasurementCubeHandleRepresentation3D_h 26 #include "vtkInteractionWidgetsModule.h" 96 void StartWidgetInteraction(
double eventPos[2]) VTK_OVERRIDE;
97 void WidgetInteraction(
double eventPos[2]) VTK_OVERRIDE;
98 int ComputeInteractionState(
int X,
int Y,
int modify=0) VTK_OVERRIDE;
105 void ShallowCopy(
vtkProp *prop) VTK_OVERRIDE;
106 void DeepCopy(
vtkProp *prop) VTK_OVERRIDE;
108 void ReleaseGraphicsResources(
vtkWindow *) VTK_OVERRIDE;
109 int RenderOpaqueGeometry(
vtkViewport *viewport) VTK_OVERRIDE;
110 int RenderTranslucentPolygonalGeometry(
vtkViewport *viewport) VTK_OVERRIDE;
111 int HasTranslucentPolygonalGeometry() VTK_OVERRIDE;
112 double *GetBounds() VTK_OVERRIDE;
121 vtkGetMacro( LabelVisibility,
int );
124 vtkGetMacro( SelectedLabelVisibility,
int );
127 virtual
void SetLabelTextInput( const
char * label );
128 virtual
char * GetLabelTextInput();
143 vtkGetMacro( HandleVisibility,
int );
151 void Highlight(
int highlight) VTK_OVERRIDE;
166 vtkGetMacro( SmoothMotion,
int );
174 void SetSideLength(
double);
175 vtkGetMacro( SideLength,
double );
183 vtkGetMacro( AdaptiveScaling,
int );
193 vtkGetMacro( RescaleFactor,
double );
204 void SetMinRelativeCubeScreenArea(
double);
205 vtkGetMacro( MinRelativeCubeScreenArea,
double );
206 void SetMaxRelativeCubeScreenArea(
double);
207 vtkGetMacro( MaxRelativeCubeScreenArea,
double );
214 vtkSetStringMacro(LengthUnit);
228 double LastPickPosition[3];
229 double LastEventPosition[2];
232 int WaitingForMotion;
234 int HandleVisibility;
237 double RescaleFactor;
238 double MinRelativeCubeScreenArea;
239 double MaxRelativeCubeScreenArea;
244 void RegisterPickers() VTK_OVERRIDE;
247 virtual
void Translate(
double *p1,
double *p2);
248 virtual
void Scale(
double *p1,
double *p2,
double eventPos[2]);
249 virtual
void MoveFocus(
double *p1,
double *p2);
251 void CreateDefaultProperties();
271 void MoveFocusRequest(
double *p1,
double *p2,
272 double eventPos[2],
double requestedDisplayPos[3] );
279 virtual
void SetUniformScale(
double scale );
290 virtual
void UpdateHandle();
295 virtual
void UpdateLabel();
299 int SelectedLabelVisibility;
301 bool LabelAnnotationTextScaleInitialized;
abstract superclass for all actors, volumes and annotations
virtual void SetWorldPosition(double pos[3])
Handles usually have their coordinates set in display coordinates (generally by an associated widget)...
represents an object (geometry & properties) in a rendered scene
represent and manipulate 4x4 transformation matrices
abstract class for representing widget handles
abstract specification for Viewports
represent surface properties of a geometric object
Renders pixel-aligned text, facing the camera, anchored at a 3D point.
concrete dataset represents vertices, lines, polygons, and triangle strips
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instances of this class.
window superclass for vtkRenderWindow
a simple class to control print indentation
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
represent a unit cube for measuring/comparing to data.
map vtkPolyData to graphics primitives
a subclass of actor that always faces the camera
ray-cast cell picker for all kinds of Prop3Ds
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
virtual void SetDisplayPosition(double pos[3])
Handles usually have their coordinates set in display coordinates (generally by an associated widget)...