VTK  9.2.6
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 =========================================================================*/
30 #ifndef vtkDataSetMapper_h
31 #define vtkDataSetMapper_h
32 
33 #include "vtkMapper.h"
34 #include "vtkRenderingCoreModule.h" // For export macro
35 
36 class vtkPolyDataMapper;
38 
39 class VTKRENDERINGCORE_EXPORT vtkDataSetMapper : public vtkMapper
40 {
41 public:
42  static vtkDataSetMapper* New();
43  vtkTypeMacro(vtkDataSetMapper, vtkMapper);
44  void PrintSelf(ostream& os, vtkIndent indent) override;
45  void Render(vtkRenderer* ren, vtkActor* act) override;
46 
48 
51  vtkGetObjectMacro(PolyDataMapper, vtkPolyDataMapper);
53 
59  void ReleaseGraphicsResources(vtkWindow*) override;
60 
64  vtkMTimeType GetMTime() override;
65 
67 
70  void SetInputData(vtkDataSet* input);
73 
74 protected:
76  ~vtkDataSetMapper() override;
77 
80 
81  void ReportReferences(vtkGarbageCollector*) override;
82 
83  // see algorithm for more info
85 
86 private:
87  vtkDataSetMapper(const vtkDataSetMapper&) = delete;
88  void operator=(const vtkDataSetMapper&) = delete;
89 };
90 
91 #endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:51
vtkDataSetSurfaceFilter * GeometryExtractor
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
void ReportReferences(vtkGarbageCollector *) override
abstract specification for renderers
Definition: vtkRenderer.h:72
Detect and break reference loops.
window superclass for vtkRenderWindow
Definition: vtkWindow.h:38
map vtkDataSet and derived classes to graphics primitives
a simple class to control print indentation
Definition: vtkIndent.h:39
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkMTimeType GetMTime() override
Overload standard modified time function.
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
abstract class specifies interface to map data to graphics primitives
Definition: vtkMapper.h:87
vtkPolyDataMapper * PolyDataMapper
map vtkPolyData to graphics primitives
static vtkAlgorithm * New()
vtkDataSet * GetInput()
Get the input as a vtkDataSet.
Extracts outer surface (as vtkPolyData) of any dataset.
virtual void Render(vtkRenderer *ren, vtkActor *a)=0
Method initiates the mapping process.
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this mapper.
Definition: vtkMapper.h:115