[Insight-users] Request for ImageFileWriter...
Parag Chandra
pchandra@radonc.unc.edu
Tue, 1 Apr 2003 16:43:05 -0500
This is a multi-part message in MIME format.
------=_NextPart_000_0133_01C2F86D.C4F269A0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Thanks, although I also see that all the member variables for =
ImageFileWriter are declared private; not sure why it doesn't follow the =
pattern of ImageFileReader, which declares them protected. I think I'm =
just going to end up copying the class and modifying it to get what I =
need for now.
-Parag
----- Original Message -----=20
From: Miller, James V (Research)=20
To: 'Parag Chandra' ; ITK Mailing List=20
Sent: Tuesday, April 01, 2003 4:30 PM
Subject: RE: [Insight-users] Request for ImageFileWriter...
Both of these methods are already virtual in the superclass =
(ProcessObject). You should not have a problem subclassing.
Jim
-----Original Message-----
From: Parag Chandra [mailto:pchandra@radonc.unc.edu]
Sent: Tuesday, April 01, 2003 4:13 PM
To: ITK Mailing List
Subject: [Insight-users] Request for ImageFileWriter...
Hi,
I'm trying to subclass ImageFileWriter to work with fstreams. I've =
defined my own file format that contains non-image data, and so I need =
to be able to write to an open stream in my application. I just need to =
override GenerateOutputInformation and GenerateData, but these are not =
declared as virtual. Can this change be made to facilitate subclassing? =
Thanks.
-Parag
------=_NextPart_000_0133_01C2F86D.C4F269A0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1141" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Thanks, although I also see that all =
the member=20
variables for ImageFileWriter are declared private; not sure why it =
doesn't=20
follow the pattern of ImageFileReader, which declares them =
protected. I=20
think I'm just going to end up copying the class and modifying it to get =
what I=20
need for now.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>-Parag</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV=20
style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
<A title=3Dmillerjv@crd.ge.com =
href=3D"mailto:millerjv@crd.ge.com">Miller, James V=20
(Research)</A> </DIV>
<DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
title=3Dpchandra@radonc.unc.edu=20
href=3D"mailto:pchandra@radonc.unc.edu">'Parag Chandra'</A> ; <A=20
title=3Dinsight-users@public.kitware.com=20
href=3D"mailto:insight-users@public.kitware.com">ITK Mailing List</A> =
</DIV>
<DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Tuesday, April 01, 2003 =
4:30=20
PM</DIV>
<DIV style=3D"FONT: 10pt arial"><B>Subject:</B> RE: [Insight-users] =
Request for=20
ImageFileWriter...</DIV>
<DIV><BR></DIV>
<DIV><SPAN class=3D117432921-01042003><FONT color=3D#0000ff =
size=3D2>Both of these=20
methods are already virtual in the superclass =
(ProcessObject). You=20
should not have a problem subclassing.</FONT></SPAN></DIV>
<DIV><SPAN class=3D117432921-01042003><FONT color=3D#0000ff=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D117432921-01042003><FONT color=3D#0000ff=20
size=3D2>Jim</FONT></SPAN></DIV>
<DIV><SPAN class=3D117432921-01042003><FONT color=3D#0000ff=20
size=3D2></FONT></SPAN> </DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px =
solid; MARGIN-RIGHT: 0px">
<DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
size=3D2>-----Original Message-----<BR><B>From:</B> Parag Chandra=20
[mailto:pchandra@radonc.unc.edu]<BR><B>Sent:</B> Tuesday, April 01, =
2003=20
4:13 PM<BR><B>To:</B> ITK Mailing List<BR><B>Subject:</B> =
[Insight-users]=20
Request for ImageFileWriter...<BR><BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I'm trying to=20
subclass ImageFileWriter to work with fstreams. I've =
defined my=20
own file format that contains non-image data, and so I need to =
be able=20
to write to an open stream in my application. I just need to =
override=20
GenerateOutputInformation and GenerateData, but these are not =
declared as=20
virtual. Can this change be made to facilitate subclassing?=20
Thanks.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>-Parag</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV> </DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>
------=_NextPart_000_0133_01C2F86D.C4F269A0--