[vtk-developers] vtkChemistry status and python bindings

Marcus D. Hanwell marcus.hanwell at kitware.com
Wed Feb 15 12:50:33 EST 2012


On Wed, Feb 15, 2012 at 12:04 PM, David Gobbi <david.gobbi at gmail.com> wrote:
> On Wed, Feb 15, 2012 at 9:59 AM, Marcus D. Hanwell
> <marcus.hanwell at kitware.com> wrote:
>
>> The PrintSelf function, although I take it back and am not sure why it
>> would go into a loop. It is debatable whether vtkMolecule should
>> really print every atom and bond object (rather than a simple summary
>> of them). We could add a Dump function similar to vtkTable to do what
>> PrintSelf is doing there.
>
> It occurs when vtkAtom is printed, not vtkMolecule, so PrintSelf isn't
> involved.  When a special type like vtkAtom is printed, the "<<"
> operator is used, if it is defined for the class.
>
> For example, vtkVariant.h has the following line:
>
> VTK_COMMON_EXPORT ostream& operator << ( ostream& os, const vtkVariant& val );
>
> Of course, the absence of that operator should not cause a wrapped
> special type to crash, so I'm not quite sure what is going on.
>
That is odd, thanks for clarifying that. We could add something useful
there if it helped.

Marcus



More information about the vtk-developers mailing list