20 #include <vtkSmartPointer.h>
61 m_TemplateOdf->GetPoints()->GetPoint(i,p);
67 points->InsertPoint(i,p);
69 scalars->InsertTuple1(i, 1-val);
72 polyData->SetPoints(points);
73 vtkCellArray* polys = m_TemplateOdf->GetPolys();
74 polyData->SetPolys(polys);
75 polyData->GetPointData()->SetScalars(scalars);
89 mitkLut->SetVtkLookupTable( lut );
92 mitkLutProp->SetLookupTable(mitkLut);
93 m_Node->SetProperty(
"LookupTable", mitkLutProp );
111 const double camPos[3] = {normal[0],normal[1],normal[2]};
112 const double camUp[3] = {up[0],up[1],up[2]};
113 cam->SetPosition(camPos);
114 cam->SetViewUp(camUp);
115 cam->SetParallelProjection(1);
static BaseRenderer * GetInstance(vtkRenderWindow *renWin)
virtual void SetDataStorage(mitk::DataStorage *storage) override
set the datastorage that will be used for rendering
virtual vtkRenderWindow * GetVtkRenderWindow() override
static vtkPolyData * GetBaseMesh()
Represents an ODF for Q-Ball imaging.
MITK implementation of the QVTKWidget.
virtual mitk::VtkPropRenderer * GetRenderer()
virtual void SetMapperID(const MapperSlotId mapperId) override
Set the MapperSlotId to use.
vtkRenderer * GetVtkRenderer() const
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.