VTK: Rendering/Core/vtkAbstractHyperTreeGridMapper.h Source File

| VTK 9.3.1

vtkAbstractHyperTreeGridMapper.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
21 #ifndef vtkAbstractHyperTreeGridMapper_h
22 #define vtkAbstractHyperTreeGridMapper_h
23
24 #include "vtkAbstractVolumeMapper.h"
25 #include "vtkRenderingCoreModule.h" // For export macro
26
27 VTK_ABI_NAMESPACE_BEGIN
28 class vtkBitArray;
29 class vtkDataArray;
30 class vtkMatrix4x4;
31 class vtkScalarsToColors;
32 class vtkRenderer;
33 class vtkUniformHyperTreeGrid;
34
35 class VTKRENDERINGCORE_EXPORT vtkAbstractHyperTreeGridMapper : public vtkAbstractVolumeMapper
36 {
37 public:
38 vtkTypeMacro(vtkAbstractHyperTreeGridMapper, vtkAbstractVolumeMapper);
39 void PrintSelf(ostream& os, vtkIndent indent) override;
40
42
45 virtual void SetInputData(vtkUniformHyperTreeGrid*);
46 void SetInputConnection(int, vtkAlgorithmOutput*) override;
47 void SetInputConnection(vtkAlgorithmOutput* input) override
48 {
49 this->SetInputConnection(0, input);
50 }
51 vtkUniformHyperTreeGrid* GetInput();
53
55
58 void SetRenderer(vtkRenderer*);
59 vtkGetObjectMacro(Renderer, vtkRenderer);
61
65 vtkSetMacro(Scale, double);
66
68
72 void SetColorMap(vtkScalarsToColors*);
73 vtkGetObjectMacro(ColorMap, vtkScalarsToColors);
75
77
83 void SetScalarRange(double, double);
84 void SetScalarRange(double*);
85 vtkGetVectorMacro(ScalarRange, double, 2);
87
91 vtkGetVectorMacro(ViewportSize, int, 2);
92
96 vtkMTimeType GetMTime() override;
97
104 void ReleaseGraphicsResources(vtkWindow*) override {}
105
111 void Render(vtkRenderer*, vtkVolume*) override = 0;
112
113 protected:
114 vtkAbstractHyperTreeGridMapper();
115 ~vtkAbstractHyperTreeGridMapper() override;
116
120 int FillInputPortInformation(int, vtkInformation*) override;
121
125 vtkDataArray* Scalars;
126
128
131 vtkMatrix4x4* WorldToViewMatrix;
132 vtkMatrix4x4* ViewToWorldMatrix;
134
138 bool MustUpdateGrid;
139
143 unsigned int Orientation;
144
148 vtkRenderer* Renderer;
149
153 double ScalarRange[2];
154
158 vtkScalarsToColors* ColorMap;
159
163 double Scale;
164
168 double Radius;
169
173 unsigned int Axis1;
174
178 unsigned int Axis2;
179
183 int LevelMax;
184
188 bool ParallelProjection;
189
193 double LastCameraParallelScale;
194
198 int ViewportSize[2];
199
203 int LastRendererSize[2];
204
208 double LastCameraFocalPoint[3];
209
213 int ViewOrientation;
214
218 unsigned char* FrameBuffer;
219
223 float* ZBuffer;
224
225 private:
226 vtkAbstractHyperTreeGridMapper(const vtkAbstractHyperTreeGridMapper&) = delete;
227 void operator=(const vtkAbstractHyperTreeGridMapper&) = delete;
228 };
229
230 VTK_ABI_NAMESPACE_END
231 #endif
vtkAbstractHyperTreeGridMapper
Abstract class for a HyperTreeGrid mapper.
Definition: vtkAbstractHyperTreeGridMapper.h:36
vtkAbstractHyperTreeGridMapper::LevelMax
int LevelMax
Maximum depth parameter for adaptive view.
Definition: vtkAbstractHyperTreeGridMapper.h:183
vtkAbstractHyperTreeGridMapper::SetScalarRange
void SetScalarRange(double *)
Specify range in terms of scalar minimum and maximum.
vtkAbstractHyperTreeGridMapper::MustUpdateGrid
bool MustUpdateGrid
Keep track of whether pixelize grid is current.
Definition: vtkAbstractHyperTreeGridMapper.h:138
vtkAbstractHyperTreeGridMapper::Axis2
unsigned int Axis2
Second axis parameter for adaptive view.
Definition: vtkAbstractHyperTreeGridMapper.h:178
vtkAbstractHyperTreeGridMapper::ViewOrientation
int ViewOrientation
Keep track of current view orientation.
Definition: vtkAbstractHyperTreeGridMapper.h:213
vtkAbstractHyperTreeGridMapper::SetColorMap
void SetColorMap(vtkScalarsToColors *)
Set/Get the color map attached to this HyperTreeGrid mapper A linear lookup table is provided by defa...
vtkAbstractHyperTreeGridMapper::SetRenderer
void SetRenderer(vtkRenderer *)
Set/Get the renderer attached to this HyperTreeGrid mapper.
vtkAbstractHyperTreeGridMapper::Renderer
vtkRenderer * Renderer
Reference to the renderer being used.
Definition: vtkAbstractHyperTreeGridMapper.h:148
vtkAbstractHyperTreeGridMapper::ParallelProjection
bool ParallelProjection
Parallel projection parameter for adaptive view.
Definition: vtkAbstractHyperTreeGridMapper.h:188
vtkAbstractHyperTreeGridMapper::Axis1
unsigned int Axis1
First axis parameter for adaptive view.
Definition: vtkAbstractHyperTreeGridMapper.h:173
vtkAbstractHyperTreeGridMapper::ReleaseGraphicsResources
void ReleaseGraphicsResources(vtkWindow *) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
Definition: vtkAbstractHyperTreeGridMapper.h:104
vtkAbstractHyperTreeGridMapper::GetMTime
vtkMTimeType GetMTime() override
Get the mtime of this object.
vtkAbstractHyperTreeGridMapper::~vtkAbstractHyperTreeGridMapper
~vtkAbstractHyperTreeGridMapper() override
vtkAbstractHyperTreeGridMapper::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkAbstractHyperTreeGridMapper::FrameBuffer
unsigned char * FrameBuffer
Internal frame buffer.
Definition: vtkAbstractHyperTreeGridMapper.h:218
vtkAbstractHyperTreeGridMapper::Scale
double Scale
Scale factor for adaptive view.
Definition: vtkAbstractHyperTreeGridMapper.h:163
vtkAbstractHyperTreeGridMapper::SetInputConnection
void SetInputConnection(vtkAlgorithmOutput *input) override
Set/Get the input data or connection.
Definition: vtkAbstractHyperTreeGridMapper.h:47
vtkAbstractHyperTreeGridMapper::FillInputPortInformation
int FillInputPortInformation(int, vtkInformation *) override
Restrict input type to vtkUniformHyperTreeGrid instances.
vtkAbstractHyperTreeGridMapper::LastCameraParallelScale
double LastCameraParallelScale
Last camera parallel scale for adaptive view.
Definition: vtkAbstractHyperTreeGridMapper.h:193
vtkAbstractHyperTreeGridMapper::WorldToViewMatrix
vtkMatrix4x4 * WorldToViewMatrix
Keep track of coordinate conversion matrices.
Definition: vtkAbstractHyperTreeGridMapper.h:131
vtkAbstractHyperTreeGridMapper::SetScalarRange
void SetScalarRange(double, double)
Specify range in terms of scalar minimum and maximum.
vtkAbstractHyperTreeGridMapper::Render
void Render(vtkRenderer *, vtkVolume *) override=0
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERI...
vtkAbstractHyperTreeGridMapper::Radius
double Radius
Radius parameter for adaptive view.
Definition: vtkAbstractHyperTreeGridMapper.h:168
vtkAbstractHyperTreeGridMapper::ZBuffer
float * ZBuffer
Internal z-buffer.
Definition: vtkAbstractHyperTreeGridMapper.h:223
vtkAbstractHyperTreeGridMapper::Scalars
vtkDataArray * Scalars
Reference to input scalars.
Definition: vtkAbstractHyperTreeGridMapper.h:125
vtkAbstractHyperTreeGridMapper::SetInputConnection
void SetInputConnection(int, vtkAlgorithmOutput *) override
Set/Get the input data or connection.
vtkAbstractHyperTreeGridMapper::vtkAbstractHyperTreeGridMapper
vtkAbstractHyperTreeGridMapper()
vtkAbstractHyperTreeGridMapper::ViewToWorldMatrix
vtkMatrix4x4 * ViewToWorldMatrix
Keep track of coordinate conversion matrices.
Definition: vtkAbstractHyperTreeGridMapper.h:132
vtkAbstractHyperTreeGridMapper::SetInputData
virtual void SetInputData(vtkUniformHyperTreeGrid *)
Set/Get the input data or connection.
vtkAbstractHyperTreeGridMapper::ColorMap
vtkScalarsToColors * ColorMap
Color map used only when dimension < 3.
Definition: vtkAbstractHyperTreeGridMapper.h:158
vtkAbstractHyperTreeGridMapper::Orientation
unsigned int Orientation
Orientation of input grid when dimension < 3.
Definition: vtkAbstractHyperTreeGridMapper.h:143
vtkAbstractHyperTreeGridMapper::GetInput
vtkUniformHyperTreeGrid * GetInput()
Set/Get the input data or connection.
vtkAbstractVolumeMapper
Abstract class for a volume mapper.
Definition: vtkAbstractVolumeMapper.h:28
vtkAlgorithmOutput
Proxy object to connect input/output ports.
Definition: vtkAlgorithmOutput.h:41
vtkAlgorithm::SetInputConnection
virtual void SetInputConnection(int port, vtkAlgorithmOutput *input)
Set the connection for the given input port index.
vtkBitArray
dynamic, self-adjusting array of bits
Definition: vtkBitArray.h:29
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkMatrix4x4
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:40
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:71
vtkScalarsToColors
Superclass for mapping scalar values to colors.
Definition: vtkScalarsToColors.h:65
vtkUniformHyperTreeGrid
A specifalized type of vtkHyperTreeGrid for the case when root cells have uniform sizes in each direc...
Definition: vtkUniformHyperTreeGrid.h:37
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
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270