[vtkusers] how to derive vtk classes?

Dhirendra Verma dhirendra_scs at rediffmail.com
Tue Oct 6 05:42:05 EDT 2009


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")
    
        
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20091006/afe5a1c3/attachment.htm>


More information about the vtkusers mailing list