40 #ifndef __vtkLineRepresentation_h
41 #define __vtkLineRepresentation_h
43 #include "vtkInteractionWidgetsModule.h"
47 class vtkPolyDataMapper;
57 class vtkPolyDataMapper;
69 void PrintSelf(ostream& os, vtkIndent indent);
76 void GetPoint1WorldPosition(
double pos[3]);
77 double* GetPoint1WorldPosition();
78 void GetPoint1DisplayPosition(
double pos[3]);
79 double* GetPoint1DisplayPosition();
80 void SetPoint1WorldPosition(
double pos[3]);
81 void SetPoint1DisplayPosition(
double pos[3]);
82 void GetPoint2DisplayPosition(
double pos[3]);
83 double* GetPoint2DisplayPosition();
84 void GetPoint2WorldPosition(
double pos[3]);
85 double* GetPoint2WorldPosition();
86 void SetPoint2WorldPosition(
double pos[3]);
87 void SetPoint2DisplayPosition(
double pos[3]);
100 void InstantiateHandleRepresentation();
113 vtkGetObjectMacro(EndPointProperty,vtkProperty);
114 vtkGetObjectMacro(SelectedEndPointProperty,vtkProperty);
120 vtkGetObjectMacro(EndPoint2Property,vtkProperty);
121 vtkGetObjectMacro(SelectedEndPoint2Property,vtkProperty);
127 vtkGetObjectMacro(LineProperty,vtkProperty);
128 vtkGetObjectMacro(SelectedLineProperty,vtkProperty);
135 vtkSetClampMacro(Tolerance,
int,1,100);
136 vtkGetMacro(Tolerance,
int);
143 void SetResolution(
int res);
167 virtual void GetActors(vtkPropCollection *pc);
186 vtkSetClampMacro(InteractionState,
int,Outside,Scaling);
192 virtual void SetRepresentationState(
int);
193 vtkGetMacro(RepresentationState,
int);
198 virtual unsigned long GetMTime();
205 vtkSetMacro( DistanceAnnotationVisibility,
int );
206 vtkGetMacro( DistanceAnnotationVisibility,
int );
207 vtkBooleanMacro( DistanceAnnotationVisibility,
int );
214 vtkSetStringMacro(DistanceAnnotationFormat);
215 vtkGetStringMacro(DistanceAnnotationFormat);
226 this->SetDistanceAnnotationScale(scale);
228 virtual void SetDistanceAnnotationScale(
double scale[3] );
229 virtual double * GetDistanceAnnotationScale();
233 double GetDistance();
238 void SetLineColor(
double r,
double g,
double b);
241 virtual vtkProperty *GetDistanceAnnotationProperty();
245 vtkGetObjectMacro(TextActor, vtkFollower);
279 void CreateDefaultProperties();
286 void ClampPosition(
double x[3]);
287 void HighlightPoint(
int ptId,
int highlight);
288 void HighlightLine(
int highlight);
289 int InBounds(
double x[3]);
295 double StartLineHandle[3];
297 double LastEventPosition[3];
int DistanceAnnotationVisibility
represent the position of a point in 3D space
vtkPointHandleRepresentation3D * Point2Representation
vtkPolyDataMapper ** HandleMapper
void SetDistanceAnnotationScale(double x, double y, double z)
vtkProperty * SelectedEndPoint2Property
vtkProperty * SelectedEndPointProperty
vtkProperty * LineProperty
concrete dataset represents vertices, lines, polygons, and triangle strips
vtkPolyDataMapper * TextMapper
vtkCellPicker * LinePicker
vtkPointHandleRepresentation3D * Point1Representation
vtkPointHandleRepresentation3D * HandleRepresentation
create a polygonal sphere centered at the origin
Superclass for algorithms that produce only polydata as output.
vtkLineSource * LineSource
vtkProperty * EndPointProperty
bool AnnotationTextScaleInitialized
vtkVectorText * TextInput
vtkPolyDataMapper * LineMapper
int InitializedDisplayPosition
char * DistanceAnnotationFormat
create a line defined by two end points
vtkSphereSource ** HandleGeometry
vtkProperty * SelectedLineProperty
vtkProperty * EndPoint2Property
vtkPointHandleRepresentation3D * LineHandleRepresentation
implicit function for a bounding box
a class defining the representation for a vtkLineWidget2