VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Hybrid
vtkMNITagPointWriter.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkMNITagPointWriter.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
17
Copyright (c) 2006 Atamai, Inc.
18
19
Use, modification and redistribution of the software, in source or
20
binary forms, are permitted provided that the following terms and
21
conditions are met:
22
23
1) Redistribution of the source code, in verbatim or modified
24
form, must retain the above copyright notice, this license,
25
the following disclaimer, and any notices that refer to this
26
license and/or the following disclaimer.
27
28
2) Redistribution in binary form must include the above copyright
29
notice, a copy of this license and the following disclaimer
30
in the documentation or with other materials provided with the
31
distribution.
32
33
3) Modified copies of the source code must be clearly marked as such,
34
and must not be misrepresented as verbatim copies of the source code.
35
36
THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE "AS IS"
37
WITHOUT EXPRESSED OR IMPLIED WARRANTY INCLUDING, BUT NOT LIMITED TO,
38
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
39
PURPOSE. IN NO EVENT SHALL ANY COPYRIGHT HOLDER OR OTHER PARTY WHO MAY
40
MODIFY AND/OR REDISTRIBUTE THE SOFTWARE UNDER THE TERMS OF THIS LICENSE
41
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL OR CONSEQUENTIAL DAMAGES
42
(INCLUDING, BUT NOT LIMITED TO, LOSS OF DATA OR DATA BECOMING INACCURATE
43
OR LOSS OF PROFIT OR BUSINESS INTERRUPTION) ARISING IN ANY WAY OUT OF
44
THE USE OR INABILITY TO USE THE SOFTWARE, EVEN IF ADVISED OF THE
45
POSSIBILITY OF SUCH DAMAGES.
46
47
=========================================================================*/
70
#ifndef __vtkMNITagPointWriter_h
71
#define __vtkMNITagPointWriter_h
72
73
#include "
vtkDataSetWriter.h
"
74
75
class
vtkDataSet
;
76
class
vtkPointSet
;
77
class
vtkStringArray
;
78
class
vtkDoubleArray
;
79
class
vtkIntArray
;
80
class
vtkPoints
;
81
82
class
VTK_HYBRID_EXPORT
vtkMNITagPointWriter
:
public
vtkDataSetWriter
83
{
84
public
:
85
vtkTypeMacro(
vtkMNITagPointWriter
,
vtkDataSetWriter
);
86
87
static
vtkMNITagPointWriter
*
New
();
88
virtual
void
PrintSelf
(ostream& os,
vtkIndent
indent);
89
91
92
virtual
const
char
*
GetFileExtensions
() {
93
return
".tag"
; }
95
97
98
virtual
const
char
*
GetDescriptiveName
() {
99
return
"MNI tags"
; }
101
103
104
virtual
void
SetPoints(
int
port
,
vtkPoints
*
points
);
105
virtual
void
SetPoints
(
vtkPoints
*
points
) {
106
this->SetPoints(0, points); }
107
virtual
vtkPoints
*GetPoints(
int
port
);
108
virtual
vtkPoints
*
GetPoints
() {
109
return
this->GetPoints(0); }
111
113
115
virtual
void
SetLabelText(
vtkStringArray
*a);
116
vtkGetObjectMacro(LabelText,
vtkStringArray
);
118
120
122
virtual
void
SetWeights(
vtkDoubleArray
*a);
123
vtkGetObjectMacro(Weights,
vtkDoubleArray
);
125
127
129
virtual
void
SetStructureIds(
vtkIntArray
*a);
130
vtkGetObjectMacro(StructureIds,
vtkIntArray
);
132
134
136
virtual
void
SetPatientIds(
vtkIntArray
*a);
137
vtkGetObjectMacro(PatientIds,
vtkIntArray
);
139
141
142
vtkSetStringMacro(Comments);
143
vtkGetStringMacro(Comments);
145
147
virtual
int
Write
();
148
150
virtual
unsigned
long
GetMTime
();
151
152
protected
:
153
vtkMNITagPointWriter
();
154
~
vtkMNITagPointWriter
();
155
156
vtkPoints
*Points[2];
157
vtkStringArray
*
LabelText
;
158
vtkDoubleArray
*
Weights
;
159
vtkIntArray
*
StructureIds
;
160
vtkIntArray
*
PatientIds
;
161
char
*
Comments
;
162
163
virtual
void
WriteData
() {};
164
virtual
void
WriteData
(
vtkPointSet
*inputs[2]);
165
166
int
FillInputPortInformation
(
int
port
,
vtkInformation
*
info
);
167
168
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
169
vtkInformationVector
*);
170
171
private
:
172
vtkMNITagPointWriter
(
const
vtkMNITagPointWriter
&);
// Not implemented
173
void
operator=(
const
vtkMNITagPointWriter
&);
// Not implemented
174
175
};
176
177
#endif
Generated on Wed Nov 21 2012 21:33:56 for VTK by
1.8.2