VTK
vtkAddMembershipArray.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkAddMembershipArray.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 =========================================================================*/
15 /*-------------------------------------------------------------------------
16  Copyright 2008 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
30 #ifndef vtkAddMembershipArray_h
31 #define vtkAddMembershipArray_h
32 
33 #include "vtkInfovisCoreModule.h" // For export macro
35 
36 class vtkAbstractArray;
37 
39 {
40 public:
41  static vtkAddMembershipArray* New();
43  void PrintSelf(ostream& os, vtkIndent indent);
44 
45  //BTX
46  enum
47  {
48  FIELD_DATA = 0,
49  POINT_DATA = 1,
50  CELL_DATA = 2,
51  VERTEX_DATA = 3,
52  EDGE_DATA = 4,
53  ROW_DATA = 5
54  };
55  //ETX
56 
58 
59  vtkGetMacro(FieldType, int);
60  vtkSetClampMacro(FieldType, int, 0, 5);
62 
64 
66  vtkSetStringMacro(OutputArrayName);
67  vtkGetStringMacro(OutputArrayName);
69 
70  vtkSetStringMacro(InputArrayName);
71  vtkGetStringMacro(InputArrayName);
72 
73  void SetInputValues(vtkAbstractArray*);
74  vtkGetObjectMacro(InputValues,vtkAbstractArray);
75 
76 protected:
79 
81 
82  int RequestData(
86 
87  int FieldType;
90 //BTX
92 //ETX
93 
94 private:
95  vtkAddMembershipArray(const vtkAddMembershipArray&); // Not implemented
96  void operator=(const vtkAddMembershipArray&); // Not implemented
97 };
98 
99 #endif
100 
vtkAbstractArray * InputValues
Superclass for algorithms that produce output of the same type as input.
Store vtkAlgorithm input/output information.
Abstract superclass for all arrays.
virtual int FillInputPortInformation(int port, vtkInformation *info)
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKINFOVISCORE_EXPORT
void PrintSelf(ostream &os, vtkIndent indent)
Store zero or more vtkInformation instances.
Add an array to the output indicating membership within an input selection.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
static vtkPassInputTypeAlgorithm * New()