VTK  9.0.3
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 
39 class vtkBitArray;
40 class vtkDataArray;
41 class vtkMatrix4x4;
42 class vtkScalarsToColors;
43 class vtkRenderer;
45 
46 class VTKRENDERINGCORE_EXPORT vtkAbstractHyperTreeGridMapper : public vtkAbstractVolumeMapper
47 {
48 public:
50  void PrintSelf(ostream& os, vtkIndent indent) override;
51 
53 
57  void SetInputConnection(int, vtkAlgorithmOutput*) override;
58  void SetInputConnection(vtkAlgorithmOutput* input) override
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 
107  vtkMTimeType GetMTime() override;
108 
116 
122  void Render(vtkRenderer*, vtkVolume*) override = 0;
123 
124 protected:
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 
194  int LevelMax;
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 
236 private:
238  void operator=(const vtkAbstractHyperTreeGridMapper&) = delete;
239 };
240 
241 #endif
Abstract class for a HyperTreeGrid mapper.
int LevelMax
Maximum depth parameter for adaptive view.
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.
~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
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 the connection for the given input port index.
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.
vtkUniformHyperTreeGrid * GetInput()
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:50
a simple class to control print indentation
Definition: vtkIndent.h:34
Store vtkAlgorithm input/output information.
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:36
abstract specification for renderers
Definition: vtkRenderer.h:59
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:45
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:293