NorMIT-nav  22.09
An IGT application
cx::LineSegment Class Reference

Helper for drawing a line in 2D. More...

#include <cxVtkHelperClasses.h>

Public Member Functions

 LineSegment (vtkRendererPtr renderer)
 
 ~LineSegment ()
 
void setPoints (Vector3D point1, Vector3D point2, RGBColor color, int stipplePattern=0xFFFF)
 
void setResolution (int res)
 
void updatePosition (Vector3D point1, Vector3D point2)
 
vtkActor2DPtr getActor ()
 
void setColor (RGBColor color)
 
void setPattern (int stipplePattern)
 
void setWidth (float width)
 

Detailed Description

Helper for drawing a line in 2D.

Definition at line 87 of file cxVtkHelperClasses.h.

Constructor & Destructor Documentation

◆ LineSegment()

cx::LineSegment::LineSegment ( vtkRendererPtr  renderer)

Definition at line 153 of file cxVtkHelperClasses.cpp.

◆ ~LineSegment()

cx::LineSegment::~LineSegment ( )

Definition at line 161 of file cxVtkHelperClasses.cpp.

Member Function Documentation

◆ getActor()

vtkActor2DPtr cx::LineSegment::getActor ( )

Definition at line 203 of file cxVtkHelperClasses.cpp.

◆ setColor()

void cx::LineSegment::setColor ( RGBColor  color)

Definition at line 193 of file cxVtkHelperClasses.cpp.

◆ setPattern()

void cx::LineSegment::setPattern ( int  stipplePattern)

Definition at line 198 of file cxVtkHelperClasses.cpp.

◆ setPoints()

void cx::LineSegment::setPoints ( Vector3D  point1,
Vector3D  point2,
RGBColor  color,
int  stipplePattern = 0xFFFF 
)

Definition at line 166 of file cxVtkHelperClasses.cpp.

◆ setResolution()

void cx::LineSegment::setResolution ( int  res)

Definition at line 177 of file cxVtkHelperClasses.cpp.

◆ setWidth()

void cx::LineSegment::setWidth ( float  width)

Definition at line 182 of file cxVtkHelperClasses.cpp.

◆ updatePosition()

void cx::LineSegment::updatePosition ( Vector3D  point1,
Vector3D  point2 
)

Definition at line 187 of file cxVtkHelperClasses.cpp.


The documentation for this class was generated from the following files: