VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Filters
Extraction
vtkExtractCells.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkExtractCells.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
=========================================================================*/
15
/*----------------------------------------------------------------------------
16
Copyright (c) Sandia Corporation
17
See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
18
----------------------------------------------------------------------------*/
19
30
#ifndef __vtkExtractCells_h
31
#define __vtkExtractCells_h
32
33
#include "vtkFiltersExtractionModule.h"
// For export macro
34
#include "
vtkUnstructuredGridAlgorithm.h
"
35
36
class
vtkIdList
;
37
class
vtkExtractCellsSTLCloak;
38
class
vtkModelMetadata
;
39
40
class
VTKFILTERSEXTRACTION_EXPORT
vtkExtractCells
:
public
vtkUnstructuredGridAlgorithm
41
{
42
public
:
43
vtkTypeMacro(
vtkExtractCells
,
vtkUnstructuredGridAlgorithm
);
44
virtual
void
PrintSelf
(ostream &os,
vtkIndent
indent);
45
46
static
vtkExtractCells
*
New
();
47
52
void
SetCellList(
vtkIdList
*l);
53
57
void
AddCellList(
vtkIdList
*l);
58
62
void
AddCellRange(
vtkIdType
from,
vtkIdType
to);
63
64
protected
:
65
66
virtual
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*);
67
virtual
int
FillInputPortInformation
(
int
port
,
vtkInformation
*
info
);
68
69
vtkExtractCells
();
70
~
vtkExtractCells
();
71
72
private
:
73
74
void
Copy(
vtkDataSet
*input,
vtkUnstructuredGrid
*output);
75
static
vtkIdType
findInSortedList(
vtkIdList
*idList,
vtkIdType
id
);
76
vtkIdList
*reMapPointIds(
vtkDataSet
*grid);
77
78
vtkModelMetadata
*ExtractMetadata(
vtkDataSet
*input);
79
80
void
CopyCellsDataSet(
vtkIdList
*ptMap,
vtkDataSet
*input,
81
vtkUnstructuredGrid
*output);
82
void
CopyCellsUnstructuredGrid(
vtkIdList
*ptMap,
vtkDataSet
*input,
83
vtkUnstructuredGrid
*output);
84
85
vtkExtractCellsSTLCloak *CellList;
86
87
int
SubSetUGridCellArraySize;
88
char
InputIsUgrid;
89
90
vtkExtractCells
(
const
vtkExtractCells
&);
// Not implemented
91
void
operator=(
const
vtkExtractCells
&);
// Not implemented
92
};
93
94
#endif
Generated on Thu May 24 2012 22:22:14 for VTK by
1.8.1