40 #ifndef vtkLineRepresentation_h
41 #define vtkLineRepresentation_h
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();
114 vtkGetObjectMacro(SelectedEndPointProperty,
vtkProperty);
121 vtkGetObjectMacro(SelectedEndPoint2Property,
vtkProperty);
128 vtkGetObjectMacro(SelectedLineProperty,
vtkProperty);
135 vtkSetClampMacro(Tolerance,
int,1,100);
136 vtkGetMacro(Tolerance,
int);
143 void SetResolution(
int res);
185 vtkSetClampMacro(InteractionState,
int,Outside,Scaling);
191 virtual void SetRepresentationState(
int);
192 vtkGetMacro(RepresentationState,
int);
204 vtkSetMacro( DistanceAnnotationVisibility,
int );
205 vtkGetMacro( DistanceAnnotationVisibility,
int );
206 vtkBooleanMacro( DistanceAnnotationVisibility,
int );
213 vtkSetStringMacro(DistanceAnnotationFormat);
214 vtkGetStringMacro(DistanceAnnotationFormat);
225 this->SetDistanceAnnotationScale(scale);
227 virtual void SetDistanceAnnotationScale(
double scale[3] );
228 virtual double * GetDistanceAnnotationScale();
232 double GetDistance();
237 void SetLineColor(
double r,
double g,
double b);
240 virtual vtkProperty *GetDistanceAnnotationProperty();
278 void CreateDefaultProperties();
285 void ClampPosition(
double x[3]);
286 void HighlightPoint(
int ptId,
int highlight);
287 void HighlightLine(
int highlight);
288 int InBounds(
double x[3]);
294 double StartLineHandle[3];
296 double LastEventPosition[3];
int DistanceAnnotationVisibility
represents an object (geometry & properties) in a rendered scene
represent the position of a point in 3D space
abstract specification for Viewports
represent surface properties of a geometric object
vtkPointHandleRepresentation3D * Point2Representation
vtkPolyDataMapper ** HandleMapper
void SetDistanceAnnotationScale(double x, double y, double z)
vtkProperty * SelectedEndPoint2Property
vtkProperty * SelectedEndPointProperty
abstract specification for renderers
vtkProperty * LineProperty
concrete dataset represents vertices, lines, polygons, and triangle strips
vtkPolyDataMapper * TextMapper
vtkCellPicker * LinePicker
vtkPointHandleRepresentation3D * Point1Representation
window superclass for vtkRenderWindow
vtkPointHandleRepresentation3D * HandleRepresentation
create a polygonal sphere centered at the origin
Superclass for algorithms that produce only polydata as output.
vtkLineSource * LineSource
virtual unsigned long GetMTime()
vtkProperty * EndPointProperty
bool AnnotationTextScaleInitialized
a simple class to control print indentation
vtkVectorText * TextInput
vtkPolyDataMapper * LineMapper
int InitializedDisplayPosition
char * DistanceAnnotationFormat
create a line defined by two end points
map vtkPolyData to graphics primitives
a subclass of actor that always faces the camera
vtkSphereSource ** HandleGeometry
ray-cast cell picker for all kinds of Prop3Ds
vtkProperty * SelectedLineProperty
vtkProperty * EndPoint2Property
vtkPointHandleRepresentation3D * LineHandleRepresentation
implicit function for a bounding box
a class defining the representation for a vtkLineWidget2