VTK
vtkHyperOctreeSurfaceFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkHyperOctreeSurfaceFilter.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 =========================================================================*/
28 #ifndef vtkHyperOctreeSurfaceFilter_h
29 #define vtkHyperOctreeSurfaceFilter_h
30 
31 #include "vtkFiltersHyperTreeModule.h" // For export macro
32 #include "vtkPolyDataAlgorithm.h"
33 
36 class vtkIdTypeArray;
38 
39 class VTKFILTERSHYPERTREE_EXPORT vtkHyperOctreeSurfaceFilter : public vtkPolyDataAlgorithm
40 {
41 public:
44  void PrintSelf(ostream& os, vtkIndent indent);
45 
47 
52  vtkSetMacro(Merging,int);
53  vtkGetMacro(Merging,int);
54  vtkBooleanMacro(Merging,int);
56 
58 
63  vtkGetObjectMacro(Locator,vtkIncrementalPointLocator);
65 
70 
72 
78  vtkSetMacro(PassThroughCellIds,int);
79  vtkGetMacro(PassThroughCellIds,int);
80  vtkBooleanMacro(PassThroughCellIds,int);
82 
83 protected:
86 
89 
90  void GenerateLines(double bounds[2],
91  vtkIdType ptIds[2]);
92  void GenerateQuads(double bounds[4],
93  vtkIdType ptIds[4]);
94  void GenerateFaces(double bounds[6],
95  vtkIdType ptIds[8],
96  int onFace[6]);
97 
102 
103  int Merging;
105 
106  // Variables used by generate recursively.
107  // It avoids to pass to much argument.
109 
114 
116  void RecordOrigCellId(vtkIdType destIndex, vtkIdType originalId);
118 
119 private:
120  vtkHyperOctreeSurfaceFilter(const vtkHyperOctreeSurfaceFilter&) VTK_DELETE_FUNCTION;
121  void operator=(const vtkHyperOctreeSurfaceFilter&) VTK_DELETE_FUNCTION;
122 };
123 
124 #endif
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:40
vtkHyperOctreeSurfaceFilter::GenerateQuads
void GenerateQuads(double bounds[4], vtkIdType ptIds[4])
vtkHyperOctreeSurfaceFilter::SetLocator
void SetLocator(vtkIncrementalPointLocator *locator)
Set / get a spatial locator for merging points.
vtkHyperOctreeSurfaceFilter::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
vtkHyperOctreeSurfaceFilter::OutputCD
vtkCellData * OutputCD
Definition: vtkHyperOctreeSurfaceFilter.h:113
vtkIdType
int vtkIdType
Definition: vtkType.h:287
vtkDataSetAttributes
represent and manipulate attribute data in a dataset
Definition: vtkDataSetAttributes.h:59
vtkHyperOctreeSurfaceFilter::RecordOrigCellId
void RecordOrigCellId(vtkIdType destIndex, vtkIdType originalId)
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkHyperOctreeCursor
Objects that can traverse hyperoctree nodes.
Definition: vtkHyperOctreeCursor.h:52
vtkHyperOctreeSurfaceFilter::vtkHyperOctreeSurfaceFilter
vtkHyperOctreeSurfaceFilter()
vtkHyperOctreeSurfaceFilter::GetMTime
vtkMTimeType GetMTime()
Return the MTime also considering the locator.
vtkMTimeType
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248
vtkPolyDataAlgorithm.h
vtkHyperOctreeSurfaceFilter::~vtkHyperOctreeSurfaceFilter
~vtkHyperOctreeSurfaceFilter()
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkHyperOctreeSurfaceFilter::Locator
vtkIncrementalPointLocator * Locator
Definition: vtkHyperOctreeSurfaceFilter.h:104
vtkHyperOctreeSurfaceFilter::Merging
int Merging
Definition: vtkHyperOctreeSurfaceFilter.h:103
vtkHyperOctreeSurfaceFilter::New
static vtkHyperOctreeSurfaceFilter * New()
vtkCellData
represent and manipulate cell attribute data
Definition: vtkCellData.h:39
vtkHyperOctreeSurfaceFilter::CreateDefaultLocator
void CreateDefaultLocator()
Create default locator.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkCellArray
object to represent cell connectivity
Definition: vtkCellArray.h:51
vtkIncrementalPointLocator
Abstract class in support of both point location and point insertion.
Definition: vtkIncrementalPointLocator.h:52
vtkHyperOctreeSurfaceFilter::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
vtkHyperOctreeSurfaceFilter::OutCells
vtkCellArray * OutCells
Definition: vtkHyperOctreeSurfaceFilter.h:112
vtkHyperOctreeSurfaceFilter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkIdTypeArray
dynamic, self-adjusting array of vtkIdType
Definition: vtkIdTypeArray.h:42
vtkHyperOctreeSurfaceFilter::GenerateLines
void GenerateLines(double bounds[2], vtkIdType ptIds[2])
vtkHyperOctreeSurfaceFilter::Cursor
vtkHyperOctreeCursor * Cursor
Definition: vtkHyperOctreeSurfaceFilter.h:110
vtkHyperOctreeSurfaceFilter::PassThroughCellIds
int PassThroughCellIds
Definition: vtkHyperOctreeSurfaceFilter.h:115
vtkHyperOctreeSurfaceFilter::OriginalCellIds
vtkIdTypeArray * OriginalCellIds
Definition: vtkHyperOctreeSurfaceFilter.h:117
vtkHyperOctreeSurfaceFilter
Extracts outer (polygonal) surface.
Definition: vtkHyperOctreeSurfaceFilter.h:40
vtkHyperOctreeSurfaceFilter::InputCD
vtkDataSetAttributes * InputCD
Definition: vtkHyperOctreeSurfaceFilter.h:108
vtkHyperOctreeSurfaceFilter::OutPts
vtkPoints * OutPts
Definition: vtkHyperOctreeSurfaceFilter.h:111
vtkHyperOctreeSurfaceFilter::GenerateFaces
void GenerateFaces(double bounds[6], vtkIdType ptIds[8], int onFace[6])
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:45