VTK  9.0.20210121
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 
56  virtual void SetInputData(vtkUniformHyperTreeGrid*);
57  void SetInputConnection(int, vtkAlgorithmOutput*) override;
58  void SetInputConnection(vtkAlgorithmOutput* input) override
59  {
60  this->SetInputConnection(0, input);
61  }
62  vtkUniformHyperTreeGrid* GetInput();
64 
66 
69  void SetRenderer(vtkRenderer*);
70  vtkGetObjectMacro(Renderer, vtkRenderer);
72 
76  vtkSetMacro(Scale, double);
77 
79 
83  void SetColorMap(vtkScalarsToColors*);
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:
126  ~vtkAbstractHyperTreeGridMapper() override;
127 
131  int FillInputPortInformation(int, vtkInformation*) override;
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
vtkVolume
represents a volume (data & properties) in a rendered scene
Definition: vtkVolume.h:44
vtkUniformHyperTreeGrid
A specifalized type of vtkHyperTreeGrid for the case when root cells have uniform sizes in each direc...
Definition: vtkUniformHyperTreeGrid.h:43
vtkAbstractHyperTreeGridMapper::ViewToWorldMatrix
vtkMatrix4x4 * ViewToWorldMatrix
Definition: vtkAbstractHyperTreeGridMapper.h:143
vtkAbstractHyperTreeGridMapper::SetInputConnection
void SetInputConnection(vtkAlgorithmOutput *input) override
Definition: vtkAbstractHyperTreeGridMapper.h:58
vtkAbstractVolumeMapper::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkAbstractMapper::GetMTime
vtkMTimeType GetMTime() override
Override Modifiedtime as we have added Clipping planes.
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:49
vtkAbstractVolumeMapper.h
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:38
vtkAbstractVolumeMapper::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkAbstractHyperTreeGridMapper::WorldToViewMatrix
vtkMatrix4x4 * WorldToViewMatrix
Keep track of coordinate conversion matrices.
Definition: vtkAbstractHyperTreeGridMapper.h:142
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkMatrix4x4
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:35
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:46
vtkScalarsToColors
Superclass for mapping scalar values to colors.
Definition: vtkScalarsToColors.h:59
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:73
vtkAbstractHyperTreeGridMapper::FrameBuffer
unsigned char * FrameBuffer
Internal frame buffer.
Definition: vtkAbstractHyperTreeGridMapper.h:229
vtkAbstractVolumeMapper
Abstract class for a volume mapper.
Definition: vtkAbstractVolumeMapper.h:38
vtkAlgorithmOutput
Proxy object to connect input/output ports.
Definition: vtkAlgorithmOutput.h:36
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:67
vtkBitArray
dynamic, self-adjusting array of bits
Definition: vtkBitArray.h:33
vtkAbstractHyperTreeGridMapper::Radius
double Radius
Radius parameter for adaptive view.
Definition: vtkAbstractHyperTreeGridMapper.h:179
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
vtkAbstractVolumeMapper::Render
virtual void Render(vtkRenderer *ren, vtkVolume *vol)=0
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERI...
vtkAbstractHyperTreeGridMapper::ViewOrientation
int ViewOrientation
Keep track of current view orientation.
Definition: vtkAbstractHyperTreeGridMapper.h:224
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:285