[vtk-developers] vtkContinuousValueWidget cannot be instantiated and has no subclasses

Bill Lorensen bill.lorensen at gmail.com
Wed Aug 17 12:21:54 EDT 2011


Yes, it looks like an abstract class that is not used in VTK.

On Wed, Aug 17, 2011 at 10:10 AM, David Doria <daviddoria at gmail.com> wrote:

> If I try to create this widget like this:
>
>  vtkSmartPointer<vtkContinuousValueWidget> continuousValueWidget =
>    vtkSmartPointer<vtkContinuousValueWidget>::New();
>
> I get this error:
> error: invalid conversion from ‘vtkObject*’ to ‘vtkContinuousValueWidget*’
>
> I noticed that there was no call to vtkStandardNewMacro in the cxx, so
> I added it. Then I noticed there was no New() function defined, so I
> added it as well:
>
> static vtkContinuousValueWidget *New();
>
> However, now I get an error when building VTK that the pure virtual
> function vtkAbstractWidget::CreateDefaultRepresentation is not
> defined. According to this:
>
> http://www.vtk.org/doc/nightly/html/classvtkContinuousValueWidget.html
>
> there are no subclasses? Is this class intended only for the user to
> subclass? Or am I missing something?
>
> Thanks,
>
> David
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20110817/38479d5d/attachment.html>


More information about the vtk-developers mailing list