VTK
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
35 
38 
39 class VTKFILTERSEXTRACTION_EXPORT vtkExtractBlock : public vtkMultiBlockDataSetAlgorithm
40 {
41 public:
42  static vtkExtractBlock* New();
44  void PrintSelf(ostream& os, vtkIndent indent);
45 
47 
55  void AddIndex(unsigned int index);
56  void RemoveIndex(unsigned int index);
59 
61 
65  vtkSetMacro(PruneOutput, int);
66  vtkGetMacro(PruneOutput, int);
67  vtkBooleanMacro(PruneOutput, int);
69 
71 
77  vtkSetMacro(MaintainStructure, int);
78  vtkGetMacro(MaintainStructure, int);
79  vtkBooleanMacro(MaintainStructure, int);
81 
82 protected:
85 
90 
92  virtual int RequestData(vtkInformation *,
95 
96 
102  bool Prune(vtkDataObject* mblock);
103 
106 private:
107  vtkExtractBlock(const vtkExtractBlock&) VTK_DELETE_FUNCTION;
108  void operator=(const vtkExtractBlock&) VTK_DELETE_FUNCTION;
109 
110  class vtkSet;
111  vtkSet *Indices;
112  vtkSet *ActiveIndices;
113 
114 };
115 
116 #endif
117 
118 
vtkExtractBlock::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
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::PruneOutput
int PruneOutput
Definition: vtkExtractBlock.h:104
vtkExtractBlock::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Implementation of the algorithm.
vtkExtractBlock::RemoveAllIndices
void RemoveAllIndices()
vtkExtractBlock::Prune
bool Prune(vtkMultiPieceDataSet *mblock)
vtkMultiBlockDataSet
Composite dataset that organizes datasets into blocks.
Definition: vtkMultiBlockDataSet.h:52
vtkExtractBlock::New
static vtkExtractBlock * New()
vtkExtractBlock::RemoveIndex
void RemoveIndex(unsigned int index)
vtkExtractBlock::~vtkExtractBlock
~vtkExtractBlock()
vtkExtractBlock::MaintainStructure
int MaintainStructure
Definition: vtkExtractBlock.h:105
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::Prune
bool Prune(vtkDataObject *mblock)
vtkMultiBlockDataSetAlgorithm.h
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkExtractBlock::vtkExtractBlock
vtkExtractBlock()
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
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:43
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:65
vtkX3D::index
@ index
Definition: vtkX3D.h:246
vtkMultiBlockDataSetAlgorithm
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.
Definition: vtkMultiBlockDataSetAlgorithm.h:33