34 #ifndef CXVTKHELPERCLASSES_H_
35 #define CXVTKHELPERCLASSES_H_
37 #include "cxResourceVisualizationExport.h"
62 class cxResourceVisualization_EXPORT
RGBColor :
public boost::array<double,3>
66 RGBColor(
double r,
double g,
double b);
67 explicit RGBColor(
const double* rgb);
71 RGBColor& operator=(
const QColor& c);
84 void setRadius (
int radius );
87 void update(
const Vector3D& point );
107 void setResolution(
int res);
111 void setPattern(
int stipplePattern);
112 void setWidth(
float width);
128 TextDisplay(
const QString& text,
const QColor& color,
int fontsize);
131 void setPosition(
float x,
float y);
132 void setPosition(
const Vector3D& pos );
134 void updateText(
const QString& text );
135 void setColor(QColor color);
136 vtkTextProperty* textProperty();
138 void setMaxWidth(
int width, vtkViewport *vp );
140 int getWidth( vtkViewport *vp );
143 static void forceUseVtkTextMapper();
152 static void verifyVtkTextMapper();
166 void setValue(
const Vector3D& focalPoint,
int width,
int height,
double bordarOffset,
const RGBColor& color);
169 void updateRegCross(
const Vector3D& crossPos );
186 class cxResourceVisualization_EXPORT
Axes3D
194 void setCaption(vtkCaptionActor2D* captionActor,
const QString& caption,
RGBColor color);
199 typedef boost::shared_ptr<Axes3D>
Axes3DPtr;
206 #endif // CXVTKHELPERCLASSES_H_
Vector3D getColorAsVector3D(QColor color)
vtkSmartPointer< class vtkAxesActor > vtkAxesActorPtr
boost::shared_ptr< class Axes3D > Axes3DPtr
boost::shared_ptr< class CrossHair2D > CrossHair2DPtr
vtkSmartPointer< class vtkProperty > vtkPropertyPtr
vtkSmartPointer< class vtkActor2D > vtkActor2DPtr
vtkSmartPointer< class vtkTextMapper > vtkTextMapperPtr
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
vtkSmartPointer< class vtkCursor2D > vtkCursor2DPtr
vtkSmartPointer< class vtkLineSource > vtkLineSourcePtr
Helper for drawing a point in 2D.
vtkSmartPointer< class vtkRenderer > vtkRendererPtr
Helper for drawing a line in 2D.
Helper for drawing a coordinate axis in 3D.
Helper for drawing text in 2D.
boost::shared_ptr< class TextDisplay > TextDisplayPtr
vtkSmartPointer< class vtkSphereSource > vtkSphereSourcePtr
Representation of a floating-point bounding box in 3D. The data are stored as {xmin,xmax,ymin,ymax,zmin,zmax}, in order to simplify communication with vtk.
Eigen::Vector3d Vector3D
Vector3D is a representation of a point or vector in 3D.
boost::shared_ptr< class OffsetPoint > OffsetPointPtr
vtkSmartPointer< class vtkProp3D > vtkProp3DPtr
void setColorAndOpacity(vtkPropertyPtr property, QColor color)
vtkTextMapperPtr getMapper()
Helper for drawing a crosshair in 2D.
vtkSmartPointer< class vtkPolyDataMapper2D > vtkPolyDataMapper2DPtr