VTK
9.1.0
Filters
Extraction
vtkExtractBlock.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkExtractBlock.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 vtkExtractBlock_h
33
#define vtkExtractBlock_h
34
35
#include "vtkFiltersExtractionModule.h"
// For export macro
36
#include "
vtkPassInputTypeAlgorithm.h
"
37
38
class
vtkDataObjectTreeIterator
;
39
class
vtkPartitionedDataSet
;
40
class
vtkMultiBlockDataSet
;
41
class
vtkDataObjectTree
;
42
43
class
VTKFILTERSEXTRACTION_EXPORT
vtkExtractBlock
:
public
vtkPassInputTypeAlgorithm
44
{
45
class
vtkSet;
46
47
public
:
49
52
static
vtkExtractBlock
*
New
();
53
vtkTypeMacro(
vtkExtractBlock
,
vtkPassInputTypeAlgorithm
);
54
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
56
58
66
void
AddIndex
(
unsigned
int
index
);
67
void
RemoveIndex
(
unsigned
int
index
);
68
void
RemoveAllIndices
();
70
72
78
vtkSetMacro(PruneOutput,
vtkTypeBool
);
79
vtkGetMacro(PruneOutput,
vtkTypeBool
);
80
vtkBooleanMacro(PruneOutput,
vtkTypeBool
);
82
84
92
vtkSetMacro(MaintainStructure,
vtkTypeBool
);
93
vtkGetMacro(MaintainStructure,
vtkTypeBool
);
94
vtkBooleanMacro(MaintainStructure,
vtkTypeBool
);
96
97
protected
:
98
vtkExtractBlock
();
99
~vtkExtractBlock
()
override
;
100
104
static
vtkInformationIntegerKey
*
DONT_PRUNE
();
105
107
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*)
override
;
108
int
FillInputPortInformation
(
int
port
,
vtkInformation
*
info
)
override
;
109
111
void
CopySubTree
(
vtkDataObjectTreeIterator
* loc,
vtkDataObjectTree
* output,
112
vtkDataObjectTree
* input, vtkSet& activeIndices);
113
bool
Prune
(
vtkMultiBlockDataSet
* mblock);
114
bool
Prune
(
vtkPartitionedDataSet
* mpiece);
115
bool
Prune
(
vtkDataObject
* branch);
116
117
vtkTypeBool
PruneOutput
;
118
vtkTypeBool
MaintainStructure
;
119
120
private
:
121
vtkExtractBlock
(
const
vtkExtractBlock
&) =
delete
;
122
void
operator=(
const
vtkExtractBlock
&) =
delete
;
123
vtkSet* Indices;
124
};
125
126
#endif
vtkPartitionedDataSet
composite dataset to encapsulates a dataset consisting of partitions.
Definition:
vtkPartitionedDataSet.h:47
vtkDataObjectTree
provides implementation for most abstract methods in the superclass vtkCompositeDataSet
Definition:
vtkDataObjectTree.h:47
vtkPassInputTypeAlgorithm.h
vtkInformationVector
Store zero or more vtkInformation instances.
Definition:
vtkInformationVector.h:145
vtkExtractBlock
extracts blocks from a vtkDataObjectTree subclass.
Definition:
vtkExtractBlock.h:44
vtkExtractBlock::RemoveAllIndices
void RemoveAllIndices()
Standard methods for instantiation, type information, and printing.
vtkExtractBlock::~vtkExtractBlock
~vtkExtractBlock() override
vtkMultiBlockDataSet
Composite dataset that organizes datasets into blocks.
Definition:
vtkMultiBlockDataSet.h:155
vtkExtractBlock::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkExtractBlock::New
static vtkExtractBlock * New()
Standard methods for instantiation, type information, and printing.
vtkExtractBlock::RemoveIndex
void RemoveIndex(unsigned int index)
Standard methods for instantiation, type information, and printing.
vtkX3D::port
@ port
Definition:
vtkX3D.h:453
vtkExtractBlock::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instantiation, type information, and printing.
vtkInformationIntegerKey
Key for integer values in vtkInformation.
Definition:
vtkInformationIntegerKey.h:32
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:113
vtkExtractBlock::DONT_PRUNE
static vtkInformationIntegerKey * DONT_PRUNE()
Internal key, used to avoid pruning of a branch.
vtkExtractBlock::MaintainStructure
vtkTypeBool MaintainStructure
Definition:
vtkExtractBlock.h:118
vtkExtractBlock::Prune
bool Prune(vtkDataObject *branch)
vtkExtractBlock::PruneOutput
vtkTypeBool PruneOutput
Definition:
vtkExtractBlock.h:117
vtkInformation
Store vtkAlgorithm input/output information.
Definition:
vtkInformation.h:183
vtkExtractBlock::vtkExtractBlock
vtkExtractBlock()
vtkX3D::info
@ info
Definition:
vtkX3D.h:382
vtkExtractBlock::CopySubTree
void CopySubTree(vtkDataObjectTreeIterator *loc, vtkDataObjectTree *output, vtkDataObjectTree *input, vtkSet &activeIndices)
Extract subtree.
vtkExtractBlock::AddIndex
void AddIndex(unsigned int index)
Select the block indices to extract.
vtkExtractBlock::Prune
bool Prune(vtkMultiBlockDataSet *mblock)
vtkExtractBlock::Prune
bool Prune(vtkPartitionedDataSet *mpiece)
vtkDataObjectTreeIterator
superclass for composite data iterators
Definition:
vtkDataObjectTreeIterator.h:56
vtkDataObject
general representation of visualization data
Definition:
vtkDataObject.h:169
vtkX3D::index
@ index
Definition:
vtkX3D.h:252
vtkExtractBlock::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Implementation of the algorithm.
vtkTypeBool
int vtkTypeBool
Definition:
vtkABI.h:69
vtkPassInputTypeAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition:
vtkPassInputTypeAlgorithm.h:52
Generated on Fri Nov 5 2021 00:11:05 for VTK by
1.8.20