VTK
dox
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
=========================================================================*/
30
#ifndef vtkExtractBlock_h
31
#define vtkExtractBlock_h
32
33
#include "vtkFiltersExtractionModule.h"
// For export macro
34
#include "
vtkMultiBlockDataSetAlgorithm.h
"
35
36
class
vtkDataObjectTreeIterator
;
37
class
vtkMultiPieceDataSet
;
38
39
class
VTKFILTERSEXTRACTION_EXPORT
vtkExtractBlock
:
public
vtkMultiBlockDataSetAlgorithm
40
{
41
public
:
43
46
static
vtkExtractBlock
*
New
();
47
vtkTypeMacro(
vtkExtractBlock
,
vtkMultiBlockDataSetAlgorithm
);
48
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
50
52
60
void
AddIndex
(
unsigned
int
index
);
61
void
RemoveIndex
(
unsigned
int
index
);
62
void
RemoveAllIndices
();
64
66
70
vtkSetMacro(PruneOutput,
vtkTypeBool
);
71
vtkGetMacro(PruneOutput,
vtkTypeBool
);
72
vtkBooleanMacro(PruneOutput,
vtkTypeBool
);
74
76
82
vtkSetMacro(MaintainStructure,
vtkTypeBool
);
83
vtkGetMacro(MaintainStructure,
vtkTypeBool
);
84
vtkBooleanMacro(MaintainStructure,
vtkTypeBool
);
86
87
protected
:
88
vtkExtractBlock
();
89
~vtkExtractBlock
()
override
;
90
94
static
vtkInformationIntegerKey
*
DONT_PRUNE
();
95
97
int
RequestData
(
vtkInformation
*,
98
vtkInformationVector
**,
99
vtkInformationVector
*)
override
;
100
101
103
void
CopySubTree
(
vtkDataObjectTreeIterator
* loc,
104
vtkMultiBlockDataSet
* output,
vtkMultiBlockDataSet
* input);
105
bool
Prune
(
vtkMultiBlockDataSet
* mblock);
106
bool
Prune
(
vtkMultiPieceDataSet
* mblock);
107
bool
Prune
(
vtkDataObject
* mblock);
108
109
vtkTypeBool
PruneOutput
;
110
vtkTypeBool
MaintainStructure
;
111
112
private
:
113
vtkExtractBlock
(
const
vtkExtractBlock
&) =
delete
;
114
void
operator=(
const
vtkExtractBlock
&) =
delete
;
115
116
class
vtkSet;
117
vtkSet *Indices;
118
vtkSet *ActiveIndices;
119
120
};
121
122
#endif
vtkMultiPieceDataSet
composite dataset to encapsulates pieces of dataset.
Definition:
vtkMultiPieceDataSet.h:44
vtkExtractBlock::CopySubTree
void CopySubTree(vtkDataObjectTreeIterator *loc, vtkMultiBlockDataSet *output, vtkMultiBlockDataSet *input)
Extract subtree.
vtkInformationVector
Store zero or more vtkInformation instances.
Definition:
vtkInformationVector.h:42
vtkExtractBlock
extracts blocks from a multiblock dataset.
Definition:
vtkExtractBlock.h:40
vtkExtractBlock::RemoveAllIndices
void RemoveAllIndices()
vtkExtractBlock::~vtkExtractBlock
~vtkExtractBlock() override
vtkExtractBlock::Prune
bool Prune(vtkMultiPieceDataSet *mblock)
vtkMultiBlockDataSet
Composite dataset that organizes datasets into blocks.
Definition:
vtkMultiBlockDataSet.h:52
vtkExtractBlock::New
static vtkExtractBlock * New()
Standard methods for instantiation, type information, and printing.
vtkExtractBlock::RemoveIndex
void RemoveIndex(unsigned int index)
vtkExtractBlock::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkInformationIntegerKey
Key for integer values in vtkInformation.
Definition:
vtkInformationIntegerKey.h:35
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:40
vtkExtractBlock::DONT_PRUNE
static vtkInformationIntegerKey * DONT_PRUNE()
Internal key, used to avoid pruning of a branch.
vtkExtractBlock::MaintainStructure
vtkTypeBool MaintainStructure
Definition:
vtkExtractBlock.h:110
vtkExtractBlock::Prune
bool Prune(vtkDataObject *mblock)
vtkExtractBlock::PruneOutput
vtkTypeBool PruneOutput
Definition:
vtkExtractBlock.h:109
vtkMultiBlockDataSetAlgorithm.h
vtkInformation
Store vtkAlgorithm input/output information.
Definition:
vtkInformation.h:87
vtkExtractBlock::vtkExtractBlock
vtkExtractBlock()
vtkExtractBlock::AddIndex
void AddIndex(unsigned int index)
Select the block indices to extract.
vtkExtractBlock::Prune
bool Prune(vtkMultiBlockDataSet *mblock)
vtkDataObjectTreeIterator
superclass for composite data iterators
Definition:
vtkDataObjectTreeIterator.h:40
vtkDataObject
general representation of visualization data
Definition:
vtkDataObject.h:65
vtkX3D::index
@ index
Definition:
vtkX3D.h:246
vtkExtractBlock::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Implementation of the algorithm.
vtkTypeBool
int vtkTypeBool
Definition:
vtkABI.h:69
vtkMultiBlockDataSetAlgorithm
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.
Definition:
vtkMultiBlockDataSetAlgorithm.h:36
Generated by
1.8.20