VTK: Rendering/Volume/vtkUnstructuredGridVolumeMapper.h Source File

| VTK 9.3.1

vtkUnstructuredGridVolumeMapper.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
16 #ifndef vtkUnstructuredGridVolumeMapper_h
17 #define vtkUnstructuredGridVolumeMapper_h
18
19 #include "vtkAbstractVolumeMapper.h"
20 #include "vtkRenderingVolumeModule.h" // For export macro
21
22 VTK_ABI_NAMESPACE_BEGIN
23 class vtkRenderer;
24 class vtkVolume;
25 class vtkUnstructuredGridBase;
26 class vtkWindow;
27
28 class VTKRENDERINGVOLUME_EXPORT vtkUnstructuredGridVolumeMapper : public vtkAbstractVolumeMapper
29 {
30 public:
31 vtkTypeMacro(vtkUnstructuredGridVolumeMapper, vtkAbstractVolumeMapper);
32 void PrintSelf(ostream& os, vtkIndent indent) override;
33
35
38 virtual void SetInputData(vtkUnstructuredGridBase*);
39 virtual void SetInputData(vtkDataSet*);
40 vtkUnstructuredGridBase* GetInput();
42
43 vtkSetMacro(BlendMode, int);
44 void SetBlendModeToComposite()
45 {
46 this->SetBlendMode(vtkUnstructuredGridVolumeMapper::COMPOSITE_BLEND);
47 }
48 void SetBlendModeToMaximumIntensity()
49 {
50 this->SetBlendMode(vtkUnstructuredGridVolumeMapper::MAXIMUM_INTENSITY_BLEND);
51 }
52 vtkGetMacro(BlendMode, int);
53
59 void Render(vtkRenderer* ren, vtkVolume* vol) override = 0;
60
67 void ReleaseGraphicsResources(vtkWindow*) override {}
68
69 enum
70 {
71 COMPOSITE_BLEND,
72 MAXIMUM_INTENSITY_BLEND
73 };
74
75 protected:
76 vtkUnstructuredGridVolumeMapper();
77 ~vtkUnstructuredGridVolumeMapper() override;
78
79 int BlendMode;
80
81 int FillInputPortInformation(int, vtkInformation*) override;
82
83 private:
84 vtkUnstructuredGridVolumeMapper(const vtkUnstructuredGridVolumeMapper&) = delete;
85 void operator=(const vtkUnstructuredGridVolumeMapper&) = delete;
86 };
87
88 VTK_ABI_NAMESPACE_END
89 #endif
vtkAbstractVolumeMapper
Abstract class for a volume mapper.
Definition: vtkAbstractVolumeMapper.h:28
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:71
vtkUnstructuredGridBase
dataset represents arbitrary combinations of all possible cell types.
Definition: vtkUnstructuredGridBase.h:27
vtkUnstructuredGridVolumeMapper
Abstract class for an unstructured grid volume mapper.
Definition: vtkUnstructuredGridVolumeMapper.h:29
vtkUnstructuredGridVolumeMapper::MAXIMUM_INTENSITY_BLEND
@ MAXIMUM_INTENSITY_BLEND
Definition: vtkUnstructuredGridVolumeMapper.h:72
vtkUnstructuredGridVolumeMapper::COMPOSITE_BLEND
@ COMPOSITE_BLEND
Definition: vtkUnstructuredGridVolumeMapper.h:71
vtkUnstructuredGridVolumeMapper::Render
void Render(vtkRenderer *ren, vtkVolume *vol) override=0
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERI...
vtkUnstructuredGridVolumeMapper::FillInputPortInformation
int FillInputPortInformation(int, vtkInformation *) override
Fill the input port information objects for this algorithm.
vtkUnstructuredGridVolumeMapper::BlendMode
int BlendMode
Definition: vtkUnstructuredGridVolumeMapper.h:79
vtkUnstructuredGridVolumeMapper::vtkUnstructuredGridVolumeMapper
vtkUnstructuredGridVolumeMapper()
vtkUnstructuredGridVolumeMapper::SetBlendModeToMaximumIntensity
void SetBlendModeToMaximumIntensity()
Definition: vtkUnstructuredGridVolumeMapper.h:48
vtkUnstructuredGridVolumeMapper::ReleaseGraphicsResources
void ReleaseGraphicsResources(vtkWindow *) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
Definition: vtkUnstructuredGridVolumeMapper.h:67
vtkUnstructuredGridVolumeMapper::~vtkUnstructuredGridVolumeMapper
~vtkUnstructuredGridVolumeMapper() override
vtkUnstructuredGridVolumeMapper::SetInputData
virtual void SetInputData(vtkUnstructuredGridBase *)
Set/Get the input data.
vtkUnstructuredGridVolumeMapper::SetBlendModeToComposite
void SetBlendModeToComposite()
Definition: vtkUnstructuredGridVolumeMapper.h:44
vtkUnstructuredGridVolumeMapper::GetInput
vtkUnstructuredGridBase * GetInput()
Set/Get the input data.
vtkUnstructuredGridVolumeMapper::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkUnstructuredGridVolumeMapper::SetInputData
virtual void SetInputData(vtkDataSet *)
Set/Get the input data.
vtkVolume
represents a volume (data & properties) in a rendered scene
Definition: vtkVolume.h:49
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:37
vtkAbstractVolumeMapper.h