[vtkusers] How to find rendered Cells and their colors

Lim, Theodore T.Lim at hw.ac.uk
Mon Mar 12 09:09:34 EDT 2007


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/20070312/1ce05dbc/attachment.htm>


More information about the vtkusers mailing list