[vtkusers] Problem creating vtkSmartPointer for vtkContourRepresentation

Prathamesh Kulkarni prathameshmkulkarni at gmail.com
Mon Jun 28 13:10:02 EDT 2010


Right, got it now. I will use the vtkOrientedGlyphRepresentation instead..

Thanks,
Prathamesh

On Mon, Jun 28, 2010 at 12:02 PM, pat marion <pat.marion at kitware.com> wrote:
> 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
>
>



More information about the vtkusers mailing list