VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Infovis
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 "
vtkPassInputTypeAlgorithm.h
"
34
35
class
vtkAbstractArray
;
36
37
class
VTK_INFOVIS_EXPORT
vtkAddMembershipArray
:
public
vtkPassInputTypeAlgorithm
38
{
39
public
:
40
static
vtkAddMembershipArray
*
New
();
41
vtkTypeMacro(
vtkAddMembershipArray
,
vtkPassInputTypeAlgorithm
);
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
:
76
vtkAddMembershipArray
();
77
~
vtkAddMembershipArray
();
78
79
int
FillInputPortInformation
(
int
port
,
vtkInformation
*
info
);
80
81
int
RequestData
(
82
vtkInformation
*,
83
vtkInformationVector
**,
84
vtkInformationVector
*);
85
86
int
FieldType
;
87
char
*
OutputArrayName
;
88
char
*
InputArrayName
;
89
//BTX
90
vtkAbstractArray
*
InputValues
;
91
//ETX
92
93
private
:
94
vtkAddMembershipArray
(
const
vtkAddMembershipArray
&);
// Not implemented
95
void
operator=(
const
vtkAddMembershipArray
&);
// Not implemented
96
};
97
98
#endif
99
Generated on Wed May 30 2012 13:22:14 for VTK by
1.8.1