[vtkusers] vtkCamera - non-virtual getter methods (GetPerspectiveTransformMatrix etc.)
Bill Lorensen
wlorens1 at nycap.rr.com
Sun Feb 2 14:17:37 EST 2003
Stefan,
I just made the changes you suggested and committed them.
Bill
At 06:22 PM 2/2/03 +0100, Stefan Bruckner wrote:
>Hi!
>
>I am working on an integration of VTK into Studierstube (<http://www.studierstube.org>www.studierstube.org), a collaborative augmented-reality environment based on Open Inventor developed at the Vienna University of Technology.
>
>I have to subclass vtkCamera in order to align the two camera models.
>Now here's the problem: Some methods I have to overload are not defined virtual.
>
>The methods are:
>
><http://www.vtk.org/doc/nightly/html/classvtkCamera.html#z2854_0>GetPerspectiveTransformMatrix
><http://www.vtk.org/doc/nightly/html/classvtkCamera.html#z2855_0>GetCompositePerspectiveTransformMatrix
><http://www.vtk.org/doc/nightly/html/classvtkCamera.html#a13>GetViewTransformMatrix
><http://www.vtk.org/doc/nightly/html/classvtkCamera.html#a21>GetViewTransformObject
><http://www.vtk.org/doc/nightly/html/classvtkCamera.html#a17>GetFrustumPlanes
>
>Maybe some developer can change that in the current CVS version (changing the base class myself is only a temporary solution, I want to stay up-to-date with CVS). Just making these methods virtual would help me a lot, would not cause any harm, and only take 2mins of work.
>
>In general, it would be good to make all getters "virtual" (as vtkGetMacro does).
>
>This would be a great help, my current workaround will not work for general cases.
>
>--
>Thanks,
>Stefan Bruckner
More information about the vtkusers
mailing list