[vtkusers] copying a vtkUnstructuredGrid ?
Tim Hutton
T.Hutton at eastman.ucl.ac.uk
Tue Jul 9 05:16:20 EDT 2002
Just to explain, none of the classes have either their copy constructor or
the assignment operator implemented, this is by design. They are marked
with the comment "not implemented" and declared as private to stop the
compiler creating default versions.
I understand the reason is to allow complete binding of VTK to scripting
languages such as tcl that don't deal with objects - whatever language you
are using you have to use New() and Delete() and DeepCopy(). It's a bit
weird for C++ people but enables easy translation to/from the other
languages, which is fantastic.
Tim.
At 09:20 08/07/2002 -0400, Jeff Lee wrote:
>DeepCopy()
>
>Andreu, Jean-Philippe wrote:
>
>>Hi All,
>>
>>In vtkunstructuredgrid.h it is stated that the copy constructor and the
>>affectation operator of vtkUnstructuredGrid are not implemented yet... :-(
>>This causes endless troubles when you start to write serious code.
>>Is there an easy way to get a copy of an vtkUnstructuredGrid without having
>>to recompile the library.
>>
>>thanx in advance for your help,
>>Jean-Philippe
>>_______________________________________________
>>This is the private VTK discussion list. Please keep messages on-topic.
>>Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
>>Follow this link to subscribe/unsubscribe:
>>http://public.kitware.com/mailman/listinfo/vtkusers
>>
>>
>>
>
>
>_______________________________________________
>This is the private VTK discussion list. Please keep messages on-topic.
>Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://public.kitware.com/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list