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);
58 void setScalarModeToUseCellData();
88 void setIsWireFrame(
bool val);
108 void setOrientationArray(
const char* orientationArray);
109 void setColorArray(
const char* colorArray);
110 void setLUT(
const char* lut);
111 void setScaleFactor(
double scaleFactor);
128 void setRadius(
double radius);
130 void setColor(QColor color);
152 void setColor(QColor color);
154 void setStipple(
int stipple);
172 void setColor(QColor color);
174 void setStipple(
int stipple);
192 void setColor(QColor color);
205 class cxResourceVisualization_EXPORT
Rect3D 210 void setColor(QColor color);
212 void setLine(
bool on,
int width);
213 void setSurface(
bool on);
223 typedef boost::shared_ptr<class Rect3D>
Rect3DPtr;
235 void setColor(QColor color);
236 void setText(QString text);
239 void setSize(
double val);
240 void setSizeInNormalizedViewport(
bool on,
double size);
265 void setColor(QColor color);
266 void setText(QString text);
269 void setSize(
double val);
275 void placeBelowCenter();
276 void placeAboveCenter();
277 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.