[vtk-developers] vtkChemistry status and python bindings

David Lonie loniedavid at gmail.com
Wed Feb 15 09:53:42 EST 2012


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?

Dave



More information about the vtk-developers mailing list