<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML dir=ltr><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16525" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face="Courier New" color=#0000ff size=2><SPAN
class=163310220-02102007>Theo,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face="Courier New" color=#0000ff size=2><SPAN
class=163310220-02102007>I got the same crashes in vtkMFC
samples.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face="Courier New" color=#0000ff size=2><SPAN
class=163310220-02102007>Did remove ParaView and everything working fine
now.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face="Courier New" color=#0000ff size=2><SPAN
class=163310220-02102007>Check which dll's are "visible" to your
vtkMfc.dll.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face="Courier New" color=#0000ff size=2><SPAN
class=163310220-02102007>It could help in your case.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face="Courier New" color=#0000ff size=2><SPAN
class=163310220-02102007>Happy programming!</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face="Courier New" color=#0000ff size=2><SPAN
class=163310220-02102007>gok</SPAN></FONT></DIV><FONT face="Courier New"
color=#0000ff size=2></FONT><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> vtkusers-bounces+gok=aeromap.com@vtk.org
[mailto:vtkusers-bounces+gok=aeromap.com@vtk.org] <B>On Behalf Of </B>Lim,
Theodore <BR><B>Sent:</B> Monday, March 12, 2007 5:10 AM<BR><B>To:</B> David E
DeMarle<BR><B>Cc:</B> vtkusers@vtk.org<BR><B>Subject:</B> RE: [vtkusers] How to
find rendered Cells and their colors<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV id=idOWAReplyText42438 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>Hi <FONT
face=Tahoma>David,</FONT></FONT></DIV>
<DIV dir=ltr><FONT face=Tahoma size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Tahoma size=2>Thanks for the lead. I've updated to the
latest CVS as this function was not in vtk v5.0.2. </FONT></DIV>
<DIV dir=ltr><FONT face=Tahoma size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Tahoma size=2>However, i've not been able to try it out
as i'm still struggling to find/fix the problem of vtkMFC examples with the
latest CVS build. The MFC examples crashes in the vtkmfcwindow.cpp function
SetRenderWindow().</FONT></DIV>
<DIV dir=ltr><FONT face=Tahoma size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Tahoma size=2>// update size</FONT></DIV>
<DIV dir=ltr><FONT face=Tahoma size=2>CRect cRect = CRect(0,0,1,1);</FONT></DIV>
<DIV dir=ltr><FONT face=Tahoma size=2>if (this->GetParent()) // Crash
here!</FONT></DIV>
<DIV dir=ltr><FONT face=Tahoma size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Tahoma size=2>I've already posted to the forum and hope
to get a reply on how to fix it.</FONT></DIV>
<DIV dir=ltr><FONT face=Tahoma size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Tahoma size=2>Would appreciate your input if you can
spare a moment.</FONT></DIV>
<DIV dir=ltr><FONT face=Tahoma size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Tahoma size=2>Many thanks, Theo.</FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> David E DeMarle
[mailto:dave.demarle@kitware.com]<BR><B>Sent:</B> Wed 07/03/2007
17:31<BR><B>To:</B> Lim, Theodore <BR><B>Cc:</B>
vtkusers@vtk.org<BR><B>Subject:</B> Re: [vtkusers] How to find rendered Cells
and their colors<BR></FONT><BR></DIV>
<DIV>Try vtkVisibleCellSelector. It can give you the cellIds of all of the
visible cells. <BR><BR>It causes the renderer to enter a special mode in which
each cell gets its own color, renders, readsback the pixel buffer, and spits out
a list of the cells that were visible. <BR><BR>
<DIV><SPAN class=gmail_quote>On 3/7/07, <B class=gmail_sendername>Lim,
Theodore</B> <<A href="mailto:T.Lim@hw.ac.uk">T.Lim@hw.ac.uk</A>>
wrote:</SPAN>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV lang=EN-US vlink="purple">
<DIV dir=ltr>
<DIV dir=ltr><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hello
everybody.</SPAN></FONT></DIV></DIV>
<DIV>
<DIV>
<P><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT><FONT face=Arial
size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT></P>
<P><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Is there a way to query the
renderer for the cells and its associated colors being rendered?
</SPAN></FONT></P>
<P><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I
would like to extract the cell IDs and its color that is visible at any given
camera orientation and position.</SPAN></FONT></P>
<P><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">It's something like
as</SPAN></FONT><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">king the graphics board which
pixels (and color) is being displayed. </SPAN></FONT></P>
<P><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I'm not sure if this can be done
via the vtk classes available. Would appreciate if anyone can point me in the
right direction.</SPAN></FONT></P>
<P><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Thanks in
advance,</SPAN></FONT></P>
<P><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Theo.</SPAN></FONT></P>
<P><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P></DIV></DIV></DIV><BR>_______________________________________________<BR>This
is the private VTK discussion list.<BR>Please keep messages on-topic. Check
the FAQ at: <A href="http://www.vtk.org/Wiki/VTK_FAQ"
target=_blank>http://www.vtk.org/Wiki/VTK_FAQ</A><BR>Follow this link to
subscribe/unsubscribe:<BR><A
href="http://www.vtk.org/mailman/listinfo/vtkusers"
target=_blank>http://www.vtk.org/mailman/listinfo/vtkusers
</A><BR><BR></BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>