#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 |
|
||||||||||||||||
|
Calculates the transformation matrix from CC to WC using the actual view matrix. Definition at line 878 of file OSGNavigator.cpp. References osg::TransformationMatrix< ValueTypeT >::invertFrom(), and osg::TransformationMatrix< ValueTypeT >::mult(). Referenced by osg::Navigator::calcDeltas(), and osg::Navigator::getIntersectionPoint(). 00880 { 00881 Matrix proj, projtrans; 00882 00883 port->getCamera()->getProjection( proj, port->getPixelWidth(), 00884 port->getPixelHeight()); 00885 port->getCamera()->getProjectionTranslation( projtrans, 00886 port->getPixelWidth(), 00887 port->getPixelHeight()); 00888 00889 Matrix wctocc = proj; 00890 wctocc.mult( projtrans ); 00891 wctocc.mult( view ); 00892 00893 cctowc.invertFrom( wctocc ); 00894 }
|
|
|
Definition at line 995 of file OSGNavigator.cpp. |
|
|
Definition at line 996 of file OSGNavigator.cpp. |
|
|
Definition at line 999 of file OSGNavigator.cpp. |
1.4.3