34 #include "vtkMatrix4x4.h" 37 #include <vtkPolyDataMapper.h> 38 #include <vtkSuperquadricSource.h> 39 #include <vtkRenderer.h> 51 mSource = vtkSuperquadricSourcePtr::New();
53 mMapper = vtkPolyDataMapperPtr::New();
56 mActor = vtkActorPtr::New();
120 if (directionAlongUp)
122 R = Transform3D::Identity();
137 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())