VTK  9.2.6
vtkHyperTreeGridMapper.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkHyperTreeGridMapper.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=========================================================================*/
34
35#ifndef vtkHyperTreeGridMapper_h
36#define vtkHyperTreeGridMapper_h
37
38#include "vtkMapper.h"
39#include "vtkSetGet.h" // Get macro
40#include "vtkSmartPointer.h" // For vtkSmartPointer
41
42#include "vtkRenderingHyperTreeGridModule.h" // For export macro
43
46class vtkPolyData;
48class vtkRenderWindow;
49class vtkRenderer;
50
51class VTKRENDERINGHYPERTREEGRID_EXPORT vtkHyperTreeGridMapper : public vtkMapper
52{
53public:
56 void PrintSelf(ostream& os, vtkIndent indent) override;
57
59
71 void SetInputDataObject(int port, vtkDataObject* input) override;
72 void SetInputDataObject(vtkDataObject* input) override;
74
76
81 double* GetBounds() override;
82 void GetBounds(double bounds[6]) override;
84
86
91 vtkGetMacro(UseAdaptiveDecimation, bool);
92 vtkSetMacro(UseAdaptiveDecimation, bool);
93 vtkBooleanMacro(UseAdaptiveDecimation, bool);
95
102 void Render(vtkRenderer* ren, vtkActor* act) override;
103
109 int FillInputPortInformation(int port, vtkInformation* info) override;
110
111protected:
114
120
121 // In 2D mode, these variables control the mapper oprimisations
123
124 // render the extracted surface,
125 // need to be created in device specific subclass
127
128 // Internal object to render
130
131private:
133 void operator=(const vtkHyperTreeGridMapper&) = delete;
134};
135
136#endif
represents an object (geometry & properties) in a rendered scene
Definition vtkActor.h:46
virtual void SetInputConnection(int port, vtkAlgorithmOutput *input)
Set the connection for the given input port index.
abstract superclass for composite (multi-block or AMR) datasets
general representation of visualization data
void SetInputDataObject(int port, vtkDataObject *input) override
Sets the data-object as an input on the given port index.
void SetInputDataObject(vtkDataObject *input) override
double * GetBounds() override
For this mapper, the bounds correspond to the output for the internal surface filter which may be res...
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkSmartPointer< vtkPolyDataMapper > Mapper
void GetBounds(double bounds[6]) override
Get the bounds for this mapper as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
void Render(vtkRenderer *ren, vtkActor *act) override
Use the internal PolyData Mapper to do the rendering of the HTG transformed by the current SurfaceFil...
~vtkHyperTreeGridMapper() override
vtkSmartPointer< vtkCompositeDataSet > UpdateWithDecimation(vtkCompositeDataSet *htg, vtkRenderer *ren)
Generate a new composite were each leave is decimated if required.
static vtkHyperTreeGridMapper * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSmartPointer< vtkCompositeDataSet > Input
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
a simple class to control print indentation
Definition vtkIndent.h:34
Store vtkAlgorithm input/output information.
map vtkPolyData to graphics primitives
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition vtkPolyData.h:85
create a window for renderers to draw into
abstract specification for renderers
Definition vtkRenderer.h:67
Hold a reference to a vtkObjectBase instance.