[vtkusers] Constructor with parameters

David E DeMarle dave.demarle at kitware.com
Tue Jul 31 10:07:44 EDT 2012


Constructor arguments can not be passed down to the object factory
that sits behind the myclass::New() method that every child of
vtkObject uses. That is why we don't use them in VTK much.

Classes that don't inherit from vtkObject can use them (see vtkVariant).

David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909


On Sun, Jul 29, 2012 at 8:29 PM, Jana Sefcikova <neollie at gmail.com> wrote:
> Hi all,
> I would like derive class from vtkObject.
> It is possible to have constructor parameters?
>
> Thanks
> Jana
>
> _______________________________________________
> 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