#include <OSGConfig.h>#include <OSGBaseTypes.h>#include <OSGMatrix.h>#include <OSGMatrixUtility.h>#include <OSGNodePtr.h>#include <OSGCamera.h>#include <OSGTransform.h>#include "OSGNavigator.h"Go to the source code of this file.
Namespaces | |
| namespace | osg |
Functions | |
| static void | calcCCtoWCMatrix (Matrix &cctowc, const Matrix &view, const ViewportPtr port) |
Variables | |
| static Char8 | cvsid_cpp [] = "@(#)$Id: " |
| static Char8 | cvsid_hpp [] = OSGNAVIGATOR_HEADER_CVSID |
| static Char8 | cvsid_fields_hpp [] = OSGNAVIGATOR_HEADER_CVSID |
| static void calcCCtoWCMatrix | ( | Matrix & | cctowc, | |
| const Matrix & | view, | |||
| const ViewportPtr | port | |||
| ) | [static] |
Calculates the transformation matrix from CC to WC using the actual view matrix.
Definition at line 923 of file OSGNavigator.cpp.
References osg::TransformationMatrix< ValueTypeT >::invertFrom(), and osg::TransformationMatrix< ValueTypeT >::mult().
Referenced by osg::Navigator::calcDeltas(), and osg::Navigator::getIntersectionPoint().
00925 { 00926 Matrix proj, projtrans; 00927 00928 port->getCamera()->getProjection( proj, port->getPixelWidth(), 00929 port->getPixelHeight()); 00930 port->getCamera()->getProjectionTranslation( projtrans, 00931 port->getPixelWidth(), 00932 port->getPixelHeight()); 00933 00934 Matrix wctocc = proj; 00935 wctocc.mult( projtrans ); 00936 wctocc.mult( view ); 00937 00938 cctowc.invertFrom( wctocc ); 00939 }
Char8 cvsid_cpp[] = "@(#)$Id: " [static] |
Definition at line 1049 of file OSGNavigator.cpp.
Char8 cvsid_hpp[] = OSGNAVIGATOR_HEADER_CVSID [static] |
Definition at line 1050 of file OSGNavigator.cpp.
Char8 cvsid_fields_hpp[] = OSGNAVIGATOR_HEADER_CVSID [static] |
Definition at line 1053 of file OSGNavigator.cpp.
1.5.5