[vtkusers] Missing functions after building of VTK 7.1.0 with Java-wrapper
David Gobbi
david.gobbi at gmail.com
Wed Nov 30 17:40:36 EST 2016
So the PRIVATE_DEPENDS issue that I brought up in my previous email is just
part of the problem. The second part of the problem is that the Tcl and
Java wrappers don't like the new vtkMTimeType typedef for 64-bit timestamps
(though the Python wrappers don't have any problems with this typedef).
In summary, for VTK 7.1 (and the current master) the Tcl and Java wrappers
are missing the MTime methods, and the Java wrappers are missing a
smattering of other methods, too. Python wrappers seem to be fine, as far
as I've checked.
- David
On Wed, Nov 30, 2016 at 2:02 PM, David Gobbi <david.gobbi at gmail.com> wrote:
> 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/0dd1b639/attachment.html>
More information about the vtkusers
mailing list