Added osgUtil, osgDB, osgFX, osgParticle, osgSim, osgTerrain, osgGA
and osgProducer to osgWrappers directory.
Enabled the build of osgWrappers/osg, osgWrappers/osgPartile and osgWrappers/osgSim,
but not osgUtil, osgDB, osgFX, osgTerrain, osgGA and osgProducer due to compile
errors. I am assuming that these compilers are fixable so I'm checked all the
source code so that members of the community can help fix them.
2005-05-09 18:17:56 +08:00
// ***************************************************************************
//
// Generated automatically by genwrapper.
// Please DO NOT EDIT this file!
//
// ***************************************************************************
# include <osgIntrospection/ReflectionMacros>
# include <osgIntrospection/TypedMethodInfo>
2006-09-01 21:34:05 +08:00
# include <osgIntrospection/StaticMethodInfo>
Added osgUtil, osgDB, osgFX, osgParticle, osgSim, osgTerrain, osgGA
and osgProducer to osgWrappers directory.
Enabled the build of osgWrappers/osg, osgWrappers/osgPartile and osgWrappers/osgSim,
but not osgUtil, osgDB, osgFX, osgTerrain, osgGA and osgProducer due to compile
errors. I am assuming that these compilers are fixable so I'm checked all the
source code so that members of the community can help fix them.
2005-05-09 18:17:56 +08:00
# include <osgIntrospection/Attributes>
2006-07-19 04:53:16 +08:00
# include <osg/ApplicationUsage>
Added osgUtil, osgDB, osgFX, osgParticle, osgSim, osgTerrain, osgGA
and osgProducer to osgWrappers directory.
Enabled the build of osgWrappers/osg, osgWrappers/osgPartile and osgWrappers/osgSim,
but not osgUtil, osgDB, osgFX, osgTerrain, osgGA and osgProducer due to compile
errors. I am assuming that these compilers are fixable so I'm checked all the
source code so that members of the community can help fix them.
2005-05-09 18:17:56 +08:00
# include <osg/Matrixd>
# include <osg/Node>
2006-07-19 04:53:16 +08:00
# include <osg/Quat>
# include <osg/Vec3d>
Added osgUtil, osgDB, osgFX, osgParticle, osgSim, osgTerrain, osgGA
and osgProducer to osgWrappers directory.
Enabled the build of osgWrappers/osg, osgWrappers/osgPartile and osgWrappers/osgSim,
but not osgUtil, osgDB, osgFX, osgTerrain, osgGA and osgProducer due to compile
errors. I am assuming that these compilers are fixable so I'm checked all the
source code so that members of the community can help fix them.
2005-05-09 18:17:56 +08:00
# include <osgGA/GUIActionAdapter>
# include <osgGA/GUIEventAdapter>
# include <osgGA/TrackballManipulator>
# include <osgUtil/SceneView>
2005-05-16 17:41:10 +08:00
// Must undefine IN and OUT macros defined in Windows headers
# ifdef IN
# undef IN
# endif
# ifdef OUT
# undef OUT
# endif
2007-02-14 19:24:42 +08:00
BEGIN_OBJECT_REFLECTOR ( osgGA : : TrackballManipulator )
2007-06-08 18:42:52 +08:00
I_DeclaringFile ( " osgGA/TrackballManipulator " ) ;
2005-05-16 17:41:10 +08:00
I_BaseType ( osgGA : : MatrixManipulator ) ;
2006-10-24 17:45:50 +08:00
I_Constructor0 ( ____TrackballManipulator ,
" " ,
" " ) ;
I_Method0 ( const char * , className ,
2007-02-13 02:02:15 +08:00
Properties : : VIRTUAL ,
2006-10-24 17:45:50 +08:00
__C5_char_P1__className ,
2007-09-14 19:26:23 +08:00
" return the name of the object's class type. " ,
" Must be defined by derived classes. " ) ;
2006-10-24 17:45:50 +08:00
I_Method1 ( void , setByMatrix , IN , const osg : : Matrixd & , matrix ,
2007-02-13 02:02:15 +08:00
Properties : : VIRTUAL ,
2006-10-24 17:45:50 +08:00
__void__setByMatrix__C5_osg_Matrixd_R1 ,
" set the position of the matrix manipulator using a 4x4 Matrix. " ,
" " ) ;
I_Method1 ( void , setByInverseMatrix , IN , const osg : : Matrixd & , matrix ,
2007-02-13 02:02:15 +08:00
Properties : : VIRTUAL ,
2006-10-24 17:45:50 +08:00
__void__setByInverseMatrix__C5_osg_Matrixd_R1 ,
" set the position of the matrix manipulator using a 4x4 Matrix. " ,
" " ) ;
I_Method0 ( osg : : Matrixd , getMatrix ,
2007-02-13 02:02:15 +08:00
Properties : : VIRTUAL ,
2006-10-24 17:45:50 +08:00
__osg_Matrixd__getMatrix ,
" get the position of the manipulator as 4x4 Matrix. " ,
" " ) ;
I_Method0 ( osg : : Matrixd , getInverseMatrix ,
2007-02-13 02:02:15 +08:00
Properties : : VIRTUAL ,
2006-10-24 17:45:50 +08:00
__osg_Matrixd__getInverseMatrix ,
" get the position of the manipulator as a inverse matrix of the manipulator, typically used as a model view matrix. " ,
" " ) ;
I_Method0 ( osgUtil : : SceneView : : FusionDistanceMode , getFusionDistanceMode ,
2007-02-13 02:02:15 +08:00
Properties : : VIRTUAL ,
2006-10-24 17:45:50 +08:00
__osgUtil_SceneView_FusionDistanceMode__getFusionDistanceMode ,
" Get the FusionDistanceMode. " ,
2007-12-11 04:35:50 +08:00
" Used by SceneView for setting up stereo convergence. " ) ;
2006-10-24 17:45:50 +08:00
I_Method0 ( float , getFusionDistanceValue ,
2007-02-13 02:02:15 +08:00
Properties : : VIRTUAL ,
2006-10-24 17:45:50 +08:00
__float__getFusionDistanceValue ,
" Get the FusionDistanceValue. " ,
2007-12-11 04:35:50 +08:00
" Used by SceneView for setting up stereo convergence. " ) ;
2006-10-24 17:45:50 +08:00
I_Method1 ( void , setNode , IN , osg : : Node * , x ,
2007-02-13 02:02:15 +08:00
Properties : : VIRTUAL ,
2006-10-24 17:45:50 +08:00
__void__setNode__osg_Node_P1 ,
" Attach a node to the manipulator. " ,
" Automatically detaches previously attached node. setNode(NULL) detaches previously nodes. Is ignored by manipulators which do not require a reference model. " ) ;
I_Method0 ( const osg : : Node * , getNode ,
2007-02-13 02:02:15 +08:00
Properties : : VIRTUAL ,
2006-10-24 17:45:50 +08:00
__C5_osg_Node_P1__getNode ,
" Return node if attached. " ,
" " ) ;
I_Method0 ( osg : : Node * , getNode ,
2007-02-13 02:02:15 +08:00
Properties : : VIRTUAL ,
2006-10-24 17:45:50 +08:00
__osg_Node_P1__getNode ,
" Return node if attached. " ,
" " ) ;
I_Method2 ( void , home , IN , const osgGA : : GUIEventAdapter & , ea , IN , osgGA : : GUIActionAdapter & , us ,
2007-02-13 02:02:15 +08:00
Properties : : VIRTUAL ,
2006-10-24 17:45:50 +08:00
__void__home__C5_GUIEventAdapter_R1__GUIActionAdapter_R1 ,
" Move the camera to the default position. " ,
" May be ignored by manipulators if home functionality is not appropriate. " ) ;
I_Method1 ( void , home , IN , double , x ,
2007-02-13 02:02:15 +08:00
Properties : : VIRTUAL ,
2006-10-24 17:45:50 +08:00
__void__home__double ,
" Move the camera to the default position. " ,
2007-08-11 01:44:54 +08:00
" This version does not require GUIEventAdapter and GUIActionAdapter so may be called from somewhere other than a handle() method in GUIEventHandler. Application must be aware of implications. " ) ;
2006-10-24 17:45:50 +08:00
I_Method2 ( void , init , IN , const osgGA : : GUIEventAdapter & , ea , IN , osgGA : : GUIActionAdapter & , us ,
2007-02-13 02:02:15 +08:00
Properties : : VIRTUAL ,
2006-10-24 17:45:50 +08:00
__void__init__C5_GUIEventAdapter_R1__GUIActionAdapter_R1 ,
" Start/restart the manipulator. " ,
" " ) ;
I_Method2 ( bool , handle , IN , const osgGA : : GUIEventAdapter & , ea , IN , osgGA : : GUIActionAdapter & , us ,
2007-02-13 02:02:15 +08:00
Properties : : VIRTUAL ,
2006-10-24 17:45:50 +08:00
__bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1 ,
" handle events, return true if handled, false otherwise. " ,
" " ) ;
I_Method1 ( void , getUsage , IN , osg : : ApplicationUsage & , usage ,
2007-02-13 02:02:15 +08:00
Properties : : VIRTUAL ,
2006-10-24 17:45:50 +08:00
__void__getUsage__osg_ApplicationUsage_R1 ,
" Get the keyboard and mouse usage of this manipulator. " ,
" " ) ;
I_Method1 ( void , setMinimumZoomScale , IN , double , minimumZoomScale ,
2007-02-13 02:02:15 +08:00
Properties : : NON_VIRTUAL ,
2006-10-24 17:45:50 +08:00
__void__setMinimumZoomScale__double ,
" set the minimum distance (as ratio) the eye point can be zoomed in towards the center before the center is pushed forward. " ,
" " ) ;
I_Method0 ( double , getMinimumZoomScale ,
2007-02-13 02:02:15 +08:00
Properties : : NON_VIRTUAL ,
2006-10-24 17:45:50 +08:00
__double__getMinimumZoomScale ,
" get the minimum distance (as ratio) the eye point can be zoomed in " ,
" " ) ;
2009-03-13 01:12:48 +08:00
I_Method1 ( void , setScroolWheelZoomDelta , IN , double , zoomDelta ,
Properties : : NON_VIRTUAL ,
__void__setScroolWheelZoomDelta__double ,
" set the mouse scroll wheel zoom delta. " ,
" Range -1.0 to +1.0, -ve value inverts wheel direction and zero switches off scroll wheel. " ) ;
I_Method0 ( double , getScroolWheelZoomDelta ,
Properties : : NON_VIRTUAL ,
__double__getScroolWheelZoomDelta ,
" get the mouse scroll wheel zoom delta. " ,
" " ) ;
2006-10-24 17:45:50 +08:00
I_Method1 ( void , setCenter , IN , const osg : : Vec3d & , center ,
2007-02-13 02:02:15 +08:00
Properties : : NON_VIRTUAL ,
2006-10-24 17:45:50 +08:00
__void__setCenter__C5_osg_Vec3d_R1 ,
" Set the center of the trackball. " ,
" " ) ;
I_Method0 ( const osg : : Vec3d & , getCenter ,
2007-02-13 02:02:15 +08:00
Properties : : NON_VIRTUAL ,
2006-10-24 17:45:50 +08:00
__C5_osg_Vec3d_R1__getCenter ,
" Get the center of the trackball. " ,
" " ) ;
I_Method1 ( void , setRotation , IN , const osg : : Quat & , rotation ,
2007-02-13 02:02:15 +08:00
Properties : : NON_VIRTUAL ,
2006-10-24 17:45:50 +08:00
__void__setRotation__C5_osg_Quat_R1 ,
" Set the rotation of the trackball. " ,
" " ) ;
I_Method0 ( const osg : : Quat & , getRotation ,
2007-02-13 02:02:15 +08:00
Properties : : NON_VIRTUAL ,
2006-10-24 17:45:50 +08:00
__C5_osg_Quat_R1__getRotation ,
" Get the rotation of the trackball. " ,
" " ) ;
I_Method1 ( void , setDistance , IN , double , distance ,
2007-02-13 02:02:15 +08:00
Properties : : NON_VIRTUAL ,
2006-10-24 17:45:50 +08:00
__void__setDistance__double ,
" Set the distance of the trackball. " ,
" " ) ;
I_Method0 ( double , getDistance ,
2007-02-13 02:02:15 +08:00
Properties : : NON_VIRTUAL ,
2006-10-24 17:45:50 +08:00
__double__getDistance ,
" Get the distance of the trackball. " ,
" " ) ;
I_Method1 ( void , setTrackballSize , IN , float , size ,
2007-02-13 02:02:15 +08:00
Properties : : NON_VIRTUAL ,
2006-10-24 17:45:50 +08:00
__void__setTrackballSize__float ,
" Set the size of the trackball. " ,
" " ) ;
I_Method0 ( float , getTrackballSize ,
2007-02-13 02:02:15 +08:00
Properties : : NON_VIRTUAL ,
2006-10-24 17:45:50 +08:00
__float__getTrackballSize ,
" Get the size of the trackball. " ,
" " ) ;
2007-03-01 19:58:36 +08:00
I_ProtectedMethod0 ( void , flushMouseEventStack ,
Properties : : NON_VIRTUAL ,
Properties : : NON_CONST ,
__void__flushMouseEventStack ,
" Reset the internal GUIEvent stack. " ,
" " ) ;
I_ProtectedMethod1 ( void , addMouseEvent , IN , const osgGA : : GUIEventAdapter & , ea ,
Properties : : NON_VIRTUAL ,
Properties : : NON_CONST ,
__void__addMouseEvent__C5_GUIEventAdapter_R1 ,
" Add the current mouse GUIEvent to internal stack. " ,
" " ) ;
I_ProtectedMethod3 ( void , computePosition , IN , const osg : : Vec3 & , eye , IN , const osg : : Vec3 & , lv , IN , const osg : : Vec3 & , up ,
Properties : : NON_VIRTUAL ,
Properties : : NON_CONST ,
__void__computePosition__C5_osg_Vec3_R1__C5_osg_Vec3_R1__C5_osg_Vec3_R1 ,
" " ,
" " ) ;
I_ProtectedMethod0 ( bool , calcMovement ,
Properties : : NON_VIRTUAL ,
Properties : : NON_CONST ,
__bool__calcMovement ,
" For the give mouse movement calculate the movement of the camera. " ,
" Return true is camera has moved and a redraw is required. " ) ;
I_ProtectedMethod6 ( void , trackball , IN , osg : : Vec3 & , axis , IN , float & , angle , IN , float , p1x , IN , float , p1y , IN , float , p2x , IN , float , p2y ,
Properties : : NON_VIRTUAL ,
Properties : : NON_CONST ,
__void__trackball__osg_Vec3_R1__float_R1__float__float__float__float ,
" " ,
" " ) ;
I_ProtectedMethod3 ( float , tb_project_to_sphere , IN , float , r , IN , float , x , IN , float , y ,
Properties : : NON_VIRTUAL ,
Properties : : NON_CONST ,
__float__tb_project_to_sphere__float__float__float ,
" " ,
" " ) ;
I_ProtectedMethod0 ( bool , isMouseMoving ,
Properties : : NON_VIRTUAL ,
Properties : : NON_CONST ,
__bool__isMouseMoving ,
" Check the speed at which the mouse is moving. " ,
" If speed is below a threshold then return false, otherwise return true. " ) ;
2006-10-24 17:45:50 +08:00
I_SimpleProperty ( const osg : : Matrixd & , ByInverseMatrix ,
0 ,
__void__setByInverseMatrix__C5_osg_Matrixd_R1 ) ;
I_SimpleProperty ( const osg : : Matrixd & , ByMatrix ,
0 ,
__void__setByMatrix__C5_osg_Matrixd_R1 ) ;
I_SimpleProperty ( const osg : : Vec3d & , Center ,
__C5_osg_Vec3d_R1__getCenter ,
__void__setCenter__C5_osg_Vec3d_R1 ) ;
I_SimpleProperty ( double , Distance ,
__double__getDistance ,
__void__setDistance__double ) ;
I_SimpleProperty ( osgUtil : : SceneView : : FusionDistanceMode , FusionDistanceMode ,
__osgUtil_SceneView_FusionDistanceMode__getFusionDistanceMode ,
0 ) ;
I_SimpleProperty ( float , FusionDistanceValue ,
__float__getFusionDistanceValue ,
0 ) ;
I_SimpleProperty ( osg : : Matrixd , InverseMatrix ,
__osg_Matrixd__getInverseMatrix ,
0 ) ;
I_SimpleProperty ( osg : : Matrixd , Matrix ,
__osg_Matrixd__getMatrix ,
0 ) ;
I_SimpleProperty ( double , MinimumZoomScale ,
__double__getMinimumZoomScale ,
__void__setMinimumZoomScale__double ) ;
I_SimpleProperty ( osg : : Node * , Node ,
__osg_Node_P1__getNode ,
__void__setNode__osg_Node_P1 ) ;
I_SimpleProperty ( const osg : : Quat & , Rotation ,
__C5_osg_Quat_R1__getRotation ,
__void__setRotation__C5_osg_Quat_R1 ) ;
2009-03-13 01:12:48 +08:00
I_SimpleProperty ( double , ScroolWheelZoomDelta ,
__double__getScroolWheelZoomDelta ,
__void__setScroolWheelZoomDelta__double ) ;
2006-10-24 17:45:50 +08:00
I_SimpleProperty ( float , TrackballSize ,
__float__getTrackballSize ,
__void__setTrackballSize__float ) ;
Added osgUtil, osgDB, osgFX, osgParticle, osgSim, osgTerrain, osgGA
and osgProducer to osgWrappers directory.
Enabled the build of osgWrappers/osg, osgWrappers/osgPartile and osgWrappers/osgSim,
but not osgUtil, osgDB, osgFX, osgTerrain, osgGA and osgProducer due to compile
errors. I am assuming that these compilers are fixable so I'm checked all the
source code so that members of the community can help fix them.
2005-05-09 18:17:56 +08:00
END_REFLECTOR