[vtkusers] Input type validity
David E DeMarle
dave.demarle at kitware.com
Mon Feb 13 19:07:31 EST 2012
A prettier way would be to make a new executive class that exists just
to provide a public method that internally calls that one.
But what happens when you promote that method to public? Does it
compile without warnings? Does it work the way you want? Do any tests
fail because of doing that? If not we can push the change through
gerrit code review, and if the reviewers agree it will go into
mainline vtk.
David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909
On Fri, Feb 10, 2012 at 4:04 PM, Marc Ferland <ferlandm at sonatest.com> wrote:
> Hi,
>
> I'm currently writing a small "pipeline editor" using VTK and I wanted
> to know if there is any way to test if a SetInputConnection will fail
> before actually sending data throught the pipe?
>
> I see that vtkDemandDrivenPipeline::InputTypeIsValid() implements this,
> but since it is protected, I do not have access to it.
>
> Should I just copy/paste the algorithm described in InputTypeIsValid?
>
> Any suggestions appreciated!
>
> Regards,
>
> Marc
> _______________________________________________
> 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