12 #ifndef CXGRAPHICALPRIMITIVES_H_ 13 #define CXGRAPHICALPRIMITIVES_H_ 15 #include "cxResourceVisualizationExport.h" 17 #include <boost/shared_ptr.hpp> 21 #include <vtkPolyDataAlgorithm.h> 22 #include <vtkGlyph3DMapper.h> 23 #include <vtkColorSeries.h> 24 #include <vtkLookupTable.h> 25 #include <vtkMapper.h> 45 void setBackfaceCulling(
bool val);
46 void setVisibility(
bool visible);
47 void setFrontfaceCulling(
bool val);
49 void setColor(
double red,
double green,
double blue);
54 void setOpacity(
double val);
55 void setUserMatrix(vtkMatrix4x4 *matrix);
56 void setPointSize(
int pointSize);
57 void setScalarVisibility(
bool show);
87 void setIsWireFrame(
bool val);
107 void setOrientationArray(
const char* orientationArray);
108 void setColorArray(
const char* colorArray);
109 void setLUT(
const char* lut);
110 void setScaleFactor(
double scaleFactor);
127 void setRadius(
double radius);
129 void setColor(QColor color);
151 void setColor(QColor color);
153 void setStipple(
int stipple);
171 void setColor(QColor color);
173 void setStipple(
int stipple);
191 void setColor(QColor color);
204 class cxResourceVisualization_EXPORT
Rect3D 209 void setColor(QColor color);
211 void setLine(
bool on,
int width);
212 void setSurface(
bool on);
222 typedef boost::shared_ptr<class Rect3D>
Rect3DPtr;
234 void setColor(QColor color);
235 void setText(QString text);
238 void setSize(
double val);
239 void setSizeInNormalizedViewport(
bool on,
double size);
264 void setColor(QColor color);
265 void setText(QString text);
268 void setSize(
double val);
274 void placeBelowCenter();
275 void placeAboveCenter();
276 void setVisibility(
bool visible);
vtkSmartPointer< class vtkTexture > vtkTexturePtr
vtkSmartPointer< class vtkActor > vtkActorPtr
boost::shared_ptr< class GraphicalPoint3D > GraphicalPoint3DPtr
vtkSmartPointer< class vtkPolyDataAlgorithm > vtkPolyDataAlgorithmPtr
PlainObject normal() const
vtkSmartPointer< class vtkPolyDataMapper > vtkPolyDataMapperPtr
boost::shared_ptr< class ViewportListener > ViewportListenerPtr
vtkSmartPointer< class vtkProperty > vtkPropertyPtr
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
vtkSmartPointer< class vtkCellArray > vtkCellArrayPtr
boost::shared_ptr< GraphicalGlyph3DData > GraphicalGlyph3DDataPtr
Helper for rendering a line in 3D.
vtkSmartPointer< vtkPoints > vtkPointsPtr
boost::shared_ptr< GraphicalArc3D > GraphicalArc3DPtr
vtkSmartPointer< class vtkLineSource > vtkLineSourcePtr
Helper for rendering a point in 3D.
Helper for rendering an arrow in 3D.
vtkSmartPointer< class vtkRenderer > vtkRendererPtr
vtkSmartPointer< class vtkFollower > vtkFollowerPtr
Helper for rendering a a polydata in 3D.
vtkSmartPointer< class vtkMapper > vtkMapperPtr
Helper for rendering a line in 3D.
vtkSmartPointer< class vtkCaptionActor2D > vtkCaptionActor2DPtr
Helper for rendering 3D text that faces the camera and has a constant viewed size, always on top.
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.
Helper for rendering 3D text that faces the camera and has a constant viewed size.
vtkSmartPointer< vtkPolyData > vtkPolyDataPtr
vtkSmartPointer< class vtkVectorText > vtkVectorTextPtr
Eigen::Vector3d Vector3D
Vector3D is a representation of a point or vector in 3D.
vtkSmartPointer< class vtkGlyph3DMapper > vtkGlyph3DMapperPtr
boost::shared_ptr< FollowerText3D > FollowerText3DPtr
vtkSmartPointer< class vtkArcSource > vtkArcSourcePtr
vtkSmartPointer< class vtkPolyDataAlgorithm > vtkPolyDataAlgorithmPtr
RealScalar length() const
boost::shared_ptr< GraphicalPolyData3D > GraphicalPolyData3DPtr
boost::shared_ptr< class GraphicalLine3D > GraphicalLine3DPtr
vtkSmartPointer< class vtkArrowSource > vtkArrowSourcePtr
Helper for rendering a a glyph in 3D.
boost::shared_ptr< CaptionText3D > CaptionText3DPtr
vtkPolyDataAlgorithmPtr mSource
boost::shared_ptr< class Rect3D > Rect3DPtr
boost::shared_ptr< GraphicalArrow3D > GraphicalArrow3DPtr
Helper for drawing a rectangle in 3D.
Namespace for all CustusX production code.