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 =========================================================================*/
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 
44 class vtkHyperTreeGrid;
46 class vtkPolyData;
47 class vtkPolyDataMapper;
48 class vtkRenderWindow;
49 class vtkRenderer;
50 
51 class VTKRENDERINGHYPERTREEGRID_EXPORT vtkHyperTreeGridMapper : public vtkMapper
52 {
53 public:
54  static vtkHyperTreeGridMapper* New();
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 
111 protected:
113  ~vtkHyperTreeGridMapper() override;
114 
118  vtkSmartPointer<vtkCompositeDataSet> UpdateWithDecimation(
119  vtkCompositeDataSet* htg, vtkRenderer* ren);
120 
121  // In 2D mode, these variables control the mapper oprimisations
122  bool UseAdaptiveDecimation = false;
123 
124  // render the extracted surface,
125  // need to be created in device specific subclass
127 
128  // Internal object to render
130 
131 private:
133  void operator=(const vtkHyperTreeGridMapper&) = delete;
134 };
135 
136 #endif
vtkSmartPointer< vtkPolyDataMapper > Mapper
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:51
Store vtkAlgorithm input/output information.
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
abstract specification for renderers
Definition: vtkRenderer.h:72
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:90
map vtkHyperTreeGrid to graphics primitives
virtual void SetInputDataObject(int port, vtkDataObject *data)
Sets the data-object as an input on the given port index.
abstract superclass for composite (multi-block or AMR) datasets
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual void SetInputConnection(int port, vtkAlgorithmOutput *input)
Set the connection for the given input port index.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
abstract class specifies interface to map data to graphics primitives
Definition: vtkMapper.h:87
map vtkPolyData to graphics primitives
create a window for renderers to draw into
static vtkAlgorithm * New()
double * GetBounds() override
Return bounding box (array of six doubles) of data expressed as (xmin,xmax, ymin,ymax, zmin,zmax).
general representation of visualization data
Definition: vtkDataObject.h:65
virtual void Render(vtkRenderer *ren, vtkActor *a)=0
Method initiates the mapping process.
vtkSmartPointer< vtkCompositeDataSet > Input