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 
33 
36 
38 {
39 public:
40  static vtkExtractBlock* New();
42  void PrintSelf(ostream& os, vtkIndent indent);
43 
45 
50  void AddIndex(unsigned int index);
51  void RemoveIndex(unsigned int index);
52  void RemoveAllIndices();
54 
56 
58  vtkSetMacro(PruneOutput, int);
59  vtkGetMacro(PruneOutput, int);
60  vtkBooleanMacro(PruneOutput, int);
62 
64 
68  vtkSetMacro(MaintainStructure, int);
69  vtkGetMacro(MaintainStructure, int);
70  vtkBooleanMacro(MaintainStructure, int);
72 
73 //BTX
74 protected:
76  ~vtkExtractBlock();
77 
79  static vtkInformationIntegerKey* DONT_PRUNE();
80 
82  virtual int RequestData(vtkInformation *,
85 
86 
88  void CopySubTree(vtkCompositeDataIterator* loc,
90  bool Prune(vtkMultiBlockDataSet* mblock);
91  bool Prune(vtkMultiPieceDataSet* mblock);
92  bool Prune(vtkDataObject* mblock);
93 
96 private:
97  vtkExtractBlock(const vtkExtractBlock&); // Not implemented.
98  void operator=(const vtkExtractBlock&); // Not implemented.
99 
100  class vtkSet;
101  vtkSet *Indices;
102  vtkSet *ActiveIndices;
103 //ETX
104 };
105 
106 #endif
107 
108 
#define VTK_GRAPHICS_EXPORT
Store vtkAlgorithm input/output information.
extracts blocks from a multiblock dataset.
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
static vtkMultiBlockDataSetAlgorithm * New()
superclass for composite data iterators
a simple class to control print indentation
Definition: vtkIndent.h:37
Key for integer values in vtkInformation.
composite dataset to encapsulates pieces of dataset.
Composite dataset that organizes datasets into blocks.
void PrintSelf(ostream &os, vtkIndent indent)
Store zero or more vtkInformation instances.
general representation of visualization data
Definition: vtkDataObject.h:70