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