[prev in list] [next in list] [prev in thread] [next in thread] 

List:       vtkusers
Subject:    Re: [vtkusers] Constructor with parameters
From:       David E DeMarle <dave.demarle () kitware ! com>
Date:       2012-07-31 14:07:44
Message-ID: CANjZAi9FTipYkpm6HmJVD9QPBcfkTp4mZTS0NXd7atxM69pAgw () mail ! gmail ! com
[Download RAW message or body]

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@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
>
_______________________________________________
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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic