<div>vtkContourRepresentation is a pure virtual class, you cannot create it with New(). Maybe you should be creating one of the subclasses?<br><br><a href="http://www.vtk.org/doc/nightly/html/classvtkContourRepresentation.html">http://www.vtk.org/doc/nightly/html/classvtkContourRepresentation.html</a><br>
<br>You can still have a vtkContourRepresentation smartpointer, vtkSmartPointer<vtkContourRepresentation>, to hold a pointer to the subclasses.<br><br>Pat<br><br> </div><div class="gmail_quote">On Mon, Jun 28, 2010 at 12:51 PM, Prathamesh Kulkarni <span dir="ltr"><<a href="mailto:prathameshmkulkarni@gmail.com">prathameshmkulkarni@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hello all,<br>
<br>
I go an error while compiling the following line of code in my program:<br>
<br>
vtkSmartPointer<vtkContourRepresentation> contour_rep =<br>
vtkSmartPointer<vtkContourRepresentation>::New();<br>
<br>
The error says (in brief): any of the overloads of vtkSmartPointer<br>
cannot take vtkContourRepresentation as argument.<br>
<br>
Since I m anew to vtk, I do not know a better way to control a<br>
callback to vtkContourCallBack.<br>
<br>
Could anyone please point me to the right direction?<br>
<br>
<br>
<br>
Prathamesh<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<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>
</blockquote></div><br>