VTK: Rendering/Core/vtkDataSetMapper.h Source File

| VTK 9.3.1

vtkDataSetMapper.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
30 #ifndef vtkDataSetMapper_h
31 #define vtkDataSetMapper_h
32
33 #include "vtkMapper.h"
34 #include "vtkRenderingCoreModule.h" // For export macro
35
36 VTK_ABI_NAMESPACE_BEGIN
37 class vtkPolyDataMapper;
38 class vtkDataSetSurfaceFilter;
39
40 class VTKRENDERINGCORE_EXPORT vtkDataSetMapper : public vtkMapper
41 {
42 public:
43 static vtkDataSetMapper* New();
44 vtkTypeMacro(vtkDataSetMapper, vtkMapper);
45 void PrintSelf(ostream& os, vtkIndent indent) override;
46 void Render(vtkRenderer* ren, vtkActor* act) override;
47
49
52 vtkGetObjectMacro(PolyDataMapper, vtkPolyDataMapper);
54
60 void ReleaseGraphicsResources(vtkWindow*) override;
61
65 vtkMTimeType GetMTime() override;
66
68
71 void SetInputData(vtkDataSet* input);
72 vtkDataSet* GetInput();
74
75 protected:
76 vtkDataSetMapper();
77 ~vtkDataSetMapper() override;
78
79 vtkDataSetSurfaceFilter* GeometryExtractor;
80 vtkPolyDataMapper* PolyDataMapper;
81
82 void ReportReferences(vtkGarbageCollector*) override;
83
84 // see algorithm for more info
85 int FillInputPortInformation(int port, vtkInformation* info) override;
86
87 private:
88 vtkDataSetMapper(const vtkDataSetMapper&) = delete;
89 void operator=(const vtkDataSetMapper&) = delete;
90 };
91
92 VTK_ABI_NAMESPACE_END
93 #endif
vtkActor
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:50
vtkDataSetMapper
map vtkDataSet and derived classes to graphics primitives
Definition: vtkDataSetMapper.h:41
vtkDataSetMapper::ReportReferences
void ReportReferences(vtkGarbageCollector *) override
vtkDataSetMapper::ReleaseGraphicsResources
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this mapper.
vtkDataSetMapper::~vtkDataSetMapper
~vtkDataSetMapper() override
vtkDataSetMapper::New
static vtkDataSetMapper * New()
vtkDataSetMapper::vtkDataSetMapper
vtkDataSetMapper()
vtkDataSetMapper::GeometryExtractor
vtkDataSetSurfaceFilter * GeometryExtractor
Definition: vtkDataSetMapper.h:79
vtkDataSetMapper::Render
void Render(vtkRenderer *ren, vtkActor *act) override
Method initiates the mapping process.
vtkDataSetMapper::PolyDataMapper
vtkPolyDataMapper * PolyDataMapper
Definition: vtkDataSetMapper.h:80
vtkDataSetMapper::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkDataSetMapper::GetInput
vtkDataSet * GetInput()
Set the Input of this mapper.
vtkDataSetMapper::GetMTime
vtkMTimeType GetMTime() override
Get the mtime also considering the lookup table.
vtkDataSetMapper::SetInputData
void SetInputData(vtkDataSet *input)
Set the Input of this mapper.
vtkDataSetMapper::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkDataSetSurfaceFilter
Extracts outer surface (as vtkPolyData) of any dataset.
Definition: vtkDataSetSurfaceFilter.h:118
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
vtkGarbageCollector
Detect and break reference loops.
Definition: vtkGarbageCollector.h:80
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkMapper
abstract class specifies interface to map data to graphics primitives
Definition: vtkMapper.h:86
vtkPolyDataMapper
map vtkPolyData to graphics primitives
Definition: vtkPolyDataMapper.h:42
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:71
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:37
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkMapper.h
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270