Updated wrappers
This commit is contained in:
@@ -51,6 +51,7 @@ WRAPPER_DIRS = \
|
||||
osgDB \
|
||||
osgFX \
|
||||
osgText \
|
||||
osgManipulator \
|
||||
osgGA
|
||||
|
||||
ifeq ($(PRODUCER_INSTALLED),yes)
|
||||
|
||||
@@ -3902,6 +3902,33 @@ Package=<4>
|
||||
|
||||
###############################################################################
|
||||
|
||||
Project: "osgWrapper osgManipulator"=.\osgWrappers\osgManipulator\wrapper_osgManipulator.dsp - Package Owner=<4>
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<4>
|
||||
{{{
|
||||
Begin Project Dependency
|
||||
Project_Dep_Name Core osg
|
||||
End Project Dependency
|
||||
Begin Project Dependency
|
||||
Project_Dep_Name Core osgManipulator
|
||||
End Project Dependency
|
||||
Begin Project Dependency
|
||||
Project_Dep_Name Core osgGA
|
||||
End Project Dependency
|
||||
Begin Project Dependency
|
||||
Project_Dep_Name Core osgUtil
|
||||
End Project Dependency
|
||||
Begin Project Dependency
|
||||
Project_Dep_Name Core osgIntrospection
|
||||
End Project Dependency
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
Project: "osgWrapper osgParticle"=.\osgWrappers\osgParticle\wrapper_osgParticle.dsp - Package Owner=<4>
|
||||
|
||||
Package=<5>
|
||||
|
||||
@@ -0,0 +1,189 @@
|
||||
# Microsoft Developer Studio Project File - Name="osgWrapper osgManipulator" - Package Owner=<4>
|
||||
# Microsoft Developer Studio Generated Build File, Format Version 6.00
|
||||
# ** DO NOT EDIT **
|
||||
|
||||
# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
|
||||
|
||||
CFG=osgWrapper osgManipulator - Win32 Release
|
||||
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
|
||||
!MESSAGE use the Export Makefile command and run
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "wrapper_osgManipulator.mak".
|
||||
!MESSAGE
|
||||
!MESSAGE You can specify a configuration when running NMAKE
|
||||
!MESSAGE by defining the macro CFG on the command line. For example:
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "wrapper_osgManipulator.mak" CFG="osgWrapper osgManipulator - Win32 Release"
|
||||
!MESSAGE
|
||||
!MESSAGE Possible choices for configuration are:
|
||||
!MESSAGE
|
||||
!MESSAGE "osgWrapper osgManipulator - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")
|
||||
!MESSAGE "osgWrapper osgManipulator - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")
|
||||
!MESSAGE
|
||||
|
||||
# Begin Project
|
||||
# PROP AllowPerConfigDependencies 0
|
||||
# PROP Scc_ProjName ""
|
||||
# PROP Scc_LocalPath ""
|
||||
CPP=cl.exe
|
||||
MTL=midl.exe
|
||||
RSC=rc.exe
|
||||
|
||||
!IF "$(CFG)" == "osgWrapper osgManipulator - Win32 Release"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 0
|
||||
# PROP BASE Output_Dir "Release"
|
||||
# PROP BASE Intermediate_Dir "Release"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 0
|
||||
# PROP Output_Dir "../../../bin/$(PlatformName)"
|
||||
# PROP Intermediate_Dir "$(PlatformName)/$(ConfigurationName)"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
F90=df.exe
|
||||
# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /YX /FD /c
|
||||
# ADD CPP /nologo /MD /W3 /GR /GX /O2 /I "../../../include" /I "../../../../OpenThreads/include" /I "../../../../Producer/include" /I "../../../../3rdParty/include" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "_CRT_SECURE_NO_DEPRECATE" /YX /FD /c
|
||||
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
|
||||
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
|
||||
# ADD BASE RSC /l 0x809 /d "NDEBUG"
|
||||
# ADD RSC /l 0x809 /d "NDEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept
|
||||
# ADD LINK32 opengl32.lib OpenThreadsWin32.lib /nologo /dll /debug /machine:I386 /nodefaultlib:"LIBC" /opt:ref /opt:icf /out:"$(OutDir)/osgwrapper_osgManipulator.dll" /implib:"../../../lib/$(PlatformName)/osgwrapper_osgManipulator.lib" /libpath:"../../../lib/$(PlatformName)" /libpath:"../../../../OpenThreads/lib/$(PlatformName)" /libpath:"../../../../Producer/lib/$(PlatformName)" /libpath:"../../../../3rdParty/lib/$(PlatformName)" /libpath:"../../../../3rdParty/lib"
|
||||
# SUBTRACT LINK32 /nodefaultlib
|
||||
|
||||
!ELSEIF "$(CFG)" == "osgWrapper osgManipulator - Win32 Debug"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 1
|
||||
# PROP BASE Output_Dir "Debug"
|
||||
# PROP BASE Intermediate_Dir "Debug"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 1
|
||||
# PROP Output_Dir "../../../bin/$(PlatformName)"
|
||||
# PROP Intermediate_Dir "$(PlatformName)/$(ConfigurationName)"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
F90=df.exe
|
||||
# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /YX /FD /GZ /c
|
||||
# ADD CPP /nologo /MDd /W3 /Gm /vmg /GR /GX /Zi /Od /I "../../../include" /I "../../../../OpenThreads/include" /I "../../../../Producer/include" /I "../../../../3rdParty/include" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "WIN32" /D "_DEBUG" /D "_CRT_SECURE_NO_DEPRECATE" /YX /FD /GZ /c
|
||||
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
|
||||
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
|
||||
# ADD BASE RSC /l 0x809 /d "_DEBUG"
|
||||
# ADD RSC /l 0x809 /d "_DEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept
|
||||
# ADD LINK32 opengl32.lib OpenThreadsWin32d.lib /nologo /dll /debug /machine:I386 /nodefaultlib:"LIBC" /out:"$(OutDir)/osgwrapper_osgManipulatord.dll" /pdbtype:sept /implib:"../../../lib/$(PlatformName)/osgwrapper_osgManipulatord.lib" /libpath:"../../../lib/$(PlatformName)" /libpath:"../../../../OpenThreads/lib/$(PlatformName)" /libpath:"../../../../Producer/lib/$(PlatformName)" /libpath:"../../../../3rdParty/lib/$(PlatformName)" /libpath:"../../../../3rdParty/lib"
|
||||
# SUBTRACT LINK32 /pdb:none /nodefaultlib
|
||||
|
||||
!ENDIF
|
||||
|
||||
# Begin Target
|
||||
|
||||
# Name "osgWrapper osgManipulator - Win32 Release"
|
||||
# Name "osgWrapper osgManipulator - Win32 Debug"
|
||||
# Begin Group "Source Files"
|
||||
|
||||
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
|
||||
|
||||
# Begin Source File
|
||||
SOURCE=..\..\..\src\osgWrappers\osgManipulator\AntiSquish.cpp
|
||||
# End Source File
|
||||
|
||||
# Begin Source File
|
||||
SOURCE=..\..\..\src\osgWrappers\osgManipulator\Command.cpp
|
||||
# End Source File
|
||||
|
||||
# Begin Source File
|
||||
SOURCE=..\..\..\src\osgWrappers\osgManipulator\CommandManager.cpp
|
||||
# End Source File
|
||||
|
||||
# Begin Source File
|
||||
SOURCE=..\..\..\src\osgWrappers\osgManipulator\Constraint.cpp
|
||||
# End Source File
|
||||
|
||||
# Begin Source File
|
||||
SOURCE=..\..\..\src\osgWrappers\osgManipulator\Dragger.cpp
|
||||
# End Source File
|
||||
|
||||
# Begin Source File
|
||||
SOURCE=..\..\..\src\osgWrappers\osgManipulator\Projector.cpp
|
||||
# End Source File
|
||||
|
||||
# Begin Source File
|
||||
SOURCE=..\..\..\src\osgWrappers\osgManipulator\RotateCylinderDragger.cpp
|
||||
# End Source File
|
||||
|
||||
# Begin Source File
|
||||
SOURCE=..\..\..\src\osgWrappers\osgManipulator\RotateSphereDragger.cpp
|
||||
# End Source File
|
||||
|
||||
# Begin Source File
|
||||
SOURCE=..\..\..\src\osgWrappers\osgManipulator\Scale1DDragger.cpp
|
||||
# End Source File
|
||||
|
||||
# Begin Source File
|
||||
SOURCE=..\..\..\src\osgWrappers\osgManipulator\Scale2DDragger.cpp
|
||||
# End Source File
|
||||
|
||||
# Begin Source File
|
||||
SOURCE=..\..\..\src\osgWrappers\osgManipulator\ScaleAxisDragger.cpp
|
||||
# End Source File
|
||||
|
||||
# Begin Source File
|
||||
SOURCE=..\..\..\src\osgWrappers\osgManipulator\Selection.cpp
|
||||
# End Source File
|
||||
|
||||
# Begin Source File
|
||||
SOURCE=..\..\..\src\osgWrappers\osgManipulator\TabBoxDragger.cpp
|
||||
# End Source File
|
||||
|
||||
# Begin Source File
|
||||
SOURCE=..\..\..\src\osgWrappers\osgManipulator\TabPlaneDragger.cpp
|
||||
# End Source File
|
||||
|
||||
# Begin Source File
|
||||
SOURCE=..\..\..\src\osgWrappers\osgManipulator\TabPlaneTrackballDragger.cpp
|
||||
# End Source File
|
||||
|
||||
# Begin Source File
|
||||
SOURCE=..\..\..\src\osgWrappers\osgManipulator\TrackballDragger.cpp
|
||||
# End Source File
|
||||
|
||||
# Begin Source File
|
||||
SOURCE=..\..\..\src\osgWrappers\osgManipulator\Translate1DDragger.cpp
|
||||
# End Source File
|
||||
|
||||
# Begin Source File
|
||||
SOURCE=..\..\..\src\osgWrappers\osgManipulator\Translate2DDragger.cpp
|
||||
# End Source File
|
||||
|
||||
# Begin Source File
|
||||
SOURCE=..\..\..\src\osgWrappers\osgManipulator\TranslateAxisDragger.cpp
|
||||
# End Source File
|
||||
|
||||
# Begin Source File
|
||||
SOURCE=..\..\..\src\osgWrappers\osgManipulator\TranslatePlaneDragger.cpp
|
||||
# End Source File
|
||||
|
||||
# End Group
|
||||
# Begin Group "Header Files"
|
||||
|
||||
# PROP Default_Filter "h;hpp;hxx;hm;inl"
|
||||
# End Group
|
||||
# Begin Group "Resource Files"
|
||||
|
||||
# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
|
||||
# End Group
|
||||
# End Target
|
||||
# End Project
|
||||
|
||||
@@ -98,14 +98,14 @@ BEGIN_VALUE_REFLECTOR(osg::Matrixd)
|
||||
__C5_value_type_P1__ptr,
|
||||
"",
|
||||
"");
|
||||
I_Method0(void, makeIdentity,
|
||||
__void__makeIdentity,
|
||||
"",
|
||||
"");
|
||||
I_Method0(bool, isIdentity,
|
||||
__bool__isIdentity,
|
||||
"",
|
||||
"");
|
||||
I_Method0(void, makeIdentity,
|
||||
__void__makeIdentity,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, makeScale, IN, const osg::Vec3f &, x,
|
||||
__void__makeScale__C5_Vec3f_R1,
|
||||
"",
|
||||
@@ -162,6 +162,14 @@ BEGIN_VALUE_REFLECTOR(osg::Matrixd)
|
||||
__void__makeRotate__value_type__C5_Vec3d_R1__value_type__C5_Vec3d_R1__value_type__C5_Vec3d_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method4(void, decompose, IN, osg::Vec3f &, translation, IN, osg::Quat &, rotation, IN, osg::Vec3f &, scale, IN, osg::Quat &, so,
|
||||
__void__decompose__osg_Vec3f_R1__osg_Quat_R1__osg_Vec3f_R1__osg_Quat_R1,
|
||||
"decompose the matrix into translation, rotation, scale and scale orietation. ",
|
||||
"");
|
||||
I_Method4(void, decompose, IN, osg::Vec3d &, translation, IN, osg::Quat &, rotation, IN, osg::Vec3d &, scale, IN, osg::Quat &, so,
|
||||
__void__decompose__osg_Vec3d_R1__osg_Quat_R1__osg_Vec3d_R1__osg_Quat_R1,
|
||||
"decompose the matrix into translation, rotation, scale and scale orietation. ",
|
||||
"");
|
||||
I_Method6(void, makeOrtho, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top, IN, double, zNear, IN, double, zFar,
|
||||
__void__makeOrtho__double__double__double__double__double__double,
|
||||
"Set to an orthographic projection. ",
|
||||
|
||||
@@ -162,6 +162,14 @@ BEGIN_VALUE_REFLECTOR(osg::Matrixf)
|
||||
__void__makeRotate__value_type__C5_Vec3d_R1__value_type__C5_Vec3d_R1__value_type__C5_Vec3d_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method4(void, decompose, IN, osg::Vec3f &, translation, IN, osg::Quat &, rotation, IN, osg::Vec3f &, scale, IN, osg::Quat &, so,
|
||||
__void__decompose__osg_Vec3f_R1__osg_Quat_R1__osg_Vec3f_R1__osg_Quat_R1,
|
||||
"decompose the matrix into translation, rotation, scale and scale orietation. ",
|
||||
"");
|
||||
I_Method4(void, decompose, IN, osg::Vec3d &, translation, IN, osg::Quat &, rotation, IN, osg::Vec3d &, scale, IN, osg::Quat &, so,
|
||||
__void__decompose__osg_Vec3d_R1__osg_Quat_R1__osg_Vec3d_R1__osg_Quat_R1,
|
||||
"decompose the matrix into translation, rotation, scale and scale orietation. ",
|
||||
"");
|
||||
I_Method6(void, makeOrtho, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top, IN, double, zNear, IN, double, zFar,
|
||||
__void__makeOrtho__double__double__double__double__double__double,
|
||||
"Set to an orthographic projection. ",
|
||||
|
||||
83
src/osgWrappers/osgManipulator/AntiSquish.cpp
Normal file
83
src/osgWrappers/osgManipulator/AntiSquish.cpp
Normal file
@@ -0,0 +1,83 @@
|
||||
// ***************************************************************************
|
||||
//
|
||||
// Generated automatically by genwrapper.
|
||||
// Please DO NOT EDIT this file!
|
||||
//
|
||||
// ***************************************************************************
|
||||
|
||||
#include <osgIntrospection/ReflectionMacros>
|
||||
#include <osgIntrospection/TypedMethodInfo>
|
||||
#include <osgIntrospection/StaticMethodInfo>
|
||||
#include <osgIntrospection/Attributes>
|
||||
|
||||
#include <osg/CopyOp>
|
||||
#include <osg/Matrix>
|
||||
#include <osg/Object>
|
||||
#include <osg/Vec3>
|
||||
#include <osgManipulator/AntiSquish>
|
||||
|
||||
// Must undefine IN and OUT macros defined in Windows headers
|
||||
#ifdef IN
|
||||
#undef IN
|
||||
#endif
|
||||
#ifdef OUT
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
BEGIN_OBJECT_REFLECTOR(osgManipulator::AntiSquish)
|
||||
I_BaseType(osg::MatrixTransform);
|
||||
I_Constructor0(____AntiSquish,
|
||||
"",
|
||||
"");
|
||||
I_Constructor1(IN, const osg::Vec3 &, pivot,
|
||||
____AntiSquish__C5_osg_Vec3_R1,
|
||||
"",
|
||||
"");
|
||||
I_Constructor2(IN, const osg::Vec3 &, pivot, IN, const osg::Vec3 &, position,
|
||||
____AntiSquish__C5_osg_Vec3_R1__C5_osg_Vec3_R1,
|
||||
"",
|
||||
"");
|
||||
I_ConstructorWithDefaults2(IN, const osgManipulator::AntiSquish &, pat, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY,
|
||||
____AntiSquish__C5_AntiSquish_R1__C5_osg_CopyOp_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method0(osg::Object *, cloneType,
|
||||
__osg_Object_P1__cloneType,
|
||||
"clone an object of the same type as the node. ",
|
||||
"");
|
||||
I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop,
|
||||
__osg_Object_P1__clone__C5_osg_CopyOp_R1,
|
||||
"return a clone of a node, with Object* return type. ",
|
||||
"");
|
||||
I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj,
|
||||
__bool__isSameKindAs__C5_osg_Object_P1,
|
||||
"return true if this and obj are of the same kind of object. ",
|
||||
"");
|
||||
I_Method1(void, setPivot, IN, const osg::Vec3 &, pvt,
|
||||
__void__setPivot__C5_osg_Vec3_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method0(const osg::Vec3 &, getPivot,
|
||||
__C5_osg_Vec3_R1__getPivot,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setPosition, IN, const osg::Vec3 &, pos,
|
||||
__void__setPosition__C5_osg_Vec3_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method0(const osg::Vec3 &, getPosition,
|
||||
__C5_osg_Vec3_R1__getPosition,
|
||||
"",
|
||||
"");
|
||||
I_Method2(osg::Matrix, computeUnSquishedMatrix, IN, const osg::Matrix &, x, IN, bool &, flag,
|
||||
__osg_Matrix__computeUnSquishedMatrix__C5_osg_Matrix_R1__bool_R1,
|
||||
"",
|
||||
"");
|
||||
I_SimpleProperty(const osg::Vec3 &, Pivot,
|
||||
__C5_osg_Vec3_R1__getPivot,
|
||||
__void__setPivot__C5_osg_Vec3_R1);
|
||||
I_SimpleProperty(const osg::Vec3 &, Position,
|
||||
__C5_osg_Vec3_R1__getPosition,
|
||||
__void__setPosition__C5_osg_Vec3_R1);
|
||||
END_REFLECTOR
|
||||
|
||||
446
src/osgWrappers/osgManipulator/Command.cpp
Normal file
446
src/osgWrappers/osgManipulator/Command.cpp
Normal file
@@ -0,0 +1,446 @@
|
||||
// ***************************************************************************
|
||||
//
|
||||
// Generated automatically by genwrapper.
|
||||
// Please DO NOT EDIT this file!
|
||||
//
|
||||
// ***************************************************************************
|
||||
|
||||
#include <osgIntrospection/ReflectionMacros>
|
||||
#include <osgIntrospection/TypedMethodInfo>
|
||||
#include <osgIntrospection/StaticMethodInfo>
|
||||
#include <osgIntrospection/Attributes>
|
||||
|
||||
#include <osg/Matrix>
|
||||
#include <osg/Plane>
|
||||
#include <osg/Quat>
|
||||
#include <osg/Vec2>
|
||||
#include <osg/Vec3>
|
||||
#include <osgManipulator/Command>
|
||||
#include <osgManipulator/Constraint>
|
||||
#include <osgManipulator/Selection>
|
||||
|
||||
// Must undefine IN and OUT macros defined in Windows headers
|
||||
#ifdef IN
|
||||
#undef IN
|
||||
#endif
|
||||
#ifdef OUT
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
BEGIN_ENUM_REFLECTOR(osgManipulator::MotionCommand::Stage)
|
||||
I_EnumLabel(osgManipulator::MotionCommand::NONE);
|
||||
I_EnumLabel(osgManipulator::MotionCommand::START);
|
||||
I_EnumLabel(osgManipulator::MotionCommand::MOVE);
|
||||
I_EnumLabel(osgManipulator::MotionCommand::FINISH);
|
||||
END_REFLECTOR
|
||||
|
||||
BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgManipulator::MotionCommand)
|
||||
I_BaseType(osg::Referenced);
|
||||
I_Constructor0(____MotionCommand,
|
||||
"",
|
||||
"");
|
||||
I_Method0(bool, execute,
|
||||
__bool__execute,
|
||||
"Execute the command. ",
|
||||
"");
|
||||
I_Method0(bool, unexecute,
|
||||
__bool__unexecute,
|
||||
"Undo the command. ",
|
||||
"The inverse of this command is executed. ");
|
||||
I_Method1(void, applyConstraint, IN, const osgManipulator::Constraint *, x,
|
||||
__void__applyConstraint__C5_Constraint_P1,
|
||||
"Apply a constraint to the command. ",
|
||||
"");
|
||||
I_Method1(void, addSelection, IN, osgManipulator::Selection *, x,
|
||||
__void__addSelection__Selection_P1,
|
||||
"Add Selection (receiver) to the command. ",
|
||||
"The command will be executed on all the selections.");
|
||||
I_Method1(void, removeSelection, IN, osgManipulator::Selection *, x,
|
||||
__void__removeSelection__Selection_P1,
|
||||
"Remove Selection (receiver) from the command. ",
|
||||
"");
|
||||
I_Method0(osg::Matrix, getMotionMatrix,
|
||||
__osg_Matrix__getMotionMatrix,
|
||||
"Gets the matrix for transforming the Selection. ",
|
||||
"This matrix is in the command's coordinate systems.");
|
||||
I_Method2(void, setLocalToWorldAndWorldToLocal, IN, const osg::Matrix &, localToWorld, IN, const osg::Matrix &, worldToLocal,
|
||||
__void__setLocalToWorldAndWorldToLocal__C5_osg_Matrix_R1__C5_osg_Matrix_R1,
|
||||
"Sets the matrix for transforming the command's local coordinate system to the world/object coordinate system. ",
|
||||
"");
|
||||
I_Method0(const osg::Matrix &, getLocalToWorld,
|
||||
__C5_osg_Matrix_R1__getLocalToWorld,
|
||||
"Gets the matrix for transforming the command's local coordinate system to the world/object coordinate system. ",
|
||||
"");
|
||||
I_Method0(const osg::Matrix &, getWorldToLocal,
|
||||
__C5_osg_Matrix_R1__getWorldToLocal,
|
||||
"Gets the matrix for transforming the command's world/object coordinate system to the command's local coordinate system. ",
|
||||
"");
|
||||
I_Method1(void, setStage, IN, const osgManipulator::MotionCommand::Stage, s,
|
||||
__void__setStage__C5_Stage,
|
||||
"",
|
||||
"");
|
||||
I_Method0(osgManipulator::MotionCommand::Stage, getStage,
|
||||
__Stage__getStage,
|
||||
"",
|
||||
"");
|
||||
I_SimpleProperty(const osg::Matrix &, LocalToWorld,
|
||||
__C5_osg_Matrix_R1__getLocalToWorld,
|
||||
0);
|
||||
I_SimpleProperty(osg::Matrix, MotionMatrix,
|
||||
__osg_Matrix__getMotionMatrix,
|
||||
0);
|
||||
I_SimpleProperty(osgManipulator::MotionCommand::Stage, Stage,
|
||||
__Stage__getStage,
|
||||
0);
|
||||
I_SimpleProperty(const osg::Matrix &, WorldToLocal,
|
||||
__C5_osg_Matrix_R1__getWorldToLocal,
|
||||
0);
|
||||
END_REFLECTOR
|
||||
|
||||
BEGIN_OBJECT_REFLECTOR(osgManipulator::Rotate3DCommand)
|
||||
I_BaseType(osgManipulator::MotionCommand);
|
||||
I_Constructor0(____Rotate3DCommand,
|
||||
"",
|
||||
"");
|
||||
I_Method0(bool, execute,
|
||||
__bool__execute,
|
||||
"Execute the command. ",
|
||||
"");
|
||||
I_Method0(bool, unexecute,
|
||||
__bool__unexecute,
|
||||
"Undo the command. ",
|
||||
"The inverse of this command is executed. ");
|
||||
I_Method1(void, applyConstraint, IN, const osgManipulator::Constraint *, x,
|
||||
__void__applyConstraint__C5_Constraint_P1,
|
||||
"Apply a constraint to the command. ",
|
||||
"");
|
||||
I_Method1(void, setRotation, IN, const osg::Quat &, rotation,
|
||||
__void__setRotation__C5_osg_Quat_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method0(const osg::Quat &, getRotation,
|
||||
__C5_osg_Quat_R1__getRotation,
|
||||
"",
|
||||
"");
|
||||
I_Method0(osg::Matrix, getMotionMatrix,
|
||||
__osg_Matrix__getMotionMatrix,
|
||||
"Gets the matrix for transforming the Selection. ",
|
||||
"This matrix is in the command's coordinate systems.");
|
||||
I_SimpleProperty(osg::Matrix, MotionMatrix,
|
||||
__osg_Matrix__getMotionMatrix,
|
||||
0);
|
||||
I_SimpleProperty(const osg::Quat &, Rotation,
|
||||
__C5_osg_Quat_R1__getRotation,
|
||||
__void__setRotation__C5_osg_Quat_R1);
|
||||
END_REFLECTOR
|
||||
|
||||
BEGIN_OBJECT_REFLECTOR(osgManipulator::Scale1DCommand)
|
||||
I_BaseType(osgManipulator::MotionCommand);
|
||||
I_Constructor0(____Scale1DCommand,
|
||||
"",
|
||||
"");
|
||||
I_Method0(bool, execute,
|
||||
__bool__execute,
|
||||
"Execute the command. ",
|
||||
"");
|
||||
I_Method0(bool, unexecute,
|
||||
__bool__unexecute,
|
||||
"Undo the command. ",
|
||||
"The inverse of this command is executed. ");
|
||||
I_Method1(void, applyConstraint, IN, const osgManipulator::Constraint *, x,
|
||||
__void__applyConstraint__C5_Constraint_P1,
|
||||
"Apply a constraint to the command. ",
|
||||
"");
|
||||
I_Method1(void, setScale, IN, float, s,
|
||||
__void__setScale__float,
|
||||
"",
|
||||
"");
|
||||
I_Method0(float, getScale,
|
||||
__float__getScale,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setScaleCenter, IN, float, center,
|
||||
__void__setScaleCenter__float,
|
||||
"",
|
||||
"");
|
||||
I_Method0(float, getScaleCenter,
|
||||
__float__getScaleCenter,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setReferencePoint, IN, float, rp,
|
||||
__void__setReferencePoint__float,
|
||||
"ReferencePoint is used only for snapping. ",
|
||||
"");
|
||||
I_Method0(float, getReferencePoint,
|
||||
__float__getReferencePoint,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setMinScale, IN, float, min,
|
||||
__void__setMinScale__float,
|
||||
"",
|
||||
"");
|
||||
I_Method0(float, getMinScale,
|
||||
__float__getMinScale,
|
||||
"",
|
||||
"");
|
||||
I_Method0(osg::Matrix, getMotionMatrix,
|
||||
__osg_Matrix__getMotionMatrix,
|
||||
"Gets the matrix for transforming the Selection. ",
|
||||
"This matrix is in the command's coordinate systems.");
|
||||
I_SimpleProperty(float, MinScale,
|
||||
__float__getMinScale,
|
||||
__void__setMinScale__float);
|
||||
I_SimpleProperty(osg::Matrix, MotionMatrix,
|
||||
__osg_Matrix__getMotionMatrix,
|
||||
0);
|
||||
I_SimpleProperty(float, ReferencePoint,
|
||||
__float__getReferencePoint,
|
||||
__void__setReferencePoint__float);
|
||||
I_SimpleProperty(float, Scale,
|
||||
__float__getScale,
|
||||
__void__setScale__float);
|
||||
I_SimpleProperty(float, ScaleCenter,
|
||||
__float__getScaleCenter,
|
||||
__void__setScaleCenter__float);
|
||||
END_REFLECTOR
|
||||
|
||||
BEGIN_OBJECT_REFLECTOR(osgManipulator::Scale2DCommand)
|
||||
I_BaseType(osgManipulator::MotionCommand);
|
||||
I_Constructor0(____Scale2DCommand,
|
||||
"",
|
||||
"");
|
||||
I_Method0(bool, execute,
|
||||
__bool__execute,
|
||||
"Execute the command. ",
|
||||
"");
|
||||
I_Method0(bool, unexecute,
|
||||
__bool__unexecute,
|
||||
"Undo the command. ",
|
||||
"The inverse of this command is executed. ");
|
||||
I_Method1(void, applyConstraint, IN, const osgManipulator::Constraint *, x,
|
||||
__void__applyConstraint__C5_Constraint_P1,
|
||||
"Apply a constraint to the command. ",
|
||||
"");
|
||||
I_Method1(void, setScale, IN, const osg::Vec2 &, s,
|
||||
__void__setScale__C5_osg_Vec2_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method0(const osg::Vec2 &, getScale,
|
||||
__C5_osg_Vec2_R1__getScale,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setScaleCenter, IN, const osg::Vec2 &, center,
|
||||
__void__setScaleCenter__C5_osg_Vec2_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method0(const osg::Vec2 &, getScaleCenter,
|
||||
__C5_osg_Vec2_R1__getScaleCenter,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setReferencePoint, IN, const osg::Vec2 &, rp,
|
||||
__void__setReferencePoint__C5_osg_Vec2_R1,
|
||||
"ReferencePoint is used only for snapping. ",
|
||||
"");
|
||||
I_Method0(const osg::Vec2 &, getReferencePoint,
|
||||
__C5_osg_Vec2_R1__getReferencePoint,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setMinScale, IN, const osg::Vec2 &, min,
|
||||
__void__setMinScale__C5_osg_Vec2_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method0(const osg::Vec2 &, getMinScale,
|
||||
__C5_osg_Vec2_R1__getMinScale,
|
||||
"",
|
||||
"");
|
||||
I_Method0(osg::Matrix, getMotionMatrix,
|
||||
__osg_Matrix__getMotionMatrix,
|
||||
"Gets the matrix for transforming the Selection. ",
|
||||
"This matrix is in the command's coordinate systems.");
|
||||
I_SimpleProperty(const osg::Vec2 &, MinScale,
|
||||
__C5_osg_Vec2_R1__getMinScale,
|
||||
__void__setMinScale__C5_osg_Vec2_R1);
|
||||
I_SimpleProperty(osg::Matrix, MotionMatrix,
|
||||
__osg_Matrix__getMotionMatrix,
|
||||
0);
|
||||
I_SimpleProperty(const osg::Vec2 &, ReferencePoint,
|
||||
__C5_osg_Vec2_R1__getReferencePoint,
|
||||
__void__setReferencePoint__C5_osg_Vec2_R1);
|
||||
I_SimpleProperty(const osg::Vec2 &, Scale,
|
||||
__C5_osg_Vec2_R1__getScale,
|
||||
__void__setScale__C5_osg_Vec2_R1);
|
||||
I_SimpleProperty(const osg::Vec2 &, ScaleCenter,
|
||||
__C5_osg_Vec2_R1__getScaleCenter,
|
||||
__void__setScaleCenter__C5_osg_Vec2_R1);
|
||||
END_REFLECTOR
|
||||
|
||||
BEGIN_OBJECT_REFLECTOR(osgManipulator::ScaleUniformCommand)
|
||||
I_BaseType(osgManipulator::MotionCommand);
|
||||
I_Constructor0(____ScaleUniformCommand,
|
||||
"",
|
||||
"");
|
||||
I_Method0(bool, execute,
|
||||
__bool__execute,
|
||||
"Execute the command. ",
|
||||
"");
|
||||
I_Method0(bool, unexecute,
|
||||
__bool__unexecute,
|
||||
"Undo the command. ",
|
||||
"The inverse of this command is executed. ");
|
||||
I_Method1(void, applyConstraint, IN, const osgManipulator::Constraint *, x,
|
||||
__void__applyConstraint__C5_Constraint_P1,
|
||||
"Apply a constraint to the command. ",
|
||||
"");
|
||||
I_Method1(void, setScale, IN, float, s,
|
||||
__void__setScale__float,
|
||||
"",
|
||||
"");
|
||||
I_Method0(float, getScale,
|
||||
__float__getScale,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setScaleCenter, IN, const osg::Vec3 &, center,
|
||||
__void__setScaleCenter__C5_osg_Vec3_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method0(const osg::Vec3 &, getScaleCenter,
|
||||
__C5_osg_Vec3_R1__getScaleCenter,
|
||||
"",
|
||||
"");
|
||||
I_Method0(osg::Matrix, getMotionMatrix,
|
||||
__osg_Matrix__getMotionMatrix,
|
||||
"Gets the matrix for transforming the Selection. ",
|
||||
"This matrix is in the command's coordinate systems.");
|
||||
I_SimpleProperty(osg::Matrix, MotionMatrix,
|
||||
__osg_Matrix__getMotionMatrix,
|
||||
0);
|
||||
I_SimpleProperty(float, Scale,
|
||||
__float__getScale,
|
||||
__void__setScale__float);
|
||||
I_SimpleProperty(const osg::Vec3 &, ScaleCenter,
|
||||
__C5_osg_Vec3_R1__getScaleCenter,
|
||||
__void__setScaleCenter__C5_osg_Vec3_R1);
|
||||
END_REFLECTOR
|
||||
|
||||
BEGIN_OBJECT_REFLECTOR(osgManipulator::TranslateInLineCommand)
|
||||
I_BaseType(osgManipulator::MotionCommand);
|
||||
I_Constructor0(____TranslateInLineCommand,
|
||||
"",
|
||||
"");
|
||||
I_Constructor2(IN, const osg::Vec3 &, s, IN, const osg::Vec3 &, e,
|
||||
____TranslateInLineCommand__C5_osg_Vec3_R1__C5_osg_Vec3_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method0(bool, execute,
|
||||
__bool__execute,
|
||||
"Execute the command. ",
|
||||
"");
|
||||
I_Method0(bool, unexecute,
|
||||
__bool__unexecute,
|
||||
"Undo the command. ",
|
||||
"The inverse of this command is executed. ");
|
||||
I_Method1(void, applyConstraint, IN, const osgManipulator::Constraint *, x,
|
||||
__void__applyConstraint__C5_Constraint_P1,
|
||||
"Apply a constraint to the command. ",
|
||||
"");
|
||||
I_Method2(void, setLine, IN, const osg::Vec3 &, s, IN, const osg::Vec3 &, e,
|
||||
__void__setLine__C5_osg_Vec3_R1__C5_osg_Vec3_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method0(const osg::Vec3 &, getLineStart,
|
||||
__C5_osg_Vec3_R1__getLineStart,
|
||||
"",
|
||||
"");
|
||||
I_Method0(const osg::Vec3 &, getLineEnd,
|
||||
__C5_osg_Vec3_R1__getLineEnd,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setTranslation, IN, const osg::Vec3 &, t,
|
||||
__void__setTranslation__C5_osg_Vec3_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method0(const osg::Vec3 &, getTranslation,
|
||||
__C5_osg_Vec3_R1__getTranslation,
|
||||
"",
|
||||
"");
|
||||
I_Method0(osg::Matrix, getMotionMatrix,
|
||||
__osg_Matrix__getMotionMatrix,
|
||||
"Gets the matrix for transforming the Selection. ",
|
||||
"This matrix is in the command's coordinate systems.");
|
||||
I_SimpleProperty(const osg::Vec3 &, LineEnd,
|
||||
__C5_osg_Vec3_R1__getLineEnd,
|
||||
0);
|
||||
I_SimpleProperty(const osg::Vec3 &, LineStart,
|
||||
__C5_osg_Vec3_R1__getLineStart,
|
||||
0);
|
||||
I_SimpleProperty(osg::Matrix, MotionMatrix,
|
||||
__osg_Matrix__getMotionMatrix,
|
||||
0);
|
||||
I_SimpleProperty(const osg::Vec3 &, Translation,
|
||||
__C5_osg_Vec3_R1__getTranslation,
|
||||
__void__setTranslation__C5_osg_Vec3_R1);
|
||||
END_REFLECTOR
|
||||
|
||||
BEGIN_OBJECT_REFLECTOR(osgManipulator::TranslateInPlaneCommand)
|
||||
I_BaseType(osgManipulator::MotionCommand);
|
||||
I_Constructor0(____TranslateInPlaneCommand,
|
||||
"",
|
||||
"");
|
||||
I_Constructor1(IN, const osg::Plane &, plane,
|
||||
____TranslateInPlaneCommand__C5_osg_Plane_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method0(bool, execute,
|
||||
__bool__execute,
|
||||
"Execute the command. ",
|
||||
"");
|
||||
I_Method0(bool, unexecute,
|
||||
__bool__unexecute,
|
||||
"Undo the command. ",
|
||||
"The inverse of this command is executed. ");
|
||||
I_Method1(void, applyConstraint, IN, const osgManipulator::Constraint *, x,
|
||||
__void__applyConstraint__C5_Constraint_P1,
|
||||
"Apply a constraint to the command. ",
|
||||
"");
|
||||
I_Method1(void, setPlane, IN, const osg::Plane &, plane,
|
||||
__void__setPlane__C5_osg_Plane_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method0(const osg::Plane &, getPlane,
|
||||
__C5_osg_Plane_R1__getPlane,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setTranslation, IN, const osg::Vec3 &, t,
|
||||
__void__setTranslation__C5_osg_Vec3_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method0(const osg::Vec3 &, getTranslation,
|
||||
__C5_osg_Vec3_R1__getTranslation,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setReferencePoint, IN, const osg::Vec3 &, rp,
|
||||
__void__setReferencePoint__C5_osg_Vec3_R1,
|
||||
"ReferencePoint is used only for snapping. ",
|
||||
"");
|
||||
I_Method0(const osg::Vec3 &, getReferencePoint,
|
||||
__C5_osg_Vec3_R1__getReferencePoint,
|
||||
"",
|
||||
"");
|
||||
I_Method0(osg::Matrix, getMotionMatrix,
|
||||
__osg_Matrix__getMotionMatrix,
|
||||
"Gets the matrix for transforming the Selection. ",
|
||||
"This matrix is in the command's coordinate systems.");
|
||||
I_SimpleProperty(osg::Matrix, MotionMatrix,
|
||||
__osg_Matrix__getMotionMatrix,
|
||||
0);
|
||||
I_SimpleProperty(const osg::Plane &, Plane,
|
||||
__C5_osg_Plane_R1__getPlane,
|
||||
__void__setPlane__C5_osg_Plane_R1);
|
||||
I_SimpleProperty(const osg::Vec3 &, ReferencePoint,
|
||||
__C5_osg_Vec3_R1__getReferencePoint,
|
||||
__void__setReferencePoint__C5_osg_Vec3_R1);
|
||||
I_SimpleProperty(const osg::Vec3 &, Translation,
|
||||
__C5_osg_Vec3_R1__getTranslation,
|
||||
__void__setTranslation__C5_osg_Vec3_R1);
|
||||
END_REFLECTOR
|
||||
|
||||
53
src/osgWrappers/osgManipulator/CommandManager.cpp
Normal file
53
src/osgWrappers/osgManipulator/CommandManager.cpp
Normal file
@@ -0,0 +1,53 @@
|
||||
// ***************************************************************************
|
||||
//
|
||||
// Generated automatically by genwrapper.
|
||||
// Please DO NOT EDIT this file!
|
||||
//
|
||||
// ***************************************************************************
|
||||
|
||||
#include <osgIntrospection/ReflectionMacros>
|
||||
#include <osgIntrospection/TypedMethodInfo>
|
||||
#include <osgIntrospection/StaticMethodInfo>
|
||||
#include <osgIntrospection/Attributes>
|
||||
|
||||
#include <osgManipulator/Command>
|
||||
#include <osgManipulator/CommandManager>
|
||||
#include <osgManipulator/Constraint>
|
||||
#include <osgManipulator/Dragger>
|
||||
#include <osgManipulator/Selection>
|
||||
|
||||
// Must undefine IN and OUT macros defined in Windows headers
|
||||
#ifdef IN
|
||||
#undef IN
|
||||
#endif
|
||||
#ifdef OUT
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
BEGIN_OBJECT_REFLECTOR(osgManipulator::CommandManager)
|
||||
I_BaseType(osg::Referenced);
|
||||
I_Constructor0(____CommandManager,
|
||||
"",
|
||||
"");
|
||||
I_Method2(bool, connect, IN, osgManipulator::Dragger &, dragger, IN, osgManipulator::Selection &, selection,
|
||||
__bool__connect__Dragger_R1__Selection_R1,
|
||||
"Connect a dragger to a selection. ",
|
||||
"The selection will begin listening to commands generated by the dragger. This can be called multiple times to connect many selections to a dragger.");
|
||||
I_Method2(bool, connect, IN, osgManipulator::Dragger &, dragger, IN, osgManipulator::Constraint &, constrain,
|
||||
__bool__connect__Dragger_R1__Constraint_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method1(bool, disconnect, IN, osgManipulator::Dragger &, dragger,
|
||||
__bool__disconnect__Dragger_R1,
|
||||
"Disconnect the selections from a dragger. ",
|
||||
"");
|
||||
I_Method1(void, dispatch, IN, osgManipulator::MotionCommand &, command,
|
||||
__void__dispatch__MotionCommand_R1,
|
||||
"Dispatches a command. ",
|
||||
"Usually called from a dragger. ");
|
||||
I_Method2(void, addSelectionsToCommand, IN, osgManipulator::MotionCommand &, command, IN, osgManipulator::Dragger &, dragger,
|
||||
__void__addSelectionsToCommand__MotionCommand_R1__Dragger_R1,
|
||||
"Add all selections connected to the dragger to the command. ",
|
||||
"");
|
||||
END_REFLECTOR
|
||||
|
||||
95
src/osgWrappers/osgManipulator/Constraint.cpp
Normal file
95
src/osgWrappers/osgManipulator/Constraint.cpp
Normal file
@@ -0,0 +1,95 @@
|
||||
// ***************************************************************************
|
||||
//
|
||||
// Generated automatically by genwrapper.
|
||||
// Please DO NOT EDIT this file!
|
||||
//
|
||||
// ***************************************************************************
|
||||
|
||||
#include <osgIntrospection/ReflectionMacros>
|
||||
#include <osgIntrospection/TypedMethodInfo>
|
||||
#include <osgIntrospection/StaticMethodInfo>
|
||||
#include <osgIntrospection/Attributes>
|
||||
|
||||
#include <osg/Node>
|
||||
#include <osg/Vec3d>
|
||||
#include <osgManipulator/Command>
|
||||
#include <osgManipulator/Constraint>
|
||||
|
||||
// Must undefine IN and OUT macros defined in Windows headers
|
||||
#ifdef IN
|
||||
#undef IN
|
||||
#endif
|
||||
#ifdef OUT
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
BEGIN_OBJECT_REFLECTOR(osgManipulator::Constraint)
|
||||
I_BaseType(osg::Referenced);
|
||||
I_Method1(bool, constrain, IN, osgManipulator::MotionCommand &, x,
|
||||
__bool__constrain__MotionCommand_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method1(bool, constrain, IN, osgManipulator::TranslateInLineCommand &, command,
|
||||
__bool__constrain__TranslateInLineCommand_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method1(bool, constrain, IN, osgManipulator::TranslateInPlaneCommand &, command,
|
||||
__bool__constrain__TranslateInPlaneCommand_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method1(bool, constrain, IN, osgManipulator::Scale1DCommand &, command,
|
||||
__bool__constrain__Scale1DCommand_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method1(bool, constrain, IN, osgManipulator::Scale2DCommand &, command,
|
||||
__bool__constrain__Scale2DCommand_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method1(bool, constrain, IN, osgManipulator::ScaleUniformCommand &, command,
|
||||
__bool__constrain__ScaleUniformCommand_R1,
|
||||
"",
|
||||
"");
|
||||
END_REFLECTOR
|
||||
|
||||
BEGIN_OBJECT_REFLECTOR(osgManipulator::GridConstraint)
|
||||
I_BaseType(osgManipulator::Constraint);
|
||||
I_Constructor3(IN, osg::Node &, refNode, IN, const osg::Vec3d &, origin, IN, const osg::Vec3d &, spacing,
|
||||
____GridConstraint__osg_Node_R1__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setOrigin, IN, const osg::Vec3d, origin,
|
||||
__void__setOrigin__C5_osg_Vec3d,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setSpacing, IN, const osg::Vec3d, spacing,
|
||||
__void__setSpacing__C5_osg_Vec3d,
|
||||
"",
|
||||
"");
|
||||
I_Method1(bool, constrain, IN, osgManipulator::TranslateInLineCommand &, command,
|
||||
__bool__constrain__TranslateInLineCommand_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method1(bool, constrain, IN, osgManipulator::TranslateInPlaneCommand &, command,
|
||||
__bool__constrain__TranslateInPlaneCommand_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method1(bool, constrain, IN, osgManipulator::Scale1DCommand &, command,
|
||||
__bool__constrain__Scale1DCommand_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method1(bool, constrain, IN, osgManipulator::Scale2DCommand &, command,
|
||||
__bool__constrain__Scale2DCommand_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method1(bool, constrain, IN, osgManipulator::ScaleUniformCommand &, command,
|
||||
__bool__constrain__ScaleUniformCommand_R1,
|
||||
"",
|
||||
"");
|
||||
I_SimpleProperty(const osg::Vec3d, Origin,
|
||||
0,
|
||||
__void__setOrigin__C5_osg_Vec3d);
|
||||
I_SimpleProperty(const osg::Vec3d, Spacing,
|
||||
0,
|
||||
__void__setSpacing__C5_osg_Vec3d);
|
||||
END_REFLECTOR
|
||||
|
||||
181
src/osgWrappers/osgManipulator/Dragger.cpp
Normal file
181
src/osgWrappers/osgManipulator/Dragger.cpp
Normal file
@@ -0,0 +1,181 @@
|
||||
// ***************************************************************************
|
||||
//
|
||||
// Generated automatically by genwrapper.
|
||||
// Please DO NOT EDIT this file!
|
||||
//
|
||||
// ***************************************************************************
|
||||
|
||||
#include <osgIntrospection/ReflectionMacros>
|
||||
#include <osgIntrospection/TypedMethodInfo>
|
||||
#include <osgIntrospection/StaticMethodInfo>
|
||||
#include <osgIntrospection/Attributes>
|
||||
|
||||
#include <osgGA/GUIActionAdapter>
|
||||
#include <osgGA/GUIEventAdapter>
|
||||
#include <osgManipulator/CommandManager>
|
||||
#include <osgManipulator/Dragger>
|
||||
#include <osgUtil/IntersectVisitor>
|
||||
#include <osgUtil/SceneView>
|
||||
|
||||
// Must undefine IN and OUT macros defined in Windows headers
|
||||
#ifdef IN
|
||||
#undef IN
|
||||
#endif
|
||||
#ifdef OUT
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgManipulator::Dragger > >, osgManipulator::CompositeDragger::DraggerList);
|
||||
|
||||
BEGIN_OBJECT_REFLECTOR(osgManipulator::CompositeDragger)
|
||||
I_BaseType(osgManipulator::Dragger);
|
||||
I_Method0(const osgManipulator::CompositeDragger *, getComposite,
|
||||
__C5_CompositeDragger_P1__getComposite,
|
||||
"Returns 0 if this Dragger is not a CompositeDragger. ",
|
||||
"");
|
||||
I_Method0(osgManipulator::CompositeDragger *, getComposite,
|
||||
__CompositeDragger_P1__getComposite,
|
||||
"Returns 0 if this Dragger is not a CompositeDragger. ",
|
||||
"");
|
||||
I_Method1(void, setCommandManager, IN, osgManipulator::CommandManager *, cm,
|
||||
__void__setCommandManager__CommandManager_P1,
|
||||
"Set/Get the CommandManager. ",
|
||||
"Draggers use CommandManager to dispatch commands. ");
|
||||
I_Method1(void, setParentDragger, IN, osgManipulator::Dragger *, parent,
|
||||
__void__setParentDragger__Dragger_P1,
|
||||
"Set/Get parent dragger. ",
|
||||
"For simple draggers parent points to itself. For composite draggers parent points to the parent dragger that uses this dragger.");
|
||||
I_Method7(bool, handle, IN, int, pixel_x, IN, int, pixel_y, IN, const osgUtil::SceneView &, sv, IN, const osgUtil::IntersectVisitor::HitList &, hitList, IN, const osgUtil::IntersectVisitor::HitList::iterator &, hitIter, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa,
|
||||
__bool__handle__int__int__C5_osgUtil_SceneView_R1__C5_osgUtil_IntersectVisitor_HitList_R1__C5_osgUtil_IntersectVisitor_HitList_iterator_R1__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method1(bool, addDragger, IN, osgManipulator::Dragger *, dragger,
|
||||
__bool__addDragger__Dragger_P1,
|
||||
"",
|
||||
"");
|
||||
I_Method1(bool, removeDragger, IN, osgManipulator::Dragger *, dragger,
|
||||
__bool__removeDragger__Dragger_P1,
|
||||
"",
|
||||
"");
|
||||
I_Method0(unsigned int, getNumDraggers,
|
||||
__unsigned_int__getNumDraggers,
|
||||
"",
|
||||
"");
|
||||
I_Method1(osgManipulator::Dragger *, getDragger, IN, unsigned int, i,
|
||||
__Dragger_P1__getDragger__unsigned_int,
|
||||
"",
|
||||
"");
|
||||
I_Method1(const osgManipulator::Dragger *, getDragger, IN, unsigned int, i,
|
||||
__C5_Dragger_P1__getDragger__unsigned_int,
|
||||
"",
|
||||
"");
|
||||
I_Method1(bool, containsDragger, IN, const osgManipulator::Dragger *, dragger,
|
||||
__bool__containsDragger__C5_Dragger_P1,
|
||||
"",
|
||||
"");
|
||||
I_Method1(osgManipulator::CompositeDragger::DraggerList::iterator, findDragger, IN, const osgManipulator::Dragger *, dragger,
|
||||
__DraggerList_iterator__findDragger__C5_Dragger_P1,
|
||||
"",
|
||||
"");
|
||||
I_SimpleProperty(osgManipulator::CommandManager *, CommandManager,
|
||||
0,
|
||||
__void__setCommandManager__CommandManager_P1);
|
||||
I_SimpleProperty(osgManipulator::CompositeDragger *, Composite,
|
||||
__CompositeDragger_P1__getComposite,
|
||||
0);
|
||||
I_ArrayProperty(osgManipulator::Dragger *, Dragger,
|
||||
__Dragger_P1__getDragger__unsigned_int,
|
||||
0,
|
||||
__unsigned_int__getNumDraggers,
|
||||
__bool__addDragger__Dragger_P1,
|
||||
0,
|
||||
0);
|
||||
I_SimpleProperty(osgManipulator::Dragger *, ParentDragger,
|
||||
0,
|
||||
__void__setParentDragger__Dragger_P1);
|
||||
END_REFLECTOR
|
||||
|
||||
BEGIN_OBJECT_REFLECTOR(osgManipulator::Dragger)
|
||||
I_BaseType(osgManipulator::Selection);
|
||||
I_Method1(void, setCommandManager, IN, osgManipulator::CommandManager *, cm,
|
||||
__void__setCommandManager__CommandManager_P1,
|
||||
"Set/Get the CommandManager. ",
|
||||
"Draggers use CommandManager to dispatch commands. ");
|
||||
I_Method0(osgManipulator::CommandManager *, getCommandManager,
|
||||
__CommandManager_P1__getCommandManager,
|
||||
"",
|
||||
"");
|
||||
I_Method0(const osgManipulator::CommandManager *, getCommandManager,
|
||||
__C5_CommandManager_P1__getCommandManager,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setParentDragger, IN, osgManipulator::Dragger *, parent,
|
||||
__void__setParentDragger__Dragger_P1,
|
||||
"Set/Get parent dragger. ",
|
||||
"For simple draggers parent points to itself. For composite draggers parent points to the parent dragger that uses this dragger.");
|
||||
I_Method0(osgManipulator::Dragger *, getParentDragger,
|
||||
__Dragger_P1__getParentDragger,
|
||||
"",
|
||||
"");
|
||||
I_Method0(const osgManipulator::Dragger *, getParentDragger,
|
||||
__C5_Dragger_P1__getParentDragger,
|
||||
"",
|
||||
"");
|
||||
I_Method0(const osgManipulator::CompositeDragger *, getComposite,
|
||||
__C5_CompositeDragger_P1__getComposite,
|
||||
"Returns 0 if this Dragger is not a CompositeDragger. ",
|
||||
"");
|
||||
I_Method0(osgManipulator::CompositeDragger *, getComposite,
|
||||
__CompositeDragger_P1__getComposite,
|
||||
"Returns 0 if this Dragger is not a CompositeDragger. ",
|
||||
"");
|
||||
I_Method7(bool, handle, IN, int, x, IN, int, x, IN, const osgUtil::SceneView &, x, IN, const osgUtil::IntersectVisitor::HitList &, x, IN, const osgUtil::IntersectVisitor::HitList::iterator &, x, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x,
|
||||
__bool__handle__int__int__C5_osgUtil_SceneView_R1__C5_osgUtil_IntersectVisitor_HitList_R1__C5_osgUtil_IntersectVisitor_HitList_iterator_R1__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1,
|
||||
"",
|
||||
"");
|
||||
I_SimpleProperty(osgManipulator::CommandManager *, CommandManager,
|
||||
__CommandManager_P1__getCommandManager,
|
||||
__void__setCommandManager__CommandManager_P1);
|
||||
I_SimpleProperty(osgManipulator::CompositeDragger *, Composite,
|
||||
__CompositeDragger_P1__getComposite,
|
||||
0);
|
||||
I_SimpleProperty(osgManipulator::Dragger *, ParentDragger,
|
||||
__Dragger_P1__getParentDragger,
|
||||
__void__setParentDragger__Dragger_P1);
|
||||
END_REFLECTOR
|
||||
|
||||
BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgManipulator::Dragger >)
|
||||
I_Constructor0(____ref_ptr,
|
||||
"",
|
||||
"");
|
||||
I_Constructor1(IN, osgManipulator::Dragger *, ptr,
|
||||
____ref_ptr__T_P1,
|
||||
"",
|
||||
"");
|
||||
I_Constructor1(IN, const osg::ref_ptr< osgManipulator::Dragger > &, rp,
|
||||
____ref_ptr__C5_ref_ptr_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method0(osgManipulator::Dragger *, get,
|
||||
__T_P1__get,
|
||||
"",
|
||||
"");
|
||||
I_Method0(bool, valid,
|
||||
__bool__valid,
|
||||
"",
|
||||
"");
|
||||
I_Method0(osgManipulator::Dragger *, release,
|
||||
__T_P1__release,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, swap, IN, osg::ref_ptr< osgManipulator::Dragger > &, rp,
|
||||
__void__swap__ref_ptr_R1,
|
||||
"",
|
||||
"");
|
||||
I_SimpleProperty(osgManipulator::Dragger *, ,
|
||||
__T_P1__get,
|
||||
0);
|
||||
END_REFLECTOR
|
||||
|
||||
STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osgManipulator::Dragger > >);
|
||||
|
||||
34
src/osgWrappers/osgManipulator/GNUmakefile
Normal file
34
src/osgWrappers/osgManipulator/GNUmakefile
Normal file
@@ -0,0 +1,34 @@
|
||||
TOPDIR = ../../..
|
||||
include $(TOPDIR)/Make/makedefs
|
||||
|
||||
CXXFILES =\
|
||||
AntiSquish.cpp\
|
||||
Command.cpp\
|
||||
CommandManager.cpp\
|
||||
Constraint.cpp\
|
||||
Dragger.cpp\
|
||||
Projector.cpp\
|
||||
RotateCylinderDragger.cpp\
|
||||
RotateSphereDragger.cpp\
|
||||
Scale1DDragger.cpp\
|
||||
Scale2DDragger.cpp\
|
||||
ScaleAxisDragger.cpp\
|
||||
Selection.cpp\
|
||||
TabBoxDragger.cpp\
|
||||
TabPlaneDragger.cpp\
|
||||
TabPlaneTrackballDragger.cpp\
|
||||
TrackballDragger.cpp\
|
||||
Translate1DDragger.cpp\
|
||||
Translate2DDragger.cpp\
|
||||
TranslateAxisDragger.cpp\
|
||||
TranslatePlaneDragger.cpp\
|
||||
|
||||
LIBS += -losgManipulator -losg -losgIntrospection $(GL_LIBS) $(OTHER_LIBS)
|
||||
|
||||
OPTF = -O
|
||||
|
||||
TARGET_BASENAME = osgManipulator
|
||||
include $(TOPDIR)/Make/cygwin_wrapper_def
|
||||
WRAPPER = $(WRAPPER_PREFIX)$(TARGET_BASENAME).$(PLUGIN_EXT)
|
||||
|
||||
include $(TOPDIR)/Make/makerules
|
||||
245
src/osgWrappers/osgManipulator/Projector.cpp
Normal file
245
src/osgWrappers/osgManipulator/Projector.cpp
Normal file
@@ -0,0 +1,245 @@
|
||||
// ***************************************************************************
|
||||
//
|
||||
// Generated automatically by genwrapper.
|
||||
// Please DO NOT EDIT this file!
|
||||
//
|
||||
// ***************************************************************************
|
||||
|
||||
#include <osgIntrospection/ReflectionMacros>
|
||||
#include <osgIntrospection/TypedMethodInfo>
|
||||
#include <osgIntrospection/StaticMethodInfo>
|
||||
#include <osgIntrospection/Attributes>
|
||||
|
||||
#include <osg/Matrix>
|
||||
#include <osg/Plane>
|
||||
#include <osg/Quat>
|
||||
#include <osg/Shape>
|
||||
#include <osg/Vec2>
|
||||
#include <osg/Vec3>
|
||||
#include <osgManipulator/Projector>
|
||||
#include <osgUtil/SceneView>
|
||||
|
||||
// Must undefine IN and OUT macros defined in Windows headers
|
||||
#ifdef IN
|
||||
#undef IN
|
||||
#endif
|
||||
#ifdef OUT
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
BEGIN_OBJECT_REFLECTOR(osgManipulator::CylinderPlaneProjector)
|
||||
I_BaseType(osgManipulator::CylinderProjector);
|
||||
I_Constructor0(____CylinderPlaneProjector,
|
||||
"",
|
||||
"");
|
||||
I_Constructor1(IN, osg::Cylinder *, cylinder,
|
||||
____CylinderPlaneProjector__osg_Cylinder_P1,
|
||||
"",
|
||||
"");
|
||||
I_Method3(bool, project, IN, const osg::Vec2 &, pointToProject, IN, const osgUtil::SceneView &, sv, IN, osg::Vec3 &, projectedPoint,
|
||||
__bool__project__C5_osg_Vec2_R1__C5_osgUtil_SceneView_R1__osg_Vec3_R1,
|
||||
"Calculates the object coordinates (projectedPoint) of a window coordinate (pointToProject) when projected onto the given plane. ",
|
||||
"Returns true on successful projection.");
|
||||
I_Method0(bool, isProjectionOnCylinder,
|
||||
__bool__isProjectionOnCylinder,
|
||||
"Returns true if the previous projection was on the cylinder and false if the projection was on the plane. ",
|
||||
"");
|
||||
I_Method4(osg::Quat, getRotation, IN, const osg::Vec3 &, p1, IN, bool, p1OnCyl, IN, const osg::Vec3 &, p2, IN, bool, p2OnCyl,
|
||||
__osg_Quat__getRotation__C5_osg_Vec3_R1__bool__C5_osg_Vec3_R1__bool,
|
||||
"",
|
||||
"");
|
||||
END_REFLECTOR
|
||||
|
||||
BEGIN_OBJECT_REFLECTOR(osgManipulator::CylinderProjector)
|
||||
I_BaseType(osgManipulator::Projector);
|
||||
I_Constructor0(____CylinderProjector,
|
||||
"",
|
||||
"");
|
||||
I_Constructor1(IN, osg::Cylinder *, cylinder,
|
||||
____CylinderProjector__osg_Cylinder_P1,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setCylinder, IN, osg::Cylinder *, cylinder,
|
||||
__void__setCylinder__osg_Cylinder_P1,
|
||||
"",
|
||||
"");
|
||||
I_Method0(const osg::Cylinder *, getCylinder,
|
||||
__C5_osg_Cylinder_P1__getCylinder,
|
||||
"",
|
||||
"");
|
||||
I_Method3(bool, project, IN, const osg::Vec2 &, pointToProject, IN, const osgUtil::SceneView &, sv, IN, osg::Vec3 &, projectedPoint,
|
||||
__bool__project__C5_osg_Vec2_R1__C5_osgUtil_SceneView_R1__osg_Vec3_R1,
|
||||
"Calculates the object coordinates (projectedPoint) of a window coordinate (pointToProject) when projected onto the given plane. ",
|
||||
"Returns true on successful projection.");
|
||||
I_Method3(bool, isPointInFront, IN, const osg::Vec3 &, point, IN, const osgUtil::SceneView &, sv, IN, const osg::Matrix &, localToWorld,
|
||||
__bool__isPointInFront__C5_osg_Vec3_R1__C5_osgUtil_SceneView_R1__C5_osg_Matrix_R1,
|
||||
"Returns true is the point is in front of the cylinder given the eye direction. ",
|
||||
"");
|
||||
I_Method1(void, setFront, IN, bool, front,
|
||||
__void__setFront__bool,
|
||||
"",
|
||||
"");
|
||||
I_SimpleProperty(osg::Cylinder *, Cylinder,
|
||||
0,
|
||||
__void__setCylinder__osg_Cylinder_P1);
|
||||
I_SimpleProperty(bool, Front,
|
||||
0,
|
||||
__void__setFront__bool);
|
||||
END_REFLECTOR
|
||||
|
||||
BEGIN_OBJECT_REFLECTOR(osgManipulator::LineProjector)
|
||||
I_BaseType(osgManipulator::Projector);
|
||||
I_Constructor0(____LineProjector,
|
||||
"",
|
||||
"");
|
||||
I_Constructor2(IN, const osg::Vec3 &, s, IN, const osg::Vec3 &, e,
|
||||
____LineProjector__C5_osg_Vec3_R1__C5_osg_Vec3_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method2(void, setLine, IN, const osg::Vec3 &, s, IN, const osg::Vec3 &, e,
|
||||
__void__setLine__C5_osg_Vec3_R1__C5_osg_Vec3_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method0(const osg::Vec3 &, getLineStart,
|
||||
__C5_osg_Vec3_R1__getLineStart,
|
||||
"",
|
||||
"");
|
||||
I_Method0(osg::Vec3 &, getLineStart,
|
||||
__osg_Vec3_R1__getLineStart,
|
||||
"",
|
||||
"");
|
||||
I_Method0(const osg::Vec3 &, getLineEnd,
|
||||
__C5_osg_Vec3_R1__getLineEnd,
|
||||
"",
|
||||
"");
|
||||
I_Method0(osg::Vec3 &, getLineEnd,
|
||||
__osg_Vec3_R1__getLineEnd,
|
||||
"",
|
||||
"");
|
||||
I_Method3(bool, project, IN, const osg::Vec2 &, pointToProject, IN, const osgUtil::SceneView &, sv, IN, osg::Vec3 &, projectedPoint,
|
||||
__bool__project__C5_osg_Vec2_R1__C5_osgUtil_SceneView_R1__osg_Vec3_R1,
|
||||
"Calculates the object coordinates (projectedPoint) of a window coordinate (pointToProject) when projected onto the given line. ",
|
||||
"Returns true on successful projection.");
|
||||
I_SimpleProperty(osg::Vec3 &, LineEnd,
|
||||
__osg_Vec3_R1__getLineEnd,
|
||||
0);
|
||||
I_SimpleProperty(osg::Vec3 &, LineStart,
|
||||
__osg_Vec3_R1__getLineStart,
|
||||
0);
|
||||
END_REFLECTOR
|
||||
|
||||
BEGIN_OBJECT_REFLECTOR(osgManipulator::PlaneProjector)
|
||||
I_BaseType(osgManipulator::Projector);
|
||||
I_Constructor0(____PlaneProjector,
|
||||
"",
|
||||
"");
|
||||
I_Constructor1(IN, const osg::Plane &, plane,
|
||||
____PlaneProjector__C5_osg_Plane_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setPlane, IN, const osg::Plane &, plane,
|
||||
__void__setPlane__C5_osg_Plane_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method0(const osg::Plane &, getPlane,
|
||||
__C5_osg_Plane_R1__getPlane,
|
||||
"",
|
||||
"");
|
||||
I_Method3(bool, project, IN, const osg::Vec2 &, pointToProject, IN, const osgUtil::SceneView &, sv, IN, osg::Vec3 &, projectedPoint,
|
||||
__bool__project__C5_osg_Vec2_R1__C5_osgUtil_SceneView_R1__osg_Vec3_R1,
|
||||
"Calculates the object coordinates (projectedPoint) of a window coordinate (pointToProject) when projected onto the given plane. ",
|
||||
"Returns true on successful projection.");
|
||||
I_SimpleProperty(const osg::Plane &, Plane,
|
||||
__C5_osg_Plane_R1__getPlane,
|
||||
__void__setPlane__C5_osg_Plane_R1);
|
||||
END_REFLECTOR
|
||||
|
||||
BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgManipulator::Projector)
|
||||
I_BaseType(osg::Referenced);
|
||||
I_Constructor0(____Projector,
|
||||
"",
|
||||
"");
|
||||
I_Method3(bool, project, IN, const osg::Vec2 &, pointToProject, IN, const osgUtil::SceneView &, sv, IN, osg::Vec3 &, projectedPoint,
|
||||
__bool__project__C5_osg_Vec2_R1__C5_osgUtil_SceneView_R1__osg_Vec3_R1,
|
||||
"Calculates the object/world coordinates (projectedPoint) of a window coordinate (pointToProject) when projected onto some shape or geometry (implemented in derived classes). ",
|
||||
"SceneView in used for i projecting window coordinates into object coordinates and vice versa. Returns true on successful projection.");
|
||||
I_Method1(void, setLocalToWorld, IN, const osg::Matrix &, localToWorld,
|
||||
__void__setLocalToWorld__C5_osg_Matrix_R1,
|
||||
"Sets the matrix for transforming the projector's local coordinate system to the world/object coordinate system. ",
|
||||
"");
|
||||
I_Method0(const osg::Matrix &, getLocalToWorld,
|
||||
__C5_osg_Matrix_R1__getLocalToWorld,
|
||||
"Gets the matrix for transforming the projector's local coordinate system to the world/object coordinate system. ",
|
||||
"");
|
||||
I_Method0(const osg::Matrix &, getWorldToLocal,
|
||||
__C5_osg_Matrix_R1__getWorldToLocal,
|
||||
"Gets the matrix for transforming the world/object coordinate system to the command's local coordinate system. ",
|
||||
"");
|
||||
I_SimpleProperty(const osg::Matrix &, LocalToWorld,
|
||||
__C5_osg_Matrix_R1__getLocalToWorld,
|
||||
__void__setLocalToWorld__C5_osg_Matrix_R1);
|
||||
I_SimpleProperty(const osg::Matrix &, WorldToLocal,
|
||||
__C5_osg_Matrix_R1__getWorldToLocal,
|
||||
0);
|
||||
END_REFLECTOR
|
||||
|
||||
BEGIN_OBJECT_REFLECTOR(osgManipulator::SpherePlaneProjector)
|
||||
I_BaseType(osgManipulator::SphereProjector);
|
||||
I_Constructor0(____SpherePlaneProjector,
|
||||
"",
|
||||
"");
|
||||
I_Constructor1(IN, osg::Sphere *, sphere,
|
||||
____SpherePlaneProjector__osg_Sphere_P1,
|
||||
"",
|
||||
"");
|
||||
I_Method3(bool, project, IN, const osg::Vec2 &, pointToProject, IN, const osgUtil::SceneView &, sv, IN, osg::Vec3 &, projectedPoint,
|
||||
__bool__project__C5_osg_Vec2_R1__C5_osgUtil_SceneView_R1__osg_Vec3_R1,
|
||||
"Calculates the object coordinates (projectedPoint) of a window coordinate (pointToProject) when projected onto the given sphere. ",
|
||||
"Returns true on successful projection.");
|
||||
I_Method0(bool, isProjectionOnSphere,
|
||||
__bool__isProjectionOnSphere,
|
||||
"Returns true if the previous projection was on the sphere and false if the projection was on the plane. ",
|
||||
"");
|
||||
I_MethodWithDefaults5(osg::Quat, getRotation, IN, const osg::Vec3 &, p1, , IN, bool, p1OnSphere, , IN, const osg::Vec3 &, p2, , IN, bool, p2OnSphere, , IN, float, radialFactor, 0.0f,
|
||||
__osg_Quat__getRotation__C5_osg_Vec3_R1__bool__C5_osg_Vec3_R1__bool__float,
|
||||
"",
|
||||
"");
|
||||
END_REFLECTOR
|
||||
|
||||
BEGIN_OBJECT_REFLECTOR(osgManipulator::SphereProjector)
|
||||
I_BaseType(osgManipulator::Projector);
|
||||
I_Constructor0(____SphereProjector,
|
||||
"",
|
||||
"");
|
||||
I_Constructor1(IN, osg::Sphere *, sphere,
|
||||
____SphereProjector__osg_Sphere_P1,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setSphere, IN, osg::Sphere *, sphere,
|
||||
__void__setSphere__osg_Sphere_P1,
|
||||
"",
|
||||
"");
|
||||
I_Method0(const osg::Sphere *, getSphere,
|
||||
__C5_osg_Sphere_P1__getSphere,
|
||||
"",
|
||||
"");
|
||||
I_Method3(bool, project, IN, const osg::Vec2 &, pointToProject, IN, const osgUtil::SceneView &, sv, IN, osg::Vec3 &, projectedPoint,
|
||||
__bool__project__C5_osg_Vec2_R1__C5_osgUtil_SceneView_R1__osg_Vec3_R1,
|
||||
"Calculates the object coordinates (projectedPoint) of a window coordinate (pointToProject) when projected onto the given sphere. ",
|
||||
"Returns true on successful projection.");
|
||||
I_Method3(bool, isPointInFront, IN, const osg::Vec3 &, point, IN, const osgUtil::SceneView &, sv, IN, const osg::Matrix &, localToWorld,
|
||||
__bool__isPointInFront__C5_osg_Vec3_R1__C5_osgUtil_SceneView_R1__C5_osg_Matrix_R1,
|
||||
"Returns true is the point is in front of the cylinder given the eye direction. ",
|
||||
"");
|
||||
I_Method1(void, setFront, IN, bool, front,
|
||||
__void__setFront__bool,
|
||||
"",
|
||||
"");
|
||||
I_SimpleProperty(bool, Front,
|
||||
0,
|
||||
__void__setFront__bool);
|
||||
I_SimpleProperty(osg::Sphere *, Sphere,
|
||||
0,
|
||||
__void__setSphere__osg_Sphere_P1);
|
||||
END_REFLECTOR
|
||||
|
||||
64
src/osgWrappers/osgManipulator/RotateCylinderDragger.cpp
Normal file
64
src/osgWrappers/osgManipulator/RotateCylinderDragger.cpp
Normal file
@@ -0,0 +1,64 @@
|
||||
// ***************************************************************************
|
||||
//
|
||||
// Generated automatically by genwrapper.
|
||||
// Please DO NOT EDIT this file!
|
||||
//
|
||||
// ***************************************************************************
|
||||
|
||||
#include <osgIntrospection/ReflectionMacros>
|
||||
#include <osgIntrospection/TypedMethodInfo>
|
||||
#include <osgIntrospection/StaticMethodInfo>
|
||||
#include <osgIntrospection/Attributes>
|
||||
|
||||
#include <osg/Vec4>
|
||||
#include <osgGA/GUIActionAdapter>
|
||||
#include <osgGA/GUIEventAdapter>
|
||||
#include <osgManipulator/RotateCylinderDragger>
|
||||
#include <osgUtil/IntersectVisitor>
|
||||
#include <osgUtil/SceneView>
|
||||
|
||||
// Must undefine IN and OUT macros defined in Windows headers
|
||||
#ifdef IN
|
||||
#undef IN
|
||||
#endif
|
||||
#ifdef OUT
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
BEGIN_OBJECT_REFLECTOR(osgManipulator::RotateCylinderDragger)
|
||||
I_BaseType(osgManipulator::Dragger);
|
||||
I_Constructor0(____RotateCylinderDragger,
|
||||
"",
|
||||
"");
|
||||
I_Method7(bool, handle, IN, int, pixel_x, IN, int, pixel_y, IN, const osgUtil::SceneView &, sv, IN, const osgUtil::IntersectVisitor::HitList &, hitList, IN, const osgUtil::IntersectVisitor::HitList::iterator &, hitIter, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us,
|
||||
__bool__handle__int__int__C5_osgUtil_SceneView_R1__C5_osgUtil_IntersectVisitor_HitList_R1__C5_osgUtil_IntersectVisitor_HitList_iterator_R1__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1,
|
||||
"Handle pick events on dragger and generate TranslateInLine commands. ",
|
||||
"");
|
||||
I_Method0(void, setupDefaultGeometry,
|
||||
__void__setupDefaultGeometry,
|
||||
"Setup default geometry for dragger. ",
|
||||
"");
|
||||
I_Method1(void, setColor, IN, const osg::Vec4 &, color,
|
||||
__void__setColor__C5_osg_Vec4_R1,
|
||||
"Set/Get color for dragger. ",
|
||||
"");
|
||||
I_Method0(const osg::Vec4, getColor,
|
||||
__C5_osg_Vec4__getColor,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setPickColor, IN, const osg::Vec4 &, color,
|
||||
__void__setPickColor__C5_osg_Vec4_R1,
|
||||
"Set/Get pick color for dragger. ",
|
||||
"Pick color is color of the dragger when picked. It gives a visual feedback to show that the dragger has been picked.");
|
||||
I_Method0(const osg::Vec4, getPickColor,
|
||||
__C5_osg_Vec4__getPickColor,
|
||||
"",
|
||||
"");
|
||||
I_SimpleProperty(const osg::Vec4 &, Color,
|
||||
0,
|
||||
__void__setColor__C5_osg_Vec4_R1);
|
||||
I_SimpleProperty(const osg::Vec4 &, PickColor,
|
||||
0,
|
||||
__void__setPickColor__C5_osg_Vec4_R1);
|
||||
END_REFLECTOR
|
||||
|
||||
64
src/osgWrappers/osgManipulator/RotateSphereDragger.cpp
Normal file
64
src/osgWrappers/osgManipulator/RotateSphereDragger.cpp
Normal file
@@ -0,0 +1,64 @@
|
||||
// ***************************************************************************
|
||||
//
|
||||
// Generated automatically by genwrapper.
|
||||
// Please DO NOT EDIT this file!
|
||||
//
|
||||
// ***************************************************************************
|
||||
|
||||
#include <osgIntrospection/ReflectionMacros>
|
||||
#include <osgIntrospection/TypedMethodInfo>
|
||||
#include <osgIntrospection/StaticMethodInfo>
|
||||
#include <osgIntrospection/Attributes>
|
||||
|
||||
#include <osg/Vec4>
|
||||
#include <osgGA/GUIActionAdapter>
|
||||
#include <osgGA/GUIEventAdapter>
|
||||
#include <osgManipulator/RotateSphereDragger>
|
||||
#include <osgUtil/IntersectVisitor>
|
||||
#include <osgUtil/SceneView>
|
||||
|
||||
// Must undefine IN and OUT macros defined in Windows headers
|
||||
#ifdef IN
|
||||
#undef IN
|
||||
#endif
|
||||
#ifdef OUT
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
BEGIN_OBJECT_REFLECTOR(osgManipulator::RotateSphereDragger)
|
||||
I_BaseType(osgManipulator::Dragger);
|
||||
I_Constructor0(____RotateSphereDragger,
|
||||
"",
|
||||
"");
|
||||
I_Method7(bool, handle, IN, int, pixel_x, IN, int, pixel_y, IN, const osgUtil::SceneView &, sv, IN, const osgUtil::IntersectVisitor::HitList &, hitList, IN, const osgUtil::IntersectVisitor::HitList::iterator &, hitIter, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us,
|
||||
__bool__handle__int__int__C5_osgUtil_SceneView_R1__C5_osgUtil_IntersectVisitor_HitList_R1__C5_osgUtil_IntersectVisitor_HitList_iterator_R1__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1,
|
||||
"Handle pick events on dragger and generate TranslateInLine commands. ",
|
||||
"");
|
||||
I_Method0(void, setupDefaultGeometry,
|
||||
__void__setupDefaultGeometry,
|
||||
"Setup default geometry for dragger. ",
|
||||
"");
|
||||
I_Method1(void, setColor, IN, const osg::Vec4 &, color,
|
||||
__void__setColor__C5_osg_Vec4_R1,
|
||||
"Set/Get color for dragger. ",
|
||||
"");
|
||||
I_Method0(const osg::Vec4, getColor,
|
||||
__C5_osg_Vec4__getColor,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setPickColor, IN, const osg::Vec4 &, color,
|
||||
__void__setPickColor__C5_osg_Vec4_R1,
|
||||
"Set/Get pick color for dragger. ",
|
||||
"Pick color is color of the dragger when picked. It gives a visual feedback to show that the dragger has been picked.");
|
||||
I_Method0(const osg::Vec4, getPickColor,
|
||||
__C5_osg_Vec4__getPickColor,
|
||||
"",
|
||||
"");
|
||||
I_SimpleProperty(const osg::Vec4 &, Color,
|
||||
0,
|
||||
__void__setColor__C5_osg_Vec4_R1);
|
||||
I_SimpleProperty(const osg::Vec4 &, PickColor,
|
||||
0,
|
||||
__void__setPickColor__C5_osg_Vec4_R1);
|
||||
END_REFLECTOR
|
||||
|
||||
126
src/osgWrappers/osgManipulator/Scale1DDragger.cpp
Normal file
126
src/osgWrappers/osgManipulator/Scale1DDragger.cpp
Normal file
@@ -0,0 +1,126 @@
|
||||
// ***************************************************************************
|
||||
//
|
||||
// Generated automatically by genwrapper.
|
||||
// Please DO NOT EDIT this file!
|
||||
//
|
||||
// ***************************************************************************
|
||||
|
||||
#include <osgIntrospection/ReflectionMacros>
|
||||
#include <osgIntrospection/TypedMethodInfo>
|
||||
#include <osgIntrospection/StaticMethodInfo>
|
||||
#include <osgIntrospection/Attributes>
|
||||
|
||||
#include <osg/Node>
|
||||
#include <osg/Vec4>
|
||||
#include <osgGA/GUIActionAdapter>
|
||||
#include <osgGA/GUIEventAdapter>
|
||||
#include <osgManipulator/Scale1DDragger>
|
||||
#include <osgUtil/IntersectVisitor>
|
||||
#include <osgUtil/SceneView>
|
||||
|
||||
// Must undefine IN and OUT macros defined in Windows headers
|
||||
#ifdef IN
|
||||
#undef IN
|
||||
#endif
|
||||
#ifdef OUT
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
BEGIN_ENUM_REFLECTOR(osgManipulator::Scale1DDragger::ScaleMode)
|
||||
I_EnumLabel(osgManipulator::Scale1DDragger::SCALE_WITH_ORIGIN_AS_PIVOT);
|
||||
I_EnumLabel(osgManipulator::Scale1DDragger::SCALE_WITH_OPPOSITE_HANDLE_AS_PIVOT);
|
||||
END_REFLECTOR
|
||||
|
||||
BEGIN_OBJECT_REFLECTOR(osgManipulator::Scale1DDragger)
|
||||
I_BaseType(osgManipulator::Dragger);
|
||||
I_ConstructorWithDefaults1(IN, osgManipulator::Scale1DDragger::ScaleMode, scaleMode, osgManipulator::Scale1DDragger::SCALE_WITH_ORIGIN_AS_PIVOT,
|
||||
____Scale1DDragger__ScaleMode,
|
||||
"",
|
||||
"");
|
||||
I_Method7(bool, handle, IN, int, pixel_x, IN, int, pixel_y, IN, const osgUtil::SceneView &, sv, IN, const osgUtil::IntersectVisitor::HitList &, hitList, IN, const osgUtil::IntersectVisitor::HitList::iterator &, hitIter, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us,
|
||||
__bool__handle__int__int__C5_osgUtil_SceneView_R1__C5_osgUtil_IntersectVisitor_HitList_R1__C5_osgUtil_IntersectVisitor_HitList_iterator_R1__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1,
|
||||
"Handle pick events on dragger and generate TranslateInLine commands. ",
|
||||
"");
|
||||
I_Method0(void, setupDefaultGeometry,
|
||||
__void__setupDefaultGeometry,
|
||||
"Setup default geometry for dragger. ",
|
||||
"");
|
||||
I_Method1(void, setMinScale, IN, float, min,
|
||||
__void__setMinScale__float,
|
||||
"Set/Get min scale for dragger. ",
|
||||
"");
|
||||
I_Method0(float, getMinScale,
|
||||
__float__getMinScale,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setColor, IN, const osg::Vec4 &, color,
|
||||
__void__setColor__C5_osg_Vec4_R1,
|
||||
"Set/Get color for dragger. ",
|
||||
"");
|
||||
I_Method0(const osg::Vec4, getColor,
|
||||
__C5_osg_Vec4__getColor,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setPickColor, IN, const osg::Vec4 &, color,
|
||||
__void__setPickColor__C5_osg_Vec4_R1,
|
||||
"Set/Get pick color for dragger. ",
|
||||
"Pick color is color of the dragger when picked. It gives a visual feedback to show that the dragger has been picked.");
|
||||
I_Method0(const osg::Vec4, getPickColor,
|
||||
__C5_osg_Vec4__getPickColor,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setLeftHandleNode, IN, osg::Node &, node,
|
||||
__void__setLeftHandleNode__osg_Node_R1,
|
||||
"Set/Get left and right handle nodes for dragger. ",
|
||||
"");
|
||||
I_Method1(void, setRightHandleNode, IN, osg::Node &, node,
|
||||
__void__setRightHandleNode__osg_Node_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method0(osg::Node *, getLeftHandleNode,
|
||||
__osg_Node_P1__getLeftHandleNode,
|
||||
"",
|
||||
"");
|
||||
I_Method0(osg::Node *, getRightHandleNode,
|
||||
__osg_Node_P1__getRightHandleNode,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setLeftHandlePosition, IN, float, pos,
|
||||
__void__setLeftHandlePosition__float,
|
||||
"Set left/right handle position. ",
|
||||
"");
|
||||
I_Method0(float, getLeftHandlePosition,
|
||||
__float__getLeftHandlePosition,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setRightHandlePosition, IN, float, pos,
|
||||
__void__setRightHandlePosition__float,
|
||||
"",
|
||||
"");
|
||||
I_Method0(float, getRightHandlePosition,
|
||||
__float__getRightHandlePosition,
|
||||
"",
|
||||
"");
|
||||
I_SimpleProperty(const osg::Vec4 &, Color,
|
||||
0,
|
||||
__void__setColor__C5_osg_Vec4_R1);
|
||||
I_SimpleProperty(osg::Node &, LeftHandleNode,
|
||||
0,
|
||||
__void__setLeftHandleNode__osg_Node_R1);
|
||||
I_SimpleProperty(float, LeftHandlePosition,
|
||||
__float__getLeftHandlePosition,
|
||||
__void__setLeftHandlePosition__float);
|
||||
I_SimpleProperty(float, MinScale,
|
||||
__float__getMinScale,
|
||||
__void__setMinScale__float);
|
||||
I_SimpleProperty(const osg::Vec4 &, PickColor,
|
||||
0,
|
||||
__void__setPickColor__C5_osg_Vec4_R1);
|
||||
I_SimpleProperty(osg::Node &, RightHandleNode,
|
||||
0,
|
||||
__void__setRightHandleNode__osg_Node_R1);
|
||||
I_SimpleProperty(float, RightHandlePosition,
|
||||
__float__getRightHandlePosition,
|
||||
__void__setRightHandlePosition__float);
|
||||
END_REFLECTOR
|
||||
|
||||
171
src/osgWrappers/osgManipulator/Scale2DDragger.cpp
Normal file
171
src/osgWrappers/osgManipulator/Scale2DDragger.cpp
Normal file
@@ -0,0 +1,171 @@
|
||||
// ***************************************************************************
|
||||
//
|
||||
// Generated automatically by genwrapper.
|
||||
// Please DO NOT EDIT this file!
|
||||
//
|
||||
// ***************************************************************************
|
||||
|
||||
#include <osgIntrospection/ReflectionMacros>
|
||||
#include <osgIntrospection/TypedMethodInfo>
|
||||
#include <osgIntrospection/StaticMethodInfo>
|
||||
#include <osgIntrospection/Attributes>
|
||||
|
||||
#include <osg/Node>
|
||||
#include <osg/Vec2>
|
||||
#include <osg/Vec4>
|
||||
#include <osgGA/GUIActionAdapter>
|
||||
#include <osgGA/GUIEventAdapter>
|
||||
#include <osgManipulator/Scale2DDragger>
|
||||
#include <osgUtil/IntersectVisitor>
|
||||
#include <osgUtil/SceneView>
|
||||
|
||||
// Must undefine IN and OUT macros defined in Windows headers
|
||||
#ifdef IN
|
||||
#undef IN
|
||||
#endif
|
||||
#ifdef OUT
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
BEGIN_ENUM_REFLECTOR(osgManipulator::Scale2DDragger::ScaleMode)
|
||||
I_EnumLabel(osgManipulator::Scale2DDragger::SCALE_WITH_ORIGIN_AS_PIVOT);
|
||||
I_EnumLabel(osgManipulator::Scale2DDragger::SCALE_WITH_OPPOSITE_HANDLE_AS_PIVOT);
|
||||
END_REFLECTOR
|
||||
|
||||
BEGIN_OBJECT_REFLECTOR(osgManipulator::Scale2DDragger)
|
||||
I_BaseType(osgManipulator::Dragger);
|
||||
I_ConstructorWithDefaults1(IN, osgManipulator::Scale2DDragger::ScaleMode, scaleMode, osgManipulator::Scale2DDragger::SCALE_WITH_ORIGIN_AS_PIVOT,
|
||||
____Scale2DDragger__ScaleMode,
|
||||
"",
|
||||
"");
|
||||
I_Method7(bool, handle, IN, int, pixel_x, IN, int, pixel_y, IN, const osgUtil::SceneView &, sv, IN, const osgUtil::IntersectVisitor::HitList &, hitList, IN, const osgUtil::IntersectVisitor::HitList::iterator &, hitIter, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us,
|
||||
__bool__handle__int__int__C5_osgUtil_SceneView_R1__C5_osgUtil_IntersectVisitor_HitList_R1__C5_osgUtil_IntersectVisitor_HitList_iterator_R1__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1,
|
||||
"Handle pick events on dragger and generate TranslateInLine commands. ",
|
||||
"");
|
||||
I_Method0(void, setupDefaultGeometry,
|
||||
__void__setupDefaultGeometry,
|
||||
"Setup default geometry for dragger. ",
|
||||
"");
|
||||
I_Method1(void, setMinScale, IN, const osg::Vec2 &, min,
|
||||
__void__setMinScale__C5_osg_Vec2_R1,
|
||||
"Set/Get min scale for dragger. ",
|
||||
"");
|
||||
I_Method0(const osg::Vec2 &, getMinScale,
|
||||
__C5_osg_Vec2_R1__getMinScale,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setColor, IN, const osg::Vec4 &, color,
|
||||
__void__setColor__C5_osg_Vec4_R1,
|
||||
"Set/Get color for dragger. ",
|
||||
"");
|
||||
I_Method0(const osg::Vec4, getColor,
|
||||
__C5_osg_Vec4__getColor,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setPickColor, IN, const osg::Vec4 &, color,
|
||||
__void__setPickColor__C5_osg_Vec4_R1,
|
||||
"Set/Get pick color for dragger. ",
|
||||
"Pick color is color of the dragger when picked. It gives a visual feedback to show that the dragger has been picked.");
|
||||
I_Method0(const osg::Vec4, getPickColor,
|
||||
__C5_osg_Vec4__getPickColor,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setTopLeftHandleNode, IN, osg::Node &, node,
|
||||
__void__setTopLeftHandleNode__osg_Node_R1,
|
||||
"Set/Get the handle nodes for dragger. ",
|
||||
"");
|
||||
I_Method0(osg::Node *, getTopLeftHandleNode,
|
||||
__osg_Node_P1__getTopLeftHandleNode,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setBottomLeftHandleNode, IN, osg::Node &, node,
|
||||
__void__setBottomLeftHandleNode__osg_Node_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method0(osg::Node *, getBottomLeftHandleNode,
|
||||
__osg_Node_P1__getBottomLeftHandleNode,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setTopRightHandleNode, IN, osg::Node &, node,
|
||||
__void__setTopRightHandleNode__osg_Node_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method0(osg::Node *, getTopRightHandleNode,
|
||||
__osg_Node_P1__getTopRightHandleNode,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setBottomRightHandleNode, IN, osg::Node &, node,
|
||||
__void__setBottomRightHandleNode__osg_Node_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method0(osg::Node *, getBottomRightHandleNode,
|
||||
__osg_Node_P1__getBottomRightHandleNode,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setTopLeftHandlePosition, IN, const osg::Vec2 &, pos,
|
||||
__void__setTopLeftHandlePosition__C5_osg_Vec2_R1,
|
||||
"Set/Get the handle nodes postion for dragger. ",
|
||||
"");
|
||||
I_Method0(const osg::Vec2 &, getTopLeftHandlePosition,
|
||||
__C5_osg_Vec2_R1__getTopLeftHandlePosition,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setBottomLeftHandlePosition, IN, const osg::Vec2 &, pos,
|
||||
__void__setBottomLeftHandlePosition__C5_osg_Vec2_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method0(const osg::Vec2 &, getBottomLeftHandlePosition,
|
||||
__C5_osg_Vec2_R1__getBottomLeftHandlePosition,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setTopRightHandlePosition, IN, const osg::Vec2 &, pos,
|
||||
__void__setTopRightHandlePosition__C5_osg_Vec2_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method0(const osg::Vec2 &, getTopRightHandlePosition,
|
||||
__C5_osg_Vec2_R1__getTopRightHandlePosition,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setBottomRightHandlePosition, IN, const osg::Vec2 &, pos,
|
||||
__void__setBottomRightHandlePosition__C5_osg_Vec2_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method0(const osg::Vec2 &, getBottomRightHandlePosition,
|
||||
__C5_osg_Vec2_R1__getBottomRightHandlePosition,
|
||||
"",
|
||||
"");
|
||||
I_SimpleProperty(osg::Node &, BottomLeftHandleNode,
|
||||
0,
|
||||
__void__setBottomLeftHandleNode__osg_Node_R1);
|
||||
I_SimpleProperty(const osg::Vec2 &, BottomLeftHandlePosition,
|
||||
__C5_osg_Vec2_R1__getBottomLeftHandlePosition,
|
||||
__void__setBottomLeftHandlePosition__C5_osg_Vec2_R1);
|
||||
I_SimpleProperty(osg::Node &, BottomRightHandleNode,
|
||||
0,
|
||||
__void__setBottomRightHandleNode__osg_Node_R1);
|
||||
I_SimpleProperty(const osg::Vec2 &, BottomRightHandlePosition,
|
||||
__C5_osg_Vec2_R1__getBottomRightHandlePosition,
|
||||
__void__setBottomRightHandlePosition__C5_osg_Vec2_R1);
|
||||
I_SimpleProperty(const osg::Vec4 &, Color,
|
||||
0,
|
||||
__void__setColor__C5_osg_Vec4_R1);
|
||||
I_SimpleProperty(const osg::Vec2 &, MinScale,
|
||||
__C5_osg_Vec2_R1__getMinScale,
|
||||
__void__setMinScale__C5_osg_Vec2_R1);
|
||||
I_SimpleProperty(const osg::Vec4 &, PickColor,
|
||||
0,
|
||||
__void__setPickColor__C5_osg_Vec4_R1);
|
||||
I_SimpleProperty(osg::Node &, TopLeftHandleNode,
|
||||
0,
|
||||
__void__setTopLeftHandleNode__osg_Node_R1);
|
||||
I_SimpleProperty(const osg::Vec2 &, TopLeftHandlePosition,
|
||||
__C5_osg_Vec2_R1__getTopLeftHandlePosition,
|
||||
__void__setTopLeftHandlePosition__C5_osg_Vec2_R1);
|
||||
I_SimpleProperty(osg::Node &, TopRightHandleNode,
|
||||
0,
|
||||
__void__setTopRightHandleNode__osg_Node_R1);
|
||||
I_SimpleProperty(const osg::Vec2 &, TopRightHandlePosition,
|
||||
__C5_osg_Vec2_R1__getTopRightHandlePosition,
|
||||
__void__setTopRightHandlePosition__C5_osg_Vec2_R1);
|
||||
END_REFLECTOR
|
||||
|
||||
33
src/osgWrappers/osgManipulator/ScaleAxisDragger.cpp
Normal file
33
src/osgWrappers/osgManipulator/ScaleAxisDragger.cpp
Normal file
@@ -0,0 +1,33 @@
|
||||
// ***************************************************************************
|
||||
//
|
||||
// Generated automatically by genwrapper.
|
||||
// Please DO NOT EDIT this file!
|
||||
//
|
||||
// ***************************************************************************
|
||||
|
||||
#include <osgIntrospection/ReflectionMacros>
|
||||
#include <osgIntrospection/TypedMethodInfo>
|
||||
#include <osgIntrospection/StaticMethodInfo>
|
||||
#include <osgIntrospection/Attributes>
|
||||
|
||||
#include <osgManipulator/ScaleAxisDragger>
|
||||
|
||||
// Must undefine IN and OUT macros defined in Windows headers
|
||||
#ifdef IN
|
||||
#undef IN
|
||||
#endif
|
||||
#ifdef OUT
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
BEGIN_OBJECT_REFLECTOR(osgManipulator::ScaleAxisDragger)
|
||||
I_BaseType(osgManipulator::CompositeDragger);
|
||||
I_Constructor0(____ScaleAxisDragger,
|
||||
"",
|
||||
"");
|
||||
I_Method0(void, setupDefaultGeometry,
|
||||
__void__setupDefaultGeometry,
|
||||
"Setup default geometry for dragger. ",
|
||||
"");
|
||||
END_REFLECTOR
|
||||
|
||||
58
src/osgWrappers/osgManipulator/Selection.cpp
Normal file
58
src/osgWrappers/osgManipulator/Selection.cpp
Normal file
@@ -0,0 +1,58 @@
|
||||
// ***************************************************************************
|
||||
//
|
||||
// Generated automatically by genwrapper.
|
||||
// Please DO NOT EDIT this file!
|
||||
//
|
||||
// ***************************************************************************
|
||||
|
||||
#include <osgIntrospection/ReflectionMacros>
|
||||
#include <osgIntrospection/TypedMethodInfo>
|
||||
#include <osgIntrospection/StaticMethodInfo>
|
||||
#include <osgIntrospection/Attributes>
|
||||
|
||||
#include <osgManipulator/Command>
|
||||
#include <osgManipulator/Selection>
|
||||
|
||||
// Must undefine IN and OUT macros defined in Windows headers
|
||||
#ifdef IN
|
||||
#undef IN
|
||||
#endif
|
||||
#ifdef OUT
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
BEGIN_OBJECT_REFLECTOR(osgManipulator::Selection)
|
||||
I_BaseType(osg::MatrixTransform);
|
||||
I_Constructor0(____Selection,
|
||||
"",
|
||||
"");
|
||||
I_Method1(bool, receive, IN, const osgManipulator::MotionCommand &, x,
|
||||
__bool__receive__C5_MotionCommand_R1,
|
||||
"Receive motion commands and set the MatrixTransform accordingly to transform selections. ",
|
||||
"Returns true on success.");
|
||||
I_Method1(bool, receive, IN, const osgManipulator::TranslateInLineCommand &, command,
|
||||
__bool__receive__C5_TranslateInLineCommand_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method1(bool, receive, IN, const osgManipulator::TranslateInPlaneCommand &, command,
|
||||
__bool__receive__C5_TranslateInPlaneCommand_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method1(bool, receive, IN, const osgManipulator::Scale1DCommand &, command,
|
||||
__bool__receive__C5_Scale1DCommand_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method1(bool, receive, IN, const osgManipulator::Scale2DCommand &, command,
|
||||
__bool__receive__C5_Scale2DCommand_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method1(bool, receive, IN, const osgManipulator::ScaleUniformCommand &, command,
|
||||
__bool__receive__C5_ScaleUniformCommand_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method1(bool, receive, IN, const osgManipulator::Rotate3DCommand &, command,
|
||||
__bool__receive__C5_Rotate3DCommand_R1,
|
||||
"",
|
||||
"");
|
||||
END_REFLECTOR
|
||||
|
||||
41
src/osgWrappers/osgManipulator/TabBoxDragger.cpp
Normal file
41
src/osgWrappers/osgManipulator/TabBoxDragger.cpp
Normal file
@@ -0,0 +1,41 @@
|
||||
// ***************************************************************************
|
||||
//
|
||||
// Generated automatically by genwrapper.
|
||||
// Please DO NOT EDIT this file!
|
||||
//
|
||||
// ***************************************************************************
|
||||
|
||||
#include <osgIntrospection/ReflectionMacros>
|
||||
#include <osgIntrospection/TypedMethodInfo>
|
||||
#include <osgIntrospection/StaticMethodInfo>
|
||||
#include <osgIntrospection/Attributes>
|
||||
|
||||
#include <osg/Vec4>
|
||||
#include <osgManipulator/TabBoxDragger>
|
||||
|
||||
// Must undefine IN and OUT macros defined in Windows headers
|
||||
#ifdef IN
|
||||
#undef IN
|
||||
#endif
|
||||
#ifdef OUT
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
BEGIN_OBJECT_REFLECTOR(osgManipulator::TabBoxDragger)
|
||||
I_BaseType(osgManipulator::CompositeDragger);
|
||||
I_Constructor0(____TabBoxDragger,
|
||||
"",
|
||||
"");
|
||||
I_Method0(void, setupDefaultGeometry,
|
||||
__void__setupDefaultGeometry,
|
||||
"Setup default geometry for dragger. ",
|
||||
"");
|
||||
I_Method1(void, setPlaneColor, IN, const osg::Vec4 &, color,
|
||||
__void__setPlaneColor__C5_osg_Vec4_R1,
|
||||
"",
|
||||
"");
|
||||
I_SimpleProperty(const osg::Vec4 &, PlaneColor,
|
||||
0,
|
||||
__void__setPlaneColor__C5_osg_Vec4_R1);
|
||||
END_REFLECTOR
|
||||
|
||||
49
src/osgWrappers/osgManipulator/TabPlaneDragger.cpp
Normal file
49
src/osgWrappers/osgManipulator/TabPlaneDragger.cpp
Normal file
@@ -0,0 +1,49 @@
|
||||
// ***************************************************************************
|
||||
//
|
||||
// Generated automatically by genwrapper.
|
||||
// Please DO NOT EDIT this file!
|
||||
//
|
||||
// ***************************************************************************
|
||||
|
||||
#include <osgIntrospection/ReflectionMacros>
|
||||
#include <osgIntrospection/TypedMethodInfo>
|
||||
#include <osgIntrospection/StaticMethodInfo>
|
||||
#include <osgIntrospection/Attributes>
|
||||
|
||||
#include <osg/Vec4>
|
||||
#include <osgGA/GUIActionAdapter>
|
||||
#include <osgGA/GUIEventAdapter>
|
||||
#include <osgManipulator/TabPlaneDragger>
|
||||
#include <osgUtil/IntersectVisitor>
|
||||
#include <osgUtil/SceneView>
|
||||
|
||||
// Must undefine IN and OUT macros defined in Windows headers
|
||||
#ifdef IN
|
||||
#undef IN
|
||||
#endif
|
||||
#ifdef OUT
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
BEGIN_OBJECT_REFLECTOR(osgManipulator::TabPlaneDragger)
|
||||
I_BaseType(osgManipulator::CompositeDragger);
|
||||
I_Constructor0(____TabPlaneDragger,
|
||||
"",
|
||||
"");
|
||||
I_Method7(bool, handle, IN, int, pixel_x, IN, int, pixel_y, IN, const osgUtil::SceneView &, sv, IN, const osgUtil::IntersectVisitor::HitList &, hitList, IN, const osgUtil::IntersectVisitor::HitList::iterator &, hit, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us,
|
||||
__bool__handle__int__int__C5_osgUtil_SceneView_R1__C5_osgUtil_IntersectVisitor_HitList_R1__C5_osgUtil_IntersectVisitor_HitList_iterator_R1__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1,
|
||||
"",
|
||||
"");
|
||||
I_MethodWithDefaults1(void, setupDefaultGeometry, IN, bool, twoSidedHandle, true,
|
||||
__void__setupDefaultGeometry__bool,
|
||||
"Setup default geometry for dragger. ",
|
||||
"");
|
||||
I_Method1(void, setPlaneColor, IN, const osg::Vec4 &, color,
|
||||
__void__setPlaneColor__C5_osg_Vec4_R1,
|
||||
"",
|
||||
"");
|
||||
I_SimpleProperty(const osg::Vec4 &, PlaneColor,
|
||||
0,
|
||||
__void__setPlaneColor__C5_osg_Vec4_R1);
|
||||
END_REFLECTOR
|
||||
|
||||
41
src/osgWrappers/osgManipulator/TabPlaneTrackballDragger.cpp
Normal file
41
src/osgWrappers/osgManipulator/TabPlaneTrackballDragger.cpp
Normal file
@@ -0,0 +1,41 @@
|
||||
// ***************************************************************************
|
||||
//
|
||||
// Generated automatically by genwrapper.
|
||||
// Please DO NOT EDIT this file!
|
||||
//
|
||||
// ***************************************************************************
|
||||
|
||||
#include <osgIntrospection/ReflectionMacros>
|
||||
#include <osgIntrospection/TypedMethodInfo>
|
||||
#include <osgIntrospection/StaticMethodInfo>
|
||||
#include <osgIntrospection/Attributes>
|
||||
|
||||
#include <osg/Vec4>
|
||||
#include <osgManipulator/TabPlaneTrackballDragger>
|
||||
|
||||
// Must undefine IN and OUT macros defined in Windows headers
|
||||
#ifdef IN
|
||||
#undef IN
|
||||
#endif
|
||||
#ifdef OUT
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
BEGIN_OBJECT_REFLECTOR(osgManipulator::TabPlaneTrackballDragger)
|
||||
I_BaseType(osgManipulator::CompositeDragger);
|
||||
I_Constructor0(____TabPlaneTrackballDragger,
|
||||
"",
|
||||
"");
|
||||
I_Method0(void, setupDefaultGeometry,
|
||||
__void__setupDefaultGeometry,
|
||||
"Setup default geometry for dragger. ",
|
||||
"");
|
||||
I_Method1(void, setPlaneColor, IN, const osg::Vec4 &, color,
|
||||
__void__setPlaneColor__C5_osg_Vec4_R1,
|
||||
"",
|
||||
"");
|
||||
I_SimpleProperty(const osg::Vec4 &, PlaneColor,
|
||||
0,
|
||||
__void__setPlaneColor__C5_osg_Vec4_R1);
|
||||
END_REFLECTOR
|
||||
|
||||
34
src/osgWrappers/osgManipulator/TrackballDragger.cpp
Normal file
34
src/osgWrappers/osgManipulator/TrackballDragger.cpp
Normal file
@@ -0,0 +1,34 @@
|
||||
// ***************************************************************************
|
||||
//
|
||||
// Generated automatically by genwrapper.
|
||||
// Please DO NOT EDIT this file!
|
||||
//
|
||||
// ***************************************************************************
|
||||
|
||||
#include <osgIntrospection/ReflectionMacros>
|
||||
#include <osgIntrospection/TypedMethodInfo>
|
||||
#include <osgIntrospection/StaticMethodInfo>
|
||||
#include <osgIntrospection/Attributes>
|
||||
|
||||
#include <osgManipulator/TrackballDragger>
|
||||
|
||||
// Must undefine IN and OUT macros defined in Windows headers
|
||||
#ifdef IN
|
||||
#undef IN
|
||||
#endif
|
||||
#ifdef OUT
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
BEGIN_OBJECT_REFLECTOR(osgManipulator::TrackballDragger)
|
||||
I_BaseType(osgManipulator::CompositeDragger);
|
||||
I_ConstructorWithDefaults1(IN, bool, useAutoTransform, false,
|
||||
____TrackballDragger__bool,
|
||||
"",
|
||||
"");
|
||||
I_Method0(void, setupDefaultGeometry,
|
||||
__void__setupDefaultGeometry,
|
||||
"Setup default geometry for dragger. ",
|
||||
"");
|
||||
END_REFLECTOR
|
||||
|
||||
76
src/osgWrappers/osgManipulator/Translate1DDragger.cpp
Normal file
76
src/osgWrappers/osgManipulator/Translate1DDragger.cpp
Normal file
@@ -0,0 +1,76 @@
|
||||
// ***************************************************************************
|
||||
//
|
||||
// Generated automatically by genwrapper.
|
||||
// Please DO NOT EDIT this file!
|
||||
//
|
||||
// ***************************************************************************
|
||||
|
||||
#include <osgIntrospection/ReflectionMacros>
|
||||
#include <osgIntrospection/TypedMethodInfo>
|
||||
#include <osgIntrospection/StaticMethodInfo>
|
||||
#include <osgIntrospection/Attributes>
|
||||
|
||||
#include <osg/Vec3>
|
||||
#include <osg/Vec4>
|
||||
#include <osgGA/GUIActionAdapter>
|
||||
#include <osgGA/GUIEventAdapter>
|
||||
#include <osgManipulator/Translate1DDragger>
|
||||
#include <osgUtil/IntersectVisitor>
|
||||
#include <osgUtil/SceneView>
|
||||
|
||||
// Must undefine IN and OUT macros defined in Windows headers
|
||||
#ifdef IN
|
||||
#undef IN
|
||||
#endif
|
||||
#ifdef OUT
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
BEGIN_OBJECT_REFLECTOR(osgManipulator::Translate1DDragger)
|
||||
I_BaseType(osgManipulator::Dragger);
|
||||
I_Constructor0(____Translate1DDragger,
|
||||
"",
|
||||
"");
|
||||
I_Constructor2(IN, const osg::Vec3 &, s, IN, const osg::Vec3 &, e,
|
||||
____Translate1DDragger__C5_osg_Vec3_R1__C5_osg_Vec3_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method7(bool, handle, IN, int, pixel_x, IN, int, pixel_y, IN, const osgUtil::SceneView &, sv, IN, const osgUtil::IntersectVisitor::HitList &, hitList, IN, const osgUtil::IntersectVisitor::HitList::iterator &, hit, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us,
|
||||
__bool__handle__int__int__C5_osgUtil_SceneView_R1__C5_osgUtil_IntersectVisitor_HitList_R1__C5_osgUtil_IntersectVisitor_HitList_iterator_R1__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1,
|
||||
"Handle pick events on dragger and generate TranslateInLine commands. ",
|
||||
"");
|
||||
I_Method0(void, setupDefaultGeometry,
|
||||
__void__setupDefaultGeometry,
|
||||
"Setup default geometry for dragger. ",
|
||||
"");
|
||||
I_Method1(void, setColor, IN, const osg::Vec4 &, color,
|
||||
__void__setColor__C5_osg_Vec4_R1,
|
||||
"Set/Get color for dragger. ",
|
||||
"");
|
||||
I_Method0(const osg::Vec4, getColor,
|
||||
__C5_osg_Vec4__getColor,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setPickColor, IN, const osg::Vec4 &, color,
|
||||
__void__setPickColor__C5_osg_Vec4_R1,
|
||||
"Set/Get pick color for dragger. ",
|
||||
"Pick color is color of the dragger when picked. It gives a visual feedback to show that the dragger has been picked. ");
|
||||
I_Method0(const osg::Vec4, getPickColor,
|
||||
__C5_osg_Vec4__getPickColor,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setCheckForNodeInNodePath, IN, bool, onOff,
|
||||
__void__setCheckForNodeInNodePath__bool,
|
||||
"",
|
||||
"");
|
||||
I_SimpleProperty(bool, CheckForNodeInNodePath,
|
||||
0,
|
||||
__void__setCheckForNodeInNodePath__bool);
|
||||
I_SimpleProperty(const osg::Vec4 &, Color,
|
||||
0,
|
||||
__void__setColor__C5_osg_Vec4_R1);
|
||||
I_SimpleProperty(const osg::Vec4 &, PickColor,
|
||||
0,
|
||||
__void__setPickColor__C5_osg_Vec4_R1);
|
||||
END_REFLECTOR
|
||||
|
||||
69
src/osgWrappers/osgManipulator/Translate2DDragger.cpp
Normal file
69
src/osgWrappers/osgManipulator/Translate2DDragger.cpp
Normal file
@@ -0,0 +1,69 @@
|
||||
// ***************************************************************************
|
||||
//
|
||||
// Generated automatically by genwrapper.
|
||||
// Please DO NOT EDIT this file!
|
||||
//
|
||||
// ***************************************************************************
|
||||
|
||||
#include <osgIntrospection/ReflectionMacros>
|
||||
#include <osgIntrospection/TypedMethodInfo>
|
||||
#include <osgIntrospection/StaticMethodInfo>
|
||||
#include <osgIntrospection/Attributes>
|
||||
|
||||
#include <osg/Plane>
|
||||
#include <osg/Vec4>
|
||||
#include <osgGA/GUIActionAdapter>
|
||||
#include <osgGA/GUIEventAdapter>
|
||||
#include <osgManipulator/Translate2DDragger>
|
||||
#include <osgUtil/IntersectVisitor>
|
||||
#include <osgUtil/SceneView>
|
||||
|
||||
// Must undefine IN and OUT macros defined in Windows headers
|
||||
#ifdef IN
|
||||
#undef IN
|
||||
#endif
|
||||
#ifdef OUT
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
BEGIN_OBJECT_REFLECTOR(osgManipulator::Translate2DDragger)
|
||||
I_BaseType(osgManipulator::Dragger);
|
||||
I_Constructor0(____Translate2DDragger,
|
||||
"",
|
||||
"");
|
||||
I_Constructor1(IN, const osg::Plane &, plane,
|
||||
____Translate2DDragger__C5_osg_Plane_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method7(bool, handle, IN, int, pixel_x, IN, int, pixel_y, IN, const osgUtil::SceneView &, sv, IN, const osgUtil::IntersectVisitor::HitList &, hitList, IN, const osgUtil::IntersectVisitor::HitList::iterator &, hit, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us,
|
||||
__bool__handle__int__int__C5_osgUtil_SceneView_R1__C5_osgUtil_IntersectVisitor_HitList_R1__C5_osgUtil_IntersectVisitor_HitList_iterator_R1__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1,
|
||||
"Handle pick events on dragger and generate TranslateInLine commands. ",
|
||||
"");
|
||||
I_Method0(void, setupDefaultGeometry,
|
||||
__void__setupDefaultGeometry,
|
||||
"Setup default geometry for dragger. ",
|
||||
"");
|
||||
I_Method1(void, setColor, IN, const osg::Vec4 &, color,
|
||||
__void__setColor__C5_osg_Vec4_R1,
|
||||
"Set/Get color for dragger. ",
|
||||
"");
|
||||
I_Method0(const osg::Vec4, getColor,
|
||||
__C5_osg_Vec4__getColor,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setPickColor, IN, const osg::Vec4 &, color,
|
||||
__void__setPickColor__C5_osg_Vec4_R1,
|
||||
"Set/Get pick color for dragger. ",
|
||||
"Pick color is color of the dragger when picked. It gives a visual feedback to show that the dragger has been picked. ");
|
||||
I_Method0(const osg::Vec4, getPickColor,
|
||||
__C5_osg_Vec4__getPickColor,
|
||||
"",
|
||||
"");
|
||||
I_SimpleProperty(const osg::Vec4 &, Color,
|
||||
0,
|
||||
__void__setColor__C5_osg_Vec4_R1);
|
||||
I_SimpleProperty(const osg::Vec4 &, PickColor,
|
||||
0,
|
||||
__void__setPickColor__C5_osg_Vec4_R1);
|
||||
END_REFLECTOR
|
||||
|
||||
33
src/osgWrappers/osgManipulator/TranslateAxisDragger.cpp
Normal file
33
src/osgWrappers/osgManipulator/TranslateAxisDragger.cpp
Normal file
@@ -0,0 +1,33 @@
|
||||
// ***************************************************************************
|
||||
//
|
||||
// Generated automatically by genwrapper.
|
||||
// Please DO NOT EDIT this file!
|
||||
//
|
||||
// ***************************************************************************
|
||||
|
||||
#include <osgIntrospection/ReflectionMacros>
|
||||
#include <osgIntrospection/TypedMethodInfo>
|
||||
#include <osgIntrospection/StaticMethodInfo>
|
||||
#include <osgIntrospection/Attributes>
|
||||
|
||||
#include <osgManipulator/TranslateAxisDragger>
|
||||
|
||||
// Must undefine IN and OUT macros defined in Windows headers
|
||||
#ifdef IN
|
||||
#undef IN
|
||||
#endif
|
||||
#ifdef OUT
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
BEGIN_OBJECT_REFLECTOR(osgManipulator::TranslateAxisDragger)
|
||||
I_BaseType(osgManipulator::CompositeDragger);
|
||||
I_Constructor0(____TranslateAxisDragger,
|
||||
"",
|
||||
"");
|
||||
I_Method0(void, setupDefaultGeometry,
|
||||
__void__setupDefaultGeometry,
|
||||
"Setup default geometry for dragger. ",
|
||||
"");
|
||||
END_REFLECTOR
|
||||
|
||||
65
src/osgWrappers/osgManipulator/TranslatePlaneDragger.cpp
Normal file
65
src/osgWrappers/osgManipulator/TranslatePlaneDragger.cpp
Normal file
@@ -0,0 +1,65 @@
|
||||
// ***************************************************************************
|
||||
//
|
||||
// Generated automatically by genwrapper.
|
||||
// Please DO NOT EDIT this file!
|
||||
//
|
||||
// ***************************************************************************
|
||||
|
||||
#include <osgIntrospection/ReflectionMacros>
|
||||
#include <osgIntrospection/TypedMethodInfo>
|
||||
#include <osgIntrospection/StaticMethodInfo>
|
||||
#include <osgIntrospection/Attributes>
|
||||
|
||||
#include <osg/Vec4>
|
||||
#include <osgGA/GUIActionAdapter>
|
||||
#include <osgGA/GUIEventAdapter>
|
||||
#include <osgManipulator/Translate1DDragger>
|
||||
#include <osgManipulator/Translate2DDragger>
|
||||
#include <osgManipulator/TranslatePlaneDragger>
|
||||
#include <osgUtil/IntersectVisitor>
|
||||
#include <osgUtil/SceneView>
|
||||
|
||||
// Must undefine IN and OUT macros defined in Windows headers
|
||||
#ifdef IN
|
||||
#undef IN
|
||||
#endif
|
||||
#ifdef OUT
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
BEGIN_OBJECT_REFLECTOR(osgManipulator::TranslatePlaneDragger)
|
||||
I_BaseType(osgManipulator::CompositeDragger);
|
||||
I_Constructor0(____TranslatePlaneDragger,
|
||||
"",
|
||||
"");
|
||||
I_Method7(bool, handle, IN, int, pixel_x, IN, int, pixel_y, IN, const osgUtil::SceneView &, sv, IN, const osgUtil::IntersectVisitor::HitList &, hitList, IN, const osgUtil::IntersectVisitor::HitList::iterator &, hit, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us,
|
||||
__bool__handle__int__int__C5_osgUtil_SceneView_R1__C5_osgUtil_IntersectVisitor_HitList_R1__C5_osgUtil_IntersectVisitor_HitList_iterator_R1__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method0(void, setupDefaultGeometry,
|
||||
__void__setupDefaultGeometry,
|
||||
"Setup default geometry for dragger. ",
|
||||
"");
|
||||
I_Method1(void, setColor, IN, const osg::Vec4 &, color,
|
||||
__void__setColor__C5_osg_Vec4_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method0(osgManipulator::Translate1DDragger *, getTranslate1DDragger,
|
||||
__Translate1DDragger_P1__getTranslate1DDragger,
|
||||
"",
|
||||
"");
|
||||
I_Method0(osgManipulator::Translate2DDragger *, getTranslate2DDragger,
|
||||
__Translate2DDragger_P1__getTranslate2DDragger,
|
||||
"",
|
||||
"");
|
||||
I_SimpleProperty(const osg::Vec4 &, Color,
|
||||
0,
|
||||
__void__setColor__C5_osg_Vec4_R1);
|
||||
I_SimpleProperty(osgManipulator::Translate1DDragger *, Translate1DDragger,
|
||||
__Translate1DDragger_P1__getTranslate1DDragger,
|
||||
0);
|
||||
I_SimpleProperty(osgManipulator::Translate2DDragger *, Translate2DDragger,
|
||||
__Translate2DDragger_P1__getTranslate2DDragger,
|
||||
0);
|
||||
END_REFLECTOR
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
#include <osg/CopyOp>
|
||||
#include <osg/NodeVisitor>
|
||||
#include <osg/Object>
|
||||
#include <osgShadow/OccluderGeometry>
|
||||
#include <osgShadow/ShadowVolume>
|
||||
#include <osgUtil/CullVisitor>
|
||||
|
||||
@@ -53,6 +54,22 @@ BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowVolume)
|
||||
__C5_char_P1__className,
|
||||
"return the name of the object's class type. ",
|
||||
"Must be defined by derived classes. ");
|
||||
I_Method1(void, setDrawMode, IN, osgShadow::ShadowVolumeGeometry::DrawMode, drawMode,
|
||||
__void__setDrawMode__osgShadow_ShadowVolumeGeometry_DrawMode,
|
||||
"",
|
||||
"");
|
||||
I_Method0(osgShadow::ShadowVolumeGeometry::DrawMode, getDrawMode,
|
||||
__osgShadow_ShadowVolumeGeometry_DrawMode__getDrawMode,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setDynamicShadowVolumes, IN, bool, dynamicShadowVolumes,
|
||||
__void__setDynamicShadowVolumes__bool,
|
||||
"",
|
||||
"");
|
||||
I_Method0(bool, getDynamicShadowVolumes,
|
||||
__bool__getDynamicShadowVolumes,
|
||||
"",
|
||||
"");
|
||||
I_Method0(void, init,
|
||||
__void__init,
|
||||
"initialize the ShadowedScene and local cached data structures. ",
|
||||
@@ -69,5 +86,11 @@ BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowVolume)
|
||||
__void__cleanSceneGraph,
|
||||
"Clean scene graph from any shadow technique specific nodes, state and drawables. ",
|
||||
"");
|
||||
I_SimpleProperty(osgShadow::ShadowVolumeGeometry::DrawMode, DrawMode,
|
||||
__osgShadow_ShadowVolumeGeometry_DrawMode__getDrawMode,
|
||||
__void__setDrawMode__osgShadow_ShadowVolumeGeometry_DrawMode);
|
||||
I_SimpleProperty(bool, DynamicShadowVolumes,
|
||||
__bool__getDynamicShadowVolumes,
|
||||
__void__setDynamicShadowVolumes__bool);
|
||||
END_REFLECTOR
|
||||
|
||||
|
||||
Reference in New Issue
Block a user