VTK  9.0.20210514
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
vtkAbstractHyperTreeGridMapper::LevelMax
int LevelMax
Maximum depth parameter for adaptive view.
Definition: vtkAbstractHyperTreeGridMapper.h:194
vtkAbstractHyperTreeGridMapper::SetInputConnection
void SetInputConnection(int, vtkAlgorithmOutput *) override
Set/Get the input data or connection.
vtkAbstractHyperTreeGridMapper::SetScalarRange
void SetScalarRange(double, double)
Specify range in terms of scalar minimum and maximum.
vtkAbstractHyperTreeGridMapper::vtkAbstractHyperTreeGridMapper
vtkAbstractHyperTreeGridMapper()
vtkAbstractHyperTreeGridMapper::SetColorMap
void SetColorMap(vtkScalarsToColors *)
Set/Get the color map attached to this HyperTreeGrid mapper A linear lookup table is provided by defa...
vtkVolume
represents a volume (data & properties) in a rendered scene
Definition: vtkVolume.h:45
vtkAbstractHyperTreeGridMapper::~vtkAbstractHyperTreeGridMapper
~vtkAbstractHyperTreeGridMapper() override
vtkUniformHyperTreeGrid
A specifalized type of vtkHyperTreeGrid for the case when root cells have uniform sizes in each direc...
Definition: vtkUniformHyperTreeGrid.h:45
vtkAbstractHyperTreeGridMapper::ViewToWorldMatrix
vtkMatrix4x4 * ViewToWorldMatrix
Keep track of coordinate conversion matrices.
Definition: vtkAbstractHyperTreeGridMapper.h:143
vtkAbstractHyperTreeGridMapper::SetInputConnection
void SetInputConnection(vtkAlgorithmOutput *input) override
Set/Get the input data or connection.
Definition: vtkAbstractHyperTreeGridMapper.h:58
vtkAbstractHyperTreeGridMapper::SetScalarRange
void SetScalarRange(double *)
Specify range in terms of scalar minimum and maximum.
vtkAbstractHyperTreeGridMapper::Scale
double Scale
Scale factor for adaptive view.
Definition: vtkAbstractHyperTreeGridMapper.h:174
vtkAbstractHyperTreeGridMapper::MustUpdateGrid
bool MustUpdateGrid
Keep track of whether pixelize grid is current.
Definition: vtkAbstractHyperTreeGridMapper.h:149
vtkAbstractHyperTreeGridMapper::ParallelProjection
bool ParallelProjection
Parallel projection parameter for adaptive view.
Definition: vtkAbstractHyperTreeGridMapper.h:199
vtkAbstractHyperTreeGridMapper::LastCameraParallelScale
double LastCameraParallelScale
Last camera parallel scale for adaptive view.
Definition: vtkAbstractHyperTreeGridMapper.h:204
vtkAbstractHyperTreeGridMapper::Axis1
unsigned int Axis1
First axis parameter for adaptive view.
Definition: vtkAbstractHyperTreeGridMapper.h:184
vtkAbstractHyperTreeGridMapper::ReleaseGraphicsResources
void ReleaseGraphicsResources(vtkWindow *) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
Definition: vtkAbstractHyperTreeGridMapper.h:115
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:50
vtkAbstractVolumeMapper.h
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:39
vtkAbstractHyperTreeGridMapper::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkAbstractHyperTreeGridMapper::SetInputData
virtual void SetInputData(vtkUniformHyperTreeGrid *)
Set/Get the input data or connection.
vtkAbstractHyperTreeGridMapper::WorldToViewMatrix
vtkMatrix4x4 * WorldToViewMatrix
Keep track of coordinate conversion matrices.
Definition: vtkAbstractHyperTreeGridMapper.h:142
vtkAbstractHyperTreeGridMapper::GetMTime
vtkMTimeType GetMTime() override
Get the mtime of this object.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:34
vtkMatrix4x4
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:36
vtkAbstractHyperTreeGridMapper::Axis2
unsigned int Axis2
Second axis parameter for adaptive view.
Definition: vtkAbstractHyperTreeGridMapper.h:189
vtkAbstractHyperTreeGridMapper::ColorMap
vtkScalarsToColors * ColorMap
Color map used only when dimension < 3.
Definition: vtkAbstractHyperTreeGridMapper.h:169
vtkAbstractHyperTreeGridMapper
Abstract class for a HyperTreeGrid mapper.
Definition: vtkAbstractHyperTreeGridMapper.h:47
vtkScalarsToColors
Superclass for mapping scalar values to colors.
Definition: vtkScalarsToColors.h:60
vtkAbstractHyperTreeGridMapper::Scalars
vtkDataArray * Scalars
Reference to input scalars.
Definition: vtkAbstractHyperTreeGridMapper.h:136
vtkAbstractHyperTreeGridMapper::Renderer
vtkRenderer * Renderer
Reference to the renderer being used.
Definition: vtkAbstractHyperTreeGridMapper.h:159
vtkAlgorithm::SetInputConnection
virtual void SetInputConnection(int port, vtkAlgorithmOutput *input)
Set the connection for the given input port index.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:74
vtkAbstractHyperTreeGridMapper::FrameBuffer
unsigned char * FrameBuffer
Internal frame buffer.
Definition: vtkAbstractHyperTreeGridMapper.h:229
vtkAbstractHyperTreeGridMapper::GetInput
vtkUniformHyperTreeGrid * GetInput()
Set/Get the input data or connection.
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::FillInputPortInformation
int FillInputPortInformation(int, vtkInformation *) override
Restrict input type to vtkUniformHyperTreeGrid instances.
vtkAbstractVolumeMapper
Abstract class for a volume mapper.
Definition: vtkAbstractVolumeMapper.h:39
vtkAlgorithmOutput
Proxy object to connect input/output ports.
Definition: vtkAlgorithmOutput.h:37
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:71
vtkBitArray
dynamic, self-adjusting array of bits
Definition: vtkBitArray.h:34
vtkAbstractHyperTreeGridMapper::Radius
double Radius
Radius parameter for adaptive view.
Definition: vtkAbstractHyperTreeGridMapper.h:179
vtkAbstractHyperTreeGridMapper::SetRenderer
void SetRenderer(vtkRenderer *)
Set/Get the renderer attached to this HyperTreeGrid mapper.
vtkAbstractHyperTreeGridMapper::ZBuffer
float * ZBuffer
Internal z-buffer.
Definition: vtkAbstractHyperTreeGridMapper.h:234
vtkAbstractHyperTreeGridMapper::Orientation
unsigned int Orientation
Orientation of input grid when dimension < 3.
Definition: vtkAbstractHyperTreeGridMapper.h:154
vtkAbstractHyperTreeGridMapper::ViewOrientation
int ViewOrientation
Keep track of current view orientation.
Definition: vtkAbstractHyperTreeGridMapper.h:224
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:293