[vtkusers] how to derive vtk classes?

Bryn Lloyd blloyd at vision.ee.ethz.ch
Tue Oct 6 07:06:16 EDT 2009


Maybe you can show your CMakeLists.txt file, so we can if you are 
compiling/linking it correctly.




Dhirendra Verma wrote:
> hello !
> 
> When i try to derive vtkCubeSource class in my own class
> MyBox folowing error occurs.
> 
> "undefined reference to MyBox "
> 
> I do this in following way, to derive vtkCubeSource class.
> 
> 1. First I created a MyBox.h file
> and declared all methods inside it that are necessary.
> (new, print self, constructor, destructor etc.)
> 
> 2. Then I created a MyBox.cxx file
> with some additional methods (my own).
> 
> 3.Finaly I created a TestMyBox.cxx class
> to create an oject of MyBox so that it could work as an
> oject of vtkCubeSource.
> 
> but it is not working.
> 
> please help me.
> 
> 
> Dhirendra verma
> (Learing VTK for M.Tech project
> on "Visualizing 2d and 3d scientific data")
> 
> 
> <http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/signatureline.htm@Middle?>
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers


-- 
-------------------------------------------------
Bryn Lloyd
Computer Vision Laboratory
ETH Zürich, Sternwartstrasse 7, ETF C110
CH - 8092 Zürich, Switzerland
Tel: +41 44 63 26668
Fax: +41 44 63 21199
-------------------------------------------------



More information about the vtkusers mailing list