13 #include "vtkMatrix4x4.h" 16 #include <vtkPolyDataMapper.h> 17 #include <vtkSuperquadricSource.h> 18 #include <vtkRenderer.h> 30 mSource = vtkSuperquadricSourcePtr::New();
32 mMapper = vtkPolyDataMapperPtr::New();
35 mActor = vtkActorPtr::New();
101 R = Transform3D::Identity();
116 mActor->SetUserMatrix(M.getVtkMatrix());
vtkPolyDataPtr getPolyData() const
vtkSmartPointer< class vtkActor > vtkActorPtr
virtual ~GraphicalObjectWithDirection()
vtkSmartPointer< class vtkPolyDataMapper > vtkPolyDataMapperPtr
Transform3D createTransformScale(const Vector3D &scale_)
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
vtkPolyDataMapperPtr getMapper() const
void setDirection(Vector3D direction)
Vector3D cross(const Vector3D &a, const Vector3D &b)
compute cross product of a and b.
Transform3D createTransformIJC(const Vector3D &ivec, const Vector3D &jvec, const Vector3D ¢er)
vtkSuperquadricSourcePtr mSource
vtkSmartPointer< class vtkRenderer > vtkRendererPtr
vtkPolyDataMapperPtr mMapper
Transform3D createTransformTranslate(const Vector3D &translation)
double dot(const Vector3D &a, const Vector3D &b)
compute inner product (or dot product) of a and b.
void setVectorUp(const Vector3D &up)
vtkSmartPointer< vtkPolyData > vtkPolyDataPtr
vtkActorPtr getActor() const
Eigen::Vector3d Vector3D
Vector3D is a representation of a point or vector in 3D.
bool similar(const CameraInfo &lhs, const CameraInfo &rhs, double tol)
void setPosition(Vector3D point)
void setScale(Vector3D scale)
GraphicalObjectWithDirection(vtkRendererPtr renderer=vtkRendererPtr())
Namespace for all CustusX production code.
void setRenderer(vtkRendererPtr renderer=vtkRendererPtr())