[vtkusers] How to find rendered Cells and their colors, vtkMFC sample crashes

Gennady Khokhorin gok at aerometric-ak.com
Tue Oct 2 16:07:11 EDT 2007


Theo,
I got the same crashes in vtkMFC samples.
Did remove ParaView and everything working fine now.
Check which dll's are "visible" to your vtkMfc.dll.
It could help in your case.
Happy programming!
gok


  _____  

From: vtkusers-bounces+gok=aeromap.com at vtk.org
[mailto:vtkusers-bounces+gok=aeromap.com at vtk.org] On Behalf Of Lim,
Theodore 
Sent: Monday, March 12, 2007 5:10 AM
To: David E DeMarle
Cc: vtkusers at vtk.org
Subject: RE: [vtkusers] How to find rendered Cells and their colors


Hi David,
 
Thanks for the lead. I've updated to the latest CVS as this function was
not in vtk v5.0.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().
 
// update size
CRect cRect = CRect(0,0,1,1);
if (this->GetParent()) // Crash here!
 
I've already posted to the forum and hope to get a reply on how to fix
it.
 
Would appreciate your input if you can spare a moment.
 
Many thanks, Theo.

  _____  

From: David E DeMarle [mailto:dave.demarle at kitware.com]
Sent: Wed 07/03/2007 17:31
To: Lim, Theodore 
Cc: vtkusers at vtk.org
Subject: Re: [vtkusers] How to find rendered Cells and their colors


Try vtkVisibleCellSelector. It can give you the cellIds of all of the
visible cells. 

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. 


On 3/7/07, Lim, Theodore <T.Lim at hw.ac.uk> wrote: 

	Hello everybody.

	 

	

	Is there a way to query the renderer for the cells and its
associated colors being rendered? 

	 

	I would like to extract the cell IDs and its color that is
visible at any given camera orientation and position.

	 

	It's something like asking the graphics board which pixels (and
color) is being displayed. 

	 

	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.

	 

	Thanks in advance,

	Theo.

	 

	 


	_______________________________________________
	This is the private VTK discussion list.
	Please keep messages on-topic. Check the FAQ at:
http://www.vtk.org/Wiki/VTK_FAQ
	Follow this link to subscribe/unsubscribe:
	http://www.vtk.org/mailman/listinfo/vtkusers 
	
	


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20071002/1c49e0bc/attachment.htm>


More information about the vtkusers mailing list