VTK
vtkAdaptiveDataSetSurfaceFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkAdaptiveDataSetSurfaceFilter.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 =========================================================================*/
32 #ifndef vtkAdaptiveDataSetSurfaceFilter_h
33 #define vtkAdaptiveDataSetSurfaceFilter_h
34 
35 #include "vtkFiltersHybridModule.h" // For export macro
37 
38 class vtkBitArray;
39 class vtkCamera;
40 class vtkHyperTreeGrid;
42 class vtkRenderer;
43 
44 class VTKFILTERSHYBRID_EXPORT vtkAdaptiveDataSetSurfaceFilter : public vtkDataSetSurfaceFilter
45 {
46 public:
49  void PrintSelf( ostream&, vtkIndent ) override;
50 
52 
55  void SetRenderer( vtkRenderer* ren );
56  vtkGetObjectMacro(Renderer, vtkRenderer);
58 
62  vtkSetMacro(Scale,double);
63 
67  vtkMTimeType GetMTime() override;
68 
69 protected:
72 
73  int RequestData( vtkInformation* vtkNotUsed(request),
74  vtkInformationVector** inputVector,
75  vtkInformationVector* outputVector ) override;
76  int DataSetExecute( vtkDataSet* input, vtkPolyData* output ) override;
77 
81  void ProcessTrees( vtkHyperTreeGrid* input, vtkPolyData* output );
82 
86  void RecursivelyProcessTree( vtkHyperTreeGridCursor*, vtkBitArray*, int );
87 
91  void ProcessLeaf1D( vtkHyperTreeGridCursor* );
92 
96  void ProcessLeaf2D( vtkHyperTreeGridCursor*, vtkBitArray* );
97 
101  void ProcessLeaf3D( vtkHyperTreeGridCursor*, vtkBitArray* );
102 
106  void AddFace( vtkIdType, double*, double*, int, unsigned int );
107 
110 
114  unsigned int Dimension;
115 
119  unsigned int Orientation;
120 
125 
130 
135 
139  double Radius;
140 
144  int Axis1;
145 
149  int Axis2;
150 
154  int LevelMax;
155 
160 
164  int LastRendererSize[2];
165 
169  double LastCameraFocalPoint[3];
170 
175 
179  double Scale;
180 
181 private:
183  void operator = ( const vtkAdaptiveDataSetSurfaceFilter& ) = delete;
184 };
185 
186 #endif
virtual int DataSetExecute(vtkDataSet *input, vtkPolyData *output)
Direct access methods that can be used to use the this class as an algorithm without using it as a fi...
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:300
abstract class to specify dataset behavior
Definition: vtkDataSet.h:56
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
unsigned int Dimension
Dimension of input grid.
abstract specification for renderers
Definition: vtkRenderer.h:57
int vtkIdType
Definition: vtkType.h:345
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:79
unsigned int Orientation
Orientation of input grid when dimension < 3.
vtkCellArray * Cells
Storage for cells of output unstructured mesh.
Adaptively extract dataset surface.
Objects for depth-first traversal HyperTreeGrids.
bool ParallelProjection
Parallel projection parameter for adaptive view.
double Radius
Radius parameter for adaptive view.
a simple class to control print indentation
Definition: vtkIndent.h:33
a virtual camera for 3D rendering
Definition: vtkCamera.h:44
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual vtkMTimeType GetMTime()
Return this object&#39;s modified time.
static vtkDataSetSurfaceFilter * New()
int Axis1
First axis parameter for adaptive view.
represent and manipulate attribute data in a dataset
double LastCameraParallelScale
Last camera parallel scale for adaptive view.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkPoints * Points
Storage for points of output unstructured mesh.
object to represent cell connectivity
Definition: vtkCellArray.h:44
double Scale
Scale factor for adaptive view.
dynamic, self-adjusting array of bits
Definition: vtkBitArray.h:33
Store zero or more vtkInformation instances.
int Axis2
Second axis parameter for adaptive view.
vtkRenderer * Renderer
Pointer to the renderer in use.
Extracts outer (polygonal) surface.
int LevelMax
Maximum depth parameter for adaptive view.
represent and manipulate 3D points
Definition: vtkPoints.h:33