Go to the documentation of this file.
41 #ifndef vtkLineRepresentation_h
42 #define vtkLineRepresentation_h
44 #include "vtkInteractionWidgetsModule.h"
154 vtkSetClampMacro(Tolerance,
int,1,100);
155 vtkGetMacro(Tolerance,
int);
214 vtkSetClampMacro(InteractionState,
int,Outside,Scaling);
223 vtkGetMacro(RepresentationState,
int);
232 vtkGetMacro(DirectionalLine,
bool);
252 vtkGetMacro( DistanceAnnotationVisibility,
int );
262 vtkSetStringMacro(DistanceAnnotationFormat);
276 this->SetDistanceAnnotationScale(
scale);
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
void SetPoint2DisplayPosition(double pos[3])
vtkPolyDataMapper ** HandleMapper
vtkProperty * EndPoint2Property
a subclass of actor that always faces the camera
virtual double * GetDistanceAnnotationScale()
virtual int HasTranslucentPolygonalGeometry()
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
void SetHandleRepresentation(vtkPointHandleRepresentation3D *handle)
This method is used to specify the type of handle representation to use for the three internal vtkHan...
void SetDistanceAnnotationScale(double x, double y, double z)
Scale text (font size along each dimension).
vtkPointHandleRepresentation3D * LineHandleRepresentation
void HighlightLine(int highlight)
virtual vtkMTimeType GetMTime()
Overload the superclasses' GetMTime() because internal classes are used to keep the state of the repr...
virtual void ReleaseGraphicsResources(vtkWindow *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
represent the position of a point in 3D space
virtual void BuildRepresentation()
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
virtual void PlaceWidget(double bounds[6])
These are methods that satisfy vtkWidgetRepresentation's API.
void SetResolution(int res)
Set/Get the resolution (number of subdivisions) of the line.
virtual void SetRepresentationState(int)
Sets the visual appearance of the representation based on the state it is in.
void InstantiateHandleRepresentation()
void CreateDefaultProperties()
bool AnnotationTextScaleInitialized
virtual vtkProperty * GetDistanceAnnotationProperty()
Get the distance annotation property.
virtual void SetRenderer(vtkRenderer *ren)
Overridden to set the rendererer on the internal representations.
virtual void GetActors(vtkPropCollection *pc)
Methods supporting the rendering process.
double * GetPoint1WorldPosition()
virtual double * GetBounds()
Methods to make this class behave as a vtkProp.
double * GetPoint1DisplayPosition()
void SetLineColor(double r, double g, double b)
Convenience method to set the line color.
vtkVectorText * TextInput
int DistanceAnnotationVisibility
window superclass for vtkRenderWindow
double * GetPoint2DisplayPosition()
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkTypeUInt64 vtkMTimeType
virtual int RenderOpaqueGeometry(vtkViewport *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
vtkProperty * SelectedLineProperty
char * DistanceAnnotationFormat
virtual void WidgetInteraction(double e[2])
double * GetPoint2WorldPosition()
double GetDistance()
Get the distance between the points.
void GetPoint2DisplayPosition(double pos[3])
vtkProperty * LineProperty
vtkCellPicker * LinePicker
vtkProperty * EndPointProperty
represents an object (geometry & properties) in a rendered scene
a simple class to control print indentation
void GetPolyData(vtkPolyData *pd)
Retrieve the polydata (including points) that defines the line.
vtkPointHandleRepresentation3D * Point1Representation
void GetPoint2WorldPosition(double pos[3])
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
create a line defined by two end points
void HighlightPoint(int ptId, int highlight)
abstract specification for Viewports
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
virtual void StartWidgetInteraction(double e[2])
vtkPolyDataMapper * TextMapper
implicit function for a bounding box
void SetPoint1WorldPosition(double pos[3])
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
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.
virtual int ComputeInteractionState(int X, int Y, int modify=0)
void SetPoint1DisplayPosition(double pos[3])
int InBounds(double x[3])
vtkProperty * SelectedEndPoint2Property
void SetPoint2WorldPosition(double pos[3])
ray-cast cell picker for all kinds of Prop3Ds
vtkProperty * SelectedEndPointProperty
a class defining the representation for a vtkLineWidget2
void GetPoint1DisplayPosition(double pos[3])
int InitializedDisplayPosition
vtkPolyDataMapper * LineMapper
Superclass for algorithms that produce only polydata as output.