[vtkusers] viewport values remains constant?
Rakesh Patil
rakeshthp at in.com
Fri Feb 5 06:01:36 EST 2010
Hello,Finally, after a long study, I've implemented callback functionality.. It was damn so easy and I was simply breaking my head..:)Anyways, this what I've done.class vtkMyCallback : public vtkCommand{public: static vtkMyCallback *New(){ return new vtkMyCallback; } virtual void Execute(vtkObject *callee, unsigned long, void *) { vtkRenderer *renderer = reinterpretcast(callee); computeSomething(renderer>GetActiveCamera()>GetPosition(), renderer); }};Here is a code for computeSomething()computeSomething( const double position[3], vtkRenderer *renderer){double vp[4];renderer>GetViewPort(vp);cout
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100205/8f4a0517/attachment.htm>
More information about the vtkusers
mailing list