VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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
34 #include "vtkPassInputTypeAlgorithm.h"
35 
36 class vtkAbstractArray;
37 
38 class VTKINFOVISCORE_EXPORT vtkAddMembershipArray : public vtkPassInputTypeAlgorithm
39 {
40 public:
41  static vtkAddMembershipArray* New();
42  vtkTypeMacro(vtkAddMembershipArray,vtkPassInputTypeAlgorithm);
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 
80  int FillInputPortInformation(int port, vtkInformation* info);
81 
82  int RequestData(
83  vtkInformation*,
84  vtkInformationVector**,
85  vtkInformationVector*);
86 
87  int FieldType;
90 //BTX
91  vtkAbstractArray* InputValues;
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
Add an array to the output indicating membership within an input selection.