[vtk-developers] vtk 3D cursor

David E DeMarle dave.demarle at kitware.com
Wed Feb 29 11:19:05 EST 2012


Add a #include <vtkStructuredGrid.h> to your c++ file.

Any class you call methods in (->GetBounds() in this case I think)
needs to be included for the compiler to know where to link to.

David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909



On Wed, Feb 29, 2012 at 11:14 AM, mhiriM <mhiri_m at hotmail.com> wrote:
> Hi all, am an it student and i wanna implement a 3d cursor like in this
> video.
> http://www.youtube.com/watch?v=0b3gKZlobLA
>
> I'm using vtk 5.8 and coca with c++ .
> I have found a TCL source code on " Link "
>
> i have translated it into c++
> but i have errors on these lines :
>
>  cursor->SetModelBounds(reader->GetOutput()->GetBounds());
>  cursor->SetFocalPoint(reader->GetOutput()->GetCenter());
>
>
> " Member access into incomplete type vtk structured grid "
>
>
> what this error stand for? and does anyone have a source code for
> implementing a 3d cursor?
>
> Thanks a lot.
> I'm a vtk newbie and i'm stuck in this point for now 1 week.
>
> --
> View this message in context: http://vtk.1045678.n5.nabble.com/vtk-3D-cursor-tp5525379p5525379.html
> Sent from the VTK - Dev mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>



More information about the vtk-developers mailing list