[vtkusers] is a machine readable list of classes and methods available?

David Gobbi david.gobbi at gmail.com
Wed Oct 5 00:09:53 EDT 2016


Actually, building VTK might not be necessary.  If you simply get the VTK
source, create a build directory, and then configure with cmake, then that
should be enough for WrapVTK to use that VTK build directory to create the
xml files.

On Tue, Oct 4, 2016 at 9:51 PM, David Gobbi <david.gobbi at gmail.com> wrote:

> Hi J,
>
> It's meant to work with a VTK build tree, so you'll have to build VTK
> yourself.
> I doubt that any VTK install has everything that's needed to wrap VTK.
>
>  - David
>
>
> On Tue, Oct 4, 2016 at 9:44 PM, JTK <jetmonk at gmail.com> wrote:
>
>>
>> Thank you!  This looks like what I need.
>>
>> I tried it, and it chokes on missing
>>
>> -- Detecting CXX compile features - done
>> CMake Error at CMake/vtkIncludeAllKits.cmake:22 (include):
>>   include could not find load file:
>>
>>     /opt/local/lib/cmake/vtk-7.0/Modules/vtkChartsCore-Headers.cmake
>> Call Stack (most recent call first):
>>   CMakeLists.txt:54 (INCLUDE)
>>
>>
>> I assume this means that some installations of vtk aren’t sufficient (I’m
>> using the canned macports install)?
>>
>> Is there a name for the feature that installs the xxx-Headers.cmake files?
>>
>> J.Klein
>>
>>
>>
>>
>> On Oct 4, 2016, at 5:27 PM, David Gobbi <david.gobbi at gmail.com> wrote:
>>
>> Hi J,
>>
>> My WrapVTK project uses the VTK wrapper machinery to create an XML file
>> for each of the VTK classes, the process only takes a couple minutes.  It
>> can be found here:
>>
>> http://github.com/dgobbi/WrapVTK <https://github.com/dgobbi/WrapVTK>
>>
>>  - David
>>
>>
>>
>> On Tue, Oct 4, 2016 at 8:35 PM, JTK <jetmonk at gmail.com> wrote:
>>
>>>
>>> Hello,
>>>
>>> I’m trying to make VTK usable from the common lisp language using the
>>> Common Lisp CFFI [1] package, translating C++ methods/classes into CLOS
>>> methods/classes.
>>>
>>> I understand that VTK supports internal automated ways of doing this
>>> (used for Python and TCL glue code generation), but these are a bit
>>> excessive for my purposes (and specialized).  Other methods like SWIG seem
>>> to choke on VTK code - maybe it’s all the macros? Instead, I’ve written a
>>> general package for wrapping C++ methods and classes into Lisp to let me
>>> hand-wrap VTK classes.
>>>
>>> Is there a machine readable list of the C++ class/method hierarchy
>>> available?
>>>
>>> Something like:
>>>
>>> {class: “vtkCylinderSource”
>>>  parents: {“vtkPolyDataAlgorithm”}
>>>  methods: {{method: SetHeight
>>>             returntype: void
>>>             arguments: {{“height” “double”}}}
>>>            }
>>> }
>>>
>>>
>>> Or an equivalent in XML.  Or maybe simplified macro-less C++ definitions
>>> that I could parse?
>>>
>>> Such a list of methods seems to exist implicitly for the documentation,
>>> but it isn’t machine readable. Is there a machine readable one, or is there
>>> an easy way to make it?
>>>
>>> Thanks for any tips,
>>> J.Klein
>>>
>>>
>>>
>>> [1] cffi: https://common-lisp.net/project/cffi/
>>>
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20161004/a7e1feda/attachment.html>


More information about the vtkusers mailing list