57#ifndef vtkLineRepresentation_h
58#define vtkLineRepresentation_h
61#include "vtkInteractionWidgetsModule.h"
102 void GetPoint1DisplayPosition(
double pos[3]);
104 void SetPoint1WorldPosition(
double pos[3]);
105 void SetPoint1DisplayPosition(
double pos[3]);
106 void GetPoint2DisplayPosition(
double pos[3]);
108 void GetPoint2WorldPosition(
double pos[3]);
110 void SetPoint2WorldPosition(
double pos[3]);
111 void SetPoint2DisplayPosition(
double pos[3]);
126 void InstantiateHandleRepresentation();
171 vtkSetClampMacro(Tolerance,
int, 1, 100);
172 vtkGetMacro(Tolerance,
int);
181 void SetResolution(
int res);
199 void PlaceWidget(
double bounds[6]) override;
200 void BuildRepresentation() override;
201 int ComputeInteractionState(
int X,
int Y,
int modify = 0) override;
202 void StartWidgetInteraction(
double e[2]) override;
203 void WidgetInteraction(
double e[2]) override;
240 vtkSetClampMacro(InteractionState,
int, Outside, Scaling);
249 vtkGetMacro(RepresentationState,
int);
258 vtkGetMacro(DirectionalLine,
bool);
259 vtkBooleanMacro(DirectionalLine,
bool);
288 vtkSetStringMacro(DistanceAnnotationFormat);
289 vtkGetStringMacro(DistanceAnnotationFormat);
302 this->SetDistanceAnnotationScale(scale);
311 double GetDistance();
317 void SetLineColor(
double r,
double g,
double b);
344 void SetRestrictFlag(
int restrict_flag);
357 int RepresentationState;
358 bool DirectionalLine;
378 void CreateDefaultProperties();
385 void ClampPosition(
double x[3]);
386 void HighlightPoint(
int ptId,
int highlight);
387 void HighlightLine(
int highlight);
388 int InBounds(
double x[3]);
394 double StartLineHandle[3];
396 double LastEventPosition[3];
405 int InitializedDisplayPosition;
409 char* DistanceAnnotationFormat;
415 bool AnnotationTextScaleInitialized;
represents an object (geometry & properties) in a rendered scene
implicit function for a bounding box
ray-cast cell picker for all kinds of Prop3Ds
a subclass of actor that always faces the camera
a simple class to control print indentation
a class defining the representation for a vtkLineWidget2
void SetDirectionalLine(bool val)
Sets the representation to be a directional line with point 1 represented as a cone.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for the class.
static vtkLineRepresentation * New()
Instantiate the class.
virtual void SetDistanceAnnotationScale(double scale[3])
Scale text (font size along each dimension).
void SetDistanceAnnotationScale(double x, double y, double z)
Scale text (font size along each dimension).
virtual void SetRepresentationState(int)
Sets the visual appearance of the representation based on the state it is in.
double * GetPoint1WorldPosition()
Methods to Set/Get the coordinates of the two points defining this representation.
void SetRenderer(vtkRenderer *ren) override
Overridden to set the rendererer on the internal representations.
virtual double * GetDistanceAnnotationScale()
Scale text (font size along each dimension).
void GetPoint1WorldPosition(double pos[3])
Methods to Set/Get the coordinates of the two points defining this representation.
vtkMTimeType GetMTime() override
Overload the superclasses' GetMTime() because internal classes are used to keep the state of the repr...
create a line defined by two end points
represent the position of a point in 3D space
Superclass for algorithms that produce only polydata as output.
map vtkPolyData to graphics primitives
concrete dataset represents vertices, lines, polygons, and triangle strips
represent surface properties of a geometric object
abstract specification for renderers
abstract specification for Viewports
window superclass for vtkRenderWindow
#define VTK_DEPRECATED_IN_9_0_0(reason)
vtkTypeUInt32 vtkMTimeType
#define VTK_SIZEHINT(...)