<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi all,<br>
<br>
I'm working with brain fibers (lines in a vtkPolyData) and I need to
filter some fibers as fast as I can. Creating a new vtkPolyData or
any trick like that is out of the question; I tested and it's too
slow. I concluded that creating any kind of of data will always be
too slow.<br>
<br>
I successfully modified the vtkPolyDataMapper to draw only a
specified set of cells. It's working perfectly, in real-time. I
tried to do the same with the 2D views (I'm working in MITK, but the
vtkPolyDataMapper is the important part here) and I discovered
something dark and complex: the painter. I read some articles [1, 2]
to understand it what's going on. I think I get it, but I still have
a question for you.<br>
<br>
I want to create my own vtkLinesPainter (mostly to add a
std::set<vtkIdType>* and rewrite vtkDrawPrimsMacro). This is
easy enough, but how do I plug this class with the rest of the
Painter architecture? Who will tell vtk to use my class instead of
the standard one?<br>
<br>
Moreover, is there a reason why the 3D mapper is defined in the
"normal" mapper files (vtkPolyDataMapper and
vtkOpenGLPolyDataMapper) and the 2D mapper use a Painter concept?
For example, vtkDrawPrimsMacro is in the Mapper and in the Painter.
Is it a WIP?<br>
<br>
Thanks for your help. Have a nice day.<br>
<br>
[1] <a class="moz-txt-link-freetext" href="http://www.paraview.org/ParaView/index.php/VTK_Painters">http://www.paraview.org/ParaView/index.php/VTK_Painters</a><br>
[2] <a class="moz-txt-link-freetext" href="http://www.vtk.org/Wiki/VTK/Painters">http://www.vtk.org/Wiki/VTK/Painters</a><br>
<br>
<div class="moz-signature">-- <br>
<table cellpadding="2" cellspacing="2" width="218" border="0"
height="96">
<tbody>
<tr>
<td valign="middle"> <a href="http://imeka.ca/"> <img
alt="Logo Imeka"
src="cid:part1.04000105.01090806@imeka.ca" width="66"
height="67"> </a> </td>
<td valign="top"> Nil Goyette, M.Sc.<br>
<a href="http://imeka.ca/">www.imeka.ca</a><br>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>