38 #ifndef vtkLineRepresentation_h
39 #define vtkLineRepresentation_h
41 #include "vtkInteractionWidgetsModule.h"
80 void GetPoint1WorldPosition(
double pos[3]);
81 double* GetPoint1WorldPosition();
82 void GetPoint1DisplayPosition(
double pos[3]);
83 double* GetPoint1DisplayPosition();
84 void SetPoint1WorldPosition(
double pos[3]);
85 void SetPoint1DisplayPosition(
double pos[3]);
86 void GetPoint2DisplayPosition(
double pos[3]);
87 double* GetPoint2DisplayPosition();
88 void GetPoint2WorldPosition(
double pos[3]);
89 double* GetPoint2WorldPosition();
90 void SetPoint2WorldPosition(
double pos[3]);
91 void SetPoint2DisplayPosition(
double pos[3]);
106 void InstantiateHandleRepresentation();
124 vtkGetObjectMacro(SelectedEndPointProperty,
vtkProperty);
133 vtkGetObjectMacro(SelectedEndPoint2Property,
vtkProperty);
142 vtkGetObjectMacro(SelectedLineProperty,
vtkProperty);
151 vtkSetClampMacro(Tolerance,
int,1,100);
152 vtkGetMacro(Tolerance,
int);
161 void SetResolution(
int res);
181 int ComputeInteractionState(
int X,
int Y,
int modify=0) VTK_OVERRIDE;
182 void StartWidgetInteraction(
double e[2]) VTK_OVERRIDE;
183 void WidgetInteraction(
double e[2]) VTK_OVERRIDE;
184 double *GetBounds() VTK_OVERRIDE;
192 void ReleaseGraphicsResources(
vtkWindow*) VTK_OVERRIDE;
193 int RenderOpaqueGeometry(
vtkViewport*) VTK_OVERRIDE;
194 int RenderTranslucentPolygonalGeometry(
vtkViewport*) VTK_OVERRIDE;
195 int HasTranslucentPolygonalGeometry() VTK_OVERRIDE;
211 vtkSetClampMacro(InteractionState,
int,Outside,Scaling);
219 virtual void SetRepresentationState(
int);
220 vtkGetMacro(RepresentationState,
int);
228 void SetDirectionalLine(
bool val);
229 vtkGetMacro(DirectionalLine,
bool);
249 vtkGetMacro( DistanceAnnotationVisibility,
int );
259 vtkSetStringMacro(DistanceAnnotationFormat);
267 void SetDistanceAnnotationScale(
double x,
double y,
double z)
273 this->SetDistanceAnnotationScale(scale);
275 virtual void SetDistanceAnnotationScale(
double scale[3] );
276 virtual double * GetDistanceAnnotationScale();
282 double GetDistance();
289 void SetLineColor(
double r,
double g,
double b);
294 virtual vtkProperty *GetDistanceAnnotationProperty();
303 enum { RestrictNone = 0, RestrictToX, RestrictToY, RestrictToZ };
309 vtkSetClampMacro(RestrictFlag,
int, RestrictNone, RestrictToZ);
322 int RepresentationState;
323 bool DirectionalLine;
343 void CreateDefaultProperties();
350 void ClampPosition(
double x[3]);
351 void HighlightPoint(
int ptId,
int highlight);
352 void HighlightLine(
int highlight);
353 int InBounds(
double x[3]);
359 double StartLineHandle[3];
361 double LastEventPosition[3];
370 int InitializedDisplayPosition;
373 int DistanceAnnotationVisibility;
374 char *DistanceAnnotationFormat;
380 bool AnnotationTextScaleInitialized;
represents an object (geometry & properties) in a rendered scene
represent the position of a point in 3D space
vtkTypeUInt32 vtkMTimeType
abstract specification for Viewports
represent surface properties of a geometric object
abstract specification for renderers
concrete dataset represents vertices, lines, polygons, and triangle strips
window superclass for vtkRenderWindow
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
virtual vtkMTimeType GetMTime()
Return this object's modified time.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
create a line defined by two end points
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...
implicit function for a bounding box
a class defining the representation for a vtkLineWidget2