Changeset 25
- Timestamp:
- 10/29/08 17:19:51 (4 years ago)
- Location:
- trunk/avango-osg
- Files:
-
- 2 edited
-
include/avango/osg/viewer/Camera.h (modified) (1 diff)
-
src/avango/osg/viewer/Camera.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/avango-osg/include/avango/osg/viewer/Camera.h
r1 r25 166 166 167 167 /** 168 * Outputs the projection matrix of the osg camera 169 */ 170 SFMatrix ProjectionMatrix; 171 172 /** 168 173 * Get the wrapped ::osg::Camera. 169 174 */ -
trunk/avango-osg/src/avango/osg/viewer/Camera.cpp
r19 r25 138 138 AV_FC_ADD_FIELD(MouseViewerTransform, ::osg::Matrix::identity()); 139 139 AV_FC_ADD_FIELD(MouseNearTransform, ::osg::Matrix::identity()); 140 AV_FC_ADD_FIELD(ProjectionMatrix, ::osg::Matrix::identity()); 140 141 141 142 mOsgCamera->setReferenceFrame(::osg::Transform::ABSOLUTE_RF); … … 358 359 if (MouseNearTransform.getValue() != mouse_near_trans) 359 360 MouseNearTransform.setValue(mouse_near_trans); 361 if (ProjectionMatrix.getValue() != mOsgCamera->getProjectionMatrix()) 362 ProjectionMatrix.setValue(mOsgCamera->getProjectionMatrix()); 360 363 } 361 364 }
Note: See TracChangeset
for help on using the changeset viewer.
