Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

OSGNavigator.cpp File Reference

#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


Function Documentation

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 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 }


Variable Documentation

Char8 cvsid_cpp[] = "@(#)$Id: " [static]
 

Definition at line 995 of file OSGNavigator.cpp.

Char8 cvsid_hpp[] = OSGNAVIGATOR_HEADER_CVSID [static]
 

Definition at line 996 of file OSGNavigator.cpp.

Char8 cvsid_fields_hpp[] = OSGNAVIGATOR_HEADER_CVSID [static]
 

Definition at line 999 of file OSGNavigator.cpp.


Generated on Thu Aug 25 04:12:21 2005 for OpenSG by  doxygen 1.4.3