Go to the documentation of this file.
41 #ifndef vtkLineRepresentation_h
42 #define vtkLineRepresentation_h
44 #include "vtkInteractionWidgetsModule.h"
85 void GetPoint1DisplayPosition(
double pos[3]);
87 void SetPoint1WorldPosition(
double pos[3]);
88 void SetPoint1DisplayPosition(
double pos[3]);
89 void GetPoint2DisplayPosition(
double pos[3]);
91 void GetPoint2WorldPosition(
double pos[3]);
93 void SetPoint2WorldPosition(
double pos[3]);
94 void SetPoint2DisplayPosition(
double pos[3]);
109 void InstantiateHandleRepresentation();
154 vtkSetClampMacro(Tolerance,
int,1,100);
155 vtkGetMacro(Tolerance,
int);
164 void SetResolution(
int res);
182 void PlaceWidget(
double bounds[6]) override;
183 void BuildRepresentation() override;
184 int ComputeInteractionState(
int X,
int Y,
int modify=0) override;
185 void StartWidgetInteraction(
double e[2]) override;
186 void WidgetInteraction(
double e[2]) override;
214 vtkSetClampMacro(InteractionState,
int,Outside,Scaling);
223 vtkGetMacro(RepresentationState,
int);
232 vtkGetMacro(DirectionalLine,
bool);
233 vtkBooleanMacro(DirectionalLine,
bool);
262 vtkSetStringMacro(DistanceAnnotationFormat);
263 vtkGetStringMacro(DistanceAnnotationFormat);
276 this->SetDistanceAnnotationScale(
scale);
285 double GetDistance();
292 void SetLineColor(
double r,
double g,
double b);
306 enum { RestrictNone = 0, RestrictToX, RestrictToY, RestrictToZ };
312 vtkSetClampMacro(RestrictFlag,
int, RestrictNone, RestrictToZ);
362 double StartLineHandle[3];
364 double LastEventPosition[3];
map vtkPolyData to graphics primitives
vtkPointHandleRepresentation3D * HandleRepresentation
vtkPointHandleRepresentation3D * Point2Representation
vtkPolyDataMapper ** HandleMapper
vtkProperty * EndPoint2Property
a subclass of actor that always faces the camera
virtual double * GetDistanceAnnotationScale()
void SetDistanceAnnotationScale(double x, double y, double z)
Scale text (font size along each dimension).
vtkPointHandleRepresentation3D * LineHandleRepresentation
void HighlightLine(int highlight)
represent the position of a point in 3D space
vtkMTimeType GetMTime() override
Overload the superclasses' GetMTime() because internal classes are used to keep the state of the repr...
virtual void SetRepresentationState(int)
Sets the visual appearance of the representation based on the state it is in.
void CreateDefaultProperties()
bool AnnotationTextScaleInitialized
void SetRenderer(vtkRenderer *ren) override
Overridden to set the rendererer on the internal representations.
double * GetPoint1WorldPosition()
vtkVectorText * TextInput
window superclass for vtkRenderWindow
vtkProperty * SelectedLineProperty
char * DistanceAnnotationFormat
#define VTK_SIZEHINT(...)
vtkProperty * LineProperty
vtkCellPicker * LinePicker
vtkProperty * EndPointProperty
represents an object (geometry & properties) in a rendered scene
~vtkLineRepresentation() override
a simple class to control print indentation
vtkPointHandleRepresentation3D * Point1Representation
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
create a line defined by two end points
void HighlightPoint(int ptId, int highlight)
abstract specification for Viewports
vtkPolyDataMapper * TextMapper
implicit function for a bounding box
static vtkLineRepresentation * New()
Instantiate the class.
void ClampPosition(double x[3])
void SetDirectionalLine(bool val)
Sets the representation to be a directional line with point 1 represented as a cone.
abstract specification for renderers
virtual void SetDistanceAnnotationScale(double scale[3])
vtkPolyDataAlgorithm ** HandleGeometry
concrete dataset represents vertices, lines, polygons, and triangle strips
vtkLineSource * LineSource
vtkTypeBool DistanceAnnotationVisibility
represent surface properties of a geometric object
void GetPoint1WorldPosition(double pos[3])
Methods to Set/Get the coordinates of the two points defining this representation.
int InBounds(double x[3])
vtkProperty * SelectedEndPoint2Property
ray-cast cell picker for all kinds of Prop3Ds
vtkProperty * SelectedEndPointProperty
a class defining the representation for a vtkLineWidget2
vtkTypeUInt32 vtkMTimeType
int InitializedDisplayPosition
vtkPolyDataMapper * LineMapper
Superclass for algorithms that produce only polydata as output.