OpenSceneGraph/src/osgWrappers/osg/GraphicsThread.cpp

237 lines
8.2 KiB
C++
Raw Normal View History

2005-09-29 21:07:26 +08:00
// ***************************************************************************
//
// Generated automatically by genwrapper.
// Please DO NOT EDIT this file!
//
// ***************************************************************************
#include <osgIntrospection/ReflectionMacros>
#include <osgIntrospection/TypedMethodInfo>
2006-09-01 21:34:05 +08:00
#include <osgIntrospection/StaticMethodInfo>
2005-09-29 21:07:26 +08:00
#include <osgIntrospection/Attributes>
#include <osg/GraphicsThread>
#include <osg/Object>
2005-09-29 21:07:26 +08:00
// Must undefine IN and OUT macros defined in Windows headers
#ifdef IN
#undef IN
#endif
#ifdef OUT
#undef OUT
#endif
2006-07-19 04:53:16 +08:00
BEGIN_ENUM_REFLECTOR(osg::BarrierOperation::PreBlockOp)
2007-06-08 18:42:52 +08:00
I_DeclaringFile("osg/GraphicsThread");
2006-07-19 04:53:16 +08:00
I_EnumLabel(osg::BarrierOperation::NO_OPERATION);
I_EnumLabel(osg::BarrierOperation::GL_FLUSH);
I_EnumLabel(osg::BarrierOperation::GL_FINISH);
2005-09-29 21:07:26 +08:00
END_REFLECTOR
BEGIN_OBJECT_REFLECTOR(osg::BarrierOperation)
2007-06-08 18:42:52 +08:00
I_DeclaringFile("osg/GraphicsThread");
I_BaseType(osg::Operation);
2007-05-03 03:57:05 +08:00
I_BaseType(OpenThreads::Barrier);
2006-10-24 17:45:50 +08:00
I_ConstructorWithDefaults2(IN, int, numThreads, , IN, osg::BarrierOperation::PreBlockOp, op, osg::BarrierOperation::NO_OPERATION,
____BarrierOperation__int__PreBlockOp,
"",
"");
I_Method0(void, release,
2007-02-13 02:02:15 +08:00
Properties::VIRTUAL,
2006-10-24 17:45:50 +08:00
__void__release,
2007-05-03 03:57:05 +08:00
"Release the barrier, now. ",
2006-10-24 17:45:50 +08:00
"");
2006-09-01 21:34:05 +08:00
I_PublicMemberProperty(osg::BarrierOperation::PreBlockOp, _preBlockOp);
2005-09-29 21:07:26 +08:00
END_REFLECTOR
BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Operation)
2007-06-08 18:42:52 +08:00
I_DeclaringFile("osg/GraphicsThread");
2006-12-28 07:19:37 +08:00
I_VirtualBaseType(osg::Referenced);
I_Constructor2(IN, const std::string &, name, IN, bool, keep,
____Operation__C5_std_string_R1__bool,
2006-12-28 07:19:37 +08:00
"",
"");
I_Method1(void, setName, IN, const std::string &, name,
2007-02-13 02:02:15 +08:00
Properties::NON_VIRTUAL,
2006-12-28 07:19:37 +08:00
__void__setName__C5_std_string_R1,
"Set the human readable name of the operation. ",
"");
I_Method0(const std::string &, getName,
2007-02-13 02:02:15 +08:00
Properties::NON_VIRTUAL,
2006-12-28 07:19:37 +08:00
__C5_std_string_R1__getName,
"Get the human readable name of the operation. ",
"");
I_Method1(void, setKeep, IN, bool, keep,
2007-02-13 02:02:15 +08:00
Properties::NON_VIRTUAL,
2006-12-28 07:19:37 +08:00
__void__setKeep__bool,
"Set whether the operation should be kept once its been applied. ",
"");
I_Method0(bool, getKeep,
2007-02-13 02:02:15 +08:00
Properties::NON_VIRTUAL,
2006-12-28 07:19:37 +08:00
__bool__getKeep,
"Get whether the operation should be kept once its been applied. ",
"");
I_Method0(void, release,
2007-02-13 02:02:15 +08:00
Properties::VIRTUAL,
2006-12-28 07:19:37 +08:00
__void__release,
"if this operation is a barrier then release it. ",
"");
I_SimpleProperty(bool, Keep,
__bool__getKeep,
__void__setKeep__bool);
I_SimpleProperty(const std::string &, Name,
__C5_std_string_R1__getName,
__void__setName__C5_std_string_R1);
2007-07-09 18:48:32 +08:00
END_REFLECTOR
BEGIN_OBJECT_REFLECTOR(osg::OperationQueue)
I_DeclaringFile("osg/GraphicsThread");
I_BaseType(osg::Referenced);
I_Constructor0(____OperationQueue,
"",
"");
I_Method0(osg::RefBlock *, getOperationsBlock,
Properties::NON_VIRTUAL,
__RefBlock_P1__getOperationsBlock,
"",
"");
I_Method0(const osg::RefBlock *, getOperationsBlock,
Properties::NON_VIRTUAL,
__C5_RefBlock_P1__getOperationsBlock,
"",
"");
I_Method1(void, add, IN, osg::Operation *, operation,
Properties::NON_VIRTUAL,
__void__add__Operation_P1,
"Add operation to end of OperationQueue, this will be executed by the operation thread once this operation gets to the head of the queue. ",
"");
I_Method1(void, remove, IN, osg::Operation *, operation,
Properties::NON_VIRTUAL,
__void__remove__Operation_P1,
"Remove operation from OperationQueue. ",
"");
I_Method1(void, remove, IN, const std::string &, name,
Properties::NON_VIRTUAL,
__void__remove__C5_std_string_R1,
"Remove named operation from OperationQueue. ",
"");
I_Method0(void, removeAllOperations,
Properties::NON_VIRTUAL,
__void__removeAllOperations,
"Remove all operations from OperationQueue. ",
"");
I_SimpleProperty(osg::RefBlock *, OperationsBlock,
__RefBlock_P1__getOperationsBlock,
0);
2006-12-28 07:19:37 +08:00
END_REFLECTOR
BEGIN_OBJECT_REFLECTOR(osg::OperationsThread)
2007-06-08 18:42:52 +08:00
I_DeclaringFile("osg/GraphicsThread");
2006-07-19 04:53:16 +08:00
I_BaseType(osg::Referenced);
2007-05-03 03:57:05 +08:00
I_BaseType(OpenThreads::Thread);
I_Constructor0(____OperationsThread,
2006-10-24 17:45:50 +08:00
"",
"");
I_Method1(void, setParent, IN, osg::Object *, parent,
2007-02-13 02:02:15 +08:00
Properties::NON_VIRTUAL,
__void__setParent__Object_P1,
"",
"");
I_Method0(osg::Object *, getParent,
2007-02-13 02:02:15 +08:00
Properties::NON_VIRTUAL,
__Object_P1__getParent,
"",
"");
I_Method0(const osg::Object *, getParent,
2007-02-13 02:02:15 +08:00
Properties::NON_VIRTUAL,
__C5_Object_P1__getParent,
"",
"");
I_MethodWithDefaults2(void, add, IN, osg::Operation *, operation, , IN, bool, waitForCompletion, false,
2007-02-13 02:02:15 +08:00
Properties::NON_VIRTUAL,
__void__add__Operation_P1__bool,
2006-10-24 17:45:50 +08:00
"Add operation to end of OperationQueue, this will be executed by the graphics thread once this operation gets to the head of the queue. ",
"");
I_Method1(void, remove, IN, osg::Operation *, operation,
2007-02-13 02:02:15 +08:00
Properties::NON_VIRTUAL,
__void__remove__Operation_P1,
2006-10-24 17:45:50 +08:00
"Remove operation from OperationQueue. ",
"");
I_Method1(void, remove, IN, const std::string &, name,
2007-02-13 02:02:15 +08:00
Properties::NON_VIRTUAL,
2006-10-24 17:45:50 +08:00
__void__remove__C5_std_string_R1,
"Remove named operation from OperationQueue. ",
"");
I_Method0(void, removeAllOperations,
2007-02-13 02:02:15 +08:00
Properties::NON_VIRTUAL,
2006-10-24 17:45:50 +08:00
__void__removeAllOperations,
"Remove all operations from OperationQueue. ",
"");
I_Method0(osg::ref_ptr< osg::Operation >, getCurrentOperation,
2007-02-13 02:02:15 +08:00
Properties::NON_VIRTUAL,
__osg_ref_ptrT1_Operation___getCurrentOperation,
2006-10-24 17:45:50 +08:00
"Get the operation currently being run. ",
"");
I_Method0(void, run,
2007-02-13 02:02:15 +08:00
Properties::VIRTUAL,
2006-10-24 17:45:50 +08:00
__void__run,
"Run does the graphics thread run loop. ",
"");
I_Method1(void, setDone, IN, bool, done,
2007-02-13 02:02:15 +08:00
Properties::NON_VIRTUAL,
2006-10-24 17:45:50 +08:00
__void__setDone__bool,
"",
"");
I_Method0(bool, getDone,
2007-02-13 02:02:15 +08:00
Properties::NON_VIRTUAL,
2006-10-24 17:45:50 +08:00
__bool__getDone,
"",
"");
I_Method0(int, cancel,
2007-02-13 02:02:15 +08:00
Properties::VIRTUAL,
2006-10-24 17:45:50 +08:00
__int__cancel,
"Cancel this graphics thread. ",
"");
I_SimpleProperty(osg::ref_ptr< osg::Operation >, CurrentOperation,
__osg_ref_ptrT1_Operation___getCurrentOperation,
2006-10-24 17:45:50 +08:00
0);
I_SimpleProperty(bool, Done,
__bool__getDone,
__void__setDone__bool);
I_SimpleProperty(osg::Object *, Parent,
__Object_P1__getParent,
__void__setParent__Object_P1);
2005-09-29 21:07:26 +08:00
END_REFLECTOR
BEGIN_OBJECT_REFLECTOR(osg::RefBlock)
2007-06-08 18:42:52 +08:00
I_DeclaringFile("osg/GraphicsThread");
I_VirtualBaseType(osg::Referenced);
2007-05-03 03:57:05 +08:00
I_BaseType(OpenThreads::Block);
I_Constructor0(____RefBlock,
"",
"");
END_REFLECTOR
BEGIN_OBJECT_REFLECTOR(osg::ReleaseContext_Block_MakeCurrentOperation)
2007-06-08 18:42:52 +08:00
I_DeclaringFile("osg/GraphicsThread");
I_BaseType(osg::Operation);
I_BaseType(osg::RefBlock);
2006-10-24 17:45:50 +08:00
I_Constructor0(____ReleaseContext_Block_MakeCurrentOperation,
"",
"");
I_Method0(void, release,
2007-02-13 02:02:15 +08:00
Properties::VIRTUAL,
2006-10-24 17:45:50 +08:00
__void__release,
"if this operation is a barrier then release it. ",
2006-10-24 17:45:50 +08:00
"");
2005-09-29 21:07:26 +08:00
END_REFLECTOR
BEGIN_OBJECT_REFLECTOR(osg::SwapBuffersOperation)
2007-06-08 18:42:52 +08:00
I_DeclaringFile("osg/GraphicsThread");
I_BaseType(osg::Operation);
2006-10-24 17:45:50 +08:00
I_Constructor0(____SwapBuffersOperation,
"",
"");
2005-09-29 21:07:26 +08:00
END_REFLECTOR