VTK  9.2.20230205
vtkDataSetMapper.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkDataSetMapper.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
142 #ifndef vtkDataSetMapper_h
143 #define vtkDataSetMapper_h
144 
145 #include "vtkMapper.h"
146 #include "vtkRenderingCoreModule.h" // For export macro
147 
148 VTK_ABI_NAMESPACE_BEGIN
149 class vtkPolyDataMapper;
151 
152 class VTKRENDERINGCORE_EXPORT vtkDataSetMapper : public vtkMapper
153 {
154 public:
156  vtkTypeMacro(vtkDataSetMapper, vtkMapper);
157  void PrintSelf(ostream& os, vtkIndent indent) override;
158  void Render(vtkRenderer* ren, vtkActor* act) override;
159 
161 
164  vtkGetObjectMacro(PolyDataMapper, vtkPolyDataMapper);
166 
173 
177  vtkMTimeType GetMTime() override;
178 
180 
183  void SetInputData(vtkDataSet* input);
186 
187 protected:
189  ~vtkDataSetMapper() override;
190 
193 
195 
196  // see algorithm for more info
198 
199 private:
200  vtkDataSetMapper(const vtkDataSetMapper&) = delete;
201  void operator=(const vtkDataSetMapper&) = delete;
202 };
203 
204 VTK_ABI_NAMESPACE_END
205 #endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:162
map vtkDataSet and derived classes to graphics primitives
void ReportReferences(vtkGarbageCollector *) override
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this mapper.
~vtkDataSetMapper() override
static vtkDataSetMapper * New()
vtkDataSetSurfaceFilter * GeometryExtractor
void Render(vtkRenderer *ren, vtkActor *act) override
Method initiates the mapping process.
vtkPolyDataMapper * PolyDataMapper
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkDataSet * GetInput()
Set the Input of this mapper.
vtkMTimeType GetMTime() override
Get the mtime also considering the lookup table.
void SetInputData(vtkDataSet *input)
Set the Input of this mapper.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Extracts outer surface (as vtkPolyData) of any dataset.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:174
Detect and break reference loops.
a simple class to control print indentation
Definition: vtkIndent.h:120
Store vtkAlgorithm input/output information.
abstract class specifies interface to map data to graphics primitives
Definition: vtkMapper.h:178
map vtkPolyData to graphics primitives
abstract specification for renderers
Definition: vtkRenderer.h:183
window superclass for vtkRenderWindow
Definition: vtkWindow.h:40
@ info
Definition: vtkX3D.h:388
@ port
Definition: vtkX3D.h:459
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:282