[vtk-developers] vtkChemistry status and python bindings

Marcus D. Hanwell marcus.hanwell at kitware.com
Wed Feb 15 10:04:44 EST 2012


On Wed, Feb 15, 2012 at 9:53 AM, David Lonie <loniedavid at gmail.com> wrote:
> On Wed, Feb 15, 2012 at 7:48 AM, Borini, Stefano
> <s.borini at jacobs-university.de> wrote:
>>
>> I have a problem in compiling it
>>
>> [ 26%] Building CXX object Filtering/CMakeFiles/vtkFilteringPythonD.dir/vtkMoleculePython.cxx.o
>> /Users/borini/trunk/runtime/app/_download/VTK/build/Filtering/vtkMoleculePython.cxx: In function ‘PyObject* PyvtkMolecule_AppendAtom_s1(PyObject*, PyObject*)’:
>> /Users/borini/trunk/runtime/app/_download/VTK/build/Filtering/vtkMoleculePython.cxx:199: error: no matching function for call to ‘vtkAtom::vtkAtom()’
>> /Users/borini/trunk/runtime/app/_download/VTK/Filtering/vtkAtom.h:68: note: candidates are: vtkAtom::vtkAtom(vtkMolecule*, vtkIdType)
>> /Users/borini/trunk/runtime/app/_download/VTK/Filtering/vtkAtom.h:28: note:                 vtkAtom::vtkAtom(const vtkAtom&)
>>
>> which is indeed true, since there is no empty constructor for them defined in the class.
>
> Hmm...yes, we don't allow an "empty" vtkAtom (or vtkBond) to be
> constructed, since they need a vtkMolecule parent to access/store
> data.
>
> I suppose we could make the empty constructor public if needed. Is
> there another way to get the wrappers to handle this case?
>
I haven't had chance to try this out, but could they be marked as
ABSTRACT? This indicates to the wrapper generators that it cannot
construct new ones, but I don't know if this applies to special
wrapping.

Marcus



More information about the vtk-developers mailing list