[vtkusers] Missing functions after building of VTK 7.1.0 with Java-wrapper

David Gobbi david.gobbi at gmail.com
Wed Nov 30 16:02:35 EST 2016


All those methods are present in the Tcl and Python wrappers, only the Java
wrappers seem to be missing them.

I have an idea about why the methods are missing, and I think it has to do
with the rearrangement of the public and private dependencies in the
module.cmake files that occurred a few months ago (commit 6e113ad4).

For "vtkParametricSpline *vtkSplineWidget::GetParametricSpline()", the
vtkParametricSpline class is in vtkCommonComputationalGeometry, which is in
the PRIVATE_DEPENDS section of the module.cmake for vtkInteractionWidgets
(the module that vtkSplineWidget is inside of).

In C++, this private dependency works fine because the forward declaration
of vtkParametricSpline in vtkSplineWidget.h is sufficient.  All C++ needs
to know is that the vtkParametricSpline class has a definition somewhere,
but it doesn't actually need the definition.  Not so for Java.
Unfortunately, Java needs the definition of vtkParametricSpline in order to
wrap the vtkSplineWidget.GetParametricSpline() method.  For the wrappers,
it would usually get the definition through a complicated mechanism
involving the vtkInteractionWidgetsHierarchy.txt that the wrappers build,
but the Hierarchy.txt files are built according to the DEPENDS section of
the module.cmake files and they ignore the PRIVATE_DEPENDS section.

So a potential solution is use both the DEPENDS and PRIVATE_DEPENDS when
building the Hierarchy.txt files for the wrappers.  This is something that
I can look into.

 - David


On Wed, Nov 30, 2016 at 9:26 AM, David E DeMarle <dave.demarle at kitware.com>
wrote:

> Please assign the bug to the 7.1.1 milestone.
>
> David E DeMarle
> Kitware, Inc.
> R&D Engineer
> 21 Corporate Drive
> Clifton Park, NY 12065-8662
> Phone: 518-881-4909 <(518)%20881-4909>
>
> On Wed, Nov 30, 2016 at 11:19 AM, Sebastien Jourdain <
> sebastien.jourdain at kitware.com> wrote:
>
>> I've tried it and confirm the issue. Daniel do you mind reporting a bug?
>>
>> But maybe David Gobbi or any Kitware folks may have an idea of what may
>> have caused those methods to disappear in the Java wrapping language.
>> (Wondering if that's the same for Python?)
>>
>> Just as a add-on the GetMTime() method does not seems to be available
>> anymore on any VTK Object in Java.
>>
>>
>> On Wed, Nov 30, 2016 at 6:42 AM, -Daniel- <ich_daniel at habmalnefrage.de>
>> wrote:
>>
>>> Hi all,
>>>
>>> the building of VTK 7.1.0 with cmake (and Visual Studio) works without
>>> problems.
>>> However, if I want to use this created vtk.jar in my projects, some
>>> features
>>> are no longer available.
>>>
>>> For example are missing:
>>> vtkCellArray -> GetMTime()  or
>>> vtkSplineWidget -> GetParametricSpline()  or
>>> vtkPolyDataSilhouette -> SetCamera(..)  or
>>> vtkDijkstraImageContourLineInterpolator ->
>>> GetDijkstraImageGeodesicPath()
>>>
>>> Have I forgotten something to set or activate?
>>> Or are the functions not more available in vtk 7.1?
>>>
>>> Can anybody help me?
>>>
>>>
>>>
>>>
>>>
>>> --
>>> View this message in context: http://vtk.1045678.n5.nabble.c
>>> om/Missing-functions-after-building-of-VTK-7-1-0-with-Java-w
>>> rapper-tp5741366.html
>>> Sent from the VTK - Users mailing list archive at Nabble.com.
>>> _______________________________________________
>>> 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
>>>
>>> Search the list archives at: http://markmail.org/search/?q=vtkusers
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://public.kitware.com/mailman/listinfo/vtkusers
>>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20161130/a4a3a3a4/attachment.html>


More information about the vtkusers mailing list