[vtkusers] Problem creating vtkSmartPointer for vtkContourRepresentation
pat marion
pat.marion at kitware.com
Mon Jun 28 13:02:49 EDT 2010
vtkContourRepresentation is a pure virtual class, you cannot create it with
New(). Maybe you should be creating one of the subclasses?
http://www.vtk.org/doc/nightly/html/classvtkContourRepresentation.html
You can still have a vtkContourRepresentation smartpointer,
vtkSmartPointer<vtkContourRepresentation>, to hold a pointer to the
subclasses.
Pat
On Mon, Jun 28, 2010 at 12:51 PM, Prathamesh Kulkarni <
prathameshmkulkarni at gmail.com> wrote:
> Hello all,
>
> I go an error while compiling the following line of code in my program:
>
> vtkSmartPointer<vtkContourRepresentation> contour_rep =
> vtkSmartPointer<vtkContourRepresentation>::New();
>
> The error says (in brief): any of the overloads of vtkSmartPointer
> cannot take vtkContourRepresentation as argument.
>
> Since I m anew to vtk, I do not know a better way to control a
> callback to vtkContourCallBack.
>
> Could anyone please point me to the right direction?
>
>
>
> Prathamesh
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK 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/20100628/8c986780/attachment.htm>
More information about the vtkusers
mailing list