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 =========================================================================*/
29 #ifndef vtkExtractBlock_h
30 #define vtkExtractBlock_h
31 
32 #include "vtkFiltersExtractionModule.h" // For export macro
34 
37 
39 {
40 public:
41  static vtkExtractBlock* New();
43  void PrintSelf(ostream& os, vtkIndent indent);
44 
46 
51  void AddIndex(unsigned int index);
52  void RemoveIndex(unsigned int index);
55 
57 
59  vtkSetMacro(PruneOutput, int);
60  vtkGetMacro(PruneOutput, int);
61  vtkBooleanMacro(PruneOutput, int);
63 
65 
69  vtkSetMacro(MaintainStructure, int);
70  vtkGetMacro(MaintainStructure, int);
71  vtkBooleanMacro(MaintainStructure, int);
73 
74 //BTX
75 protected:
78 
81 
83  virtual int RequestData(vtkInformation *,
86 
87 
91  bool Prune(vtkMultiBlockDataSet* mblock);
92  bool Prune(vtkMultiPieceDataSet* mblock);
93  bool Prune(vtkDataObject* mblock);
94 
97 private:
98  vtkExtractBlock(const vtkExtractBlock&); // Not implemented.
99  void operator=(const vtkExtractBlock&); // Not implemented.
100 
101  class vtkSet;
102  vtkSet *Indices;
103  vtkSet *ActiveIndices;
104 //ETX
105 };
106 
107 #endif
108 
109 
vtkExtractBlock::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkMultiPieceDataSet
composite dataset to encapsulates pieces of dataset.
Definition: vtkMultiPieceDataSet.h:43
vtkExtractBlock::CopySubTree
void CopySubTree(vtkDataObjectTreeIterator *loc, vtkMultiBlockDataSet *output, vtkMultiBlockDataSet *input)
Extract subtree.
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkExtractBlock
extracts blocks from a multiblock dataset.
Definition: vtkExtractBlock.h:39
vtkFiltersExtractionModule.h
vtkExtractBlock::PruneOutput
int PruneOutput
Definition: vtkExtractBlock.h:95
vtkExtractBlock::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Implementation of the algorithm.
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkExtractBlock::RemoveAllIndices
void RemoveAllIndices()
vtkgl::input
GLenum GLenum GLenum input
Definition: vtkgl.h:15941
vtkExtractBlock::Prune
bool Prune(vtkMultiPieceDataSet *mblock)
vtkMultiBlockDataSet
Composite dataset that organizes datasets into blocks.
Definition: vtkMultiBlockDataSet.h:51
vtkExtractBlock::New
static vtkExtractBlock * New()
vtkExtractBlock::RemoveIndex
void RemoveIndex(unsigned int index)
vtkExtractBlock::~vtkExtractBlock
~vtkExtractBlock()
vtkExtractBlock::MaintainStructure
int MaintainStructure
Definition: vtkExtractBlock.h:96
vtkInformationIntegerKey
Key for integer values in vtkInformation.
Definition: vtkInformationIntegerKey.h:34
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkExtractBlock::DONT_PRUNE
static vtkInformationIntegerKey * DONT_PRUNE()
vtkExtractBlock::Prune
bool Prune(vtkDataObject *mblock)
vtkMultiBlockDataSetAlgorithm.h
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkExtractBlock::vtkExtractBlock
vtkExtractBlock()
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkgl::index
GLuint index
Definition: vtkgl.h:11983
vtkExtractBlock::AddIndex
void AddIndex(unsigned int index)
vtkExtractBlock::Prune
bool Prune(vtkMultiBlockDataSet *mblock)
VTKFILTERSEXTRACTION_EXPORT
#define VTKFILTERSEXTRACTION_EXPORT
Definition: vtkFiltersExtractionModule.h:15
vtkDataObjectTreeIterator
superclass for composite data iterators
Definition: vtkDataObjectTreeIterator.h:39
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:65
vtkMultiBlockDataSetAlgorithm
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.
Definition: vtkMultiBlockDataSetAlgorithm.h:32