41 #ifndef __vtkWidgetRepresentation_h
42 #define __vtkWidgetRepresentation_h
44 #include "vtkInteractionWidgetsModule.h"
46 #include "vtkWeakPointer.h"
48 class vtkAbstractPropPicker;
49 class vtkPickingManager;
59 void PrintSelf(ostream& os, vtkIndent indent);
65 vtkBooleanMacro(PickingManaged,
bool);
66 vtkSetMacro(PickingManaged,
bool);
67 vtkGetMacro(PickingManaged,
bool);
79 virtual void SetRenderer(vtkRenderer *ren);
80 virtual vtkRenderer* GetRenderer();
81 virtual void BuildRepresentation() = 0;
115 virtual int ComputeInteractionState(
int X,
int Y,
int modify=0);
117 {
return this->InteractionState;}
128 vtkSetClampMacro(PlaceFactor,
double,0.01,VTK_DOUBLE_MAX);
129 vtkGetMacro(PlaceFactor,
double);
141 vtkSetClampMacro(HandleSize,
double,0.001,1000);
142 vtkGetMacro(HandleSize,
double);
148 vtkGetMacro( NeedToRender,
int );
149 vtkSetClampMacro( NeedToRender,
int, 0, 1 );
150 vtkBooleanMacro( NeedToRender,
int );
162 virtual void ShallowCopy(vtkProp *prop);
186 double StartEventPosition[3];
191 void AdjustBounds(
double bounds[6],
double newBounds[6],
double center[3]);
192 double InitialBounds[6];
209 virtual void RegisterPickers();
212 virtual void UnRegisterPickers();
216 virtual void PickersModified();
220 vtkPickingManager* GetPickingManager();
226 vtkAssemblyPath* GetAssemblyPath(
double X,
double Y,
double Z,
227 vtkAbstractPropPicker* picker);
235 double SizeHandlesRelativeToViewport(
double factor,
double pos[3]);
236 double SizeHandlesInPixels(
double factor,
double pos[3]);