Fixed positioning of images.

This commit is contained in:
Robert Osfield 2003-11-03 23:26:17 +00:00
parent 2e59f65fc9
commit 7f7a51b1ca
2 changed files with 1 additions and 6 deletions

View File

@ -68,9 +68,7 @@ void SlideShowConstructor::createPresentation()
_textWidth = _slideWidth*0.8f;
_textOrigin = _slideOrigin + osg::Vec3(_slideWidth*0.1f,0.0f,_titleOrigin.z()-_slideOrigin.z()-2*_textHeight);
_imageOrigin = _slideOrigin + osg::Vec3(_slideWidth*0.7f,0.0f,_titleOrigin.z()*0.5f-_slideOrigin.z());
_modelLeft = _slideOrigin + osg::Vec3(_slideWidth*0.0f,0.0f,_titleOrigin.z()*0.5f-_slideOrigin.z());
_modelRight = _slideOrigin + osg::Vec3(_slideWidth*1.0f,0.0f,_titleOrigin.z()*0.5f-_slideOrigin.z());
_imageOrigin = _slideOrigin + osg::Vec3(_slideWidth*0.7f,0.0f,_slideHeight*0.45f);
_root = new osg::ClearNode;
_root->setClearColor(_backgroundColor);
@ -129,7 +127,6 @@ void SlideShowConstructor::addSlide()
// reset cursors
_textCursor = _textOrigin;
_imageCursor = _imageOrigin;
_modelCursor = _modelLeft*0.5f + _modelRight*0.5f;
_slide = new osg::Switch;
_slide->setName(std::string("Slide_")+_slideTitle);

View File

@ -110,8 +110,6 @@ protected:
osg::Vec3 _textOrigin;
osg::Vec3 _imageOrigin;
osg::Vec3 _modelLeft;
osg::Vec3 _modelRight;
osg::Vec3 _textCursor;
osg::Vec3 _imageCursor;