48 #ifndef vtkLineRepresentation_h
49 #define vtkLineRepresentation_h
51 #include "vtkInteractionWidgetsModule.h"
55 VTK_ABI_NAMESPACE_BEGIN
95 void GetPoint1DisplayPosition(
double pos[3]);
97 void SetPoint1WorldPosition(
double pos[3]);
98 void SetPoint1DisplayPosition(
double pos[3]);
99 void GetPoint2DisplayPosition(
double pos[3]);
101 void GetPoint2WorldPosition(
double pos[3]);
103 void SetPoint2WorldPosition(
double pos[3]);
104 void SetPoint2DisplayPosition(
double pos[3]);
119 void InstantiateHandleRepresentation();
164 vtkSetClampMacro(Tolerance,
int, 1, 100);
165 vtkGetMacro(Tolerance,
int);
174 void SetResolution(
int res);
192 void PlaceWidget(
double bounds[6]) override;
193 void BuildRepresentation() override;
194 int ComputeInteractionState(
int X,
int Y,
int modify = 0) override;
195 void StartWidgetInteraction(
double e[2]) override;
196 void WidgetInteraction(
double e[2]) override;
233 vtkSetClampMacro(InteractionState,
int, Outside, Scaling);
242 vtkGetMacro(RepresentationState,
int);
251 vtkGetMacro(DirectionalLine,
bool);
252 vtkBooleanMacro(DirectionalLine,
bool);
281 vtkSetStringMacro(DistanceAnnotationFormat);
282 vtkGetStringMacro(DistanceAnnotationFormat);
295 this->SetDistanceAnnotationScale(
scale);
304 double GetDistance();
310 void SetLineColor(
double r,
double g,
double b);
316 void SetInteractionColor(
double,
double,
double);
390 double StartLineHandle[3];
392 double LastEventPosition[3];
420 VTK_ABI_NAMESPACE_END
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 CreateDefaultProperties()
vtkTypeBool DistanceAnnotationVisibility
vtkProperty * EndPoint2Property
double * GetPoint1WorldPosition()
Methods to Set/Get the coordinates of the two points defining this representation.
void SetInteractionColor(double c[3])
Set the widget color, and the color of interactive handles.
vtkPolyDataMapper * TextMapper
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for the class.
vtkProperty * LineProperty
static vtkLineRepresentation * New()
Instantiate the class.
virtual void SetDistanceAnnotationScale(double scale[3])
Scale text (font size along each dimension).
vtkLineSource * LineSource
void SetForegroundColor(double c[3])
Set the widget color, and the color of interactive handles.
void SetDistanceAnnotationScale(double x, double y, double z)
Scale text (font size along each dimension).
vtkProperty * SelectedEndPointProperty
vtkPointHandleRepresentation3D * Point1Representation
void ClampPosition(double x[3])
bool AnnotationTextScaleInitialized
vtkCellPicker * LinePicker
virtual vtkProperty * GetDistanceAnnotationProperty()
Get the distance annotation property.
virtual void SetRepresentationState(int)
Sets the visual appearance of the representation based on the state it is in.
char * DistanceAnnotationFormat
vtkPolyDataMapper * LineMapper
vtkPointHandleRepresentation3D * LineHandleRepresentation
void SetRenderer(vtkRenderer *ren) override
Overridden to set the rendererer on the internal representations.
vtkPolyDataAlgorithm ** HandleGeometry
void SetForegroundColor(double, double, double)
Set the widget color, and the color of interactive handles.
void HighlightLine(int highlight)
void HighlightPoint(int ptId, int highlight)
vtkPointHandleRepresentation3D * Point2Representation
virtual double * GetDistanceAnnotationScale()
Scale text (font size along each dimension).
vtkPointHandleRepresentation3D * HandleRepresentation
vtkVectorText * TextInput
vtkProperty * EndPointProperty
vtkPolyDataMapper ** HandleMapper
int InitializedDisplayPosition
vtkProperty * SelectedEndPoint2Property
~vtkLineRepresentation() override
vtkProperty * SelectedLineProperty
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...
int InBounds(double x[3])
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
void GetBounds(T a, double bds[6])
vtkTypeUInt32 vtkMTimeType
#define VTK_SIZEHINT(...)