Yes, it looks like an abstract class that is not used in VTK.<br><br><div class="gmail_quote">On Wed, Aug 17, 2011 at 10:10 AM, David Doria <span dir="ltr"><<a href="mailto:daviddoria@gmail.com">daviddoria@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;">If I try to create this widget like this:<br>
<br>
  vtkSmartPointer<vtkContinuousValueWidget> continuousValueWidget =<br>
    vtkSmartPointer<vtkContinuousValueWidget>::New();<br>
<br>
I get this error:<br>
error: invalid conversion from ‘vtkObject*’ to ‘vtkContinuousValueWidget*’<br>
<br>
I noticed that there was no call to vtkStandardNewMacro in the cxx, so<br>
I added it. Then I noticed there was no New() function defined, so I<br>
added it as well:<br>
<br>
static vtkContinuousValueWidget *New();<br>
<br>
However, now I get an error when building VTK that the pure virtual<br>
function vtkAbstractWidget::CreateDefaultRepresentation is not<br>
defined. According to this:<br>
<br>
<a href="http://www.vtk.org/doc/nightly/html/classvtkContinuousValueWidget.html" target="_blank">http://www.vtk.org/doc/nightly/html/classvtkContinuousValueWidget.html</a><br>
<br>
there are no subclasses? Is this class intended only for the user to<br>
subclass? Or am I missing something?<br>
<br>
Thanks,<br>
<br>
David<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>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br>
</blockquote></div><br>