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 
34 
35 class vtkAbstractArray;
36 
38 {
39 public:
40  static vtkAddMembershipArray* New();
42  void PrintSelf(ostream& os, vtkIndent indent);
43 
44  //BTX
45  enum
46  {
47  FIELD_DATA = 0,
48  POINT_DATA = 1,
49  CELL_DATA = 2,
50  VERTEX_DATA = 3,
51  EDGE_DATA = 4,
52  ROW_DATA = 5
53  };
54  //ETX
55 
57 
58  vtkGetMacro(FieldType, int);
59  vtkSetClampMacro(FieldType, int, 0, 5);
61 
63 
65  vtkSetStringMacro(OutputArrayName);
66  vtkGetStringMacro(OutputArrayName);
68 
69  vtkSetStringMacro(InputArrayName);
70  vtkGetStringMacro(InputArrayName);
71 
72  void SetInputValues(vtkAbstractArray*);
73  vtkGetObjectMacro(InputValues,vtkAbstractArray);
74 
75 protected:
78 
80 
81  int RequestData(
85 
86  int FieldType;
89 //BTX
91 //ETX
92 
93 private:
94  vtkAddMembershipArray(const vtkAddMembershipArray&); // Not implemented
95  void operator=(const vtkAddMembershipArray&); // Not implemented
96 };
97 
98 #endif
99