|
NorMIT-nav
22.09
An IGT application
|
Go to the documentation of this file.
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());
void setScale(Vector3D scale)
Namespace for all CustusX production code.
vtkActorPtr getActor() const
Transform3D createTransformScale(const Vector3D &scale_)
void setPosition(Vector3D point)
vtkPolyDataPtr getPolyData() const
GraphicalObjectWithDirection(vtkRendererPtr renderer=vtkRendererPtr())
vtkPolyDataMapperPtr getMapper() const
Transform3D createTransformIJC(const Vector3D &ivec, const Vector3D &jvec, const Vector3D ¢er)
vtkSmartPointer< class vtkPolyDataMapper > vtkPolyDataMapperPtr
Vector3D cross(const Vector3D &a, const Vector3D &b)
compute cross product of a and b.
void setDirection(Vector3D direction)
vtkSuperquadricSourcePtr mSource
void setRenderer(vtkRendererPtr renderer=vtkRendererPtr())
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
vtkSmartPointer< vtkPolyData > vtkPolyDataPtr
vtkSmartPointer< class vtkActor > vtkActorPtr
virtual ~GraphicalObjectWithDirection()
Transform3D createTransformTranslate(const Vector3D &translation)
void setVectorUp(const Vector3D &up)
double dot(const Vector3D &a, const Vector3D &b)
compute inner product (or dot product) of a and b.
vtkPolyDataMapperPtr mMapper
bool similar(const CameraInfo &lhs, const CameraInfo &rhs, double tol)
Eigen::Vector3d Vector3D
Vector3D is a representation of a point or vector in 3D.
vtkSmartPointer< class vtkRenderer > vtkRendererPtr