26 #ifndef vtkMeasurementCubeHandleRepresentation3D_h 27 #define vtkMeasurementCubeHandleRepresentation3D_h 29 #include "vtkInteractionWidgetsModule.h" 99 void StartWidgetInteraction(
double eventPos[2]) VTK_OVERRIDE;
100 void WidgetInteraction(
double eventPos[2]) VTK_OVERRIDE;
101 int ComputeInteractionState(
int X,
int Y,
int modify=0) VTK_OVERRIDE;
108 void ShallowCopy(
vtkProp *prop) VTK_OVERRIDE;
109 void DeepCopy(
vtkProp *prop) VTK_OVERRIDE;
111 void ReleaseGraphicsResources(
vtkWindow *) VTK_OVERRIDE;
112 int RenderOpaqueGeometry(
vtkViewport *viewport) VTK_OVERRIDE;
113 int RenderTranslucentPolygonalGeometry(
vtkViewport *viewport) VTK_OVERRIDE;
114 int HasTranslucentPolygonalGeometry() VTK_OVERRIDE;
115 double *GetBounds() VTK_OVERRIDE;
124 vtkGetMacro( LabelVisibility,
int );
127 vtkGetMacro( SelectedLabelVisibility,
int );
130 virtual
void SetLabelTextInput( const
char * label );
131 virtual
char * GetLabelTextInput();
146 vtkGetMacro( HandleVisibility,
int );
154 void Highlight(
int highlight) VTK_OVERRIDE;
169 vtkGetMacro( SmoothMotion,
int );
177 void SetSideLength(
double);
178 vtkGetMacro( SideLength,
double );
186 vtkGetMacro( AdaptiveScaling,
int );
196 vtkGetMacro( RescaleFactor,
double );
207 void SetMinRelativeCubeScreenArea(
double);
208 vtkGetMacro( MinRelativeCubeScreenArea,
double );
209 void SetMaxRelativeCubeScreenArea(
double);
210 vtkGetMacro( MaxRelativeCubeScreenArea,
double );
217 vtkSetStringMacro(LengthUnit);
223 ~vtkMeasurementCubeHandleRepresentation3D() VTK_OVERRIDE;
231 double LastPickPosition[3];
232 double LastEventPosition[2];
235 int WaitingForMotion;
237 int HandleVisibility;
240 double RescaleFactor;
241 double MinRelativeCubeScreenArea;
242 double MaxRelativeCubeScreenArea;
247 void RegisterPickers() VTK_OVERRIDE;
250 virtual
void Translate(
double *p1,
double *p2);
251 virtual
void Scale(
double *p1,
double *p2,
double eventPos[2]);
252 virtual
void MoveFocus(
double *p1,
double *p2);
254 void CreateDefaultProperties();
274 void MoveFocusRequest(
double *p1,
double *p2,
275 double eventPos[2],
double requestedDisplayPos[3] );
282 virtual
void SetUniformScale(
double scale );
293 virtual
void UpdateHandle();
298 virtual
void UpdateLabel();
302 int SelectedLabelVisibility;
303 vtkBillboardTextActor3D *LabelText;
304 bool LabelAnnotationTextScaleInitialized;
308 vtkMeasurementCubeHandleRepresentation3D(
309 const vtkMeasurementCubeHandleRepresentation3D&) VTK_DELETE_FUNCTION;
311 const vtkMeasurementCubeHandleRepresentation3D&) VTK_DELETE_FUNCTION;
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)...