 |
VTK
9.0.1
|
Go to the documentation of this file.
76 #ifndef vtkLineWidget_h
77 #define vtkLineWidget_h
80 #include "vtkInteractionWidgetsModule.h"
115 double xmin,
double xmax,
double ymin,
double ymax,
double zmin,
double zmax)
override
117 this->Superclass::PlaceWidget(xmin, xmax, ymin, ymax, zmin, zmax);
130 void SetPoint1(
double x,
double y,
double z);
133 void GetPoint1(
double xyz[3]) { this->LineSource->GetPoint1(xyz); }
138 void SetPoint2(
double x,
double y,
double z);
141 void GetPoint2(
double xyz[3]) { this->LineSource->GetPoint2(xyz); }
150 vtkSetClampMacro(Align,
int, XAxis, None);
151 vtkGetMacro(Align,
int);
186 vtkGetObjectMacro(SelectedHandleProperty,
vtkProperty);
195 vtkGetObjectMacro(SelectedLineProperty,
vtkProperty);
203 friend class vtkPWCallback;
217 vtkObject*
object,
unsigned long event,
void* clientdata,
void* calldata);
220 void OnLeftButtonDown();
221 void OnLeftButtonUp();
222 void OnMiddleButtonDown();
223 void OnMiddleButtonUp();
224 void OnRightButtonDown();
225 void OnRightButtonUp();
226 virtual void OnMouseMove();
243 void HighlightLine(
int highlight);
250 void BuildRepresentation();
252 void HandlesOn(
double length);
254 int HighlightHandle(
vtkProp* prop);
255 void HighlightHandles(
int highlight);
261 double LastPosition[3];
262 void SetLinePosition(
double x[3]);
268 void Scale(
double* p1,
double* p2,
int X,
int Y);
272 void ClampPosition(
double x[3]);
273 int InBounds(
double x[3]);
281 void CreateDefaultProperties();
293 void EnablePointWidget();
294 void DisablePointWidget();
295 int ForwardEvent(
unsigned long event);
map vtkPolyData to graphics primitives
represent and manipulate 3D points
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
abstract base class for most VTK objects
#define VTK_SIZEHINT(...)
create a polygonal sphere centered at the origin
static void ProcessEvents(vtkObject *object, unsigned long event, void *clientdata, void *calldata)
Handles the char widget activation event.
represents an object (geometry & properties) in a rendered scene
virtual void SetEnabled(int)
Methods for turning the interactor observer on and off, and determining its state.
a simple class to control print indentation
create a line defined by two end points
virtual void RegisterPickers()
Register internal Pickers in the Picking Manager.
abstract superclass for all actors, volumes and annotations
concrete dataset represents vertices, lines, polygons, and triangle strips
represent surface properties of a geometric object
ray-cast cell picker for all kinds of Prop3Ds