18 #include "vtkExecutive.h"
19 #include "vtkGarbageCollector.h"
20 #include "vtkGeometryFilter.h"
21 #include "vtkInformation.h"
22 #include "vtkObjectFactory.h"
23 #include "vtkPolyData.h"
24 #include "vtkPolyDataMapper.h"
25 #include "vtkScalarsToColors.h"
26 #include "vtkUnstructuredGrid.h"
59 this->SetInputDataObject(input);
66 return vtkUnstructuredGrid::SafeDownCast(this->GetExecutive()->GetInputData(0, 0));
96 vtkErrorMacro(<<
"No input!\n");
102 if (this->LookupTable == 0)
104 this->CreateDefaultLookupTable();
106 this->LookupTable->Build();
114 pm->SetInputConnection(gf->GetOutputPort());
122 if (this->ClippingPlanes != this->
PolyDataMapper->GetClippingPlanes())
130 this->
m_BoundingObject->GetGeometry()->CalculateBoundingBoxRelativeToTransform(0)->GetBounds();
131 this->
GeometryExtractor->SetExtent(bounds[0], bounds[1], bounds[2], bounds[3], bounds[4], bounds[5]);
144 this->
PolyDataMapper->SetScalarVisibility(this->GetScalarVisibility());
145 this->
PolyDataMapper->SetUseLookupTableScalarRange(this->GetUseLookupTableScalarRange());
147 this->
PolyDataMapper->SetImmediateModeRendering(this->GetImmediateModeRendering());
149 this->
PolyDataMapper->SetInterpolateScalarsBeforeMapping(this->GetInterpolateScalarsBeforeMapping());
152 if (this->ScalarMode == VTK_SCALAR_MODE_USE_POINT_FIELD_DATA ||
153 this->ScalarMode == VTK_SCALAR_MODE_USE_CELL_FIELD_DATA)
155 if (this->ArrayAccessMode == VTK_GET_ARRAY_BY_ID)
157 this->
PolyDataMapper->ColorByArrayComponent(this->ArrayId, ArrayComponent);
161 this->
PolyDataMapper->ColorByArrayComponent(this->ArrayName, ArrayComponent);
172 this->Superclass::PrintSelf(os, indent);
176 os << indent <<
"Poly Mapper: (" << this->
PolyDataMapper <<
")\n";
180 os << indent <<
"Poly Mapper: (none)\n";
189 os << indent <<
"Geometry Extractor: (none)\n";
196 unsigned long mTime = this->vtkMapper::GetMTime();
199 if (this->LookupTable != NULL)
201 time = this->LookupTable->GetMTime();
202 mTime = (time > mTime ? time : mTime);
211 info->Set(vtkAlgorithm::INPUT_REQUIRED_DATA_TYPE(),
"vtkUnstructuredGrid");
218 this->Superclass::ReportReferences(collector);
221 vtkGarbageCollectorReport(collector, this->
GeometryExtractor,
"GeometryExtractor");
222 vtkGarbageCollectorReport(collector, this->
PolyDataMapper,
"PolyDataMapper");
vtkUnstructuredGridMapper()
mitk::BoundingObject::Pointer m_BoundingObject
void SetInput(vtkUnstructuredGrid *input)
~vtkUnstructuredGridMapper()
vtkStandardNewMacro(vtkUnstructuredGridMapper)
Organizes the rendering process.
void PrintSelf(ostream &os, vtkIndent indent) override
virtual void ReportReferences(vtkGarbageCollector *) override
static void info(const char *fmt,...)
void Render(vtkRenderer *ren, vtkActor *act) override
superclass of all bounding objects (cylinder, cuboid,...)
vtkGeometryFilter * GeometryExtractor
void ReleaseGraphicsResources(vtkWindow *) override
void SetBoundingObject(mitk::BoundingObject *bo)
vtkPolyDataMapper * PolyDataMapper
virtual int FillInputPortInformation(int port, vtkInformation *info) override
vtkRenderer * GetVtkRenderer() const
vtkUnstructuredGrid * GetInput()
unsigned long GetMTime() override
BoundingBoxType::BoundsArrayType BoundsArrayType
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.