[vtkusers] Autoreply: vtkusers digest, Vol 1 #544 - 1 msg
postmaster at webdsi.com
postmaster at webdsi.com
Sat Sep 8 14:04:25 EDT 2001
The user that you sent email to does not exist on this server. Please check the email address and try again.
Your message reads:
Received: from public.kitware.com (unverified [208.136.18.25]) by mail.webdsi.com
(Rockliffe SMTPRA 4.5.4) with ESMTP id <B0019293667 at mail.webdsi.com> for <wcashen at engima.com>;
Sat, 8 Sep 2001 13:04:25 -0500
Received: from public.kitware.com (localhost.kitware.com [127.0.0.1])
by public.kitware.com (8.11.6/8.11.6) with ESMTP id f88I2DE81944;
Sat, 8 Sep 2001 14:02:13 -0400 (EDT)
(envelope-from vtkusers-admin at public.kitware.com)
Date: Sat, 8 Sep 2001 14:02:13 -0400 (EDT)
Message-Id: <200109081802.f88I2DE81944 at public.kitware.com>
From: vtkusers-request at public.kitware.com
Subject: vtkusers digest, Vol 1 #544 - 1 msg
Reply-to: vtkusers at public.kitware.com
X-Mailer: Mailman v2.0.6
MIME-version: 1.0
Content-type: text/plain
To: vtkusers at public.kitware.com
Sender: vtkusers-admin at public.kitware.com
Errors-To: vtkusers-admin at public.kitware.com
X-BeenThere: vtkusers at public.kitware.com
X-Mailman-Version: 2.0.6
Precedence: bulk
List-Help: <mailto:vtkusers-request at public.kitware.com?subject=help>
List-Post: <mailto:vtkusers at public.kitware.com>
List-Subscribe: <http://public.kitware.com/mailman/listinfo/vtkusers>,
<mailto:vtkusers-request at public.kitware.com?subject=subscribe>
List-Id: <vtkusers.public.kitware.com>
List-Unsubscribe: <http://public.kitware.com/mailman/listinfo/vtkusers>,
<mailto:vtkusers-request at public.kitware.com?subject=unsubscribe>
List-Archive: <http://public.kitware.com/pipermail/vtkusers/>
Send vtkusers mailing list submissions to
vtkusers at public.kitware.com
To subscribe or unsubscribe via the World Wide Web, visit
http://public.kitware.com/mailman/listinfo/vtkusers
or, via email, send a message with subject or body 'help' to
vtkusers-request at public.kitware.com
You can reach the person managing the list at
vtkusers-admin at public.kitware.com
When replying, please edit your Subject line so it is more specific
than "Re: Contents of vtkusers digest..."
Today's Topics:
1. Autoreply: vtkusers digest, Vol 1 #543 - 3 msgs (postmaster at webdsi.com)
--__--__--
Message: 1
To: vtkusers at public.kitware.com
From: postmaster at webdsi.com
Date: Sat, 8 Sep 2001 12:56:41 -0500
Subject: [vtkusers] Autoreply: vtkusers digest, Vol 1 #543 - 3 msgs
The user that you sent email to does not exist on this server. Please check the email address and try again.
Your message reads:
Received: from public.kitware.com (unverified [208.136.18.25]) by mail.webdsi.com
(Rockliffe SMTPRA 4.5.4) with ESMTP id <B0019293527 at mail.webdsi.com> for <wcashen at engima.com>;
Sat, 8 Sep 2001 12:56:41 -0500
Received: from public.kitware.com (localhost.kitware.com [127.0.0.1])
by public.kitware.com (8.11.6/8.11.6) with ESMTP id f88HvaE81782;
Sat, 8 Sep 2001 13:57:37 -0400 (EDT)
(envelope-from vtkusers-admin at public.kitware.com)
Date: Sat, 8 Sep 2001 13:57:37 -0400 (EDT)
Message-Id: <200109081757.f88HvaE81782 at public.kitware.com>
From: vtkusers-request at public.kitware.com
Subject: vtkusers digest, Vol 1 #543 - 3 msgs
Reply-to: vtkusers at public.kitware.com
X-Mailer: Mailman v2.0.6
MIME-version: 1.0
Content-type: text/plain
To: vtkusers at public.kitware.com
Sender: vtkusers-admin at public.kitware.com
Errors-To: vtkusers-admin at public.kitware.com
X-BeenThere: vtkusers at public.kitware.com
X-Mailman-Version: 2.0.6
Precedence: bulk
List-Help: <mailto:vtkusers-request at public.kitware.com?subject=help>
List-Post: <mailto:vtkusers at public.kitware.com>
List-Subscribe: <http://public.kitware.com/mailman/listinfo/vtkusers>,
<mailto:vtkusers-request at public.kitware.com?subject=subscribe>
List-Id: <vtkusers.public.kitware.com>
List-Unsubscribe: <http://public.kitware.com/mailman/listinfo/vtkusers>,
<mailto:vtkusers-request at public.kitware.com?subject=unsubscribe>
List-Archive: <http://public.kitware.com/pipermail/vtkusers/>
Send vtkusers mailing list submissions to
vtkusers at public.kitware.com
To subscribe or unsubscribe via the World Wide Web, visit
http://public.kitware.com/mailman/listinfo/vtkusers
or, via email, send a message with subject or body 'help' to
vtkusers-request at public.kitware.com
You can reach the person managing the list at
vtkusers-admin at public.kitware.com
When replying, please edit your Subject line so it is more specific
than "Re: Contents of vtkusers digest..."
Today's Topics:
1. Autoreply: vtkusers digest, Vol 1 #542 - 13 msgs (postmaster at webdsi.com)
2. Re: Windows offscreen image rendering (John Biddiscombe)
3. Curving (M. Mustafa)
-- __--__--
Message: 1
To: vtkusers at public.kitware.com
From: postmaster at webdsi.com
Date: Sat, 8 Sep 2001 11:04:57 -0500
Subject: [vtkusers] Autoreply: vtkusers digest, Vol 1 #542 - 13 msgs
The user that you sent email to does not exist on this server. Please check the email address and try again.
Your message reads:
Received: from public.kitware.com (unverified [208.136.18.25]) by mail.webdsi.com
(Rockliffe SMTPRA 4.5.4) with ESMTP id <B0019291318 at mail.webdsi.com> for <wcashen at engima.com>;
Sat, 8 Sep 2001 11:04:57 -0500
Received: from public.kitware.com (localhost.kitware.com [127.0.0.1])
by public.kitware.com (8.11.6/8.11.6) with ESMTP id f88G4VE48758;
Sat, 8 Sep 2001 12:04:32 -0400 (EDT)
(envelope-from vtkusers-admin at public.kitware.com)
Date: Sat, 8 Sep 2001 12:04:32 -0400 (EDT)
Message-Id: <200109081604.f88G4VE48758 at public.kitware.com>
From: vtkusers-request at public.kitware.com
Subject: vtkusers digest, Vol 1 #542 - 13 msgs
Reply-to: vtkusers at public.kitware.com
X-Mailer: Mailman v2.0.6
MIME-version: 1.0
Content-type: text/plain
To: vtkusers at public.kitware.com
Sender: vtkusers-admin at public.kitware.com
Errors-To: vtkusers-admin at public.kitware.com
X-BeenThere: vtkusers at public.kitware.com
X-Mailman-Version: 2.0.6
Precedence: bulk
List-Help: <mailto:vtkusers-request at public.kitware.com?subject=help>
List-Post: <mailto:vtkusers at public.kitware.com>
List-Subscribe: <http://public.kitware.com/mailman/listinfo/vtkusers>,
<mailto:vtkusers-request at public.kitware.com?subject=subscribe>
List-Id: <vtkusers.public.kitware.com>
List-Unsubscribe: <http://public.kitware.com/mailman/listinfo/vtkusers>,
<mailto:vtkusers-request at public.kitware.com?subject=unsubscribe>
List-Archive: <http://public.kitware.com/pipermail/vtkusers/>
Send vtkusers mailing list submissions to
vtkusers at public.kitware.com
To subscribe or unsubscribe via the World Wide Web, visit
http://public.kitware.com/mailman/listinfo/vtkusers
or, via email, send a message with subject or body 'help' to
vtkusers-request at public.kitware.com
You can reach the person managing the list at
vtkusers-admin at public.kitware.com
When replying, please edit your Subject line so it is more specific
than "Re: Contents of vtkusers digest..."
Today's Topics:
1. unzipping today's nightly release (Miguel Angel Martin Fernandez)
2. (no subject) (lappadj at libero.it)
3. RE: Problem with Delaunay3D (Julio Lopez)
4. list is back (Bill Hoffman)
5. test (Bill Hoffman)
6. test (Bill Hoffman)
7. Re: list is back (David Gobbi)
8. RE: list is back (Robert F. Palank)
9. imaging (Shashidhar Kamath)
10. Windows offscreen image rendering (=?utf-8?Q?Ermin_Hasi=C4=8Devi=C4=87?=)
11. vtkFollower as part of a vtkAssembly (Ron Inbar)
12. About coordinate system and vtkClipPolyData in VTK (Jianlong Zhou)
13. Re: vtkFollower as part of a vtkAssembly (Will Schroeder)
-- __--__--
Message: 1
Date: Wed, 5 Sep 2001 13:28:21 +0200 (CEST)
From: Miguel Angel Martin Fernandez <vtk at helios.tel.uva.es>
To: vtkusers at public.kitware.com
Subject: [vtkusers] unzipping today's nightly release
Hi vtkusers!
I haven't been able to unzip today's nightly release (file vtk.tar.gz)
Is anyone else having the same problem?
Thank you!
--
________________________________________________________
_________(_ _)_________
\········(_ Miguel Ángel Martín Fernández _)········/
\·······(_ ETSI Telecomunicación, Universidad de Valladolid _)·······/
\······(_ Campus Miguel Delibes, Camino del Cementerio, s/n _)······/
)·····(_ e-mail: miguel at atenea.tel.uva.es _)·····(
/······(_ Tfno: +34-983-423000 Ext. 25548 _)······\
/·······(________________________________________________________)·······\
/__________) (_____________\
-- __--__--
Message: 2
Date: Wed, 5 Sep 2001 13:38:49 +0200
From: "lappadj at libero.it"<lappadj at libero.it>
Cc: mailto:vtkusers at public.kitware.com
Subject: [vtkusers] (no subject)
Hi,
i do not succeed to read the bpm images with vtkBPMReader,i have tried
in two following ways:
1)vtkBMPReader *imagein=vtkBMPReader::New();
imagein->SetFileName ("Documents and
Settings/Massimo/DicomFromEngland/BMPDicom/pat_2_55.0,pat_2_64.9");
is not valid,and if i use the vtkImageReader i achieve this error
message and the volume is not rendered
Warning: In d:\nightly\vtk\imaging\vtkImageReader.cxx, line 648
vtkBMPReader (0x00415900): File operation failed.
Generic Warning: In d:\nightly\vtk\imaging\vtkBMPReader.cxx, line
451
File operation failed. row = 0, Read = 240, Skip0 = 0, Skip1 = 0,
FilePos = 0
2)BMPReader->SetFilePrefix("pat");
BMPReader->SetFilePattern("%s_%03d.bmp");
where the images are:pat_01.bpm to pat_09.bpm
Thanks a lot
-- __--__--
Message: 3
Reply-To: <jclopez at andrew.cmu.edu>
From: "Julio Lopez" <jclopez at cs.cmu.edu>
To: "Sarika Paranjape" <sarika21 at hotmail.com>, <vtkusers at public.kitware.com>
Subject: RE: [vtkusers] Problem with Delaunay3D
Date: Wed, 5 Sep 2001 09:44:34 -0400
This is a multi-part message in MIME format.
------=_NextPart_000_000E_01C135EF.5EF7D280
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Hi,
You might want to try an "external tetrahedralizer" and then convert your
data back into vtk format.
This urls might be useful:
http://www.cs.cmu.edu/~quake/triangle.html
http://www.cs.cmu.edu/~jrs/
The quake project uses 'triangle' to create tetrahedral meshes out of 2.5
million unstructured points, resulting in 14 million tetrahedrons.
-- Julio
-----Original Message-----
From: vtkusers-admin at public.kitware.com
[mailto:vtkusers-admin at public.kitware.com]On Behalf Of Sarika Paranjape
Sent: Tuesday, September 04, 2001 5:33 PM
To: vtkusers at public.kitware.com
Subject: [vtkusers] Problem with Delaunay3D
Hi
I am trying to create a 3D tetrahedral mesh with structured points. It
works for small sample points but it fails to work for large number of
points. (i am using more than 5000 point). It's also written in the user's
guide that Delaunay3D is not robust for handling large number of points. Is
there any alternative class to generate 3D tetrahedral mesh? Has anybody
used it before?
any help appreciated!
thanks
sarika
----------------------------------------------------------------------------
--
Get your FREE download of MSN Explorer at http://explorer.msn.com
_______________________________________________ This is the private VTK
discussion list. Please keep messages on-topic. Check the FAQ at: Follow
this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers
------=_NextPart_000_000E_01C135EF.5EF7D280
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 5.50.4807.2300" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D906153513-05092001><FONT face=3D"Comic Sans MS" =
color=3D#000080=20
size=3D2>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=3D906153513-05092001><FONT face=3D"Comic Sans MS" =
color=3D#000080=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D906153513-05092001><FONT face=3D"Comic Sans MS" =
color=3D#000080=20
size=3D2>You might want to try an "external tetrahedralizer" and then =
convert your=20
data back into vtk format.</FONT></SPAN></DIV>
<DIV><SPAN class=3D906153513-05092001><FONT face=3D"Comic Sans MS" =
color=3D#000080=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D906153513-05092001><FONT face=3D"Comic Sans MS" =
color=3D#000080=20
size=3D2>This urls might be useful:</FONT></SPAN></DIV>
<DIV><SPAN class=3D906153513-05092001><FONT face=3D"Comic Sans MS" =
color=3D#000080=20
size=3D2><A=20
href=3D"http://www.cs.cmu.edu/~quake/triangle.html">http://www.cs.cmu.edu=
/~quake/triangle.html</A></FONT></SPAN></DIV>
<DIV><SPAN class=3D906153513-05092001><FONT face=3D"Comic Sans MS" =
color=3D#000080=20
size=3D2><A=20
href=3D"http://www.cs.cmu.edu/~jrs/">http://www.cs.cmu.edu/~jrs/</A></FON=
T></SPAN></DIV>
<DIV><SPAN class=3D906153513-05092001><FONT face=3D"Comic Sans MS" =
color=3D#000080=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D906153513-05092001><FONT face=3D"Comic Sans MS" =
color=3D#000080=20
size=3D2>The quake project uses 'triangle' to create tetrahedral meshes =
out of 2.5=20
million unstructured points, resulting in 14 million=20
tetrahedrons.</FONT></SPAN></DIV>
<DIV><SPAN class=3D906153513-05092001><FONT face=3D"Comic Sans MS" =
color=3D#000080=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D906153513-05092001><FONT face=3D"Comic Sans MS" =
color=3D#000080=20
size=3D2>-- Julio</FONT></SPAN></DIV>
<BLOCKQUOTE=20
style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000080 2px =
solid">
<DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
size=3D2>-----Original Message-----<BR><B>From:</B>=20
vtkusers-admin at public.kitware.com=20
[mailto:vtkusers-admin at public.kitware.com]<B>On Behalf Of </B>Sarika=20
Paranjape<BR><B>Sent:</B> Tuesday, September 04, 2001 5:33 =
PM<BR><B>To:</B>=20
vtkusers at public.kitware.com<BR><B>Subject:</B> [vtkusers] Problem with =
Delaunay3D<BR><BR></FONT></DIV>
<DIV>
<DIV>Hi</DIV>
<DIV>I am trying to create a 3D tetrahedral mesh with structured =
points. It=20
works for small sample points but it fails to work for large =
number of=20
points. (i am using more than 5000 point). It's also written =
in the=20
user's guide that Delaunay3D is not robust for handling large number =
of=20
points. Is there any alternative class to generate 3D tetrahedral =
mesh? Has=20
anybody used it before?</DIV>
<DIV> </DIV>
<DIV>any help appreciated!</DIV>
<DIV> </DIV>
<DIV>thanks</DIV>
<DIV>sarika</DIV></DIV><BR clear=3Dall>
<HR>
Get your FREE download of MSN Explorer at <A=20
=
href=3D"http://go.msn.com/bql/hmtag_itl_EN.asp">http://explorer.msn.com</=
A><BR>_______________________________________________=20
This is the private VTK discussion list. Please keep messages =
on-topic. Check=20
the FAQ at: <HTTP: vtkfaq cgi-bin public.kitware.com>Follow this link =
to=20
subscribe/unsubscribe: =
http://public.kitware.com/mailman/listinfo/vtkusers=20
</BLOCKQUOTE></BODY></HTML>
------=_NextPart_000_000E_01C135EF.5EF7D280--
-- __--__--
Message: 4
Date: Fri, 07 Sep 2001 17:41:34 -0400
To: vtkusers at public.kitware.com
From: Bill Hoffman <bill.hoffman at kitware.com>
Subject: [vtkusers] list is back
If you are getting this message, then the vtkusers lists is back from the dead!
-Bill
-- __--__--
Message: 5
Date: Fri, 07 Sep 2001 17:43:28 -0400
To: vtkusers at public.kitware.com
From: Bill Hoffman <bill.hoffman at kitware.com>
Subject: [vtkusers] test
Test please ignore.
-- __--__--
Message: 6
Date: Fri, 07 Sep 2001 17:48:25 -0400
To: vtkusers at public.kitware.com
From: Bill Hoffman <bill.hoffman at kitware.com>
Subject: [vtkusers] test
test
-- __--__--
Message: 7
Date: Fri, 7 Sep 2001 18:20:59 -0400 (EDT)
From: David Gobbi <dgobbi at irus.rri.ca>
To: Bill Hoffman <bill.hoffman at kitware.com>
cc: <vtkusers at public.kitware.com>
Subject: Re: [vtkusers] list is back
On Fri, 7 Sep 2001, Bill Hoffman wrote:
> If you are getting this message, then the vtkusers lists is back from the dead!
Yeah, yeah, we heard already!!! ;)
- David
-- __--__--
Message: 8
From: "Robert F. Palank" <srfpala at earthlink.com>
To: <vtkusers at public.kitware.com>
Subject: RE: [vtkusers] list is back
Date: Fri, 7 Sep 2001 17:34:19 -0500
Now that the list is back, can anyone share the procedures required to
locate, and construct whatever is necessary to support the import vtk.*;
statement?
I've got the vtkjava.dll for ver 3.2 and am running Java on a winnt40
platform.
BR
Bob Palank
-----Original Message-----
From: vtkusers-admin at public.kitware.com
[mailto:vtkusers-admin at public.kitware.com]On Behalf Of Bill Hoffman
Sent: Friday, September 07, 2001 4:42 PM
To: vtkusers at public.kitware.com
Subject: [vtkusers] list is back
If you are getting this message, then the vtkusers lists is back from the
dead!
-Bill
_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers
-- __--__--
Message: 9
From: "Shashidhar Kamath" <skamath at xradia.com>
To: <vtkusers at public.kitware.com>
Date: Fri, 7 Sep 2001 16:05:00 -0700
Subject: [vtkusers] imaging
Hi all
Im new to VTK. I have a imaging application to be written using VTK. To
start with i would like to know how to display a image say image[512][512]
that is
in memory. My application is a MDI in vc++. So please send me any sample
code that would serve my purpose in vc++.
thanks in advance
Shashidhar Kamath
XRadia Inc.
4075A Sprig Drive
Concord CA
94520 USA
-- __--__--
Message: 10
Date: Sat, 8 Sep 2001 10:00:47 +0200
From: =?utf-8?Q?Ermin_Hasi=C4=8Devi=C4=87?= <Ermin.Hasicevic at iskon.hr>
To: <vtkusers at public.kitware.com>
Subject: [vtkusers] Windows offscreen image rendering
Hi!
I would like to render a sequence of images in offscreen mode
using VTK on Windows platform. But it seems I can't just simply
tell vtkWin32OpenGLImageWindow to render images offscreen.
I have tried to set memory rendering by calling
SetupMemoryRendering(xsize, ysize, NULL) but after calling
Render method on image window I still get window opened
and don't know how to prevent it's opening.
What modifications should I make to following code to achieve
offscreen rendering of images?
vtkCellArray *segResCellArr = vtkCellArray::New();
vtkPolyData *segResPD = vtkPolyData::New();
//vtkExtentTranslator *segResExtTr = vtkExtentTranslator::New();
vtkPolyDataMapper2D *segResMapper = vtkPolyDataMapper2D::New();
vtkActor2D *segResActor = vtkActor2D::New();
vtkImager *segResImager = vtkImager::New();
vtkWin32OpenGLImageWindow *segResWnd =
vtkWin32OpenGLImageWindow::New();
vtkWindowToImageFilter *segResWnd2Img;
vtkImageAppend *segResImgApp = vtkImageAppend::New();
vtkImageBlend *segResImgBlend = vtkImageBlend::New();
vtkBMPWriter *segResWriter = vtkBMPWriter::New();
segResImgApp->SetAppendAxis(2);
segResImgApp->Update();
segResWnd->AddImager(segResImager);
segResWnd->SetSize(MaxCoord[0] + 1, MaxCoord[1] + 1);
segResWriter->SetFilePrefix((InputDirectory + "SEGRes" +
BMPInputFilePrefix).c_str());
segResWriter->SetFilePattern("%s_%03d.bmp");
int n = VFTemplatesRadioGroup->ItemIndex;
int contour_no = deformSurfsPD[n]->GetNumberOfCells();
int segRes_point_no;
int *segRes_ptIds;
for(int i = 0; i < contour_no; i ++) {
segRes_point_no =
deformSurfsPD[n]->GetCell(i)->GetNumberOfPoints();
segRes_ptIds = new int[segRes_point_no + 1];
for(int j = 0; j < segRes_point_no; j ++) {
segRes_ptIds[j] = j;
}
segRes_ptIds[segRes_point_no] = 0;
segResCellArr->Initialize();
segResCellArr->InsertNextCell(segRes_point_no + 1,
segRes_ptIds);
segResPD->SetPoints(deformSurfsPD[n]->GetCell(i)->GetPoints());
segResPD->SetLines(segResCellArr);
segResPD->Update();
segResMapper->SetInput(segResPD);
segResActor->SetMapper(segResMapper);
segResImager->AddActor2D(segResActor);
segResWnd->Render();
segResWnd2Img = vtkWindowToImageFilter::New();
segResWnd2Img->SetInput(segResWnd);
segResWnd2Img->Update();
segResImgApp->AddInput(segResWnd2Img->GetOutput());
segResImgApp->Update();
segResWnd2Img->Delete();
segResImager->RemoveActor2D(segResActor);
}
segResImgBlend->SetInput(0, OrigImgData);
segResImgBlend->SetInput(1, segResImgApp->GetOutput());
segResImgBlend->SetOpacity(1, 0.2);
segResImgBlend->Update();
segResWriter->SetInput(segResImgBlend->GetOutput());
segResWriter->Write();
segResCellArr->Delete();
segResPD->Delete();
segResMapper->Delete();
segResActor->Delete();
segResImager->Delete();
segResWnd->Delete();
segResImgBlend->Delete();
segResWriter->Delete();
BTW. Does anybody know how to accelerate vtkBMPWriter. It takes him
about 20 seconds
for 20 50kB images.
Thanks in advance.
Ermin
-- __--__--
Message: 11
From: Ron Inbar <rinbar at netvision.net.il>
To: "'vtkusers at public.kitware.com'" <vtkusers at public.kitware.com>
Date: Sat, 8 Sep 2001 14:18:03 +0200
Subject: [vtkusers] vtkFollower as part of a vtkAssembly
Hi all,
In my application I want to place a labeled arrow in a dynamic scene. The label is a vtkFollower with a vtkVectorText as its source. The arrow has to be transformed according to some vtkTransform. My problem is how to correctly place the label without losing vtkFollower functionality. I tried two approaches; both failed:
1. Uniting the arrow with the label as a vtkAssembly. This approach disabled the vtkFollower functionality (the label no longer turned to face the camera).
2. Transforming the label separately, using vtkProp::SetUserTransform with the same vtkTransform as for the arrow. In this case the vtkTranform was concatenated with the transformation that was supposed to make the label face the camera, but they were concatenated in the wrong order, sending the label to some far-off location.
I thought of a third approach, but I don't know how to implement it. Instead of using vector text, use raster text. This eliminates the need for a vtkFollower altogether. I know under OpenGL it's a piece of cake (using glRasterPos), but I don't know how to do it from VTK.
If you know the solution, please tell me ASAP, because I have a very pressing deadline (Sunday evening, GMT, to be precise).
Many thanks in advance,
Ron
-- __--__--
Message: 12
From: "Jianlong Zhou" <zhou at isg.cs.uni-magdeburg.de>
Organization: University Magdeburg FIN-ISG-MEMBERS
To: vtkusers at public.kitware.com
Date: Sat, 8 Sep 2001 14:15:51 +0200
Subject: [vtkusers] About coordinate system and vtkClipPolyData in VTK
hi, all,
I am now confused with coordinate system in VTK.
I want to use the coordinate in the volume data to specify the
implicit function used in vtkClipPolyData to clip volume as I
expected. But how to know the coordinate of a point in volume data
and what the corespondence relationship in display window? Dose
anyone have any idea about this?
Thank you in advance.
JL
-- __--__--
Message: 13
Date: Sat, 08 Sep 2001 08:39:59 -0400
To: Ron Inbar <rinbar at netvision.net.il>,
"'vtkusers at public.kitware.com'" <vtkusers at public.kitware.com>
From: Will Schroeder <will.schroeder at kitware.com>
Subject: Re: [vtkusers] vtkFollower as part of a vtkAssembly
Hi Ron-
Here are a couple of ideas:
+ if you are using vector text, plus an arrow, you can use
vtkAppendPolyDataFilter to make them a single polydata. Then use the follower.
+ To use "raster text", use the classes vtkTextMapper and vtkActor2D.
+ If you want to try something tricky but powerful, look into the class
vtkCoordinate. With this class, you can position the vtkActor2D at a
different point in a particular coordinate system; for example, you could
put the vtkActor2D/text at world point (x,y,z), and then as the camera
moves, the location of the text on the screen automatically moves with it.
Good luck,
Will
At 02:18 PM 9/8/2001 +0200, Ron Inbar wrote:
>Hi all,
>
>In my application I want to place a labeled arrow in a dynamic scene. The
>label is a vtkFollower with a vtkVectorText as its source. The arrow has
>to be transformed according to some vtkTransform. My problem is how to
>correctly place the label without losing vtkFollower functionality. I
>tried two approaches; both failed:
>1. Uniting the arrow with the label as a vtkAssembly. This approach
>disabled the vtkFollower functionality (the label no longer turned to face
>the camera).
>2. Transforming the label separately, using vtkProp::SetUserTransform with
>the same vtkTransform as for the arrow. In this case the vtkTranform was
>concatenated with the transformation that was supposed to make the label
>face the camera, but they were concatenated in the wrong order, sending
>the label to some far-off location.
>I thought of a third approach, but I don't know how to implement
>it. Instead of using vector text, use raster text. This eliminates the
>need for a vtkFollower altogether. I know under OpenGL it's a piece of
>cake (using glRasterPos), but I don't know how to do it from VTK.
>
>If you know the solution, please tell me ASAP, because I have a very
>pressing deadline (Sunday evening, GMT, to be precise).
>
>Many thanks in advance,
>
>Ron
>
>
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at:
><http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://public.kitware.com/mailman/listinfo/vtkusers
-- __--__--
_______________________________________________
vtkusers mailing list
vtkusers at public.kitware.com
http://public.kitware.com/mailman/listinfo/vtkusers
End of vtkusers Digest
-- __--__--
Message: 2
Date: Sat, 08 Sep 2001 18:04:23 +0100
To: =?utf-8?Q?Ermin_Hasi=C4=8Devi=C4=87?= <Ermin.Hasicevic at iskon.hr>,
<vtkusers at public.kitware.com>
From: John Biddiscombe <jbiddiscombe at skippingmouse.co.uk>
Subject: Re: [vtkusers] Windows offscreen image rendering
renWin->SetupMemoryRendering(width, height,
(HDC)renWin->GetGenericContext());
renWin->Render();
// do stuff with bitmap
renWin->ResumeScreenRendering();
I have used this successfully, but note that it stopped working some time
(I don't know when - I didn't use it for months) and when I tried it last
week it gave an image of width & height of zero (ie nothing). I checked in
a fix a few days ago and my offscreen rendering is working fine again.
maybe you should try a nightly release from today or similar and give it a go.
If you're using an older vtk, you should probably just get
vtkWin32OpenGLRenderWindow from cvs
(Note that the above assumes you already have a compatible device context
on screen, if you are doing vtk without a window you might need something
else...)
JB
At 09:00 08/09/2001, =?utf-8?Q?Ermin_Hasi=C4=8Devi=C4=87?= wrote:
>Hi!
>
>I would like to render a sequence of images in offscreen mode
>using VTK on Windows platform. But it seems I can't just simply
>tell vtkWin32OpenGLImageWindow to render images offscreen.
>I have tried to set memory rendering by calling
>SetupMemoryRendering(xsize, ysize, NULL) but after calling
>Render method on image window I still get window opened
>and don't know how to prevent it's opening.
>
>What modifications should I make to following code to achieve
>offscreen rendering of images?
>
> vtkCellArray *segResCellArr = vtkCellArray::New();
> vtkPolyData *segResPD = vtkPolyData::New();
> //vtkExtentTranslator *segResExtTr = vtkExtentTranslator::New();
> vtkPolyDataMapper2D *segResMapper = vtkPolyDataMapper2D::New();
> vtkActor2D *segResActor = vtkActor2D::New();
> vtkImager *segResImager = vtkImager::New();
> vtkWin32OpenGLImageWindow *segResWnd =
>vtkWin32OpenGLImageWindow::New();
> vtkWindowToImageFilter *segResWnd2Img;
> vtkImageAppend *segResImgApp = vtkImageAppend::New();
> vtkImageBlend *segResImgBlend = vtkImageBlend::New();
> vtkBMPWriter *segResWriter = vtkBMPWriter::New();
> segResImgApp->SetAppendAxis(2);
> segResImgApp->Update();
> segResWnd->AddImager(segResImager);
> segResWnd->SetSize(MaxCoord[0] + 1, MaxCoord[1] + 1);
> segResWriter->SetFilePrefix((InputDirectory + "SEGRes" +
>BMPInputFilePrefix).c_str());
> segResWriter->SetFilePattern("%s_%03d.bmp");
> int n = VFTemplatesRadioGroup->ItemIndex;
> int contour_no = deformSurfsPD[n]->GetNumberOfCells();
> int segRes_point_no;
> int *segRes_ptIds;
> for(int i = 0; i < contour_no; i ++) {
> segRes_point_no =
>deformSurfsPD[n]->GetCell(i)->GetNumberOfPoints();
> segRes_ptIds = new int[segRes_point_no + 1];
> for(int j = 0; j < segRes_point_no; j ++) {
> segRes_ptIds[j] = j;
> }
> segRes_ptIds[segRes_point_no] = 0;
> segResCellArr->Initialize();
> segResCellArr->InsertNextCell(segRes_point_no + 1,
>segRes_ptIds);
>
>segResPD->SetPoints(deformSurfsPD[n]->GetCell(i)->GetPoints());
> segResPD->SetLines(segResCellArr);
> segResPD->Update();
> segResMapper->SetInput(segResPD);
> segResActor->SetMapper(segResMapper);
> segResImager->AddActor2D(segResActor);
> segResWnd->Render();
> segResWnd2Img = vtkWindowToImageFilter::New();
> segResWnd2Img->SetInput(segResWnd);
> segResWnd2Img->Update();
> segResImgApp->AddInput(segResWnd2Img->GetOutput());
> segResImgApp->Update();
> segResWnd2Img->Delete();
> segResImager->RemoveActor2D(segResActor);
> }
> segResImgBlend->SetInput(0, OrigImgData);
> segResImgBlend->SetInput(1, segResImgApp->GetOutput());
> segResImgBlend->SetOpacity(1, 0.2);
> segResImgBlend->Update();
> segResWriter->SetInput(segResImgBlend->GetOutput());
> segResWriter->Write();
> segResCellArr->Delete();
> segResPD->Delete();
> segResMapper->Delete();
> segResActor->Delete();
> segResImager->Delete();
> segResWnd->Delete();
> segResImgBlend->Delete();
> segResWriter->Delete();
>
>BTW. Does anybody know how to accelerate vtkBMPWriter. It takes him
>about 20 seconds
>for 20 50kB images.
>
>Thanks in advance.
>
>Ermin
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at:
><http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://public.kitware.com/mailman/listinfo/vtkusers
-- __--__--
Message: 3
Reply-To: "M. Mustafa" <mebo at naseej.com.sa>
From: "M. Mustafa" <mebo at naseej.com.sa>
To: <vtkusers at public.kitware.com>
Date: Sat, 8 Sep 2001 20:55:56 +0300
Subject: [vtkusers] Curving
This is a multi-part message in MIME format.
------=_NextPart_000_0050_01C138A8.A88DA1C0
Content-Type: text/plain;
charset="windows-1256"
Content-Transfer-Encoding: quoted-printable
Dear all,
No stupid question I suppose.
I am looking for a function (in C++) to draw a curve pathing through =
three points. I tried to use the Bezier function, bu could not find a =
way to include the third point. The bezier curve pthaes thr. the two end =
points an another (control points).
Thanks for helping.
Mustafa=20
------=_NextPart_000_0050_01C138A8.A88DA1C0
Content-Type: text/html;
charset="windows-1256"
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=3Dwindows-1256">
<META content=3D"MSHTML 6.00.2479.6" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Dear all,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>No stupid question I =
suppose.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I am looking for a function (in C++) to =
draw a=20
curve pathing through three points. I tried to use the Bezier function, =
bu could=20
not find a way to include the third point. The bezier curve pthaes =
thr. the=20
two end points an another (control points).</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Thanks for helping.</FONT></DIV>
<DIV><FONT face=3DArial =
size=3D2>Mustafa</FONT> </DIV></BODY></HTML>
------=_NextPart_000_0050_01C138A8.A88DA1C0--
-- __--__--
_______________________________________________
vtkusers mailing list
vtkusers at public.kitware.com
http://public.kitware.com/mailman/listinfo/vtkusers
End of vtkusers Digest
--__--__--
_______________________________________________
vtkusers mailing list
vtkusers at public.kitware.com
http://public.kitware.com/mailman/listinfo/vtkusers
End of vtkusers Digest
More information about the vtkusers
mailing list