viewer.home();

2009/6/5 Großer Martin <[email protected]>:
> Hi Robert,
>
> i found this code line, too. But it is a virtal method with empty method
> body. Now I use the TrackballManipulator and it does't override the
> method home(double). But it works fine. But I don't know why.
>
> Here a part of my code:
>
> // set new home position
> _da->getCameraManipulator()->setHomePosition(eye,point, up,false);
>
> // change to new home position
> _da->getCameraManipulator()->home(0.0);
>
> Without the last line, it doesn't work.
>
> Make this sense? Or is my programm code bad? There are another way to
> set a new home position?
>
> Cheers, Martin
>
> Am Freitag, den 05.06.2009, 15:35 +0100 schrieb Robert Osfield:
>> Hi Martin,
>>
>> I could recall the answer off the top of my head so I had to look at
>> the source code and it said...
>>
>>         virtual void home(double /*currentTime*/) {}
>>
>> So the double is the current frame time.
>>
>> Robert.
>>
>>
>>
>> 2009/6/5 Großer Martin <[email protected]>:
>> > hello,
>> >
>> > I'am so sorry, the mail subject was totally wrong.
>> >
>> >
>> > The matrix manipulator from osg::GA has the method "home(double)". I use
>> > this method to change the position of the camera to the new home
>> > position. But I don't know what the double parameter represent?
>> >
>> > Cheers,
>> >
>> > Martin
>> >
>> > _______________________________________________
>> > osg-users mailing list
>> > [email protected]
>> > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>> >
>> _______________________________________________
>> osg-users mailing list
>> [email protected]
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to