VTK  9.1.0
vtkAbstractHyperTreeGridMapper.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkAbstractHyperTreeGridMapper.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=========================================================================*/
33#ifndef vtkAbstractHyperTreeGridMapper_h
34#define vtkAbstractHyperTreeGridMapper_h
35
37#include "vtkRenderingCoreModule.h" // For export macro
38
39class vtkBitArray;
40class vtkDataArray;
41class vtkMatrix4x4;
43class vtkRenderer;
45
46class VTKRENDERINGCORE_EXPORT vtkAbstractHyperTreeGridMapper : public vtkAbstractVolumeMapper
47{
48public:
50 void PrintSelf(ostream& os, vtkIndent indent) override;
51
53
59 {
60 this->SetInputConnection(0, input);
61 }
64
66
70 vtkGetObjectMacro(Renderer, vtkRenderer);
72
76 vtkSetMacro(Scale, double);
77
79
84 vtkGetObjectMacro(ColorMap, vtkScalarsToColors);
86
88
94 void SetScalarRange(double, double);
95 void SetScalarRange(double*);
96 vtkGetVectorMacro(ScalarRange, double, 2);
98
102 vtkGetVectorMacro(ViewportSize, int, 2);
103
108
116
122 void Render(vtkRenderer*, vtkVolume*) override = 0;
123
124protected:
127
132
137
139
145
150
154 unsigned int Orientation;
155
160
164 double ScalarRange[2];
165
170
174 double Scale;
175
179 double Radius;
180
184 unsigned int Axis1;
185
189 unsigned int Axis2;
190
195
200
205
209 int ViewportSize[2];
210
214 int LastRendererSize[2];
215
219 double LastCameraFocalPoint[3];
220
225
229 unsigned char* FrameBuffer;
230
234 float* ZBuffer;
235
236private:
238 void operator=(const vtkAbstractHyperTreeGridMapper&) = delete;
239};
240
241#endif
Abstract class for a HyperTreeGrid mapper.
int LevelMax
Maximum depth parameter for adaptive view.
void SetScalarRange(double *)
Specify range in terms of scalar minimum and maximum.
bool MustUpdateGrid
Keep track of whether pixelize grid is current.
unsigned int Axis2
Second axis parameter for adaptive view.
int ViewOrientation
Keep track of current view orientation.
void SetColorMap(vtkScalarsToColors *)
Set/Get the color map attached to this HyperTreeGrid mapper A linear lookup table is provided by defa...
void SetRenderer(vtkRenderer *)
Set/Get the renderer attached to this HyperTreeGrid mapper.
vtkRenderer * Renderer
Reference to the renderer being used.
bool ParallelProjection
Parallel projection parameter for adaptive view.
unsigned int Axis1
First axis parameter for adaptive view.
void ReleaseGraphicsResources(vtkWindow *) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
vtkMTimeType GetMTime() override
Get the mtime of this object.
vtkUniformHyperTreeGrid * GetInput()
Set/Get the input data or connection.
~vtkAbstractHyperTreeGridMapper() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
unsigned char * FrameBuffer
Internal frame buffer.
double Scale
Scale factor for adaptive view.
void SetInputConnection(vtkAlgorithmOutput *input) override
Set/Get the input data or connection.
int FillInputPortInformation(int, vtkInformation *) override
Restrict input type to vtkUniformHyperTreeGrid instances.
double LastCameraParallelScale
Last camera parallel scale for adaptive view.
vtkMatrix4x4 * WorldToViewMatrix
Keep track of coordinate conversion matrices.
void SetScalarRange(double, double)
Specify range in terms of scalar minimum and maximum.
void Render(vtkRenderer *, vtkVolume *) override=0
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERI...
double Radius
Radius parameter for adaptive view.
vtkDataArray * Scalars
Reference to input scalars.
void SetInputConnection(int, vtkAlgorithmOutput *) override
Set/Get the input data or connection.
vtkMatrix4x4 * ViewToWorldMatrix
Keep track of coordinate conversion matrices.
virtual void SetInputData(vtkUniformHyperTreeGrid *)
Set/Get the input data or connection.
vtkScalarsToColors * ColorMap
Color map used only when dimension < 3.
unsigned int Orientation
Orientation of input grid when dimension < 3.
Abstract class for a volume mapper.
Proxy object to connect input/output ports.
virtual void SetInputConnection(int port, vtkAlgorithmOutput *input)
Set the connection for the given input port index.
dynamic, self-adjusting array of bits
Definition: vtkBitArray.h:34
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:159
a simple class to control print indentation
Definition: vtkIndent.h:113
Store vtkAlgorithm input/output information.
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:145
abstract specification for renderers
Definition: vtkRenderer.h:173
Superclass for mapping scalar values to colors.
A specifalized type of vtkHyperTreeGrid for the case when root cells have uniform sizes in each direc...
represents a volume (data & properties) in a rendered scene
Definition: vtkVolume.h:134
window superclass for vtkRenderWindow
Definition: vtkWindow.h:36
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287