From 2167f34d508144147ce1024d68810eff94cfd796 Mon Sep 17 00:00:00 2001 From: Paul MARTZ Date: Fri, 26 Sep 2008 14:33:31 +0000 Subject: [PATCH] Update wrappers for 2.6.1. --- ChangeLog | 1 + src/osgWrappers/OpenThreads/Thread.cpp | 422 ++-- src/osgWrappers/osg/AlphaFunc.cpp | 6 +- src/osgWrappers/osg/AnimationPath.cpp | 8 +- src/osgWrappers/osg/ApplicationUsage.cpp | 12 +- src/osgWrappers/osg/ArgumentParser.cpp | 36 +- src/osgWrappers/osg/Billboard.cpp | 4 +- src/osgWrappers/osg/BlendColor.cpp | 6 +- src/osgWrappers/osg/BlendEquation.cpp | 6 +- src/osgWrappers/osg/BlendFunc.cpp | 6 +- src/osgWrappers/osg/BoundingBox.cpp | 4 +- src/osgWrappers/osg/BoundingSphere.cpp | 4 +- src/osgWrappers/osg/BufferObject.cpp | 6 +- src/osgWrappers/osg/Camera.cpp | 6 +- src/osgWrappers/osg/ClampColor.cpp | 4 +- src/osgWrappers/osg/ClipPlane.cpp | 4 +- .../osg/ClusterCullingCallback.cpp | 2 +- .../osg/CollectOccludersVisitor.cpp | 6 +- src/osgWrappers/osg/ColorMask.cpp | 4 +- src/osgWrappers/osg/ColorMatrix.cpp | 2 +- src/osgWrappers/osg/ConvexPlanarOccluder.cpp | 2 +- src/osgWrappers/osg/CoordinateSystemNode.cpp | 2 +- src/osgWrappers/osg/CopyOp.cpp | 4 +- src/osgWrappers/osg/CullFace.cpp | 6 +- src/osgWrappers/osg/CullSettings.cpp | 4 +- src/osgWrappers/osg/CullingSet.cpp | 16 +- src/osgWrappers/osg/Depth.cpp | 6 +- src/osgWrappers/osg/DisplaySettings.cpp | 8 +- src/osgWrappers/osg/DrawPixels.cpp | 2 +- src/osgWrappers/osg/Drawable.cpp | 18 +- src/osgWrappers/osg/Fog.cpp | 6 +- src/osgWrappers/osg/FragmentProgram.cpp | 8 +- src/osgWrappers/osg/FrameBufferObject.cpp | 26 +- src/osgWrappers/osg/FrontFace.cpp | 4 +- src/osgWrappers/osg/Geometry.cpp | 28 +- src/osgWrappers/osg/GraphicsContext.cpp | 96 +- src/osgWrappers/osg/Group.cpp | 2 +- src/osgWrappers/osg/Hint.cpp | 238 +- src/osgWrappers/osg/Image.cpp | 6 +- src/osgWrappers/osg/ImageSequence.cpp | 474 ++-- src/osgWrappers/osg/ImageStream.cpp | 2 +- src/osgWrappers/osg/KdTree.cpp | 510 ++--- src/osgWrappers/osg/LOD.cpp | 18 +- src/osgWrappers/osg/Light.cpp | 4 +- src/osgWrappers/osg/LightModel.cpp | 4 +- src/osgWrappers/osg/LineStipple.cpp | 6 +- src/osgWrappers/osg/LineWidth.cpp | 4 +- src/osgWrappers/osg/LogicOp.cpp | 6 +- src/osgWrappers/osg/Material.cpp | 4 +- src/osgWrappers/osg/Multisample.cpp | 4 +- src/osgWrappers/osg/Node.cpp | 2 +- src/osgWrappers/osg/NodeCallback.cpp | 2 +- src/osgWrappers/osg/OcclusionQueryNode.cpp | 412 ++-- src/osgWrappers/osg/PagedLOD.cpp | 2 +- src/osgWrappers/osg/Point.cpp | 6 +- src/osgWrappers/osg/PointSprite.cpp | 6 +- src/osgWrappers/osg/PolygonMode.cpp | 4 +- src/osgWrappers/osg/PolygonOffset.cpp | 6 +- src/osgWrappers/osg/PolygonStipple.cpp | 6 +- src/osgWrappers/osg/PrimitiveSet.cpp | 2 +- src/osgWrappers/osg/Program.cpp | 2 +- src/osgWrappers/osg/ProxyNode.cpp | 10 +- src/osgWrappers/osg/Scissor.cpp | 6 +- src/osgWrappers/osg/Sequence.cpp | 2 +- src/osgWrappers/osg/ShadeModel.cpp | 4 +- src/osgWrappers/osg/Shader.cpp | 2 +- src/osgWrappers/osg/Shape.cpp | 60 +- src/osgWrappers/osg/ShapeDrawable.cpp | 4 +- src/osgWrappers/osg/State.cpp | 4 +- src/osgWrappers/osg/StateAttribute.cpp | 22 +- src/osgWrappers/osg/StateSet.cpp | 32 +- src/osgWrappers/osg/Stencil.cpp | 6 +- src/osgWrappers/osg/StencilTwoSided.cpp | 6 +- src/osgWrappers/osg/Switch.cpp | 2 +- src/osgWrappers/osg/TexEnv.cpp | 4 +- src/osgWrappers/osg/TexEnvCombine.cpp | 4 +- src/osgWrappers/osg/TexEnvFilter.cpp | 4 +- src/osgWrappers/osg/TexGen.cpp | 6 +- src/osgWrappers/osg/TexMat.cpp | 2 +- src/osgWrappers/osg/Texture.cpp | 12 +- src/osgWrappers/osg/Texture1D.cpp | 2 +- src/osgWrappers/osg/Texture2D.cpp | 2 +- src/osgWrappers/osg/Texture2DArray.cpp | 738 +++---- src/osgWrappers/osg/Texture3D.cpp | 2 +- src/osgWrappers/osg/TextureCubeMap.cpp | 2 +- src/osgWrappers/osg/TextureRectangle.cpp | 2 +- src/osgWrappers/osg/Uniform.cpp | 8 +- src/osgWrappers/osg/VertexProgram.cpp | 8 +- src/osgWrappers/osg/View.cpp | 2 +- src/osgWrappers/osg/Viewport.cpp | 4 +- src/osgWrappers/osgDB/DatabasePager.cpp | 16 +- src/osgWrappers/osgDB/DotOsgWrapper.cpp | 12 +- src/osgWrappers/osgDB/DynamicLibrary.cpp | 8 +- src/osgWrappers/osgDB/FileUtils.cpp | 4 +- src/osgWrappers/osgDB/ImageOptions.cpp | 2 +- src/osgWrappers/osgDB/ReaderWriter.cpp | 8 +- src/osgWrappers/osgDB/Registry.cpp | 8 +- src/osgWrappers/osgFX/Registry.cpp | 8 +- src/osgWrappers/osgFX/Validator.cpp | 6 +- .../osgGA/AnimationPathManipulator.cpp | 6 +- src/osgWrappers/osgGA/DriveManipulator.cpp | 4 +- src/osgWrappers/osgGA/FlightManipulator.cpp | 4 +- src/osgWrappers/osgGA/GUIEventAdapter.cpp | 2 +- src/osgWrappers/osgGA/GUIEventHandler.cpp | 2 +- .../osgGA/KeySwitchMatrixManipulator.cpp | 6 +- .../osgGA/NodeTrackerManipulator.cpp | 4 +- src/osgWrappers/osgParticle/AccelOperator.cpp | 2 +- .../osgParticle/AngularAccelOperator.cpp | 2 +- src/osgWrappers/osgParticle/BoxPlacer.cpp | 2 +- .../osgParticle/ConnectedParticleSystem.cpp | 2 +- .../osgParticle/ConstantRateCounter.cpp | 2 +- src/osgWrappers/osgParticle/ForceOperator.cpp | 2 +- .../osgParticle/LinearInterpolator.cpp | 2 +- .../osgParticle/MultiSegmentPlacer.cpp | 2 +- .../osgParticle/ParticleProcessor.cpp | 2 +- .../osgParticle/ParticleSystem.cpp | 2 +- .../osgParticle/ParticleSystemUpdater.cpp | 2 +- src/osgWrappers/osgParticle/PointPlacer.cpp | 2 +- .../osgParticle/PrecipitationEffect.cpp | 4 +- src/osgWrappers/osgParticle/RadialShooter.cpp | 2 +- .../osgParticle/RandomRateCounter.cpp | 2 +- src/osgWrappers/osgParticle/SectorPlacer.cpp | 2 +- src/osgWrappers/osgParticle/SegmentPlacer.cpp | 2 +- .../osgShadow/OccluderGeometry.cpp | 12 +- .../osgShadow/ParallelSplitShadowMap.cpp | 388 ++-- src/osgWrappers/osgShadow/ShadowMap.cpp | 2 +- src/osgWrappers/osgShadow/ShadowTechnique.cpp | 2 +- src/osgWrappers/osgShadow/ShadowTexture.cpp | 2 +- src/osgWrappers/osgShadow/ShadowVolume.cpp | 2 +- src/osgWrappers/osgShadow/ShadowedScene.cpp | 2 +- src/osgWrappers/osgShadow/SoftShadowMap.cpp | 348 +-- src/osgWrappers/osgSim/BlinkSequence.cpp | 4 +- src/osgWrappers/osgSim/DOFTransform.cpp | 2 +- src/osgWrappers/osgSim/Impostor.cpp | 2 +- src/osgWrappers/osgSim/LightPointNode.cpp | 2 +- src/osgWrappers/osgSim/LightPointSystem.cpp | 2 +- src/osgWrappers/osgSim/MultiSwitch.cpp | 2 +- src/osgWrappers/osgSim/ObjectRecordData.cpp | 154 +- src/osgWrappers/osgSim/OverlayNode.cpp | 2 +- src/osgWrappers/osgSim/ScalarBar.cpp | 4 +- src/osgWrappers/osgSim/Sector.cpp | 10 +- src/osgWrappers/osgSim/SphereSegment.cpp | 4 +- src/osgWrappers/osgSim/VisibilityGroup.cpp | 2 +- .../osgTerrain/GeometryTechnique.cpp | 362 +-- src/osgWrappers/osgTerrain/Layer.cpp | 1853 ++++++++-------- src/osgWrappers/osgTerrain/Locator.cpp | 392 ++-- src/osgWrappers/osgTerrain/Terrain.cpp | 254 +-- .../osgTerrain/TerrainTechnique.cpp | 218 +- src/osgWrappers/osgTerrain/TerrainTile.cpp | 514 ++--- src/osgWrappers/osgText/FadeText.cpp | 2 +- src/osgWrappers/osgText/KerningType.cpp | 66 +- src/osgWrappers/osgText/String.cpp | 4 +- src/osgWrappers/osgText/Text.cpp | 6 +- src/osgWrappers/osgText/Text3D.cpp | 470 ++-- src/osgWrappers/osgUtil/CullVisitor.cpp | 6 +- src/osgWrappers/osgUtil/GLObjectsVisitor.cpp | 4 +- src/osgWrappers/osgUtil/IntersectVisitor.cpp | 8 +- src/osgWrappers/osgUtil/RenderBin.cpp | 62 +- src/osgWrappers/osgUtil/RenderStage.cpp | 2 +- src/osgWrappers/osgUtil/SceneView.cpp | 6 +- src/osgWrappers/osgUtil/Statistics.cpp | 44 +- src/osgWrappers/osgUtil/Tessellator.cpp | 8 +- src/osgWrappers/osgViewer/CompositeViewer.cpp | 2 +- src/osgWrappers/osgViewer/GraphicsWindow.cpp | 4 +- src/osgWrappers/osgViewer/View.cpp | 2 +- src/osgWrappers/osgViewer/Viewer.cpp | 2 +- src/osgWrappers/osgViewer/ViewerBase.cpp | 810 +++---- .../osgViewer/ViewerEventHandlers.cpp | 1170 +++++----- src/osgWrappers/osgWidget/Frame.cpp | 618 +++--- src/osgWrappers/osgWidget/Label.cpp | 336 +-- src/osgWrappers/osgWidget/StyleManager.cpp | 508 ++--- .../osgWidget/ViewerEventHandlers.cpp | 240 +- src/osgWrappers/osgWidget/Widget.cpp | 1966 ++++++++--------- src/osgWrappers/osgWidget/Window.cpp | 1940 ++++++++-------- 174 files changed, 8171 insertions(+), 8271 deletions(-) diff --git a/ChangeLog b/ChangeLog index b4e4de4d5..12b936afc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -11,6 +11,7 @@ The following changes (and svn revision numbers) were included in the 2.6.1 rele 8888 - Fix for uninitialized "strip texture path" option in OpenFlight exporter. 8900 - Fix for FLT plugin user data handling. Bump OSG version number from 2.6.0 to 2.6.1. +Update wrappers. diff --git a/src/osgWrappers/OpenThreads/Thread.cpp b/src/osgWrappers/OpenThreads/Thread.cpp index 31d574fe0..489004086 100644 --- a/src/osgWrappers/OpenThreads/Thread.cpp +++ b/src/osgWrappers/OpenThreads/Thread.cpp @@ -1,211 +1,211 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_ENUM_REFLECTOR(OpenThreads::Thread::ThreadPriority) - I_DeclaringFile("OpenThreads/Thread"); - I_EnumLabel(OpenThreads::Thread::THREAD_PRIORITY_MAX); - I_EnumLabel(OpenThreads::Thread::THREAD_PRIORITY_HIGH); - I_EnumLabel(OpenThreads::Thread::THREAD_PRIORITY_NOMINAL); - I_EnumLabel(OpenThreads::Thread::THREAD_PRIORITY_LOW); - I_EnumLabel(OpenThreads::Thread::THREAD_PRIORITY_MIN); - I_EnumLabel(OpenThreads::Thread::THREAD_PRIORITY_DEFAULT); -END_REFLECTOR - -BEGIN_ENUM_REFLECTOR(OpenThreads::Thread::ThreadPolicy) - I_DeclaringFile("OpenThreads/Thread"); - I_EnumLabel(OpenThreads::Thread::THREAD_SCHEDULE_FIFO); - I_EnumLabel(OpenThreads::Thread::THREAD_SCHEDULE_ROUND_ROBIN); - I_EnumLabel(OpenThreads::Thread::THREAD_SCHEDULE_TIME_SHARE); - I_EnumLabel(OpenThreads::Thread::THREAD_SCHEDULE_DEFAULT); -END_REFLECTOR - -BEGIN_ABSTRACT_OBJECT_REFLECTOR(OpenThreads::Thread) - I_DeclaringFile("OpenThreads/Thread"); - I_Constructor0(____Thread, - "Constructor. ", - ""); - I_Method0(int, getThreadId, - Properties::NON_VIRTUAL, - __int__getThreadId, - "Get a unique thread id. ", - "This id is monotonically increasing.a unique thread identifier "); - I_Method0(size_t, getProcessId, - Properties::NON_VIRTUAL, - __size_t__getProcessId, - "Get the thread's process id. ", - "This is the pthread_t or pid_t value depending on the threading model being used.thread process id. "); - I_Method0(int, start, - Properties::NON_VIRTUAL, - __int__start, - "Start the thread. ", - "This method will configure the thread, set it's priority, and spawn it.if the stack size specified setStackSize is smaller than the smallest allowable stack size, the threads stack size will be set to the minimum allowed, and may be retrieved via the getStackSize() 0 if normal, -1 if errno set, errno code otherwise. "); - I_Method0(int, startThread, - Properties::NON_VIRTUAL, - __int__startThread, - "", - ""); - I_Method0(int, testCancel, - Properties::NON_VIRTUAL, - __int__testCancel, - "Test the cancel state of the thread. ", - "If the thread has been canceled this method will cause the thread to exit now. This method operates on the calling thread.Returns 0 if normal, -1 if called from a thread other that this. "); - I_Method0(int, cancel, - Properties::VIRTUAL, - __int__cancel, - "Cancel the thread. ", - "Equivalent to SIGKILL.0 if normal, -1 if errno set, errno code otherwise. "); - I_Method1(int, setSchedulePriority, IN, OpenThreads::Thread::ThreadPriority, priority, - Properties::NON_VIRTUAL, - __int__setSchedulePriority__ThreadPriority, - "Set the thread's schedule priority. ", - "This is a complex method. Beware of thread priorities when using a many-to-many kernel entity implemenation (such as IRIX pthreads). If one is not carefull to manage the thread priorities, a priority inversion deadlock can easily occur (Although the OpenThreads::Mutex & OpenThreads::Barrier constructs have been designed with this senario in mind). Unless you have explicit need to set the schedule pirorites for a given task, it is best to leave them alone.some implementations (notably LinuxThreads and IRIX Sprocs) only alow you to decrease thread priorities dynamically. Thus, a lower priority thread will not allow it's priority to be raised on the fly.seting the environment variable OUTPUT_THREADLIB_SCHEDULING_INFO will output scheduling information for each thread to stdout. 0 if normal, -1 if errno set, errno code otherwise. "); - I_Method0(int, getSchedulePriority, - Properties::NON_VIRTUAL, - __int__getSchedulePriority, - "Get the thread's schedule priority (if able). ", - "seting the environment variable OUTPUT_THREADLIB_SCHEDULING_INFO will output scheduling information for each thread to stdout. 0 if normal, -1 if errno set, errno code otherwise. "); - I_Method1(int, setSchedulePolicy, IN, OpenThreads::Thread::ThreadPolicy, policy, - Properties::NON_VIRTUAL, - __int__setSchedulePolicy__ThreadPolicy, - "Set the thread's scheduling policy (if able). ", - "On some implementations (notably IRIX Sprocs & LinuxThreads) The policy may prohibit the use of SCHEDULE_ROUND_ROBIN and SCHEDULE_FIFO policies - due to their real-time nature, and the danger of deadlocking the machine when used as super-user. In such cases, the command is a no-op.seting the environment variable OUTPUT_THREADLIB_SCHEDULING_INFO will output scheduling information for each thread to stdout. 0 if normal, -1 if errno set, errno code otherwise. "); - I_Method0(int, getSchedulePolicy, - Properties::NON_VIRTUAL, - __int__getSchedulePolicy, - "Get the thread's policy (if able). ", - "seting the environment variable OUTPUT_THREADLIB_SCHEDULING_INFO will output scheduling information for each thread to stdout. policy if normal, -1 if errno set, errno code otherwise. "); - I_Method1(int, setStackSize, IN, size_t, size, - Properties::NON_VIRTUAL, - __int__setStackSize__size_t, - "Set the thread's desired stack size (in bytes). ", - "This method is an attribute of the thread and must be called *before* the start() method is invoked.a return code of 13 (EACESS) means that the thread stack size can no longer be changed. 0 if normal, -1 if errno set, errno code otherwise. "); - I_Method0(size_t, getStackSize, - Properties::NON_VIRTUAL, - __size_t__getStackSize, - "Get the thread's desired stack size. ", - "the thread's stack size. 0 indicates that the stack size has either not yet been initialized, or not yet been specified by the application. "); - I_Method0(void, printSchedulingInfo, - Properties::NON_VIRTUAL, - __void__printSchedulingInfo, - "Print the thread's scheduling information to stdout. ", - ""); - I_Method0(int, detach, - Properties::NON_VIRTUAL, - __int__detach, - "Detach the thread from the calling process. ", - "0 if normal, -1 if errno set, errno code otherwise. "); - I_Method0(int, join, - Properties::NON_VIRTUAL, - __int__join, - "Join the calling process with the thread. ", - "0 if normal, -1 if errno set, errno code otherwise. "); - I_Method0(int, setCancelModeDisable, - Properties::NON_VIRTUAL, - __int__setCancelModeDisable, - "Disable thread cancelation altogether. ", - "Thread::cancel() has no effect.0 if normal, -1 if errno set, errno code otherwise. "); - I_Method0(int, setCancelModeAsynchronous, - Properties::NON_VIRTUAL, - __int__setCancelModeAsynchronous, - "Mark the thread to cancel aysncronously on Thread::cancel(). ", - "(May not be available with process-level implementations).0 if normal, -1 if errno set, errno code otherwise. "); - I_Method0(int, setCancelModeDeferred, - Properties::NON_VIRTUAL, - __int__setCancelModeDeferred, - "Mark the thread to cancel at the earliest convenience on Thread::cancel() (This is the default). ", - "0 if normal, -1 if errno set, errno code otherwise. "); - I_Method0(bool, isRunning, - Properties::NON_VIRTUAL, - __bool__isRunning, - "Query the thread's running status. ", - "true if running, false if not. "); - I_Method0(void, run, - Properties::PURE_VIRTUAL, - __void__run, - "Thread's run method. ", - "Must be implemented by derived classes. This is where the action happens. "); - I_Method0(void, cancelCleanup, - Properties::VIRTUAL, - __void__cancelCleanup, - "Thread's cancel cleanup routine, called upon cancel(), after the cancelation has taken place, but before the thread exits completely. ", - "This method should be used to repair parts of the thread's data that may have been damaged by a pre-mature cancel. No-op by default. "); - I_Method0(void *, getImplementation, - Properties::NON_VIRTUAL, - __void_P1__getImplementation, - "", - ""); - I_Method1(int, setProcessorAffinity, IN, unsigned int, cpunum, - Properties::NON_VIRTUAL, - __int__setProcessorAffinity__unsigned_int, - "Thread's processor affinity method. ", - "This binds a thread to a processor whenever possible. This call must be made before start() or startThread() and has no effect after the thread has been running. In the pthreads implementation, this is only implemented on sgi, through a pthread extension. On other pthread platforms this is ignored. Returns 0 on success, implementation's error on failure, or -1 if ignored. "); - I_StaticMethod1(int, SetConcurrency, IN, int, concurrencyLevel, - __int__SetConcurrency__int_S, - "Set the concurrency level for a running application. ", - "This method only has effect if the pthreads thread model is being used, and then only when that model is many-to-one (eg. irix). in other cases it is ignored. The concurrency level is only a *hint* as to the number of execution vehicles to use, the actual implementation may do anything it wants. Setting the value to 0 returns things to their default state.previous concurrency level, -1 indicates no-op. "); - I_StaticMethod0(int, GetConcurrency, - __int__GetConcurrency_S, - "Get the concurrency level for a running application. ", - "In this case, a return code of 0 means that the application is in default mode. A return code of -1 means that the application is incapable of setting an arbitrary concurrency, because it is a one-to-one execution model (sprocs, linuxThreads) "); - I_StaticMethod0(OpenThreads::Thread *, CurrentThread, - __Thread_P1__CurrentThread_S, - "Return a pointer to the current running thread. ", - ""); - I_StaticMethod0(void, Init, - __void__Init_S, - "Initialize Threading in a program. ", - "This method must be called before you can do any threading in a program. "); - I_StaticMethod0(int, YieldCurrentThread, - __int__YieldCurrentThread_S, - "Yield the processor. ", - "This method operates on the calling process. And is equivalent to calling sched_yield(). 0 if normal, -1 if errno set, errno code otherwise. "); - I_StaticMethod0(OpenThreads::Thread::ThreadPriority, GetMasterPriority, - __ThreadPriority__GetMasterPriority_S, - "This method will return the ThreadPriority of the master process. ", - "(ie, the one calling the thread->start() methods for the first time) The method will almost certainly return Thread::THREAD_PRIORITY_DEFAULT if Init() has not been called.the Thread::ThreadPriority of the master thread. "); - I_StaticMethod1(int, microSleep, IN, unsigned int, microsec, - __int__microSleep__unsigned_int_S, - "microSleep method, equivilant to the posix usleep(microsec). ", - "This is not strictly thread API but is used so often with threads. It's basically UNIX usleep. Parameter is number of microseconds we current thread to sleep. Returns 0 on succes, non-zero on failure (UNIX errno or GetLastError() will give detailed description. "); - I_SimpleProperty(void *, Implementation, - __void_P1__getImplementation, - 0); - I_SimpleProperty(size_t, ProcessId, - __size_t__getProcessId, - 0); - I_SimpleProperty(unsigned int, ProcessorAffinity, - 0, - __int__setProcessorAffinity__unsigned_int); - I_SimpleProperty(OpenThreads::Thread::ThreadPolicy, SchedulePolicy, - 0, - __int__setSchedulePolicy__ThreadPolicy); - I_SimpleProperty(OpenThreads::Thread::ThreadPriority, SchedulePriority, - 0, - __int__setSchedulePriority__ThreadPriority); - I_SimpleProperty(size_t, StackSize, - __size_t__getStackSize, - __int__setStackSize__size_t); - I_SimpleProperty(int, ThreadId, - __int__getThreadId, - 0); -END_REFLECTOR - +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(OpenThreads::Thread::ThreadPriority) + I_DeclaringFile("OpenThreads/Thread"); + I_EnumLabel(OpenThreads::Thread::THREAD_PRIORITY_MAX); + I_EnumLabel(OpenThreads::Thread::THREAD_PRIORITY_HIGH); + I_EnumLabel(OpenThreads::Thread::THREAD_PRIORITY_NOMINAL); + I_EnumLabel(OpenThreads::Thread::THREAD_PRIORITY_LOW); + I_EnumLabel(OpenThreads::Thread::THREAD_PRIORITY_MIN); + I_EnumLabel(OpenThreads::Thread::THREAD_PRIORITY_DEFAULT); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(OpenThreads::Thread::ThreadPolicy) + I_DeclaringFile("OpenThreads/Thread"); + I_EnumLabel(OpenThreads::Thread::THREAD_SCHEDULE_FIFO); + I_EnumLabel(OpenThreads::Thread::THREAD_SCHEDULE_ROUND_ROBIN); + I_EnumLabel(OpenThreads::Thread::THREAD_SCHEDULE_TIME_SHARE); + I_EnumLabel(OpenThreads::Thread::THREAD_SCHEDULE_DEFAULT); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(OpenThreads::Thread) + I_DeclaringFile("OpenThreads/Thread"); + I_StaticMethod1(int, SetConcurrency, IN, int, concurrencyLevel, + __int__SetConcurrency__int_S, + "Set the concurrency level for a running application. ", + "This method only has effect if the pthreads thread model is being used, and then only when that model is many-to-one (eg. irix). in other cases it is ignored. The concurrency level is only a *hint* as to the number of execution vehicles to use, the actual implementation may do anything it wants. Setting the value to 0 returns things to their default state.previous concurrency level, -1 indicates no-op. "); + I_StaticMethod0(int, GetConcurrency, + __int__GetConcurrency_S, + "Get the concurrency level for a running application. ", + "In this case, a return code of 0 means that the application is in default mode. A return code of -1 means that the application is incapable of setting an arbitrary concurrency, because it is a one-to-one execution model (sprocs, linuxThreads) "); + I_StaticMethod0(OpenThreads::Thread *, CurrentThread, + __Thread_P1__CurrentThread_S, + "Return a pointer to the current running thread. ", + ""); + I_StaticMethod0(void, Init, + __void__Init_S, + "Initialize Threading in a program. ", + "This method must be called before you can do any threading in a program. "); + I_StaticMethod0(int, YieldCurrentThread, + __int__YieldCurrentThread_S, + "Yield the processor. ", + "This method operates on the calling process. And is equivalent to calling sched_yield(). 0 if normal, -1 if errno set, errno code otherwise. "); + I_StaticMethod0(OpenThreads::Thread::ThreadPriority, GetMasterPriority, + __ThreadPriority__GetMasterPriority_S, + "This method will return the ThreadPriority of the master process. ", + "(ie, the one calling the thread->start() methods for the first time) The method will almost certainly return Thread::THREAD_PRIORITY_DEFAULT if Init() has not been called.the Thread::ThreadPriority of the master thread. "); + I_StaticMethod1(int, microSleep, IN, unsigned int, microsec, + __int__microSleep__unsigned_int_S, + "microSleep method, equivilant to the posix usleep(microsec). ", + "This is not strictly thread API but is used so often with threads. It's basically UNIX usleep. Parameter is number of microseconds we current thread to sleep. Returns 0 on succes, non-zero on failure (UNIX errno or GetLastError() will give detailed description. "); + I_Constructor0(____Thread, + "Constructor. ", + ""); + I_Method0(int, getThreadId, + Properties::NON_VIRTUAL, + __int__getThreadId, + "Get a unique thread id. ", + "This id is monotonically increasing.a unique thread identifier "); + I_Method0(size_t, getProcessId, + Properties::NON_VIRTUAL, + __size_t__getProcessId, + "Get the thread's process id. ", + "This is the pthread_t or pid_t value depending on the threading model being used.thread process id. "); + I_Method0(int, start, + Properties::NON_VIRTUAL, + __int__start, + "Start the thread. ", + "This method will configure the thread, set it's priority, and spawn it.if the stack size specified setStackSize is smaller than the smallest allowable stack size, the threads stack size will be set to the minimum allowed, and may be retrieved via the getStackSize() 0 if normal, -1 if errno set, errno code otherwise. "); + I_Method0(int, startThread, + Properties::NON_VIRTUAL, + __int__startThread, + "", + ""); + I_Method0(int, testCancel, + Properties::NON_VIRTUAL, + __int__testCancel, + "Test the cancel state of the thread. ", + "If the thread has been canceled this method will cause the thread to exit now. This method operates on the calling thread.Returns 0 if normal, -1 if called from a thread other that this. "); + I_Method0(int, cancel, + Properties::VIRTUAL, + __int__cancel, + "Cancel the thread. ", + "Equivalent to SIGKILL.0 if normal, -1 if errno set, errno code otherwise. "); + I_Method1(int, setSchedulePriority, IN, OpenThreads::Thread::ThreadPriority, priority, + Properties::NON_VIRTUAL, + __int__setSchedulePriority__ThreadPriority, + "Set the thread's schedule priority. ", + "This is a complex method. Beware of thread priorities when using a many-to-many kernel entity implemenation (such as IRIX pthreads). If one is not carefull to manage the thread priorities, a priority inversion deadlock can easily occur (Although the OpenThreads::Mutex & OpenThreads::Barrier constructs have been designed with this senario in mind). Unless you have explicit need to set the schedule pirorites for a given task, it is best to leave them alone.some implementations (notably LinuxThreads and IRIX Sprocs) only alow you to decrease thread priorities dynamically. Thus, a lower priority thread will not allow it's priority to be raised on the fly.seting the environment variable OUTPUT_THREADLIB_SCHEDULING_INFO will output scheduling information for each thread to stdout. 0 if normal, -1 if errno set, errno code otherwise. "); + I_Method0(int, getSchedulePriority, + Properties::NON_VIRTUAL, + __int__getSchedulePriority, + "Get the thread's schedule priority (if able). ", + "seting the environment variable OUTPUT_THREADLIB_SCHEDULING_INFO will output scheduling information for each thread to stdout. 0 if normal, -1 if errno set, errno code otherwise. "); + I_Method1(int, setSchedulePolicy, IN, OpenThreads::Thread::ThreadPolicy, policy, + Properties::NON_VIRTUAL, + __int__setSchedulePolicy__ThreadPolicy, + "Set the thread's scheduling policy (if able). ", + "On some implementations (notably IRIX Sprocs & LinuxThreads) The policy may prohibit the use of SCHEDULE_ROUND_ROBIN and SCHEDULE_FIFO policies - due to their real-time nature, and the danger of deadlocking the machine when used as super-user. In such cases, the command is a no-op.seting the environment variable OUTPUT_THREADLIB_SCHEDULING_INFO will output scheduling information for each thread to stdout. 0 if normal, -1 if errno set, errno code otherwise. "); + I_Method0(int, getSchedulePolicy, + Properties::NON_VIRTUAL, + __int__getSchedulePolicy, + "Get the thread's policy (if able). ", + "seting the environment variable OUTPUT_THREADLIB_SCHEDULING_INFO will output scheduling information for each thread to stdout. policy if normal, -1 if errno set, errno code otherwise. "); + I_Method1(int, setStackSize, IN, size_t, size, + Properties::NON_VIRTUAL, + __int__setStackSize__size_t, + "Set the thread's desired stack size (in bytes). ", + "This method is an attribute of the thread and must be called *before* the start() method is invoked.a return code of 13 (EACESS) means that the thread stack size can no longer be changed. 0 if normal, -1 if errno set, errno code otherwise. "); + I_Method0(size_t, getStackSize, + Properties::NON_VIRTUAL, + __size_t__getStackSize, + "Get the thread's desired stack size. ", + "the thread's stack size. 0 indicates that the stack size has either not yet been initialized, or not yet been specified by the application. "); + I_Method0(void, printSchedulingInfo, + Properties::NON_VIRTUAL, + __void__printSchedulingInfo, + "Print the thread's scheduling information to stdout. ", + ""); + I_Method0(int, detach, + Properties::NON_VIRTUAL, + __int__detach, + "Detach the thread from the calling process. ", + "0 if normal, -1 if errno set, errno code otherwise. "); + I_Method0(int, join, + Properties::NON_VIRTUAL, + __int__join, + "Join the calling process with the thread. ", + "0 if normal, -1 if errno set, errno code otherwise. "); + I_Method0(int, setCancelModeDisable, + Properties::NON_VIRTUAL, + __int__setCancelModeDisable, + "Disable thread cancelation altogether. ", + "Thread::cancel() has no effect.0 if normal, -1 if errno set, errno code otherwise. "); + I_Method0(int, setCancelModeAsynchronous, + Properties::NON_VIRTUAL, + __int__setCancelModeAsynchronous, + "Mark the thread to cancel aysncronously on Thread::cancel(). ", + "(May not be available with process-level implementations).0 if normal, -1 if errno set, errno code otherwise. "); + I_Method0(int, setCancelModeDeferred, + Properties::NON_VIRTUAL, + __int__setCancelModeDeferred, + "Mark the thread to cancel at the earliest convenience on Thread::cancel() (This is the default). ", + "0 if normal, -1 if errno set, errno code otherwise. "); + I_Method0(bool, isRunning, + Properties::NON_VIRTUAL, + __bool__isRunning, + "Query the thread's running status. ", + "true if running, false if not. "); + I_Method0(void, run, + Properties::PURE_VIRTUAL, + __void__run, + "Thread's run method. ", + "Must be implemented by derived classes. This is where the action happens. "); + I_Method0(void, cancelCleanup, + Properties::VIRTUAL, + __void__cancelCleanup, + "Thread's cancel cleanup routine, called upon cancel(), after the cancelation has taken place, but before the thread exits completely. ", + "This method should be used to repair parts of the thread's data that may have been damaged by a pre-mature cancel. No-op by default. "); + I_Method0(void *, getImplementation, + Properties::NON_VIRTUAL, + __void_P1__getImplementation, + "", + ""); + I_Method1(int, setProcessorAffinity, IN, unsigned int, cpunum, + Properties::NON_VIRTUAL, + __int__setProcessorAffinity__unsigned_int, + "Thread's processor affinity method. ", + "This binds a thread to a processor whenever possible. This call must be made before start() or startThread() and has no effect after the thread has been running. In the pthreads implementation, this is only implemented on sgi, through a pthread extension. On other pthread platforms this is ignored. Returns 0 on success, implementation's error on failure, or -1 if ignored. "); + I_SimpleProperty(void *, Implementation, + __void_P1__getImplementation, + 0); + I_SimpleProperty(size_t, ProcessId, + __size_t__getProcessId, + 0); + I_SimpleProperty(unsigned int, ProcessorAffinity, + 0, + __int__setProcessorAffinity__unsigned_int); + I_SimpleProperty(OpenThreads::Thread::ThreadPolicy, SchedulePolicy, + 0, + __int__setSchedulePolicy__ThreadPolicy); + I_SimpleProperty(OpenThreads::Thread::ThreadPriority, SchedulePriority, + 0, + __int__setSchedulePriority__ThreadPriority); + I_SimpleProperty(size_t, StackSize, + __size_t__getStackSize, + __int__setStackSize__size_t); + I_SimpleProperty(int, ThreadId, + __int__getThreadId, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/osg/AlphaFunc.cpp b/src/osgWrappers/osg/AlphaFunc.cpp index 9afd19fc7..ee116505a 100644 --- a/src/osgWrappers/osg/AlphaFunc.cpp +++ b/src/osgWrappers/osg/AlphaFunc.cpp @@ -55,7 +55,7 @@ BEGIN_OBJECT_REFLECTOR(osg::AlphaFunc) __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an attribute, with Object* return type. ", @@ -85,7 +85,7 @@ BEGIN_OBJECT_REFLECTOR(osg::AlphaFunc) __int__compare__C5_StateAttribute_R1, "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); - I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, x, Properties::VIRTUAL, __bool__getModeUsage__StateAttribute_ModeUsage_R1, "Return the modes associated with this StateAttribute. ", @@ -115,7 +115,7 @@ BEGIN_OBJECT_REFLECTOR(osg::AlphaFunc) __float__getReferenceValue, "", ""); - I_Method1(void, apply, IN, osg::State &, state, + I_Method1(void, apply, IN, osg::State &, x, Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", diff --git a/src/osgWrappers/osg/AnimationPath.cpp b/src/osgWrappers/osg/AnimationPath.cpp index 9bcf795ac..fb5f87de6 100644 --- a/src/osgWrappers/osg/AnimationPath.cpp +++ b/src/osgWrappers/osg/AnimationPath.cpp @@ -28,8 +28,6 @@ #undef OUT #endif -TYPE_NAME_ALIAS(std::map< double COMMA osg::AnimationPath::ControlPoint >, osg::AnimationPath::TimeControlPointMap) - BEGIN_ENUM_REFLECTOR(osg::AnimationPath::LoopMode) I_DeclaringFile("osg/AnimationPath"); I_EnumLabel(osg::AnimationPath::SWING); @@ -37,6 +35,8 @@ BEGIN_ENUM_REFLECTOR(osg::AnimationPath::LoopMode) I_EnumLabel(osg::AnimationPath::NO_LOOPING); END_REFLECTOR +TYPE_NAME_ALIAS(std::map< double COMMA osg::AnimationPath::ControlPoint >, osg::AnimationPath::TimeControlPointMap) + BEGIN_OBJECT_REFLECTOR(osg::AnimationPath) I_DeclaringFile("osg/AnimationPath"); I_VirtualBaseType(osg::Object); @@ -52,7 +52,7 @@ BEGIN_OBJECT_REFLECTOR(osg::AnimationPath) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", @@ -288,7 +288,7 @@ BEGIN_OBJECT_REFLECTOR(osg::AnimationPathCallback) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", diff --git a/src/osgWrappers/osg/ApplicationUsage.cpp b/src/osgWrappers/osg/ApplicationUsage.cpp index ef81b8a57..acf3c22f2 100644 --- a/src/osgWrappers/osg/ApplicationUsage.cpp +++ b/src/osgWrappers/osg/ApplicationUsage.cpp @@ -20,8 +20,6 @@ #undef OUT #endif -TYPE_NAME_ALIAS(std::map< std::string COMMA std::string >, osg::ApplicationUsage::UsageMap) - BEGIN_ENUM_REFLECTOR(osg::ApplicationUsage::Type) I_DeclaringFile("osg/ApplicationUsage"); I_EnumLabel(osg::ApplicationUsage::NO_HELP); @@ -31,9 +29,15 @@ BEGIN_ENUM_REFLECTOR(osg::ApplicationUsage::Type) I_EnumLabel(osg::ApplicationUsage::HELP_ALL); END_REFLECTOR +TYPE_NAME_ALIAS(std::map< std::string COMMA std::string >, osg::ApplicationUsage::UsageMap) + BEGIN_OBJECT_REFLECTOR(osg::ApplicationUsage) I_DeclaringFile("osg/ApplicationUsage"); I_BaseType(osg::Referenced); + I_StaticMethod0(osg::ApplicationUsage *, instance, + __ApplicationUsage_P1__instance_S, + "", + ""); I_Constructor0(____ApplicationUsage, "", ""); @@ -162,10 +166,6 @@ BEGIN_OBJECT_REFLECTOR(osg::ApplicationUsage) __void__writeEnvironmentSettings__std_ostream_R1, "", ""); - I_StaticMethod0(osg::ApplicationUsage *, instance, - __ApplicationUsage_P1__instance_S, - "", - ""); I_SimpleProperty(const std::string &, ApplicationName, __C5_std_string_R1__getApplicationName, __void__setApplicationName__C5_std_string_R1); diff --git a/src/osgWrappers/osg/ArgumentParser.cpp b/src/osgWrappers/osg/ArgumentParser.cpp index 9f71e3b7f..91fec3a37 100644 --- a/src/osgWrappers/osg/ArgumentParser.cpp +++ b/src/osgWrappers/osg/ArgumentParser.cpp @@ -21,16 +21,32 @@ #undef OUT #endif -TYPE_NAME_ALIAS(std::map< std::string COMMA osg::ArgumentParser::ErrorSeverity >, osg::ArgumentParser::ErrorMessageMap) - BEGIN_ENUM_REFLECTOR(osg::ArgumentParser::ErrorSeverity) I_DeclaringFile("osg/ArgumentParser"); I_EnumLabel(osg::ArgumentParser::BENIGN); I_EnumLabel(osg::ArgumentParser::CRITICAL); END_REFLECTOR +TYPE_NAME_ALIAS(std::map< std::string COMMA osg::ArgumentParser::ErrorSeverity >, osg::ArgumentParser::ErrorMessageMap) + BEGIN_VALUE_REFLECTOR(osg::ArgumentParser) I_DeclaringFile("osg/ArgumentParser"); + I_StaticMethod1(bool, isOption, IN, const char *, str, + __bool__isOption__C5_char_P1_S, + "Return true if the specified string is an option in the form -option or --option. ", + ""); + I_StaticMethod1(bool, isString, IN, const char *, str, + __bool__isString__C5_char_P1_S, + "Return true if string is non-NULL and not an option in the form -option or --option. ", + ""); + I_StaticMethod1(bool, isNumber, IN, const char *, str, + __bool__isNumber__C5_char_P1_S, + "Return true if specified parameter is a number. ", + ""); + I_StaticMethod1(bool, isBool, IN, const char *, str, + __bool__isBool__C5_char_P1_S, + "Return true if specified parameter is a bool. ", + ""); I_Constructor2(IN, int *, argc, IN, char **, argv, ____ArgumentParser__int_P1__char_P1P1, "", @@ -225,22 +241,6 @@ BEGIN_VALUE_REFLECTOR(osg::ArgumentParser) __ApplicationUsage_Type__readHelpType, "This convinience method handles help requests on the command line. ", "Return the type(s) of help requested. The return value of this function is suitable for passing into getApplicationUsage()->write(). If ApplicationUsage::NO_HELP is returned then no help commandline option was found on the command line. "); - I_StaticMethod1(bool, isOption, IN, const char *, str, - __bool__isOption__C5_char_P1_S, - "Return true if the specified string is an option in the form -option or --option. ", - ""); - I_StaticMethod1(bool, isString, IN, const char *, str, - __bool__isString__C5_char_P1_S, - "Return true if string is non-NULL and not an option in the form -option or --option. ", - ""); - I_StaticMethod1(bool, isNumber, IN, const char *, str, - __bool__isNumber__C5_char_P1_S, - "Return true if specified parameter is a number. ", - ""); - I_StaticMethod1(bool, isBool, IN, const char *, str, - __bool__isBool__C5_char_P1_S, - "Return true if specified parameter is a bool. ", - ""); I_SimpleProperty(std::string, ApplicationName, __std_string__getApplicationName, 0); diff --git a/src/osgWrappers/osg/Billboard.cpp b/src/osgWrappers/osg/Billboard.cpp index bf25c9b4a..d24c5f36a 100644 --- a/src/osgWrappers/osg/Billboard.cpp +++ b/src/osgWrappers/osg/Billboard.cpp @@ -27,8 +27,6 @@ #undef OUT #endif -TYPE_NAME_ALIAS(std::vector< osg::Vec3 >, osg::Billboard::PositionList) - BEGIN_ENUM_REFLECTOR(osg::Billboard::Mode) I_DeclaringFile("osg/Billboard"); I_EnumLabel(osg::Billboard::POINT_ROT_EYE); @@ -36,6 +34,8 @@ BEGIN_ENUM_REFLECTOR(osg::Billboard::Mode) I_EnumLabel(osg::Billboard::AXIAL_ROT); END_REFLECTOR +TYPE_NAME_ALIAS(std::vector< osg::Vec3 >, osg::Billboard::PositionList) + BEGIN_OBJECT_REFLECTOR(osg::Billboard) I_DeclaringFile("osg/Billboard"); I_BaseType(osg::Geode); diff --git a/src/osgWrappers/osg/BlendColor.cpp b/src/osgWrappers/osg/BlendColor.cpp index 22aedd9b9..af5eb6918 100644 --- a/src/osgWrappers/osg/BlendColor.cpp +++ b/src/osgWrappers/osg/BlendColor.cpp @@ -45,7 +45,7 @@ BEGIN_OBJECT_REFLECTOR(osg::BlendColor) __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an attribute, with Object* return type. ", @@ -75,7 +75,7 @@ BEGIN_OBJECT_REFLECTOR(osg::BlendColor) __int__compare__C5_StateAttribute_R1, "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); - I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, x, Properties::VIRTUAL, __bool__getModeUsage__StateAttribute_ModeUsage_R1, "Return the modes associated with this StateAttribute. ", @@ -95,7 +95,7 @@ BEGIN_OBJECT_REFLECTOR(osg::BlendColor) __C5_osg_Vec4_R1__getConstantColor, "", ""); - I_Method1(void, apply, IN, osg::State &, state, + I_Method1(void, apply, IN, osg::State &, x, Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", diff --git a/src/osgWrappers/osg/BlendEquation.cpp b/src/osgWrappers/osg/BlendEquation.cpp index 65d207e74..c4500b246 100644 --- a/src/osgWrappers/osg/BlendEquation.cpp +++ b/src/osgWrappers/osg/BlendEquation.cpp @@ -56,7 +56,7 @@ BEGIN_OBJECT_REFLECTOR(osg::BlendEquation) __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an attribute, with Object* return type. ", @@ -86,7 +86,7 @@ BEGIN_OBJECT_REFLECTOR(osg::BlendEquation) __int__compare__C5_StateAttribute_R1, "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); - I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, x, Properties::VIRTUAL, __bool__getModeUsage__StateAttribute_ModeUsage_R1, "Return the modes associated with this StateAttribute. ", @@ -101,7 +101,7 @@ BEGIN_OBJECT_REFLECTOR(osg::BlendEquation) __Equation__getEquation, "", ""); - I_Method1(void, apply, IN, osg::State &, state, + I_Method1(void, apply, IN, osg::State &, x, Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", diff --git a/src/osgWrappers/osg/BlendFunc.cpp b/src/osgWrappers/osg/BlendFunc.cpp index 07d753b19..6512b1e5b 100644 --- a/src/osgWrappers/osg/BlendFunc.cpp +++ b/src/osgWrappers/osg/BlendFunc.cpp @@ -66,7 +66,7 @@ BEGIN_OBJECT_REFLECTOR(osg::BlendFunc) __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an attribute, with Object* return type. ", @@ -96,7 +96,7 @@ BEGIN_OBJECT_REFLECTOR(osg::BlendFunc) __int__compare__C5_StateAttribute_R1, "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); - I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, x, Properties::VIRTUAL, __bool__getModeUsage__StateAttribute_ModeUsage_R1, "Return the modes associated with this StateAttribute. ", @@ -171,7 +171,7 @@ BEGIN_OBJECT_REFLECTOR(osg::BlendFunc) __GLenum__getDestinationAlpha, "", ""); - I_Method1(void, apply, IN, osg::State &, state, + I_Method1(void, apply, IN, osg::State &, x, Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", diff --git a/src/osgWrappers/osg/BoundingBox.cpp b/src/osgWrappers/osg/BoundingBox.cpp index 44440c6d1..8b7be7855 100644 --- a/src/osgWrappers/osg/BoundingBox.cpp +++ b/src/osgWrappers/osg/BoundingBox.cpp @@ -21,9 +21,9 @@ #undef OUT #endif -TYPE_NAME_ALIAS(osg::Vec3f, osg::BoundingBox::vec_type) +TYPE_NAME_ALIAS(osg::Vec3d, osg::BoundingBox::vec_type) -TYPE_NAME_ALIAS(float, osg::BoundingBox::value_type) +TYPE_NAME_ALIAS(double, osg::BoundingBox::value_type) BEGIN_VALUE_REFLECTOR(osg::BoundingBox) I_DeclaringFile("osg/BoundingBox"); diff --git a/src/osgWrappers/osg/BoundingSphere.cpp b/src/osgWrappers/osg/BoundingSphere.cpp index 63e5404ee..698c51070 100644 --- a/src/osgWrappers/osg/BoundingSphere.cpp +++ b/src/osgWrappers/osg/BoundingSphere.cpp @@ -23,9 +23,9 @@ #undef OUT #endif -TYPE_NAME_ALIAS(osg::Vec3f, osg::BoundingSphere::vec_type) +TYPE_NAME_ALIAS(osg::Vec3d, osg::BoundingSphere::vec_type) -TYPE_NAME_ALIAS(float, osg::BoundingSphere::value_type) +TYPE_NAME_ALIAS(double, osg::BoundingSphere::value_type) BEGIN_VALUE_REFLECTOR(osg::BoundingSphere) I_DeclaringFile("osg/BoundingSphere"); diff --git a/src/osgWrappers/osg/BufferObject.cpp b/src/osgWrappers/osg/BufferObject.cpp index e6c6879eb..fe2a0320c 100644 --- a/src/osgWrappers/osg/BufferObject.cpp +++ b/src/osgWrappers/osg/BufferObject.cpp @@ -270,7 +270,7 @@ BEGIN_OBJECT_REFLECTOR(osg::ElementBufferObject) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", @@ -355,7 +355,7 @@ BEGIN_OBJECT_REFLECTOR(osg::PixelBufferObject) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", @@ -429,7 +429,7 @@ BEGIN_OBJECT_REFLECTOR(osg::VertexBufferObject) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", diff --git a/src/osgWrappers/osg/Camera.cpp b/src/osgWrappers/osg/Camera.cpp index ff89298e3..62d10634e 100644 --- a/src/osgWrappers/osg/Camera.cpp +++ b/src/osgWrappers/osg/Camera.cpp @@ -43,8 +43,6 @@ #undef OUT #endif -TYPE_NAME_ALIAS(std::map< osg::Camera::BufferComponent COMMA osg::Camera::Attachment >, osg::Camera::BufferAttachmentMap) - BEGIN_ENUM_REFLECTOR(osg::Camera::TransformOrder) I_DeclaringFile("osg/Camera"); I_EnumLabel(osg::Camera::PRE_MULTIPLY); @@ -97,6 +95,8 @@ BEGIN_ENUM_REFLECTOR(osg::Camera::BufferComponent) I_EnumLabel(osg::Camera::COLOR_BUFFER15); END_REFLECTOR +TYPE_NAME_ALIAS(std::map< osg::Camera::BufferComponent COMMA osg::Camera::Attachment >, osg::Camera::BufferAttachmentMap) + BEGIN_OBJECT_REFLECTOR(osg::Camera) I_DeclaringFile("osg/Camera"); I_BaseType(osg::Transform); @@ -786,7 +786,7 @@ BEGIN_OBJECT_REFLECTOR(osg::Camera::DrawCallback) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", diff --git a/src/osgWrappers/osg/ClampColor.cpp b/src/osgWrappers/osg/ClampColor.cpp index f1ac73340..2cf335581 100644 --- a/src/osgWrappers/osg/ClampColor.cpp +++ b/src/osgWrappers/osg/ClampColor.cpp @@ -43,7 +43,7 @@ BEGIN_OBJECT_REFLECTOR(osg::ClampColor) __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an attribute, with Object* return type. ", @@ -103,7 +103,7 @@ BEGIN_OBJECT_REFLECTOR(osg::ClampColor) __GLenum__getClampReadColor, "", ""); - I_Method1(void, apply, IN, osg::State &, state, + I_Method1(void, apply, IN, osg::State &, x, Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", diff --git a/src/osgWrappers/osg/ClipPlane.cpp b/src/osgWrappers/osg/ClipPlane.cpp index 01d3b11e0..08ef90393 100644 --- a/src/osgWrappers/osg/ClipPlane.cpp +++ b/src/osgWrappers/osg/ClipPlane.cpp @@ -58,7 +58,7 @@ BEGIN_OBJECT_REFLECTOR(osg::ClipPlane) __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an attribute, with Object* return type. ", @@ -93,7 +93,7 @@ BEGIN_OBJECT_REFLECTOR(osg::ClipPlane) __unsigned_int__getMember, "Return the member identifier within the attribute's class type. ", "Used for light number/clip plane number etc. "); - I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, x, Properties::VIRTUAL, __bool__getModeUsage__StateAttribute_ModeUsage_R1, "Return the modes associated with this StateAttribute. ", diff --git a/src/osgWrappers/osg/ClusterCullingCallback.cpp b/src/osgWrappers/osg/ClusterCullingCallback.cpp index e28977897..fbfde8a8d 100644 --- a/src/osgWrappers/osg/ClusterCullingCallback.cpp +++ b/src/osgWrappers/osg/ClusterCullingCallback.cpp @@ -53,7 +53,7 @@ BEGIN_OBJECT_REFLECTOR(osg::ClusterCullingCallback) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", diff --git a/src/osgWrappers/osg/CollectOccludersVisitor.cpp b/src/osgWrappers/osg/CollectOccludersVisitor.cpp index 4fed4fc85..443dfe2d0 100644 --- a/src/osgWrappers/osg/CollectOccludersVisitor.cpp +++ b/src/osgWrappers/osg/CollectOccludersVisitor.cpp @@ -46,17 +46,17 @@ BEGIN_OBJECT_REFLECTOR(osg::CollectOccludersVisitor) __void__reset, "", ""); - I_Method2(float, getDistanceToEyePoint, IN, const osg::Vec3 &, pos, IN, bool, withLODScale, + I_Method2(float, getDistanceToEyePoint, IN, const osg::Vec3 &, x, IN, bool, x, Properties::VIRTUAL, __float__getDistanceToEyePoint__C5_Vec3_R1__bool, "Get the distance from a point to the eye point, distance value in local coordinate system. ", "Note, not all NodeVisitor implement this method, it is mainly cull visitors which will implement. If the getDistanceFromEyePoint(pos) is not implemented then a default value of 0.0 is returned. "); - I_Method2(float, getDistanceToViewPoint, IN, const osg::Vec3 &, pos, IN, bool, withLODScale, + I_Method2(float, getDistanceToViewPoint, IN, const osg::Vec3 &, x, IN, bool, x, Properties::VIRTUAL, __float__getDistanceToViewPoint__C5_Vec3_R1__bool, "Get the distance from a point to the view point, distance value in local coordinate system. ", "Note, not all NodeVisitor implement this method, it is mainly cull visitors which will implement. If the getDistanceToViewPoint(pos) is not implemented then a default value of 0.0 is returned. "); - I_Method2(float, getDistanceFromEyePoint, IN, const osg::Vec3 &, pos, IN, bool, withLODScale, + I_Method2(float, getDistanceFromEyePoint, IN, const osg::Vec3 &, x, IN, bool, x, Properties::VIRTUAL, __float__getDistanceFromEyePoint__C5_Vec3_R1__bool, "Get the distance of a point from the eye point, distance value in the eye coordinate system. ", diff --git a/src/osgWrappers/osg/ColorMask.cpp b/src/osgWrappers/osg/ColorMask.cpp index 3f7408ed2..cb1ed8107 100644 --- a/src/osgWrappers/osg/ColorMask.cpp +++ b/src/osgWrappers/osg/ColorMask.cpp @@ -43,7 +43,7 @@ BEGIN_OBJECT_REFLECTOR(osg::ColorMask) __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an attribute, with Object* return type. ", @@ -118,7 +118,7 @@ BEGIN_OBJECT_REFLECTOR(osg::ColorMask) __bool__getAlphaMask, "", ""); - I_Method1(void, apply, IN, osg::State &, state, + I_Method1(void, apply, IN, osg::State &, x, Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", diff --git a/src/osgWrappers/osg/ColorMatrix.cpp b/src/osgWrappers/osg/ColorMatrix.cpp index 7db36433a..6de8b9d75 100644 --- a/src/osgWrappers/osg/ColorMatrix.cpp +++ b/src/osgWrappers/osg/ColorMatrix.cpp @@ -40,7 +40,7 @@ BEGIN_OBJECT_REFLECTOR(osg::ColorMatrix) __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an attribute, with Object* return type. ", diff --git a/src/osgWrappers/osg/ConvexPlanarOccluder.cpp b/src/osgWrappers/osg/ConvexPlanarOccluder.cpp index 54f408fb0..092f03079 100644 --- a/src/osgWrappers/osg/ConvexPlanarOccluder.cpp +++ b/src/osgWrappers/osg/ConvexPlanarOccluder.cpp @@ -40,7 +40,7 @@ BEGIN_OBJECT_REFLECTOR(osg::ConvexPlanarOccluder) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", diff --git a/src/osgWrappers/osg/CoordinateSystemNode.cpp b/src/osgWrappers/osg/CoordinateSystemNode.cpp index af8c29a06..a15e498b1 100644 --- a/src/osgWrappers/osg/CoordinateSystemNode.cpp +++ b/src/osgWrappers/osg/CoordinateSystemNode.cpp @@ -146,7 +146,7 @@ BEGIN_OBJECT_REFLECTOR(osg::EllipsoidModel) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", diff --git a/src/osgWrappers/osg/CopyOp.cpp b/src/osgWrappers/osg/CopyOp.cpp index 2b0adaebb..cf4c90ec6 100644 --- a/src/osgWrappers/osg/CopyOp.cpp +++ b/src/osgWrappers/osg/CopyOp.cpp @@ -32,8 +32,6 @@ #undef OUT #endif -TYPE_NAME_ALIAS(unsigned int, osg::CopyOp::CopyFlags) - BEGIN_ENUM_REFLECTOR(osg::CopyOp::Options) I_DeclaringFile("osg/CopyOp"); I_EnumLabel(osg::CopyOp::SHALLOW_COPY); @@ -51,6 +49,8 @@ BEGIN_ENUM_REFLECTOR(osg::CopyOp::Options) I_EnumLabel(osg::CopyOp::DEEP_COPY_ALL); END_REFLECTOR +TYPE_NAME_ALIAS(unsigned int, osg::CopyOp::CopyFlags) + BEGIN_VALUE_REFLECTOR(osg::CopyOp) I_DeclaringFile("osg/CopyOp"); I_ConstructorWithDefaults1(IN, osg::CopyOp::CopyFlags, flags, osg::CopyOp::SHALLOW_COPY, diff --git a/src/osgWrappers/osg/CullFace.cpp b/src/osgWrappers/osg/CullFace.cpp index c61f176b5..bef88e5d9 100644 --- a/src/osgWrappers/osg/CullFace.cpp +++ b/src/osgWrappers/osg/CullFace.cpp @@ -48,7 +48,7 @@ BEGIN_OBJECT_REFLECTOR(osg::CullFace) __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an attribute, with Object* return type. ", @@ -78,7 +78,7 @@ BEGIN_OBJECT_REFLECTOR(osg::CullFace) __int__compare__C5_StateAttribute_R1, "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); - I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, x, Properties::VIRTUAL, __bool__getModeUsage__StateAttribute_ModeUsage_R1, "Return the modes associated with this StateAttribute. ", @@ -93,7 +93,7 @@ BEGIN_OBJECT_REFLECTOR(osg::CullFace) __Mode__getMode, "", ""); - I_Method1(void, apply, IN, osg::State &, state, + I_Method1(void, apply, IN, osg::State &, x, Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", diff --git a/src/osgWrappers/osg/CullSettings.cpp b/src/osgWrappers/osg/CullSettings.cpp index 6cffe7bac..b9f70eb77 100644 --- a/src/osgWrappers/osg/CullSettings.cpp +++ b/src/osgWrappers/osg/CullSettings.cpp @@ -24,8 +24,6 @@ #undef OUT #endif -TYPE_NAME_ALIAS(unsigned int, osg::CullSettings::CullingMode) - BEGIN_ENUM_REFLECTOR(osg::CullSettings::VariablesMask) I_DeclaringFile("osg/CullSettings"); I_EnumLabel(osg::CullSettings::COMPUTE_NEAR_FAR_MODE); @@ -75,6 +73,8 @@ BEGIN_ENUM_REFLECTOR(osg::CullSettings::CullingModeValues) I_EnumLabel(osg::CullSettings::ENABLE_ALL_CULLING); END_REFLECTOR +TYPE_NAME_ALIAS(unsigned int, osg::CullSettings::CullingMode) + BEGIN_VALUE_REFLECTOR(osg::CullSettings) I_DeclaringFile("osg/CullSettings"); I_Constructor0(____CullSettings, diff --git a/src/osgWrappers/osg/CullingSet.cpp b/src/osgWrappers/osg/CullingSet.cpp index b67609697..1e55da002 100644 --- a/src/osgWrappers/osg/CullingSet.cpp +++ b/src/osgWrappers/osg/CullingSet.cpp @@ -30,14 +30,6 @@ #undef OUT #endif -TYPE_NAME_ALIAS(std::pair< osg::ref_ptr< osg::StateSet > COMMA osg::Polytope >, osg::CullingSet::StateFrustumPair) - -TYPE_NAME_ALIAS(std::vector< osg::CullingSet::StateFrustumPair >, osg::CullingSet::StateFrustumList) - -TYPE_NAME_ALIAS(std::vector< osg::ShadowVolumeOccluder >, osg::CullingSet::OccluderList) - -TYPE_NAME_ALIAS(unsigned int, osg::CullingSet::Mask) - BEGIN_ENUM_REFLECTOR(osg::CullingSet::MaskValues) I_DeclaringFile("osg/CullingSet"); I_EnumLabel(osg::CullingSet::NO_CULLING); @@ -51,6 +43,14 @@ BEGIN_ENUM_REFLECTOR(osg::CullingSet::MaskValues) I_EnumLabel(osg::CullingSet::ENABLE_ALL_CULLING); END_REFLECTOR +TYPE_NAME_ALIAS(std::pair< osg::ref_ptr< osg::StateSet > COMMA osg::Polytope >, osg::CullingSet::StateFrustumPair) + +TYPE_NAME_ALIAS(std::vector< osg::CullingSet::StateFrustumPair >, osg::CullingSet::StateFrustumList) + +TYPE_NAME_ALIAS(std::vector< osg::ShadowVolumeOccluder >, osg::CullingSet::OccluderList) + +TYPE_NAME_ALIAS(unsigned int, osg::CullingSet::Mask) + BEGIN_OBJECT_REFLECTOR(osg::CullingSet) I_DeclaringFile("osg/CullingSet"); I_BaseType(osg::Referenced); diff --git a/src/osgWrappers/osg/Depth.cpp b/src/osgWrappers/osg/Depth.cpp index 72e0024d1..36c95f665 100644 --- a/src/osgWrappers/osg/Depth.cpp +++ b/src/osgWrappers/osg/Depth.cpp @@ -52,7 +52,7 @@ BEGIN_OBJECT_REFLECTOR(osg::Depth) __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an attribute, with Object* return type. ", @@ -82,7 +82,7 @@ BEGIN_OBJECT_REFLECTOR(osg::Depth) __int__compare__C5_StateAttribute_R1, "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); - I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, x, Properties::VIRTUAL, __bool__getModeUsage__StateAttribute_ModeUsage_R1, "Return the modes associated with this StateAttribute. ", @@ -132,7 +132,7 @@ BEGIN_OBJECT_REFLECTOR(osg::Depth) __bool__getWriteMask, "", ""); - I_Method1(void, apply, IN, osg::State &, state, + I_Method1(void, apply, IN, osg::State &, x, Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", diff --git a/src/osgWrappers/osg/DisplaySettings.cpp b/src/osgWrappers/osg/DisplaySettings.cpp index e89257a92..c1328b6a8 100644 --- a/src/osgWrappers/osg/DisplaySettings.cpp +++ b/src/osgWrappers/osg/DisplaySettings.cpp @@ -57,6 +57,10 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::DisplaySettings) I_DeclaringFile("osg/DisplaySettings"); I_BaseType(osg::Referenced); + I_StaticMethod0(osg::DisplaySettings *, instance, + __DisplaySettings_P1__instance_S, + "Maintain a DisplaySettings singleton for objects to query at runtime. ", + ""); I_Constructor0(____DisplaySettings, "", ""); @@ -350,10 +354,6 @@ BEGIN_OBJECT_REFLECTOR(osg::DisplaySettings) __bool__getSerializeDrawDispatch, "", ""); - I_StaticMethod0(osg::DisplaySettings *, instance, - __DisplaySettings_P1__instance_S, - "Maintain a DisplaySettings singleton for objects to query at runtime. ", - ""); I_SimpleProperty(bool, AccumBuffer, __bool__getAccumBuffer, 0); diff --git a/src/osgWrappers/osg/DrawPixels.cpp b/src/osgWrappers/osg/DrawPixels.cpp index 821196c41..17e16632b 100644 --- a/src/osgWrappers/osg/DrawPixels.cpp +++ b/src/osgWrappers/osg/DrawPixels.cpp @@ -41,7 +41,7 @@ BEGIN_OBJECT_REFLECTOR(osg::DrawPixels) __Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __Object_P1__clone__C5_CopyOp_R1, "Clone an object, with Object* return type. ", diff --git a/src/osgWrappers/osg/Drawable.cpp b/src/osgWrappers/osg/Drawable.cpp index ff197f950..2932e9576 100644 --- a/src/osgWrappers/osg/Drawable.cpp +++ b/src/osgWrappers/osg/Drawable.cpp @@ -38,10 +38,6 @@ #undef OUT #endif -TYPE_NAME_ALIAS(std::vector< osg::Node * >, osg::Drawable::ParentList) - -TYPE_NAME_ALIAS(unsigned int, osg::Drawable::AttributeType) - BEGIN_ENUM_REFLECTOR(osg::Drawable::AttributeTypes) I_DeclaringFile("osg/Drawable"); I_EnumLabel(osg::Drawable::VERTICES); @@ -63,6 +59,10 @@ BEGIN_ENUM_REFLECTOR(osg::Drawable::AttributeTypes) I_EnumLabel(osg::Drawable::TEXTURE_COORDS_7); END_REFLECTOR +TYPE_NAME_ALIAS(std::vector< osg::Node * >, osg::Drawable::ParentList) + +TYPE_NAME_ALIAS(unsigned int, osg::Drawable::AttributeType) + BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Drawable) I_DeclaringFile("osg/Drawable"); I_BaseType(osg::Object); @@ -617,7 +617,7 @@ BEGIN_OBJECT_REFLECTOR(osg::Drawable::ComputeBoundingBoxCallback) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", @@ -741,7 +741,7 @@ BEGIN_OBJECT_REFLECTOR(osg::Drawable::CullCallback) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", @@ -788,7 +788,7 @@ BEGIN_OBJECT_REFLECTOR(osg::Drawable::DrawCallback) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", @@ -830,7 +830,7 @@ BEGIN_OBJECT_REFLECTOR(osg::Drawable::EventCallback) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", @@ -1273,7 +1273,7 @@ BEGIN_OBJECT_REFLECTOR(osg::Drawable::UpdateCallback) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", diff --git a/src/osgWrappers/osg/Fog.cpp b/src/osgWrappers/osg/Fog.cpp index b1237affd..01afb3bb4 100644 --- a/src/osgWrappers/osg/Fog.cpp +++ b/src/osgWrappers/osg/Fog.cpp @@ -53,7 +53,7 @@ BEGIN_OBJECT_REFLECTOR(osg::Fog) __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an attribute, with Object* return type. ", @@ -83,7 +83,7 @@ BEGIN_OBJECT_REFLECTOR(osg::Fog) __int__compare__C5_StateAttribute_R1, "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); - I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, x, Properties::VIRTUAL, __bool__getModeUsage__StateAttribute_ModeUsage_R1, "Return the modes associated with this StateAttribute. ", @@ -148,7 +148,7 @@ BEGIN_OBJECT_REFLECTOR(osg::Fog) __GLint__getFogCoordinateSource, "", ""); - I_Method1(void, apply, IN, osg::State &, state, + I_Method1(void, apply, IN, osg::State &, x, Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", diff --git a/src/osgWrappers/osg/FragmentProgram.cpp b/src/osgWrappers/osg/FragmentProgram.cpp index 385bdbce1..96fd7de38 100644 --- a/src/osgWrappers/osg/FragmentProgram.cpp +++ b/src/osgWrappers/osg/FragmentProgram.cpp @@ -45,7 +45,7 @@ BEGIN_OBJECT_REFLECTOR(osg::FragmentProgram) __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an attribute, with Object* return type. ", @@ -75,7 +75,7 @@ BEGIN_OBJECT_REFLECTOR(osg::FragmentProgram) __int__compare__C5_osg_StateAttribute_R1, "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); - I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, x, Properties::VIRTUAL, __bool__getModeUsage__StateAttribute_ModeUsage_R1, "Return the modes associated with this StateAttribute. ", @@ -145,12 +145,12 @@ BEGIN_OBJECT_REFLECTOR(osg::FragmentProgram) __void__dirtyFragmentProgramObject, "Force a recompile on next apply() of associated OpenGL vertex program objects. ", ""); - I_Method1(void, apply, IN, osg::State &, state, + I_Method1(void, apply, IN, osg::State &, x, Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state. "); - I_Method1(void, compileGLObjects, IN, osg::State &, state, + I_Method1(void, compileGLObjects, IN, osg::State &, x, Properties::VIRTUAL, __void__compileGLObjects__State_R1, "Default to nothing to compile - all state is applied immediately. ", diff --git a/src/osgWrappers/osg/FrameBufferObject.cpp b/src/osgWrappers/osg/FrameBufferObject.cpp index 90f87123d..060f49328 100644 --- a/src/osgWrappers/osg/FrameBufferObject.cpp +++ b/src/osgWrappers/osg/FrameBufferObject.cpp @@ -68,6 +68,10 @@ TYPE_NAME_ALIAS(void , osg::FBOExtensions::TglBlitFramebufferEXT) BEGIN_OBJECT_REFLECTOR(osg::FBOExtensions) I_DeclaringFile("osg/FrameBufferObject"); I_BaseType(osg::Referenced); + I_StaticMethod2(osg::FBOExtensions *, instance, IN, unsigned, contextID, IN, bool, createIfNotInitalized, + __FBOExtensions_P1__instance__unsigned__bool_S, + "", + ""); I_Method0(bool, isSupported, Properties::NON_VIRTUAL, __bool__isSupported, @@ -83,10 +87,6 @@ BEGIN_OBJECT_REFLECTOR(osg::FBOExtensions) __bool__isMultisampleCoverageSupported, "", ""); - I_StaticMethod2(osg::FBOExtensions *, instance, IN, unsigned, contextID, IN, bool, createIfNotInitalized, - __FBOExtensions_P1__instance__unsigned__bool_S, - "", - ""); I_ProtectedConstructor1(IN, unsigned int, contextID, Properties::NON_EXPLICIT, ____FBOExtensions__unsigned_int, @@ -178,12 +178,6 @@ BEGIN_VALUE_REFLECTOR(osg::FrameBufferAttachment) ""); END_REFLECTOR -TYPE_NAME_ALIAS(std::map< osg::Camera::BufferComponent COMMA osg::FrameBufferAttachment >, osg::FrameBufferObject::AttachmentMap) - -TYPE_NAME_ALIAS(std::vector< GLenum >, osg::FrameBufferObject::MultipleRenderingTargets) - -TYPE_NAME_ALIAS(osg::Camera::BufferComponent, osg::FrameBufferObject::BufferComponent) - BEGIN_ENUM_REFLECTOR(osg::FrameBufferObject::BindTarget) I_DeclaringFile("osg/FrameBufferObject"); I_EnumLabel(osg::FrameBufferObject::READ_FRAMEBUFFER); @@ -191,6 +185,12 @@ BEGIN_ENUM_REFLECTOR(osg::FrameBufferObject::BindTarget) I_EnumLabel(osg::FrameBufferObject::READ_DRAW_FRAMEBUFFER); END_REFLECTOR +TYPE_NAME_ALIAS(std::map< osg::Camera::BufferComponent COMMA osg::FrameBufferAttachment >, osg::FrameBufferObject::AttachmentMap) + +TYPE_NAME_ALIAS(std::vector< GLenum >, osg::FrameBufferObject::MultipleRenderingTargets) + +TYPE_NAME_ALIAS(osg::Camera::BufferComponent, osg::FrameBufferObject::BufferComponent) + BEGIN_OBJECT_REFLECTOR(osg::FrameBufferObject) I_DeclaringFile("osg/FrameBufferObject"); I_BaseType(osg::StateAttribute); @@ -206,7 +206,7 @@ BEGIN_OBJECT_REFLECTOR(osg::FrameBufferObject) __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an attribute, with Object* return type. ", @@ -271,7 +271,7 @@ BEGIN_OBJECT_REFLECTOR(osg::FrameBufferObject) __int__compare__C5_StateAttribute_R1, "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); - I_Method1(void, apply, IN, osg::State &, state, + I_Method1(void, apply, IN, osg::State &, x, Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", @@ -345,7 +345,7 @@ BEGIN_OBJECT_REFLECTOR(osg::RenderBuffer) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", diff --git a/src/osgWrappers/osg/FrontFace.cpp b/src/osgWrappers/osg/FrontFace.cpp index ebd484887..434edecee 100644 --- a/src/osgWrappers/osg/FrontFace.cpp +++ b/src/osgWrappers/osg/FrontFace.cpp @@ -47,7 +47,7 @@ BEGIN_OBJECT_REFLECTOR(osg::FrontFace) __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an attribute, with Object* return type. ", @@ -87,7 +87,7 @@ BEGIN_OBJECT_REFLECTOR(osg::FrontFace) __Mode__getMode, "", ""); - I_Method1(void, apply, IN, osg::State &, state, + I_Method1(void, apply, IN, osg::State &, x, Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", diff --git a/src/osgWrappers/osg/Geometry.cpp b/src/osgWrappers/osg/Geometry.cpp index f38ed8540..a093d22ec 100644 --- a/src/osgWrappers/osg/Geometry.cpp +++ b/src/osgWrappers/osg/Geometry.cpp @@ -28,14 +28,6 @@ #undef OUT #endif -TYPE_NAME_ALIAS(std::vector< osg::Geometry::ArrayData >, osg::Geometry::ArrayDataList) - -TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osg::PrimitiveSet > >, osg::Geometry::PrimitiveSetList) - -TYPE_NAME_ALIAS(std::vector< osg::Array * >, osg::Geometry::ArrayList) - -TYPE_NAME_ALIAS(std::vector< osg::DrawElements * >, osg::Geometry::DrawElementsList) - BEGIN_ENUM_REFLECTOR(osg::Geometry::AttributeBinding) I_DeclaringFile("osg/Geometry"); I_EnumLabel(osg::Geometry::BIND_OFF); @@ -45,6 +37,14 @@ BEGIN_ENUM_REFLECTOR(osg::Geometry::AttributeBinding) I_EnumLabel(osg::Geometry::BIND_PER_VERTEX); END_REFLECTOR +TYPE_NAME_ALIAS(std::vector< osg::Geometry::ArrayData >, osg::Geometry::ArrayDataList) + +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osg::PrimitiveSet > >, osg::Geometry::PrimitiveSetList) + +TYPE_NAME_ALIAS(std::vector< osg::Array * >, osg::Geometry::ArrayList) + +TYPE_NAME_ALIAS(std::vector< osg::DrawElements * >, osg::Geometry::DrawElementsList) + BEGIN_OBJECT_REFLECTOR(osg::Geometry) I_DeclaringFile("osg/Geometry"); I_BaseType(osg::Drawable); @@ -60,7 +60,7 @@ BEGIN_OBJECT_REFLECTOR(osg::Geometry) __Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __Object_P1__clone__C5_CopyOp_R1, "Clone an object, with Object* return type. ", @@ -635,6 +635,16 @@ BEGIN_OBJECT_REFLECTOR(osg::Geometry) __void__copyToAndOptimize__Geometry_R1, "", ""); + I_Method0(bool, containsSharedArrays, + Properties::NON_VIRTUAL, + __bool__containsSharedArrays, + "", + ""); + I_Method0(void, duplicateSharedArrays, + Properties::NON_VIRTUAL, + __void__duplicateSharedArrays, + "", + ""); I_Method0(void, computeInternalOptimizedGeometry, Properties::NON_VIRTUAL, __void__computeInternalOptimizedGeometry, diff --git a/src/osgWrappers/osg/GraphicsContext.cpp b/src/osgWrappers/osg/GraphicsContext.cpp index 2e5909c66..4a3c575bb 100644 --- a/src/osgWrappers/osg/GraphicsContext.cpp +++ b/src/osgWrappers/osg/GraphicsContext.cpp @@ -37,6 +37,54 @@ TYPE_NAME_ALIAS(std::list< osg::Camera * >, osg::GraphicsContext::Cameras) BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::GraphicsContext) I_DeclaringFile("osg/GraphicsContext"); I_BaseType(osg::Object); + I_StaticMethod1(void, setWindowingSystemInterface, IN, osg::GraphicsContext::WindowingSystemInterface *, wsInterface, + __void__setWindowingSystemInterface__WindowingSystemInterface_P1_S, + "Set the query the windowing system for screens and create graphics context - this functor should be supplied by the windows toolkit. ", + ""); + I_StaticMethod0(osg::GraphicsContext::WindowingSystemInterface *, getWindowingSystemInterface, + __WindowingSystemInterface_P1__getWindowingSystemInterface_S, + "Get the WindowingSystemInterface. ", + ""); + I_StaticMethod1(osg::GraphicsContext *, createGraphicsContext, IN, osg::GraphicsContext::Traits *, traits, + __GraphicsContext_P1__createGraphicsContext__Traits_P1_S, + "Create a graphics context for a specified set of traits. ", + ""); + I_StaticMethod0(unsigned int, createNewContextID, + __unsigned_int__createNewContextID_S, + "Create a contextID for a new graphics context, this contextID is used to set up the osg::State associate with context. ", + "Automatically increments the usage count of the contextID to 1. "); + I_StaticMethod0(unsigned int, getMaxContextID, + __unsigned_int__getMaxContextID_S, + "Get the current max ContextID. ", + ""); + I_StaticMethod1(void, incrementContextIDUsageCount, IN, unsigned int, contextID, + __void__incrementContextIDUsageCount__unsigned_int_S, + "Increment the usage count associate with a contextID. ", + "The usage count specifies how many graphics contexts a specific contextID is shared between. "); + I_StaticMethod1(void, decrementContextIDUsageCount, IN, unsigned int, contextID, + __void__decrementContextIDUsageCount__unsigned_int_S, + "Decrement the usage count associate with a contextID. ", + "Once the contextID goes to 0 the contextID is then free to be reused. "); + I_StaticMethod0(osg::GraphicsContext::GraphicsContexts, getAllRegisteredGraphicsContexts, + __GraphicsContexts__getAllRegisteredGraphicsContexts_S, + "Get all the registered graphics contexts. ", + ""); + I_StaticMethod1(osg::GraphicsContext::GraphicsContexts, getRegisteredGraphicsContexts, IN, unsigned int, contextID, + __GraphicsContexts__getRegisteredGraphicsContexts__unsigned_int_S, + "Get all the registered graphics contexts associated with a specific contextID. ", + ""); + I_StaticMethod2(void, setCompileContext, IN, unsigned int, contextID, IN, osg::GraphicsContext *, gc, + __void__setCompileContext__unsigned_int__GraphicsContext_P1_S, + "Get the GraphicsContext for doing background compilation for GraphicsContexts associated with specified contextID. ", + ""); + I_StaticMethod1(osg::GraphicsContext *, getOrCreateCompileContext, IN, unsigned int, contextID, + __GraphicsContext_P1__getOrCreateCompileContext__unsigned_int_S, + "Get existing or create a new GraphicsContext to do background compilation for GraphicsContexts associated with specified contextID. ", + ""); + I_StaticMethod1(osg::GraphicsContext *, getCompileContext, IN, unsigned int, contextID, + __GraphicsContext_P1__getCompileContext__unsigned_int_S, + "Get the GraphicsContext for doing background compilation for GraphicsContexts associated with specified contextID. ", + ""); I_Method1(void, add, IN, osg::Operation *, operation, Properties::NON_VIRTUAL, __void__add__Operation_P1, @@ -287,54 +335,6 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::GraphicsContext) __C5_char_P1__className, "return the name of the object's class type. ", "Must be defined by derived classes. "); - I_StaticMethod1(void, setWindowingSystemInterface, IN, osg::GraphicsContext::WindowingSystemInterface *, wsInterface, - __void__setWindowingSystemInterface__WindowingSystemInterface_P1_S, - "Set the query the windowing system for screens and create graphics context - this functor should be supplied by the windows toolkit. ", - ""); - I_StaticMethod0(osg::GraphicsContext::WindowingSystemInterface *, getWindowingSystemInterface, - __WindowingSystemInterface_P1__getWindowingSystemInterface_S, - "Get the WindowingSystemInterface. ", - ""); - I_StaticMethod1(osg::GraphicsContext *, createGraphicsContext, IN, osg::GraphicsContext::Traits *, traits, - __GraphicsContext_P1__createGraphicsContext__Traits_P1_S, - "Create a graphics context for a specified set of traits. ", - ""); - I_StaticMethod0(unsigned int, createNewContextID, - __unsigned_int__createNewContextID_S, - "Create a contextID for a new graphics context, this contextID is used to set up the osg::State associate with context. ", - "Automatically increments the usage count of the contextID to 1. "); - I_StaticMethod0(unsigned int, getMaxContextID, - __unsigned_int__getMaxContextID_S, - "Get the current max ContextID. ", - ""); - I_StaticMethod1(void, incrementContextIDUsageCount, IN, unsigned int, contextID, - __void__incrementContextIDUsageCount__unsigned_int_S, - "Increment the usage count associate with a contextID. ", - "The usage count specifies how many graphics contexts a specific contextID is shared between. "); - I_StaticMethod1(void, decrementContextIDUsageCount, IN, unsigned int, contextID, - __void__decrementContextIDUsageCount__unsigned_int_S, - "Decrement the usage count associate with a contextID. ", - "Once the contextID goes to 0 the contextID is then free to be reused. "); - I_StaticMethod0(osg::GraphicsContext::GraphicsContexts, getAllRegisteredGraphicsContexts, - __GraphicsContexts__getAllRegisteredGraphicsContexts_S, - "Get all the registered graphics contexts. ", - ""); - I_StaticMethod1(osg::GraphicsContext::GraphicsContexts, getRegisteredGraphicsContexts, IN, unsigned int, contextID, - __GraphicsContexts__getRegisteredGraphicsContexts__unsigned_int_S, - "Get all the registered graphics contexts associated with a specific contextID. ", - ""); - I_StaticMethod2(void, setCompileContext, IN, unsigned int, contextID, IN, osg::GraphicsContext *, gc, - __void__setCompileContext__unsigned_int__GraphicsContext_P1_S, - "Get the GraphicsContext for doing background compilation for GraphicsContexts associated with specified contextID. ", - ""); - I_StaticMethod1(osg::GraphicsContext *, getOrCreateCompileContext, IN, unsigned int, contextID, - __GraphicsContext_P1__getOrCreateCompileContext__unsigned_int_S, - "Get existing or create a new GraphicsContext to do background compilation for GraphicsContexts associated with specified contextID. ", - ""); - I_StaticMethod1(osg::GraphicsContext *, getCompileContext, IN, unsigned int, contextID, - __GraphicsContext_P1__getCompileContext__unsigned_int_S, - "Get the GraphicsContext for doing background compilation for GraphicsContexts associated with specified contextID. ", - ""); I_ProtectedConstructor0(____GraphicsContext, "", ""); diff --git a/src/osgWrappers/osg/Group.cpp b/src/osgWrappers/osg/Group.cpp index 6661c33c3..286f5da9b 100644 --- a/src/osgWrappers/osg/Group.cpp +++ b/src/osgWrappers/osg/Group.cpp @@ -76,7 +76,7 @@ BEGIN_OBJECT_REFLECTOR(osg::Group) __C5_Group_P1__asGroup, "convert 'const this' into a const Group pointer if Node is a Group, otherwise return 0. ", "Equivalent to dynamic_cast(this). "); - I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + I_Method1(void, traverse, IN, osg::NodeVisitor &, x, Properties::VIRTUAL, __void__traverse__NodeVisitor_R1, "Traverse downwards : calls children's accept method with NodeVisitor. ", diff --git a/src/osgWrappers/osg/Hint.cpp b/src/osgWrappers/osg/Hint.cpp index 9733733a7..c006a26a3 100644 --- a/src/osgWrappers/osg/Hint.cpp +++ b/src/osgWrappers/osg/Hint.cpp @@ -1,119 +1,119 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include -#include -#include -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_OBJECT_REFLECTOR(osg::Hint) - I_DeclaringFile("osg/Hint"); - I_BaseType(osg::StateAttribute); - I_Constructor0(____Hint, - "", - ""); - I_Constructor2(IN, GLenum, target, IN, GLenum, mode, - ____Hint__GLenum__GLenum, - "", - ""); - I_ConstructorWithDefaults2(IN, const osg::Hint &, hint, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, - ____Hint__C5_Hint_R1__C5_CopyOp_R1, - "Copy constructor using CopyOp to manage deep vs shallow copy. ", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __osg_Object_P1__cloneType, - "Clone the type of an attribute, with Object* return type. ", - "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::VIRTUAL, - __osg_Object_P1__clone__C5_osg_CopyOp_R1, - "Clone an attribute, with Object* return type. ", - "Must be defined by derived classes. "); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "Return true if this and obj are of the same kind of object. ", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "Return the name of the attribute's library. ", - ""); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "Return the name of the attribute's class type. ", - ""); - I_Method0(osg::StateAttribute::Type, getType, - Properties::VIRTUAL, - __Type__getType, - "Return the Type identifier of the attribute's class type. ", - ""); - I_Method1(int, compare, IN, const osg::StateAttribute &, sa, - Properties::VIRTUAL, - __int__compare__C5_StateAttribute_R1, - "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", - ""); - I_Method0(unsigned int, getMember, - Properties::VIRTUAL, - __unsigned_int__getMember, - "Return the member identifier within the attribute's class type. ", - "Used for light number/clip plane number etc. "); - I_Method1(void, setTarget, IN, GLenum, target, - Properties::NON_VIRTUAL, - __void__setTarget__GLenum, - "", - ""); - I_Method0(GLenum, getTarget, - Properties::NON_VIRTUAL, - __GLenum__getTarget, - "", - ""); - I_Method1(void, setMode, IN, GLenum, mode, - Properties::NON_VIRTUAL, - __void__setMode__GLenum, - "", - ""); - I_Method0(GLenum, getMode, - Properties::NON_VIRTUAL, - __GLenum__getMode, - "", - ""); - I_Method1(void, apply, IN, osg::State &, state, - Properties::VIRTUAL, - __void__apply__State_R1, - "apply the OpenGL state attributes. ", - "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state. "); - I_SimpleProperty(unsigned int, Member, - __unsigned_int__getMember, - 0); - I_SimpleProperty(GLenum, Mode, - __GLenum__getMode, - __void__setMode__GLenum); - I_SimpleProperty(GLenum, Target, - __GLenum__getTarget, - __void__setTarget__GLenum); - I_SimpleProperty(osg::StateAttribute::Type, Type, - __Type__getType, - 0); -END_REFLECTOR - +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osg::Hint) + I_DeclaringFile("osg/Hint"); + I_BaseType(osg::StateAttribute); + I_Constructor0(____Hint, + "", + ""); + I_Constructor2(IN, GLenum, target, IN, GLenum, mode, + ____Hint__GLenum__GLenum, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Hint &, hint, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Hint__C5_Hint_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "Return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "Return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "Return the name of the attribute's class type. ", + ""); + I_Method0(osg::StateAttribute::Type, getType, + Properties::VIRTUAL, + __Type__getType, + "Return the Type identifier of the attribute's class type. ", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __int__compare__C5_StateAttribute_R1, + "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method0(unsigned int, getMember, + Properties::VIRTUAL, + __unsigned_int__getMember, + "Return the member identifier within the attribute's class type. ", + "Used for light number/clip plane number etc. "); + I_Method1(void, setTarget, IN, GLenum, target, + Properties::NON_VIRTUAL, + __void__setTarget__GLenum, + "", + ""); + I_Method0(GLenum, getTarget, + Properties::NON_VIRTUAL, + __GLenum__getTarget, + "", + ""); + I_Method1(void, setMode, IN, GLenum, mode, + Properties::NON_VIRTUAL, + __void__setMode__GLenum, + "", + ""); + I_Method0(GLenum, getMode, + Properties::NON_VIRTUAL, + __GLenum__getMode, + "", + ""); + I_Method1(void, apply, IN, osg::State &, x, + Properties::VIRTUAL, + __void__apply__State_R1, + "apply the OpenGL state attributes. ", + "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state. "); + I_SimpleProperty(unsigned int, Member, + __unsigned_int__getMember, + 0); + I_SimpleProperty(GLenum, Mode, + __GLenum__getMode, + __void__setMode__GLenum); + I_SimpleProperty(GLenum, Target, + __GLenum__getTarget, + __void__setTarget__GLenum); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/osg/Image.cpp b/src/osgWrappers/osg/Image.cpp index e4ae38d52..3fb56e3b4 100644 --- a/src/osgWrappers/osg/Image.cpp +++ b/src/osgWrappers/osg/Image.cpp @@ -27,8 +27,6 @@ #undef OUT #endif -TYPE_NAME_ALIAS(std::vector< unsigned int >, osg::Image::MipmapDataType) - BEGIN_ENUM_REFLECTOR(osg::Image::AllocationMode) I_DeclaringFile("osg/Image"); I_EnumLabel(osg::Image::NO_DELETE); @@ -42,6 +40,8 @@ BEGIN_ENUM_REFLECTOR(osg::Image::Origin) I_EnumLabel(osg::Image::TOP_LEFT); END_REFLECTOR +TYPE_NAME_ALIAS(std::vector< unsigned int >, osg::Image::MipmapDataType) + BEGIN_OBJECT_REFLECTOR(osg::Image) I_DeclaringFile("osg/Image"); I_BaseType(osg::Object); @@ -57,7 +57,7 @@ BEGIN_OBJECT_REFLECTOR(osg::Image) __Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __Object_P1__clone__C5_CopyOp_R1, "Clone an object, with Object* return type. ", diff --git a/src/osgWrappers/osg/ImageSequence.cpp b/src/osgWrappers/osg/ImageSequence.cpp index d25cc614d..bbae9663d 100644 --- a/src/osgWrappers/osg/ImageSequence.cpp +++ b/src/osgWrappers/osg/ImageSequence.cpp @@ -1,237 +1,237 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -TYPE_NAME_ALIAS(std::list< osg::ref_ptr< osg::Image > >, osg::ImageSequence::Images) - -TYPE_NAME_ALIAS(std::list< std::string >, osg::ImageSequence::FileNames) - -BEGIN_ENUM_REFLECTOR(osg::ImageSequence::Mode) - I_DeclaringFile("osg/ImageSequence"); - I_EnumLabel(osg::ImageSequence::PRE_LOAD_ALL_IMAGES); - I_EnumLabel(osg::ImageSequence::PAGE_AND_RETAIN_IMAGES); - I_EnumLabel(osg::ImageSequence::PAGE_AND_DISCARD_USED_IMAGES); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(osg::ImageSequence) - I_DeclaringFile("osg/ImageSequence"); - I_BaseType(osg::ImageStream); - I_Constructor0(____ImageSequence, - "", - ""); - I_ConstructorWithDefaults2(IN, const osg::ImageSequence &, ImageSequence, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, - ____ImageSequence__C5_ImageSequence_R1__C5_CopyOp_R1, - "Copy constructor using CopyOp to manage deep vs shallow copy. ", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __Object_P1__cloneType, - "Clone the type of an object, with Object* return type. ", - "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::VIRTUAL, - __Object_P1__clone__C5_CopyOp_R1, - "Clone an object, with Object* return type. ", - "Must be defined by derived classes. "); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_Object_P1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "return the name of the object's library. ", - "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "return the name of the object's class type. ", - "Must be defined by derived classes. "); - I_Method1(int, compare, IN, const osg::Image &, rhs, - Properties::VIRTUAL, - __int__compare__C5_Image_R1, - "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", - ""); - I_Method1(void, setReferenceTime, IN, double, t, - Properties::VIRTUAL, - __void__setReferenceTime__double, - "", - ""); - I_Method0(double, getReferenceTime, - Properties::VIRTUAL, - __double__getReferenceTime, - "", - ""); - I_Method1(void, setTimeMultiplier, IN, double, tm, - Properties::VIRTUAL, - __void__setTimeMultiplier__double, - "", - ""); - I_Method0(double, getTimeMultiplier, - Properties::VIRTUAL, - __double__getTimeMultiplier, - "", - ""); - I_Method1(void, setMode, IN, osg::ImageSequence::Mode, mode, - Properties::NON_VIRTUAL, - __void__setMode__Mode, - "", - ""); - I_Method0(osg::ImageSequence::Mode, getMode, - Properties::NON_VIRTUAL, - __Mode__getMode, - "", - ""); - I_Method1(void, setDuration, IN, double, duration, - Properties::NON_VIRTUAL, - __void__setDuration__double, - "", - ""); - I_Method0(double, getDuration, - Properties::NON_VIRTUAL, - __double__getDuration, - "", - ""); - I_Method1(void, addImageFile, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __void__addImageFile__C5_std_string_R1, - "", - ""); - I_Method0(osg::ImageSequence::FileNames &, getFileNames, - Properties::NON_VIRTUAL, - __FileNames_R1__getFileNames, - "", - ""); - I_Method0(const osg::ImageSequence::FileNames &, getFileNames, - Properties::NON_VIRTUAL, - __C5_FileNames_R1__getFileNames, - "", - ""); - I_Method1(void, addImage, IN, osg::Image *, image, - Properties::NON_VIRTUAL, - __void__addImage__osg_Image_P1, - "", - ""); - I_Method0(osg::ImageSequence::Images &, getImages, - Properties::NON_VIRTUAL, - __Images_R1__getImages, - "", - ""); - I_Method0(const osg::ImageSequence::Images &, getImages, - Properties::NON_VIRTUAL, - __C5_Images_R1__getImages, - "", - ""); - I_Method1(void, update, IN, osg::NodeVisitor *, nv, - Properties::VIRTUAL, - __void__update__NodeVisitor_P1, - "", - ""); - I_ProtectedMethod1(void, setImageToChild, IN, const osg::Image *, image, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __void__setImageToChild__C5_osg_Image_P1, - "", - ""); - I_ProtectedMethod0(void, computeTimePerImage, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __void__computeTimePerImage, - "", - ""); - I_SimpleProperty(double, Duration, - __double__getDuration, - __void__setDuration__double); - I_SimpleProperty(osg::ImageSequence::FileNames &, FileNames, - __FileNames_R1__getFileNames, - 0); - I_SimpleProperty(osg::ImageSequence::Images &, Images, - __Images_R1__getImages, - 0); - I_SimpleProperty(osg::ImageSequence::Mode, Mode, - __Mode__getMode, - __void__setMode__Mode); - I_SimpleProperty(double, ReferenceTime, - __double__getReferenceTime, - __void__setReferenceTime__double); - I_SimpleProperty(double, TimeMultiplier, - __double__getTimeMultiplier, - __void__setTimeMultiplier__double); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(osg::ImageSequence::UpdateCallback) - I_DeclaringFile("osg/ImageSequence"); - I_BaseType(osg::StateAttribute::Callback); - I_Constructor0(____UpdateCallback, - "", - ""); -END_REFLECTOR - -BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::Image >) - I_DeclaringFile("osg/ref_ptr"); - I_Constructor0(____ref_ptr, - "", - ""); - I_Constructor1(IN, osg::Image *, ptr, - Properties::NON_EXPLICIT, - ____ref_ptr__T_P1, - "", - ""); - I_Constructor1(IN, const osg::ref_ptr< osg::Image > &, rp, - Properties::NON_EXPLICIT, - ____ref_ptr__C5_ref_ptr_R1, - "", - ""); - I_Method0(osg::Image *, get, - Properties::NON_VIRTUAL, - __T_P1__get, - "", - ""); - I_Method0(bool, valid, - Properties::NON_VIRTUAL, - __bool__valid, - "", - ""); - I_Method0(osg::Image *, release, - Properties::NON_VIRTUAL, - __T_P1__release, - "", - ""); - I_Method1(void, swap, IN, osg::ref_ptr< osg::Image > &, rp, - Properties::NON_VIRTUAL, - __void__swap__ref_ptr_R1, - "", - ""); - I_SimpleProperty(osg::Image *, , - __T_P1__get, - 0); -END_REFLECTOR - -STD_LIST_REFLECTOR(std::list< osg::ref_ptr< osg::Image > >) - -STD_LIST_REFLECTOR(std::list< std::string >) - +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osg::ImageSequence::Mode) + I_DeclaringFile("osg/ImageSequence"); + I_EnumLabel(osg::ImageSequence::PRE_LOAD_ALL_IMAGES); + I_EnumLabel(osg::ImageSequence::PAGE_AND_RETAIN_IMAGES); + I_EnumLabel(osg::ImageSequence::PAGE_AND_DISCARD_USED_IMAGES); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::list< osg::ref_ptr< osg::Image > >, osg::ImageSequence::Images) + +TYPE_NAME_ALIAS(std::list< std::string >, osg::ImageSequence::FileNames) + +BEGIN_OBJECT_REFLECTOR(osg::ImageSequence) + I_DeclaringFile("osg/ImageSequence"); + I_BaseType(osg::ImageStream); + I_Constructor0(____ImageSequence, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::ImageSequence &, ImageSequence, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ImageSequence__C5_ImageSequence_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, + Properties::VIRTUAL, + __Object_P1__clone__C5_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(int, compare, IN, const osg::Image &, rhs, + Properties::VIRTUAL, + __int__compare__C5_Image_R1, + "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method1(void, setReferenceTime, IN, double, t, + Properties::VIRTUAL, + __void__setReferenceTime__double, + "", + ""); + I_Method0(double, getReferenceTime, + Properties::VIRTUAL, + __double__getReferenceTime, + "", + ""); + I_Method1(void, setTimeMultiplier, IN, double, tm, + Properties::VIRTUAL, + __void__setTimeMultiplier__double, + "", + ""); + I_Method0(double, getTimeMultiplier, + Properties::VIRTUAL, + __double__getTimeMultiplier, + "", + ""); + I_Method1(void, setMode, IN, osg::ImageSequence::Mode, mode, + Properties::NON_VIRTUAL, + __void__setMode__Mode, + "", + ""); + I_Method0(osg::ImageSequence::Mode, getMode, + Properties::NON_VIRTUAL, + __Mode__getMode, + "", + ""); + I_Method1(void, setDuration, IN, double, duration, + Properties::NON_VIRTUAL, + __void__setDuration__double, + "", + ""); + I_Method0(double, getDuration, + Properties::NON_VIRTUAL, + __double__getDuration, + "", + ""); + I_Method1(void, addImageFile, IN, const std::string &, fileName, + Properties::NON_VIRTUAL, + __void__addImageFile__C5_std_string_R1, + "", + ""); + I_Method0(osg::ImageSequence::FileNames &, getFileNames, + Properties::NON_VIRTUAL, + __FileNames_R1__getFileNames, + "", + ""); + I_Method0(const osg::ImageSequence::FileNames &, getFileNames, + Properties::NON_VIRTUAL, + __C5_FileNames_R1__getFileNames, + "", + ""); + I_Method1(void, addImage, IN, osg::Image *, image, + Properties::NON_VIRTUAL, + __void__addImage__osg_Image_P1, + "", + ""); + I_Method0(osg::ImageSequence::Images &, getImages, + Properties::NON_VIRTUAL, + __Images_R1__getImages, + "", + ""); + I_Method0(const osg::ImageSequence::Images &, getImages, + Properties::NON_VIRTUAL, + __C5_Images_R1__getImages, + "", + ""); + I_Method1(void, update, IN, osg::NodeVisitor *, nv, + Properties::VIRTUAL, + __void__update__NodeVisitor_P1, + "", + ""); + I_ProtectedMethod1(void, setImageToChild, IN, const osg::Image *, image, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__setImageToChild__C5_osg_Image_P1, + "", + ""); + I_ProtectedMethod0(void, computeTimePerImage, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__computeTimePerImage, + "", + ""); + I_SimpleProperty(double, Duration, + __double__getDuration, + __void__setDuration__double); + I_SimpleProperty(osg::ImageSequence::FileNames &, FileNames, + __FileNames_R1__getFileNames, + 0); + I_SimpleProperty(osg::ImageSequence::Images &, Images, + __Images_R1__getImages, + 0); + I_SimpleProperty(osg::ImageSequence::Mode, Mode, + __Mode__getMode, + __void__setMode__Mode); + I_SimpleProperty(double, ReferenceTime, + __double__getReferenceTime, + __void__setReferenceTime__double); + I_SimpleProperty(double, TimeMultiplier, + __double__getTimeMultiplier, + __void__setTimeMultiplier__double); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::ImageSequence::UpdateCallback) + I_DeclaringFile("osg/ImageSequence"); + I_BaseType(osg::StateAttribute::Callback); + I_Constructor0(____UpdateCallback, + "", + ""); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::Image >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osg::Image *, ptr, + Properties::NON_EXPLICIT, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osg::Image > &, rp, + Properties::NON_EXPLICIT, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osg::Image *, get, + Properties::NON_VIRTUAL, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(osg::Image *, release, + Properties::NON_VIRTUAL, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osg::Image > &, rp, + Properties::NON_VIRTUAL, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osg::Image *, , + __T_P1__get, + 0); +END_REFLECTOR + +STD_LIST_REFLECTOR(std::list< osg::ref_ptr< osg::Image > >) + +STD_LIST_REFLECTOR(std::list< std::string >) + diff --git a/src/osgWrappers/osg/ImageStream.cpp b/src/osgWrappers/osg/ImageStream.cpp index b40eeb6ef..177e0d624 100644 --- a/src/osgWrappers/osg/ImageStream.cpp +++ b/src/osgWrappers/osg/ImageStream.cpp @@ -52,7 +52,7 @@ BEGIN_OBJECT_REFLECTOR(osg::ImageStream) __Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __Object_P1__clone__C5_CopyOp_R1, "Clone an object, with Object* return type. ", diff --git a/src/osgWrappers/osg/KdTree.cpp b/src/osgWrappers/osg/KdTree.cpp index 641db02d0..adb679466 100644 --- a/src/osgWrappers/osg/KdTree.cpp +++ b/src/osgWrappers/osg/KdTree.cpp @@ -1,255 +1,255 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include - -// 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::KdTree::LineSegmentIntersection >, osg::KdTree::LineSegmentIntersections) - -TYPE_NAME_ALIAS(int, osg::KdTree::value_type) - -TYPE_NAME_ALIAS(std::vector< osg::KdTree::KdNode >, osg::KdTree::KdNodeList) - -TYPE_NAME_ALIAS(std::vector< osg::KdTree::Triangle >, osg::KdTree::TriangleList) - -BEGIN_OBJECT_REFLECTOR(osg::KdTree) - I_DeclaringFile("osg/KdTree"); - I_BaseType(osg::Shape); - I_Constructor0(____KdTree, - "", - ""); - I_ConstructorWithDefaults2(IN, const osg::KdTree &, rhs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, - ____KdTree__C5_KdTree_R1__C5_osg_CopyOp_R1, - "", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __osg_Object_P1__cloneType, - "Clone the type of an attribute, with Object* return type. ", - "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::VIRTUAL, - __osg_Object_P1__clone__C5_osg_CopyOp_R1, - "Clone an attribute, with Object* return type. ", - "Must be defined by derived classes. "); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "return true if this and obj are of the same kind of object. ", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "return the name of the attribute's library. ", - ""); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "return the name of the attribute's class type. ", - ""); - I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, - Properties::VIRTUAL, - __void__accept__osg_ShapeVisitor_R1, - "accept a non const shape visitor which can be used on non const shape objects. ", - "Must be defined by derived classes. "); - I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, - Properties::VIRTUAL, - __void__accept__osg_ConstShapeVisitor_R1, - "accept a const shape visitor which can be used on const shape objects. ", - "Must be defined by derived classes. "); - I_Method2(bool, build, IN, osg::KdTree::BuildOptions &, buildOptions, IN, osg::Geometry *, geometry, - Properties::VIRTUAL, - __bool__build__BuildOptions_R1__osg_Geometry_P1, - "Build the kdtree from the specified source geometry object. ", - "retun true on success. "); - I_Method3(bool, intersect, IN, const osg::Vec3 &, start, IN, const osg::Vec3 &, end, IN, osg::KdTree::LineSegmentIntersections &, intersections, - Properties::VIRTUAL, - __bool__intersect__C5_osg_Vec3_R1__C5_osg_Vec3_R1__LineSegmentIntersections_R1, - "compute the intersection of a line segment and the kdtree, return true if an intersection has been found. ", - ""); - I_Method1(int, addNode, IN, const osg::KdTree::KdNode &, node, - Properties::NON_VIRTUAL, - __int__addNode__C5_KdNode_R1, - "", - ""); - I_Method1(osg::KdTree::KdNode &, getNode, IN, int, nodeNum, - Properties::NON_VIRTUAL, - __KdNode_R1__getNode__int, - "", - ""); - I_Method1(const osg::KdTree::KdNode &, getNode, IN, int, nodeNum, - Properties::NON_VIRTUAL, - __C5_KdNode_R1__getNode__int, - "", - ""); - I_Method0(osg::KdTree::KdNodeList &, getNodes, - Properties::NON_VIRTUAL, - __KdNodeList_R1__getNodes, - "", - ""); - I_Method0(const osg::KdTree::KdNodeList &, getNodes, - Properties::NON_VIRTUAL, - __C5_KdNodeList_R1__getNodes, - "", - ""); - I_Method1(void, setVertices, IN, osg::Vec3Array *, vertices, - Properties::NON_VIRTUAL, - __void__setVertices__osg_Vec3Array_P1, - "", - ""); - I_Method0(const osg::Vec3Array *, getVertices, - Properties::NON_VIRTUAL, - __C5_osg_Vec3Array_P1__getVertices, - "", - ""); - I_Method1(unsigned int, addTriangle, IN, const osg::KdTree::Triangle &, tri, - Properties::NON_VIRTUAL, - __unsigned_int__addTriangle__C5_Triangle_R1, - "", - ""); - I_Method1(osg::KdTree::Triangle &, getTriangle, IN, unsigned int, i, - Properties::NON_VIRTUAL, - __Triangle_R1__getTriangle__unsigned_int, - "", - ""); - I_Method1(const osg::KdTree::Triangle &, getTriangle, IN, unsigned int, i, - Properties::NON_VIRTUAL, - __C5_Triangle_R1__getTriangle__unsigned_int, - "", - ""); - I_Method0(osg::KdTree::TriangleList &, getTriangles, - Properties::NON_VIRTUAL, - __TriangleList_R1__getTriangles, - "", - ""); - I_Method0(const osg::KdTree::TriangleList &, getTriangles, - Properties::NON_VIRTUAL, - __C5_TriangleList_R1__getTriangles, - "", - ""); - I_SimpleProperty(osg::KdTree::KdNodeList &, Nodes, - __KdNodeList_R1__getNodes, - 0); - I_SimpleProperty(osg::KdTree::TriangleList &, Triangles, - __TriangleList_R1__getTriangles, - 0); - I_SimpleProperty(osg::Vec3Array *, Vertices, - 0, - __void__setVertices__osg_Vec3Array_P1); -END_REFLECTOR - -BEGIN_VALUE_REFLECTOR(osg::KdTree::BuildOptions) - I_DeclaringFile("osg/KdTree"); - I_Constructor0(____BuildOptions, - "", - ""); - I_PublicMemberProperty(unsigned int, _numVerticesProcessed); - I_PublicMemberProperty(unsigned int, _targetNumTrianglesPerLeaf); - I_PublicMemberProperty(unsigned int, _maxNumLevels); -END_REFLECTOR - -BEGIN_VALUE_REFLECTOR(osg::KdTree::KdNode) - I_DeclaringFile("osg/KdTree"); - I_Constructor0(____KdNode, - "", - ""); - I_Constructor2(IN, osg::KdTree::value_type, f, IN, osg::KdTree::value_type, s, - ____KdNode__value_type__value_type, - "", - ""); - I_PublicMemberProperty(osg::BoundingBox, bb); - I_PublicMemberProperty(osg::KdTree::value_type, first); - I_PublicMemberProperty(osg::KdTree::value_type, second); -END_REFLECTOR - -TYPE_NAME_ALIAS(std::vector< unsigned int >, osg::KdTree::LineSegmentIntersection::IndexList) - -TYPE_NAME_ALIAS(std::vector< double >, osg::KdTree::LineSegmentIntersection::RatioList) - -BEGIN_VALUE_REFLECTOR(osg::KdTree::LineSegmentIntersection) - I_DeclaringFile("osg/KdTree"); - I_Constructor0(____LineSegmentIntersection, - "", - ""); - I_PublicMemberProperty(double, ratio); - I_PublicMemberProperty(osg::Vec3d, intersectionPoint); - I_PublicMemberProperty(osg::Vec3, intersectionNormal); - I_PublicMemberProperty(unsigned int, p0); - I_PublicMemberProperty(unsigned int, p1); - I_PublicMemberProperty(unsigned int, p2); - I_PublicMemberProperty(float, r0); - I_PublicMemberProperty(float, r1); - I_PublicMemberProperty(float, r2); - I_PublicMemberProperty(unsigned int, primitiveIndex); -END_REFLECTOR - -BEGIN_VALUE_REFLECTOR(osg::KdTree::Triangle) - I_DeclaringFile("osg/KdTree"); - I_Constructor0(____Triangle, - "", - ""); - I_Constructor3(IN, unsigned int, ip0, IN, unsigned int, ip1, IN, unsigned int, ip2, - ____Triangle__unsigned_int__unsigned_int__unsigned_int, - "", - ""); - I_PublicMemberProperty(unsigned int, p0); - I_PublicMemberProperty(unsigned int, p1); - I_PublicMemberProperty(unsigned int, p2); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(osg::KdTreeBuilder) - I_DeclaringFile("osg/KdTree"); - I_BaseType(osg::NodeVisitor); - I_Constructor0(____KdTreeBuilder, - "", - ""); - I_Constructor1(IN, const osg::KdTreeBuilder &, rhs, - Properties::NON_EXPLICIT, - ____KdTreeBuilder__C5_KdTreeBuilder_R1, - "", - ""); - I_Method0(osg::KdTreeBuilder *, clone, - Properties::VIRTUAL, - __KdTreeBuilder_P1__clone, - "", - ""); - I_Method1(void, apply, IN, osg::Geode &, geode, - Properties::VIRTUAL, - __void__apply__osg_Geode_R1, - "", - ""); - I_PublicMemberProperty(osg::KdTree::BuildOptions, _buildOptions); - I_PublicMemberProperty(osg::ref_ptr< osg::KdTree >, _kdTreePrototype); -END_REFLECTOR - -STD_VECTOR_REFLECTOR(std::vector< double >) - -STD_VECTOR_REFLECTOR(std::vector< osg::KdTree::KdNode >) - -STD_VECTOR_REFLECTOR(std::vector< osg::KdTree::LineSegmentIntersection >) - -STD_VECTOR_REFLECTOR(std::vector< osg::KdTree::Triangle >) - +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +// 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::KdTree::LineSegmentIntersection >, osg::KdTree::LineSegmentIntersections) + +TYPE_NAME_ALIAS(int, osg::KdTree::value_type) + +TYPE_NAME_ALIAS(std::vector< osg::KdTree::KdNode >, osg::KdTree::KdNodeList) + +TYPE_NAME_ALIAS(std::vector< osg::KdTree::Triangle >, osg::KdTree::TriangleList) + +BEGIN_OBJECT_REFLECTOR(osg::KdTree) + I_DeclaringFile("osg/KdTree"); + I_BaseType(osg::Shape); + I_Constructor0(____KdTree, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::KdTree &, rhs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____KdTree__C5_KdTree_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "return the name of the attribute's class type. ", + ""); + I_Method1(void, accept, IN, osg::ShapeVisitor &, x, + Properties::VIRTUAL, + __void__accept__osg_ShapeVisitor_R1, + "accept a non const shape visitor which can be used on non const shape objects. ", + "Must be defined by derived classes. "); + I_Method1(void, accept, IN, osg::ConstShapeVisitor &, x, + Properties::VIRTUAL, + __void__accept__osg_ConstShapeVisitor_R1, + "accept a const shape visitor which can be used on const shape objects. ", + "Must be defined by derived classes. "); + I_Method2(bool, build, IN, osg::KdTree::BuildOptions &, buildOptions, IN, osg::Geometry *, geometry, + Properties::VIRTUAL, + __bool__build__BuildOptions_R1__osg_Geometry_P1, + "Build the kdtree from the specified source geometry object. ", + "retun true on success. "); + I_Method3(bool, intersect, IN, const osg::Vec3 &, start, IN, const osg::Vec3 &, end, IN, osg::KdTree::LineSegmentIntersections &, intersections, + Properties::VIRTUAL, + __bool__intersect__C5_osg_Vec3_R1__C5_osg_Vec3_R1__LineSegmentIntersections_R1, + "compute the intersection of a line segment and the kdtree, return true if an intersection has been found. ", + ""); + I_Method1(int, addNode, IN, const osg::KdTree::KdNode &, node, + Properties::NON_VIRTUAL, + __int__addNode__C5_KdNode_R1, + "", + ""); + I_Method1(osg::KdTree::KdNode &, getNode, IN, int, nodeNum, + Properties::NON_VIRTUAL, + __KdNode_R1__getNode__int, + "", + ""); + I_Method1(const osg::KdTree::KdNode &, getNode, IN, int, nodeNum, + Properties::NON_VIRTUAL, + __C5_KdNode_R1__getNode__int, + "", + ""); + I_Method0(osg::KdTree::KdNodeList &, getNodes, + Properties::NON_VIRTUAL, + __KdNodeList_R1__getNodes, + "", + ""); + I_Method0(const osg::KdTree::KdNodeList &, getNodes, + Properties::NON_VIRTUAL, + __C5_KdNodeList_R1__getNodes, + "", + ""); + I_Method1(void, setVertices, IN, osg::Vec3Array *, vertices, + Properties::NON_VIRTUAL, + __void__setVertices__osg_Vec3Array_P1, + "", + ""); + I_Method0(const osg::Vec3Array *, getVertices, + Properties::NON_VIRTUAL, + __C5_osg_Vec3Array_P1__getVertices, + "", + ""); + I_Method1(unsigned int, addTriangle, IN, const osg::KdTree::Triangle &, tri, + Properties::NON_VIRTUAL, + __unsigned_int__addTriangle__C5_Triangle_R1, + "", + ""); + I_Method1(osg::KdTree::Triangle &, getTriangle, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __Triangle_R1__getTriangle__unsigned_int, + "", + ""); + I_Method1(const osg::KdTree::Triangle &, getTriangle, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __C5_Triangle_R1__getTriangle__unsigned_int, + "", + ""); + I_Method0(osg::KdTree::TriangleList &, getTriangles, + Properties::NON_VIRTUAL, + __TriangleList_R1__getTriangles, + "", + ""); + I_Method0(const osg::KdTree::TriangleList &, getTriangles, + Properties::NON_VIRTUAL, + __C5_TriangleList_R1__getTriangles, + "", + ""); + I_SimpleProperty(osg::KdTree::KdNodeList &, Nodes, + __KdNodeList_R1__getNodes, + 0); + I_SimpleProperty(osg::KdTree::TriangleList &, Triangles, + __TriangleList_R1__getTriangles, + 0); + I_SimpleProperty(osg::Vec3Array *, Vertices, + 0, + __void__setVertices__osg_Vec3Array_P1); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::KdTree::BuildOptions) + I_DeclaringFile("osg/KdTree"); + I_Constructor0(____BuildOptions, + "", + ""); + I_PublicMemberProperty(unsigned int, _numVerticesProcessed); + I_PublicMemberProperty(unsigned int, _targetNumTrianglesPerLeaf); + I_PublicMemberProperty(unsigned int, _maxNumLevels); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::KdTree::KdNode) + I_DeclaringFile("osg/KdTree"); + I_Constructor0(____KdNode, + "", + ""); + I_Constructor2(IN, osg::KdTree::value_type, f, IN, osg::KdTree::value_type, s, + ____KdNode__value_type__value_type, + "", + ""); + I_PublicMemberProperty(osg::BoundingBox, bb); + I_PublicMemberProperty(osg::KdTree::value_type, first); + I_PublicMemberProperty(osg::KdTree::value_type, second); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< unsigned int >, osg::KdTree::LineSegmentIntersection::IndexList) + +TYPE_NAME_ALIAS(std::vector< double >, osg::KdTree::LineSegmentIntersection::RatioList) + +BEGIN_VALUE_REFLECTOR(osg::KdTree::LineSegmentIntersection) + I_DeclaringFile("osg/KdTree"); + I_Constructor0(____LineSegmentIntersection, + "", + ""); + I_PublicMemberProperty(double, ratio); + I_PublicMemberProperty(osg::Vec3d, intersectionPoint); + I_PublicMemberProperty(osg::Vec3, intersectionNormal); + I_PublicMemberProperty(unsigned int, p0); + I_PublicMemberProperty(unsigned int, p1); + I_PublicMemberProperty(unsigned int, p2); + I_PublicMemberProperty(float, r0); + I_PublicMemberProperty(float, r1); + I_PublicMemberProperty(float, r2); + I_PublicMemberProperty(unsigned int, primitiveIndex); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::KdTree::Triangle) + I_DeclaringFile("osg/KdTree"); + I_Constructor0(____Triangle, + "", + ""); + I_Constructor3(IN, unsigned int, ip0, IN, unsigned int, ip1, IN, unsigned int, ip2, + ____Triangle__unsigned_int__unsigned_int__unsigned_int, + "", + ""); + I_PublicMemberProperty(unsigned int, p0); + I_PublicMemberProperty(unsigned int, p1); + I_PublicMemberProperty(unsigned int, p2); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::KdTreeBuilder) + I_DeclaringFile("osg/KdTree"); + I_BaseType(osg::NodeVisitor); + I_Constructor0(____KdTreeBuilder, + "", + ""); + I_Constructor1(IN, const osg::KdTreeBuilder &, rhs, + Properties::NON_EXPLICIT, + ____KdTreeBuilder__C5_KdTreeBuilder_R1, + "", + ""); + I_Method0(osg::KdTreeBuilder *, clone, + Properties::VIRTUAL, + __KdTreeBuilder_P1__clone, + "", + ""); + I_Method1(void, apply, IN, osg::Geode &, geode, + Properties::VIRTUAL, + __void__apply__osg_Geode_R1, + "", + ""); + I_PublicMemberProperty(osg::KdTree::BuildOptions, _buildOptions); + I_PublicMemberProperty(osg::ref_ptr< osg::KdTree >, _kdTreePrototype); +END_REFLECTOR + +STD_VECTOR_REFLECTOR(std::vector< double >) + +STD_VECTOR_REFLECTOR(std::vector< osg::KdTree::KdNode >) + +STD_VECTOR_REFLECTOR(std::vector< osg::KdTree::LineSegmentIntersection >) + +STD_VECTOR_REFLECTOR(std::vector< osg::KdTree::Triangle >) + diff --git a/src/osgWrappers/osg/LOD.cpp b/src/osgWrappers/osg/LOD.cpp index 3a76918f1..eb1530f84 100644 --- a/src/osgWrappers/osg/LOD.cpp +++ b/src/osgWrappers/osg/LOD.cpp @@ -25,14 +25,6 @@ #undef OUT #endif -TYPE_NAME_ALIAS(osg::BoundingSphere::vec_type, osg::LOD::vec_type) - -TYPE_NAME_ALIAS(osg::BoundingSphere::value_type, osg::LOD::value_type) - -TYPE_NAME_ALIAS(std::pair< float COMMA float >, osg::LOD::MinMaxPair) - -TYPE_NAME_ALIAS(std::vector< osg::LOD::MinMaxPair >, osg::LOD::RangeList) - BEGIN_ENUM_REFLECTOR(osg::LOD::CenterMode) I_DeclaringFile("osg/LOD"); I_EnumLabel(osg::LOD::USE_BOUNDING_SPHERE_CENTER); @@ -45,6 +37,14 @@ BEGIN_ENUM_REFLECTOR(osg::LOD::RangeMode) I_EnumLabel(osg::LOD::PIXEL_SIZE_ON_SCREEN); END_REFLECTOR +TYPE_NAME_ALIAS(osg::BoundingSphere::vec_type, osg::LOD::vec_type) + +TYPE_NAME_ALIAS(osg::BoundingSphere::value_type, osg::LOD::value_type) + +TYPE_NAME_ALIAS(std::pair< float COMMA float >, osg::LOD::MinMaxPair) + +TYPE_NAME_ALIAS(std::vector< osg::LOD::MinMaxPair >, osg::LOD::RangeList) + BEGIN_OBJECT_REFLECTOR(osg::LOD) I_DeclaringFile("osg/LOD"); I_BaseType(osg::Group); @@ -85,7 +85,7 @@ BEGIN_OBJECT_REFLECTOR(osg::LOD) __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); - I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + I_Method1(void, traverse, IN, osg::NodeVisitor &, x, Properties::VIRTUAL, __void__traverse__NodeVisitor_R1, "Traverse downwards : calls children's accept method with NodeVisitor. ", diff --git a/src/osgWrappers/osg/Light.cpp b/src/osgWrappers/osg/Light.cpp index b4115f3e9..3a7bbe7df 100644 --- a/src/osgWrappers/osg/Light.cpp +++ b/src/osgWrappers/osg/Light.cpp @@ -46,7 +46,7 @@ BEGIN_OBJECT_REFLECTOR(osg::Light) __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an attribute, with Object* return type. ", @@ -81,7 +81,7 @@ BEGIN_OBJECT_REFLECTOR(osg::Light) __unsigned_int__getMember, "Return the member identifier within the attribute's class type. ", "Used for light number/clip plane number etc. "); - I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, x, Properties::VIRTUAL, __bool__getModeUsage__StateAttribute_ModeUsage_R1, "Return the modes associated with this StateAttribute. ", diff --git a/src/osgWrappers/osg/LightModel.cpp b/src/osgWrappers/osg/LightModel.cpp index a3c89b207..73388fae5 100644 --- a/src/osgWrappers/osg/LightModel.cpp +++ b/src/osgWrappers/osg/LightModel.cpp @@ -46,7 +46,7 @@ BEGIN_OBJECT_REFLECTOR(osg::LightModel) __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an attribute, with Object* return type. ", @@ -116,7 +116,7 @@ BEGIN_OBJECT_REFLECTOR(osg::LightModel) __bool__getTwoSided, "", ""); - I_Method1(void, apply, IN, osg::State &, state, + I_Method1(void, apply, IN, osg::State &, x, Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", diff --git a/src/osgWrappers/osg/LineStipple.cpp b/src/osgWrappers/osg/LineStipple.cpp index ce32ab82c..675e0773e 100644 --- a/src/osgWrappers/osg/LineStipple.cpp +++ b/src/osgWrappers/osg/LineStipple.cpp @@ -43,7 +43,7 @@ BEGIN_OBJECT_REFLECTOR(osg::LineStipple) __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an attribute, with Object* return type. ", @@ -73,7 +73,7 @@ BEGIN_OBJECT_REFLECTOR(osg::LineStipple) __int__compare__C5_StateAttribute_R1, "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); - I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, x, Properties::VIRTUAL, __bool__getModeUsage__StateAttribute_ModeUsage_R1, "Return the modes associated with this StateAttribute. ", @@ -98,7 +98,7 @@ BEGIN_OBJECT_REFLECTOR(osg::LineStipple) __GLushort__getPattern, "", ""); - I_Method1(void, apply, IN, osg::State &, state, + I_Method1(void, apply, IN, osg::State &, x, Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", diff --git a/src/osgWrappers/osg/LineWidth.cpp b/src/osgWrappers/osg/LineWidth.cpp index 8f0a92a77..3023385ef 100644 --- a/src/osgWrappers/osg/LineWidth.cpp +++ b/src/osgWrappers/osg/LineWidth.cpp @@ -41,7 +41,7 @@ BEGIN_OBJECT_REFLECTOR(osg::LineWidth) __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an attribute, with Object* return type. ", @@ -81,7 +81,7 @@ BEGIN_OBJECT_REFLECTOR(osg::LineWidth) __float__getWidth, "", ""); - I_Method1(void, apply, IN, osg::State &, state, + I_Method1(void, apply, IN, osg::State &, x, Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", diff --git a/src/osgWrappers/osg/LogicOp.cpp b/src/osgWrappers/osg/LogicOp.cpp index 860346c42..d72e5ccaa 100644 --- a/src/osgWrappers/osg/LogicOp.cpp +++ b/src/osgWrappers/osg/LogicOp.cpp @@ -64,7 +64,7 @@ BEGIN_OBJECT_REFLECTOR(osg::LogicOp) __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an attribute, with Object* return type. ", @@ -94,7 +94,7 @@ BEGIN_OBJECT_REFLECTOR(osg::LogicOp) __int__compare__C5_StateAttribute_R1, "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); - I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, x, Properties::VIRTUAL, __bool__getModeUsage__StateAttribute_ModeUsage_R1, "Return the modes associated with this StateAttribute. ", @@ -109,7 +109,7 @@ BEGIN_OBJECT_REFLECTOR(osg::LogicOp) __Opcode__getOpcode, "", ""); - I_Method1(void, apply, IN, osg::State &, state, + I_Method1(void, apply, IN, osg::State &, x, Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", diff --git a/src/osgWrappers/osg/Material.cpp b/src/osgWrappers/osg/Material.cpp index 8e8abce63..f71ac329a 100644 --- a/src/osgWrappers/osg/Material.cpp +++ b/src/osgWrappers/osg/Material.cpp @@ -57,7 +57,7 @@ BEGIN_OBJECT_REFLECTOR(osg::Material) __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an attribute, with Object* return type. ", @@ -92,7 +92,7 @@ BEGIN_OBJECT_REFLECTOR(osg::Material) __bool__getModeUsage__StateAttribute_ModeUsage_R1, "Return the modes associated with this StateAttribute. ", ""); - I_Method1(void, apply, IN, osg::State &, state, + I_Method1(void, apply, IN, osg::State &, x, Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", diff --git a/src/osgWrappers/osg/Multisample.cpp b/src/osgWrappers/osg/Multisample.cpp index 546b435a8..df92ea27f 100644 --- a/src/osgWrappers/osg/Multisample.cpp +++ b/src/osgWrappers/osg/Multisample.cpp @@ -46,7 +46,7 @@ BEGIN_OBJECT_REFLECTOR(osg::Multisample) __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an attribute, with Object* return type. ", @@ -111,7 +111,7 @@ BEGIN_OBJECT_REFLECTOR(osg::Multisample) __Mode__getHint, "", ""); - I_Method1(void, apply, IN, osg::State &, state, + I_Method1(void, apply, IN, osg::State &, x, Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", diff --git a/src/osgWrappers/osg/Node.cpp b/src/osgWrappers/osg/Node.cpp index c736d25df..6b7464687 100644 --- a/src/osgWrappers/osg/Node.cpp +++ b/src/osgWrappers/osg/Node.cpp @@ -448,7 +448,7 @@ BEGIN_OBJECT_REFLECTOR(osg::Node::ComputeBoundingSphereCallback) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", diff --git a/src/osgWrappers/osg/NodeCallback.cpp b/src/osgWrappers/osg/NodeCallback.cpp index d0adfd6cb..3c74fbdab 100644 --- a/src/osgWrappers/osg/NodeCallback.cpp +++ b/src/osgWrappers/osg/NodeCallback.cpp @@ -39,7 +39,7 @@ BEGIN_OBJECT_REFLECTOR(osg::NodeCallback) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", diff --git a/src/osgWrappers/osg/OcclusionQueryNode.cpp b/src/osgWrappers/osg/OcclusionQueryNode.cpp index fb25b3c05..3747c52aa 100644 --- a/src/osgWrappers/osg/OcclusionQueryNode.cpp +++ b/src/osgWrappers/osg/OcclusionQueryNode.cpp @@ -1,206 +1,206 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_OBJECT_REFLECTOR(osg::OcclusionQueryNode) - I_DeclaringFile("osg/OcclusionQueryNode"); - I_BaseType(osg::Group); - I_Constructor0(____OcclusionQueryNode, - "", - ""); - I_ConstructorWithDefaults2(IN, const osg::OcclusionQueryNode &, oqn, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, - ____OcclusionQueryNode__C5_OcclusionQueryNode_R1__C5_osg_CopyOp_R1, - "", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __osg_Object_P1__cloneType, - "clone an object of the same type as the node. ", - ""); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "return true if this and obj are of the same kind of object. ", - ""); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "return the name of the node's class type. ", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "return the name of the node's library. ", - ""); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv, - Properties::VIRTUAL, - __void__accept__osg_NodeVisitor_R1, - "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", - ""); - I_Method0(osg::BoundingSphere, computeBound, - Properties::VIRTUAL, - __osg_BoundingSphere__computeBound, - "Compute the bounding sphere around Node's geometry or children. ", - "This method is automatically called by getBound() when the bounding sphere has been marked dirty via dirtyBound(). "); - I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, - Properties::VIRTUAL, - __void__releaseGLObjects__osg_State_P1, - "If State is non-zero, this function releases any associated OpenGL objects for the specified graphics context. ", - "Otherwise, releases OpenGL objects for all graphics contexts. "); - I_MethodWithDefaults1(void, setQueriesEnabled, IN, bool, enable, true, - Properties::NON_VIRTUAL, - __void__setQueriesEnabled__bool, - "", - ""); - I_Method0(bool, getQueriesEnabled, - Properties::NON_VIRTUAL, - __bool__getQueriesEnabled, - "", - ""); - I_Method1(void, setVisibilityThreshold, IN, unsigned int, pixels, - Properties::NON_VIRTUAL, - __void__setVisibilityThreshold__unsigned_int, - "", - ""); - I_Method0(unsigned int, getVisibilityThreshold, - Properties::NON_VIRTUAL, - __unsigned_int__getVisibilityThreshold, - "", - ""); - I_Method1(void, setQueryFrameCount, IN, int, frames, - Properties::NON_VIRTUAL, - __void__setQueryFrameCount__int, - "", - ""); - I_Method0(int, getQueryFrameCount, - Properties::NON_VIRTUAL, - __int__getQueryFrameCount, - "", - ""); - I_Method1(void, setDebugDisplay, IN, bool, enable, - Properties::NON_VIRTUAL, - __void__setDebugDisplay__bool, - "", - ""); - I_Method0(bool, getDebugDisplay, - Properties::NON_VIRTUAL, - __bool__getDebugDisplay, - "", - ""); - I_Method1(void, setQueryStateSet, IN, osg::StateSet *, ss, - Properties::NON_VIRTUAL, - __void__setQueryStateSet__osg_StateSet_P1, - "", - ""); - I_Method0(osg::StateSet *, getQueryStateSet, - Properties::NON_VIRTUAL, - __osg_StateSet_P1__getQueryStateSet, - "", - ""); - I_Method0(const osg::StateSet *, getQueryStateSet, - Properties::NON_VIRTUAL, - __C5_osg_StateSet_P1__getQueryStateSet, - "", - ""); - I_Method1(void, setDebugStateSet, IN, osg::StateSet *, ss, - Properties::NON_VIRTUAL, - __void__setDebugStateSet__osg_StateSet_P1, - "", - ""); - I_Method0(osg::StateSet *, getDebugStateSet, - Properties::NON_VIRTUAL, - __osg_StateSet_P1__getDebugStateSet, - "", - ""); - I_Method0(const osg::StateSet *, getDebugStateSet, - Properties::NON_VIRTUAL, - __C5_osg_StateSet_P1__getDebugStateSet, - "", - ""); - I_Method0(bool, getPassed, - Properties::NON_VIRTUAL, - __bool__getPassed, - "", - ""); - I_Method2(bool, getPassed, IN, const osg::Camera *, camera, IN, float, distanceToEyePoint, - Properties::NON_VIRTUAL, - __bool__getPassed__C5_osg_Camera_P1__float, - "", - ""); - I_Method2(void, traverseQuery, IN, const osg::Camera *, camera, IN, osg::NodeVisitor &, nv, - Properties::NON_VIRTUAL, - __void__traverseQuery__C5_osg_Camera_P1__osg_NodeVisitor_R1, - "", - ""); - I_Method1(void, traverseDebug, IN, osg::NodeVisitor &, nv, - Properties::NON_VIRTUAL, - __void__traverseDebug__osg_NodeVisitor_R1, - "", - ""); - I_StaticMethod3(void, flushDeletedQueryObjects, IN, unsigned int, contextID, IN, double, currentTime, IN, double &, availableTime, - __void__flushDeletedQueryObjects__unsigned_int__double__double_R1_S, - "", - ""); - I_StaticMethod1(void, discardDeletedQueryObjects, IN, unsigned int, contextID, - __void__discardDeletedQueryObjects__unsigned_int_S, - "", - ""); - I_ProtectedMethod0(void, createSupportNodes, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __void__createSupportNodes, - "", - ""); - I_SimpleProperty(bool, DebugDisplay, - __bool__getDebugDisplay, - __void__setDebugDisplay__bool); - I_SimpleProperty(osg::StateSet *, DebugStateSet, - __osg_StateSet_P1__getDebugStateSet, - __void__setDebugStateSet__osg_StateSet_P1); - I_SimpleProperty(bool, Passed, - __bool__getPassed, - 0); - I_SimpleProperty(bool, QueriesEnabled, - __bool__getQueriesEnabled, - __void__setQueriesEnabled__bool); - I_SimpleProperty(int, QueryFrameCount, - __int__getQueryFrameCount, - __void__setQueryFrameCount__int); - I_SimpleProperty(osg::StateSet *, QueryStateSet, - __osg_StateSet_P1__getQueryStateSet, - __void__setQueryStateSet__osg_StateSet_P1); - I_SimpleProperty(unsigned int, VisibilityThreshold, - __unsigned_int__getVisibilityThreshold, - __void__setVisibilityThreshold__unsigned_int); -END_REFLECTOR - +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osg::OcclusionQueryNode) + I_DeclaringFile("osg/OcclusionQueryNode"); + I_BaseType(osg::Group); + I_Constructor0(____OcclusionQueryNode, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::OcclusionQueryNode &, oqn, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____OcclusionQueryNode__C5_OcclusionQueryNode_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "clone an object of the same type as the node. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + ""); + I_Method0(osg::BoundingSphere, computeBound, + Properties::VIRTUAL, + __osg_BoundingSphere__computeBound, + "Compute the bounding sphere around Node's geometry or children. ", + "This method is automatically called by getBound() when the bounding sphere has been marked dirty via dirtyBound(). "); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, x, 0, + Properties::VIRTUAL, + __void__releaseGLObjects__osg_State_P1, + "If State is non-zero, this function releases any associated OpenGL objects for the specified graphics context. ", + "Otherwise, releases OpenGL objects for all graphics contexts. "); + I_MethodWithDefaults1(void, setQueriesEnabled, IN, bool, enable, true, + Properties::NON_VIRTUAL, + __void__setQueriesEnabled__bool, + "", + ""); + I_Method0(bool, getQueriesEnabled, + Properties::NON_VIRTUAL, + __bool__getQueriesEnabled, + "", + ""); + I_Method1(void, setVisibilityThreshold, IN, unsigned int, pixels, + Properties::NON_VIRTUAL, + __void__setVisibilityThreshold__unsigned_int, + "", + ""); + I_Method0(unsigned int, getVisibilityThreshold, + Properties::NON_VIRTUAL, + __unsigned_int__getVisibilityThreshold, + "", + ""); + I_Method1(void, setQueryFrameCount, IN, int, frames, + Properties::NON_VIRTUAL, + __void__setQueryFrameCount__int, + "", + ""); + I_Method0(int, getQueryFrameCount, + Properties::NON_VIRTUAL, + __int__getQueryFrameCount, + "", + ""); + I_Method1(void, setDebugDisplay, IN, bool, enable, + Properties::NON_VIRTUAL, + __void__setDebugDisplay__bool, + "", + ""); + I_Method0(bool, getDebugDisplay, + Properties::NON_VIRTUAL, + __bool__getDebugDisplay, + "", + ""); + I_Method1(void, setQueryStateSet, IN, osg::StateSet *, ss, + Properties::NON_VIRTUAL, + __void__setQueryStateSet__osg_StateSet_P1, + "", + ""); + I_Method0(osg::StateSet *, getQueryStateSet, + Properties::NON_VIRTUAL, + __osg_StateSet_P1__getQueryStateSet, + "", + ""); + I_Method0(const osg::StateSet *, getQueryStateSet, + Properties::NON_VIRTUAL, + __C5_osg_StateSet_P1__getQueryStateSet, + "", + ""); + I_Method1(void, setDebugStateSet, IN, osg::StateSet *, ss, + Properties::NON_VIRTUAL, + __void__setDebugStateSet__osg_StateSet_P1, + "", + ""); + I_Method0(osg::StateSet *, getDebugStateSet, + Properties::NON_VIRTUAL, + __osg_StateSet_P1__getDebugStateSet, + "", + ""); + I_Method0(const osg::StateSet *, getDebugStateSet, + Properties::NON_VIRTUAL, + __C5_osg_StateSet_P1__getDebugStateSet, + "", + ""); + I_Method0(bool, getPassed, + Properties::NON_VIRTUAL, + __bool__getPassed, + "", + ""); + I_Method2(bool, getPassed, IN, const osg::Camera *, camera, IN, float, distanceToEyePoint, + Properties::NON_VIRTUAL, + __bool__getPassed__C5_osg_Camera_P1__float, + "", + ""); + I_Method2(void, traverseQuery, IN, const osg::Camera *, camera, IN, osg::NodeVisitor &, nv, + Properties::NON_VIRTUAL, + __void__traverseQuery__C5_osg_Camera_P1__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, traverseDebug, IN, osg::NodeVisitor &, nv, + Properties::NON_VIRTUAL, + __void__traverseDebug__osg_NodeVisitor_R1, + "", + ""); + I_StaticMethod3(void, flushDeletedQueryObjects, IN, unsigned int, contextID, IN, double, currentTime, IN, double &, availableTime, + __void__flushDeletedQueryObjects__unsigned_int__double__double_R1_S, + "", + ""); + I_StaticMethod1(void, discardDeletedQueryObjects, IN, unsigned int, contextID, + __void__discardDeletedQueryObjects__unsigned_int_S, + "", + ""); + I_ProtectedMethod0(void, createSupportNodes, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__createSupportNodes, + "", + ""); + I_SimpleProperty(bool, DebugDisplay, + __bool__getDebugDisplay, + __void__setDebugDisplay__bool); + I_SimpleProperty(osg::StateSet *, DebugStateSet, + __osg_StateSet_P1__getDebugStateSet, + __void__setDebugStateSet__osg_StateSet_P1); + I_SimpleProperty(bool, Passed, + __bool__getPassed, + 0); + I_SimpleProperty(bool, QueriesEnabled, + __bool__getQueriesEnabled, + __void__setQueriesEnabled__bool); + I_SimpleProperty(int, QueryFrameCount, + __int__getQueryFrameCount, + __void__setQueryFrameCount__int); + I_SimpleProperty(osg::StateSet *, QueryStateSet, + __osg_StateSet_P1__getQueryStateSet, + __void__setQueryStateSet__osg_StateSet_P1); + I_SimpleProperty(unsigned int, VisibilityThreshold, + __unsigned_int__getVisibilityThreshold, + __void__setVisibilityThreshold__unsigned_int); +END_REFLECTOR + diff --git a/src/osgWrappers/osg/PagedLOD.cpp b/src/osgWrappers/osg/PagedLOD.cpp index dcfee54c2..a235286e5 100644 --- a/src/osgWrappers/osg/PagedLOD.cpp +++ b/src/osgWrappers/osg/PagedLOD.cpp @@ -68,7 +68,7 @@ BEGIN_OBJECT_REFLECTOR(osg::PagedLOD) __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); - I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + I_Method1(void, traverse, IN, osg::NodeVisitor &, x, Properties::VIRTUAL, __void__traverse__NodeVisitor_R1, "Traverse downwards : calls children's accept method with NodeVisitor. ", diff --git a/src/osgWrappers/osg/Point.cpp b/src/osgWrappers/osg/Point.cpp index b8d1549f7..27212a3b1 100644 --- a/src/osgWrappers/osg/Point.cpp +++ b/src/osgWrappers/osg/Point.cpp @@ -45,7 +45,7 @@ BEGIN_OBJECT_REFLECTOR(osg::Point) __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an attribute, with Object* return type. ", @@ -75,7 +75,7 @@ BEGIN_OBJECT_REFLECTOR(osg::Point) __int__compare__C5_StateAttribute_R1, "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); - I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, x, Properties::VIRTUAL, __bool__getModeUsage__StateAttribute_ModeUsage_R1, "Return the modes associated with this StateAttribute. ", @@ -130,7 +130,7 @@ BEGIN_OBJECT_REFLECTOR(osg::Point) __float__getMaxSize, "", ""); - I_Method1(void, apply, IN, osg::State &, state, + I_Method1(void, apply, IN, osg::State &, x, Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", diff --git a/src/osgWrappers/osg/PointSprite.cpp b/src/osgWrappers/osg/PointSprite.cpp index 778330e56..c2814269a 100644 --- a/src/osgWrappers/osg/PointSprite.cpp +++ b/src/osgWrappers/osg/PointSprite.cpp @@ -45,7 +45,7 @@ BEGIN_OBJECT_REFLECTOR(osg::PointSprite) __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an attribute, with Object* return type. ", @@ -75,7 +75,7 @@ BEGIN_OBJECT_REFLECTOR(osg::PointSprite) __int__compare__C5_StateAttribute_R1, "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); - I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, x, Properties::VIRTUAL, __bool__getModeUsage__StateAttribute_ModeUsage_R1, "Return the modes associated with this StateAttribute. ", @@ -90,7 +90,7 @@ BEGIN_OBJECT_REFLECTOR(osg::PointSprite) __bool__isTextureAttribute, "Return true if StateAttribute is a type which controls texturing and needs to be issued w.r.t to specific texture unit. ", ""); - I_Method1(void, apply, IN, osg::State &, state, + I_Method1(void, apply, IN, osg::State &, x, Properties::VIRTUAL, __void__apply__osg_State_R1, "apply the OpenGL state attributes. ", diff --git a/src/osgWrappers/osg/PolygonMode.cpp b/src/osgWrappers/osg/PolygonMode.cpp index 04d9519bd..af1fda549 100644 --- a/src/osgWrappers/osg/PolygonMode.cpp +++ b/src/osgWrappers/osg/PolygonMode.cpp @@ -57,7 +57,7 @@ BEGIN_OBJECT_REFLECTOR(osg::PolygonMode) __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an attribute, with Object* return type. ", @@ -102,7 +102,7 @@ BEGIN_OBJECT_REFLECTOR(osg::PolygonMode) __bool__getFrontAndBack, "", ""); - I_Method1(void, apply, IN, osg::State &, state, + I_Method1(void, apply, IN, osg::State &, x, Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", diff --git a/src/osgWrappers/osg/PolygonOffset.cpp b/src/osgWrappers/osg/PolygonOffset.cpp index 1fe26f423..36b411ad2 100644 --- a/src/osgWrappers/osg/PolygonOffset.cpp +++ b/src/osgWrappers/osg/PolygonOffset.cpp @@ -43,7 +43,7 @@ BEGIN_OBJECT_REFLECTOR(osg::PolygonOffset) __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an attribute, with Object* return type. ", @@ -73,7 +73,7 @@ BEGIN_OBJECT_REFLECTOR(osg::PolygonOffset) __int__compare__C5_StateAttribute_R1, "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); - I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, x, Properties::VIRTUAL, __bool__getModeUsage__StateAttribute_ModeUsage_R1, "Return the modes associated with this StateAttribute. ", @@ -98,7 +98,7 @@ BEGIN_OBJECT_REFLECTOR(osg::PolygonOffset) __float__getUnits, "", ""); - I_Method1(void, apply, IN, osg::State &, state, + I_Method1(void, apply, IN, osg::State &, x, Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", diff --git a/src/osgWrappers/osg/PolygonStipple.cpp b/src/osgWrappers/osg/PolygonStipple.cpp index c68c30121..0d20d5acc 100644 --- a/src/osgWrappers/osg/PolygonStipple.cpp +++ b/src/osgWrappers/osg/PolygonStipple.cpp @@ -44,7 +44,7 @@ BEGIN_OBJECT_REFLECTOR(osg::PolygonStipple) __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an attribute, with Object* return type. ", @@ -74,7 +74,7 @@ BEGIN_OBJECT_REFLECTOR(osg::PolygonStipple) __int__compare__C5_StateAttribute_R1, "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); - I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, x, Properties::VIRTUAL, __bool__getModeUsage__StateAttribute_ModeUsage_R1, "Return the modes associated with this StateAttribute. ", @@ -89,7 +89,7 @@ BEGIN_OBJECT_REFLECTOR(osg::PolygonStipple) __C5_GLubyte_P1__getMask, "get a pointer to the mask. ", ""); - I_Method1(void, apply, IN, osg::State &, state, + I_Method1(void, apply, IN, osg::State &, x, Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", diff --git a/src/osgWrappers/osg/PrimitiveSet.cpp b/src/osgWrappers/osg/PrimitiveSet.cpp index 12e81f54d..ec7d681b7 100644 --- a/src/osgWrappers/osg/PrimitiveSet.cpp +++ b/src/osgWrappers/osg/PrimitiveSet.cpp @@ -53,7 +53,7 @@ BEGIN_OBJECT_REFLECTOR(osg::DrawArrays) __Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __Object_P1__clone__C5_CopyOp_R1, "Clone an object, with Object* return type. ", diff --git a/src/osgWrappers/osg/Program.cpp b/src/osgWrappers/osg/Program.cpp index cbd5f67f2..db696abb3 100644 --- a/src/osgWrappers/osg/Program.cpp +++ b/src/osgWrappers/osg/Program.cpp @@ -47,7 +47,7 @@ BEGIN_OBJECT_REFLECTOR(osg::Program) __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an attribute, with Object* return type. ", diff --git a/src/osgWrappers/osg/ProxyNode.cpp b/src/osgWrappers/osg/ProxyNode.cpp index 7bcf470c9..58f0e6208 100644 --- a/src/osgWrappers/osg/ProxyNode.cpp +++ b/src/osgWrappers/osg/ProxyNode.cpp @@ -27,10 +27,6 @@ #undef OUT #endif -TYPE_NAME_ALIAS(osg::BoundingSphere::vec_type, osg::ProxyNode::vec_type) - -TYPE_NAME_ALIAS(osg::BoundingSphere::value_type, osg::ProxyNode::value_type) - BEGIN_ENUM_REFLECTOR(osg::ProxyNode::CenterMode) I_DeclaringFile("osg/ProxyNode"); I_EnumLabel(osg::ProxyNode::USE_BOUNDING_SPHERE_CENTER); @@ -44,6 +40,10 @@ BEGIN_ENUM_REFLECTOR(osg::ProxyNode::LoadingExternalReferenceMode) I_EnumLabel(osg::ProxyNode::NO_AUTOMATIC_LOADING); END_REFLECTOR +TYPE_NAME_ALIAS(osg::BoundingSphere::vec_type, osg::ProxyNode::vec_type) + +TYPE_NAME_ALIAS(osg::BoundingSphere::value_type, osg::ProxyNode::value_type) + BEGIN_OBJECT_REFLECTOR(osg::ProxyNode) I_DeclaringFile("osg/ProxyNode"); I_BaseType(osg::Group); @@ -84,7 +84,7 @@ BEGIN_OBJECT_REFLECTOR(osg::ProxyNode) __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); - I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + I_Method1(void, traverse, IN, osg::NodeVisitor &, x, Properties::VIRTUAL, __void__traverse__NodeVisitor_R1, "Traverse downwards : calls children's accept method with NodeVisitor. ", diff --git a/src/osgWrappers/osg/Scissor.cpp b/src/osgWrappers/osg/Scissor.cpp index c82ebf1d6..50c8a425e 100644 --- a/src/osgWrappers/osg/Scissor.cpp +++ b/src/osgWrappers/osg/Scissor.cpp @@ -43,7 +43,7 @@ BEGIN_OBJECT_REFLECTOR(osg::Scissor) __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an attribute, with Object* return type. ", @@ -73,7 +73,7 @@ BEGIN_OBJECT_REFLECTOR(osg::Scissor) __int__compare__C5_StateAttribute_R1, "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); - I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, x, Properties::VIRTUAL, __bool__getModeUsage__StateAttribute_ModeUsage_R1, "Return the modes associated with this StateAttribute. ", @@ -128,7 +128,7 @@ BEGIN_OBJECT_REFLECTOR(osg::Scissor) __int__height, "", ""); - I_Method1(void, apply, IN, osg::State &, state, + I_Method1(void, apply, IN, osg::State &, x, Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", diff --git a/src/osgWrappers/osg/Sequence.cpp b/src/osgWrappers/osg/Sequence.cpp index b163e95d2..31b4fcb8e 100644 --- a/src/osgWrappers/osg/Sequence.cpp +++ b/src/osgWrappers/osg/Sequence.cpp @@ -78,7 +78,7 @@ BEGIN_OBJECT_REFLECTOR(osg::Sequence) __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); - I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + I_Method1(void, traverse, IN, osg::NodeVisitor &, x, Properties::VIRTUAL, __void__traverse__NodeVisitor_R1, "Traverse downwards : calls children's accept method with NodeVisitor. ", diff --git a/src/osgWrappers/osg/ShadeModel.cpp b/src/osgWrappers/osg/ShadeModel.cpp index 378c17ecd..a522dac69 100644 --- a/src/osgWrappers/osg/ShadeModel.cpp +++ b/src/osgWrappers/osg/ShadeModel.cpp @@ -47,7 +47,7 @@ BEGIN_OBJECT_REFLECTOR(osg::ShadeModel) __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an attribute, with Object* return type. ", @@ -87,7 +87,7 @@ BEGIN_OBJECT_REFLECTOR(osg::ShadeModel) __Mode__getMode, "", ""); - I_Method1(void, apply, IN, osg::State &, state, + I_Method1(void, apply, IN, osg::State &, x, Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", diff --git a/src/osgWrappers/osg/Shader.cpp b/src/osgWrappers/osg/Shader.cpp index d275fcec9..857669211 100644 --- a/src/osgWrappers/osg/Shader.cpp +++ b/src/osgWrappers/osg/Shader.cpp @@ -52,7 +52,7 @@ BEGIN_OBJECT_REFLECTOR(osg::Shader) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", diff --git a/src/osgWrappers/osg/Shape.cpp b/src/osgWrappers/osg/Shape.cpp index a22297352..9719303df 100644 --- a/src/osgWrappers/osg/Shape.cpp +++ b/src/osgWrappers/osg/Shape.cpp @@ -50,7 +50,7 @@ BEGIN_OBJECT_REFLECTOR(osg::Box) __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an attribute, with Object* return type. ", @@ -70,12 +70,12 @@ BEGIN_OBJECT_REFLECTOR(osg::Box) __C5_char_P1__className, "return the name of the attribute's class type. ", ""); - I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + I_Method1(void, accept, IN, osg::ShapeVisitor &, x, Properties::VIRTUAL, __void__accept__osg_ShapeVisitor_R1, "accept a non const shape visitor which can be used on non const shape objects. ", "Must be defined by derived classes. "); - I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + I_Method1(void, accept, IN, osg::ConstShapeVisitor &, x, Properties::VIRTUAL, __void__accept__osg_ConstShapeVisitor_R1, "accept a const shape visitor which can be used on const shape objects. ", @@ -160,7 +160,7 @@ BEGIN_OBJECT_REFLECTOR(osg::Capsule) __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an attribute, with Object* return type. ", @@ -180,12 +180,12 @@ BEGIN_OBJECT_REFLECTOR(osg::Capsule) __C5_char_P1__className, "return the name of the attribute's class type. ", ""); - I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + I_Method1(void, accept, IN, osg::ShapeVisitor &, x, Properties::VIRTUAL, __void__accept__osg_ShapeVisitor_R1, "accept a non const shape visitor which can be used on non const shape objects. ", "Must be defined by derived classes. "); - I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + I_Method1(void, accept, IN, osg::ConstShapeVisitor &, x, Properties::VIRTUAL, __void__accept__osg_ConstShapeVisitor_R1, "accept a const shape visitor which can be used on const shape objects. ", @@ -281,7 +281,7 @@ BEGIN_OBJECT_REFLECTOR(osg::CompositeShape) __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an attribute, with Object* return type. ", @@ -301,12 +301,12 @@ BEGIN_OBJECT_REFLECTOR(osg::CompositeShape) __C5_char_P1__className, "return the name of the attribute's class type. ", ""); - I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + I_Method1(void, accept, IN, osg::ShapeVisitor &, x, Properties::VIRTUAL, __void__accept__osg_ShapeVisitor_R1, "accept a non const shape visitor which can be used on non const shape objects. ", "Must be defined by derived classes. "); - I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + I_Method1(void, accept, IN, osg::ConstShapeVisitor &, x, Properties::VIRTUAL, __void__accept__osg_ConstShapeVisitor_R1, "accept a const shape visitor which can be used on const shape objects. ", @@ -387,7 +387,7 @@ BEGIN_OBJECT_REFLECTOR(osg::Cone) __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an attribute, with Object* return type. ", @@ -407,12 +407,12 @@ BEGIN_OBJECT_REFLECTOR(osg::Cone) __C5_char_P1__className, "return the name of the attribute's class type. ", ""); - I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + I_Method1(void, accept, IN, osg::ShapeVisitor &, x, Properties::VIRTUAL, __void__accept__osg_ShapeVisitor_R1, "accept a non const shape visitor which can be used on non const shape objects. ", "Must be defined by derived classes. "); - I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + I_Method1(void, accept, IN, osg::ConstShapeVisitor &, x, Properties::VIRTUAL, __void__accept__osg_ConstShapeVisitor_R1, "accept a const shape visitor which can be used on const shape objects. ", @@ -584,7 +584,7 @@ BEGIN_OBJECT_REFLECTOR(osg::ConvexHull) __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an attribute, with Object* return type. ", @@ -604,12 +604,12 @@ BEGIN_OBJECT_REFLECTOR(osg::ConvexHull) __C5_char_P1__className, "return the name of the attribute's class type. ", ""); - I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + I_Method1(void, accept, IN, osg::ShapeVisitor &, x, Properties::VIRTUAL, __void__accept__osg_ShapeVisitor_R1, "accept a non const shape visitor which can be used on non const shape objects. ", "Must be defined by derived classes. "); - I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + I_Method1(void, accept, IN, osg::ConstShapeVisitor &, x, Properties::VIRTUAL, __void__accept__osg_ConstShapeVisitor_R1, "accept a const shape visitor which can be used on const shape objects. ", @@ -635,7 +635,7 @@ BEGIN_OBJECT_REFLECTOR(osg::Cylinder) __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an attribute, with Object* return type. ", @@ -655,12 +655,12 @@ BEGIN_OBJECT_REFLECTOR(osg::Cylinder) __C5_char_P1__className, "return the name of the attribute's class type. ", ""); - I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + I_Method1(void, accept, IN, osg::ShapeVisitor &, x, Properties::VIRTUAL, __void__accept__osg_ShapeVisitor_R1, "accept a non const shape visitor which can be used on non const shape objects. ", "Must be defined by derived classes. "); - I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + I_Method1(void, accept, IN, osg::ConstShapeVisitor &, x, Properties::VIRTUAL, __void__accept__osg_ConstShapeVisitor_R1, "accept a const shape visitor which can be used on const shape objects. ", @@ -756,7 +756,7 @@ BEGIN_OBJECT_REFLECTOR(osg::HeightField) __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an attribute, with Object* return type. ", @@ -776,12 +776,12 @@ BEGIN_OBJECT_REFLECTOR(osg::HeightField) __C5_char_P1__className, "return the name of the attribute's class type. ", ""); - I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + I_Method1(void, accept, IN, osg::ShapeVisitor &, x, Properties::VIRTUAL, __void__accept__osg_ShapeVisitor_R1, "accept a non const shape visitor which can be used on non const shape objects. ", "Must be defined by derived classes. "); - I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + I_Method1(void, accept, IN, osg::ConstShapeVisitor &, x, Properties::VIRTUAL, __void__accept__osg_ConstShapeVisitor_R1, "accept a const shape visitor which can be used on const shape objects. ", @@ -967,7 +967,7 @@ BEGIN_OBJECT_REFLECTOR(osg::InfinitePlane) __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an attribute, with Object* return type. ", @@ -987,12 +987,12 @@ BEGIN_OBJECT_REFLECTOR(osg::InfinitePlane) __C5_char_P1__className, "return the name of the attribute's class type. ", ""); - I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + I_Method1(void, accept, IN, osg::ShapeVisitor &, x, Properties::VIRTUAL, __void__accept__osg_ShapeVisitor_R1, "accept a non const shape visitor which can be used on non const shape objects. ", "Must be defined by derived classes. "); - I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + I_Method1(void, accept, IN, osg::ConstShapeVisitor &, x, Properties::VIRTUAL, __void__accept__osg_ConstShapeVisitor_R1, "accept a const shape visitor which can be used on const shape objects. ", @@ -1127,7 +1127,7 @@ BEGIN_OBJECT_REFLECTOR(osg::Sphere) __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an attribute, with Object* return type. ", @@ -1147,12 +1147,12 @@ BEGIN_OBJECT_REFLECTOR(osg::Sphere) __C5_char_P1__className, "return the name of the attribute's class type. ", ""); - I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + I_Method1(void, accept, IN, osg::ShapeVisitor &, x, Properties::VIRTUAL, __void__accept__osg_ShapeVisitor_R1, "accept a non const shape visitor which can be used on non const shape objects. ", "Must be defined by derived classes. "); - I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + I_Method1(void, accept, IN, osg::ConstShapeVisitor &, x, Properties::VIRTUAL, __void__accept__osg_ConstShapeVisitor_R1, "accept a const shape visitor which can be used on const shape objects. ", @@ -1210,7 +1210,7 @@ BEGIN_OBJECT_REFLECTOR(osg::TriangleMesh) __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an attribute, with Object* return type. ", @@ -1230,12 +1230,12 @@ BEGIN_OBJECT_REFLECTOR(osg::TriangleMesh) __C5_char_P1__className, "return the name of the attribute's class type. ", ""); - I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + I_Method1(void, accept, IN, osg::ShapeVisitor &, x, Properties::VIRTUAL, __void__accept__osg_ShapeVisitor_R1, "accept a non const shape visitor which can be used on non const shape objects. ", "Must be defined by derived classes. "); - I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + I_Method1(void, accept, IN, osg::ConstShapeVisitor &, x, Properties::VIRTUAL, __void__accept__osg_ConstShapeVisitor_R1, "accept a const shape visitor which can be used on const shape objects. ", diff --git a/src/osgWrappers/osg/ShapeDrawable.cpp b/src/osgWrappers/osg/ShapeDrawable.cpp index c7b1f8182..2f693f012 100644 --- a/src/osgWrappers/osg/ShapeDrawable.cpp +++ b/src/osgWrappers/osg/ShapeDrawable.cpp @@ -47,7 +47,7 @@ BEGIN_OBJECT_REFLECTOR(osg::ShapeDrawable) __Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __Object_P1__clone__C5_CopyOp_R1, "Clone an object, with Object* return type. ", @@ -156,7 +156,7 @@ BEGIN_OBJECT_REFLECTOR(osg::TessellationHints) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", diff --git a/src/osgWrappers/osg/State.cpp b/src/osgWrappers/osg/State.cpp index 243da5bcf..d56e1bcd1 100644 --- a/src/osgWrappers/osg/State.cpp +++ b/src/osgWrappers/osg/State.cpp @@ -31,8 +31,6 @@ #undef OUT #endif -TYPE_NAME_ALIAS(std::vector< const osg::StateSet * >, osg::State::StateSetStack) - BEGIN_ENUM_REFLECTOR(osg::State::CheckForGLErrors) I_DeclaringFile("osg/State"); I_EnumLabel(osg::State::NEVER_CHECK_GL_ERRORS); @@ -40,6 +38,8 @@ BEGIN_ENUM_REFLECTOR(osg::State::CheckForGLErrors) I_EnumLabel(osg::State::ONCE_PER_ATTRIBUTE); END_REFLECTOR +TYPE_NAME_ALIAS(std::vector< const osg::StateSet * >, osg::State::StateSetStack) + BEGIN_OBJECT_REFLECTOR(osg::State) I_DeclaringFile("osg/State"); I_BaseType(osg::Referenced); diff --git a/src/osgWrappers/osg/StateAttribute.cpp b/src/osgWrappers/osg/StateAttribute.cpp index 7e2f0a803..ce9042061 100644 --- a/src/osgWrappers/osg/StateAttribute.cpp +++ b/src/osgWrappers/osg/StateAttribute.cpp @@ -26,16 +26,6 @@ #undef OUT #endif -TYPE_NAME_ALIAS(GLenum, osg::StateAttribute::GLMode) - -TYPE_NAME_ALIAS(unsigned int, osg::StateAttribute::GLModeValue) - -TYPE_NAME_ALIAS(unsigned int, osg::StateAttribute::OverrideValue) - -TYPE_NAME_ALIAS(std::pair< osg::StateAttribute::Type COMMA unsigned int >, osg::StateAttribute::TypeMemberPair) - -TYPE_NAME_ALIAS(std::vector< osg::StateSet * >, osg::StateAttribute::ParentList) - BEGIN_ENUM_REFLECTOR(osg::StateAttribute::Values) I_DeclaringFile("osg/StateAttribute"); I_EnumLabel(osg::StateAttribute::OFF); @@ -97,6 +87,16 @@ BEGIN_ENUM_REFLECTOR(osg::StateAttribute::Type) I_EnumLabel(osg::StateAttribute::OSGNVPARSE_PROGRAM_PARSER); END_REFLECTOR +TYPE_NAME_ALIAS(GLenum, osg::StateAttribute::GLMode) + +TYPE_NAME_ALIAS(unsigned int, osg::StateAttribute::GLModeValue) + +TYPE_NAME_ALIAS(unsigned int, osg::StateAttribute::OverrideValue) + +TYPE_NAME_ALIAS(std::pair< osg::StateAttribute::Type COMMA unsigned int >, osg::StateAttribute::TypeMemberPair) + +TYPE_NAME_ALIAS(std::vector< osg::StateSet * >, osg::StateAttribute::ParentList) + BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::StateAttribute) I_DeclaringFile("osg/StateAttribute"); I_BaseType(osg::Object); @@ -301,7 +301,7 @@ BEGIN_OBJECT_REFLECTOR(osg::StateAttribute::Callback) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", diff --git a/src/osgWrappers/osg/StateSet.cpp b/src/osgWrappers/osg/StateSet.cpp index 908013d28..698d5957a 100644 --- a/src/osgWrappers/osg/StateSet.cpp +++ b/src/osgWrappers/osg/StateSet.cpp @@ -26,6 +26,20 @@ #undef OUT #endif +BEGIN_ENUM_REFLECTOR(osg::StateSet::RenderingHint) + I_DeclaringFile("osg/StateSet"); + I_EnumLabel(osg::StateSet::DEFAULT_BIN); + I_EnumLabel(osg::StateSet::OPAQUE_BIN); + I_EnumLabel(osg::StateSet::TRANSPARENT_BIN); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::StateSet::RenderBinMode) + I_DeclaringFile("osg/StateSet"); + I_EnumLabel(osg::StateSet::INHERIT_RENDERBIN_DETAILS); + I_EnumLabel(osg::StateSet::USE_RENDERBIN_DETAILS); + I_EnumLabel(osg::StateSet::OVERRIDE_RENDERBIN_DETAILS); +END_REFLECTOR + TYPE_NAME_ALIAS(std::vector< osg::Object * >, osg::StateSet::ParentList) TYPE_NAME_ALIAS(std::map< osg::StateAttribute::GLMode COMMA osg::StateAttribute::GLModeValue >, osg::StateSet::ModeList) @@ -42,20 +56,6 @@ TYPE_NAME_ALIAS(std::pair< osg::ref_ptr< osg::Uniform > COMMA osg::StateAttribu TYPE_NAME_ALIAS(std::map< std::string COMMA osg::StateSet::RefUniformPair >, osg::StateSet::UniformList) -BEGIN_ENUM_REFLECTOR(osg::StateSet::RenderingHint) - I_DeclaringFile("osg/StateSet"); - I_EnumLabel(osg::StateSet::DEFAULT_BIN); - I_EnumLabel(osg::StateSet::OPAQUE_BIN); - I_EnumLabel(osg::StateSet::TRANSPARENT_BIN); -END_REFLECTOR - -BEGIN_ENUM_REFLECTOR(osg::StateSet::RenderBinMode) - I_DeclaringFile("osg/StateSet"); - I_EnumLabel(osg::StateSet::INHERIT_RENDERBIN_DETAILS); - I_EnumLabel(osg::StateSet::USE_RENDERBIN_DETAILS); - I_EnumLabel(osg::StateSet::OVERRIDE_RENDERBIN_DETAILS); -END_REFLECTOR - BEGIN_OBJECT_REFLECTOR(osg::StateSet) I_DeclaringFile("osg/StateSet"); I_BaseType(osg::Object); @@ -71,7 +71,7 @@ BEGIN_OBJECT_REFLECTOR(osg::StateSet) __Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __Object_P1__clone__C5_CopyOp_R1, "Clone an object, with Object* return type. ", @@ -688,7 +688,7 @@ BEGIN_OBJECT_REFLECTOR(osg::StateSet::Callback) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", diff --git a/src/osgWrappers/osg/Stencil.cpp b/src/osgWrappers/osg/Stencil.cpp index 9cf305e78..85fdf3c97 100644 --- a/src/osgWrappers/osg/Stencil.cpp +++ b/src/osgWrappers/osg/Stencil.cpp @@ -63,7 +63,7 @@ BEGIN_OBJECT_REFLECTOR(osg::Stencil) __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an attribute, with Object* return type. ", @@ -93,7 +93,7 @@ BEGIN_OBJECT_REFLECTOR(osg::Stencil) __int__compare__C5_StateAttribute_R1, "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); - I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, x, Properties::VIRTUAL, __bool__getModeUsage__StateAttribute_ModeUsage_R1, "Return the modes associated with this StateAttribute. ", @@ -178,7 +178,7 @@ BEGIN_OBJECT_REFLECTOR(osg::Stencil) __unsigned_int__getWriteMask, "", ""); - I_Method1(void, apply, IN, osg::State &, state, + I_Method1(void, apply, IN, osg::State &, x, Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", diff --git a/src/osgWrappers/osg/StencilTwoSided.cpp b/src/osgWrappers/osg/StencilTwoSided.cpp index fcdafd2f8..d2ebf2706 100644 --- a/src/osgWrappers/osg/StencilTwoSided.cpp +++ b/src/osgWrappers/osg/StencilTwoSided.cpp @@ -69,7 +69,7 @@ BEGIN_OBJECT_REFLECTOR(osg::StencilTwoSided) __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an attribute, with Object* return type. ", @@ -99,7 +99,7 @@ BEGIN_OBJECT_REFLECTOR(osg::StencilTwoSided) __int__compare__C5_StateAttribute_R1, "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); - I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, x, Properties::VIRTUAL, __bool__getModeUsage__StateAttribute_ModeUsage_R1, "Return the modes associated with this StateAttribute. ", @@ -184,7 +184,7 @@ BEGIN_OBJECT_REFLECTOR(osg::StencilTwoSided) __unsigned_int__getWriteMask__Face, "", ""); - I_Method1(void, apply, IN, osg::State &, state, + I_Method1(void, apply, IN, osg::State &, x, Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", diff --git a/src/osgWrappers/osg/Switch.cpp b/src/osgWrappers/osg/Switch.cpp index 015e94955..892d5ffad 100644 --- a/src/osgWrappers/osg/Switch.cpp +++ b/src/osgWrappers/osg/Switch.cpp @@ -67,7 +67,7 @@ BEGIN_OBJECT_REFLECTOR(osg::Switch) __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); - I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + I_Method1(void, traverse, IN, osg::NodeVisitor &, x, Properties::VIRTUAL, __void__traverse__NodeVisitor_R1, "Traverse downwards : calls children's accept method with NodeVisitor. ", diff --git a/src/osgWrappers/osg/TexEnv.cpp b/src/osgWrappers/osg/TexEnv.cpp index d7f062b65..1f4e33193 100644 --- a/src/osgWrappers/osg/TexEnv.cpp +++ b/src/osgWrappers/osg/TexEnv.cpp @@ -51,7 +51,7 @@ BEGIN_OBJECT_REFLECTOR(osg::TexEnv) __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an attribute, with Object* return type. ", @@ -111,7 +111,7 @@ BEGIN_OBJECT_REFLECTOR(osg::TexEnv) __C5_Vec4_R1__getColor, "", ""); - I_Method1(void, apply, IN, osg::State &, state, + I_Method1(void, apply, IN, osg::State &, x, Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", diff --git a/src/osgWrappers/osg/TexEnvCombine.cpp b/src/osgWrappers/osg/TexEnvCombine.cpp index 45aa3d039..f541f9002 100644 --- a/src/osgWrappers/osg/TexEnvCombine.cpp +++ b/src/osgWrappers/osg/TexEnvCombine.cpp @@ -77,7 +77,7 @@ BEGIN_OBJECT_REFLECTOR(osg::TexEnvCombine) __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an attribute, with Object* return type. ", @@ -292,7 +292,7 @@ BEGIN_OBJECT_REFLECTOR(osg::TexEnvCombine) __Vec3__getConstantColorAsLightDirection, "", ""); - I_Method1(void, apply, IN, osg::State &, state, + I_Method1(void, apply, IN, osg::State &, x, Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", diff --git a/src/osgWrappers/osg/TexEnvFilter.cpp b/src/osgWrappers/osg/TexEnvFilter.cpp index 35f5a73a9..065e20d1e 100644 --- a/src/osgWrappers/osg/TexEnvFilter.cpp +++ b/src/osgWrappers/osg/TexEnvFilter.cpp @@ -41,7 +41,7 @@ BEGIN_OBJECT_REFLECTOR(osg::TexEnvFilter) __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an attribute, with Object* return type. ", @@ -86,7 +86,7 @@ BEGIN_OBJECT_REFLECTOR(osg::TexEnvFilter) __float__getLodBias, "", ""); - I_Method1(void, apply, IN, osg::State &, state, + I_Method1(void, apply, IN, osg::State &, x, Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", diff --git a/src/osgWrappers/osg/TexGen.cpp b/src/osgWrappers/osg/TexGen.cpp index 540ad515b..dd2a0607a 100644 --- a/src/osgWrappers/osg/TexGen.cpp +++ b/src/osgWrappers/osg/TexGen.cpp @@ -58,7 +58,7 @@ BEGIN_OBJECT_REFLECTOR(osg::TexGen) __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an attribute, with Object* return type. ", @@ -93,12 +93,12 @@ BEGIN_OBJECT_REFLECTOR(osg::TexGen) __int__compare__C5_StateAttribute_R1, "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); - I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, x, Properties::VIRTUAL, __bool__getModeUsage__StateAttribute_ModeUsage_R1, "Return the modes associated with this StateAttribute. ", ""); - I_Method1(void, apply, IN, osg::State &, state, + I_Method1(void, apply, IN, osg::State &, x, Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", diff --git a/src/osgWrappers/osg/TexMat.cpp b/src/osgWrappers/osg/TexMat.cpp index e86ecb7f4..d2536423f 100644 --- a/src/osgWrappers/osg/TexMat.cpp +++ b/src/osgWrappers/osg/TexMat.cpp @@ -45,7 +45,7 @@ BEGIN_OBJECT_REFLECTOR(osg::TexMat) __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an attribute, with Object* return type. ", diff --git a/src/osgWrappers/osg/Texture.cpp b/src/osgWrappers/osg/Texture.cpp index 1f15bcd1c..6f3b8904a 100644 --- a/src/osgWrappers/osg/Texture.cpp +++ b/src/osgWrappers/osg/Texture.cpp @@ -27,10 +27,6 @@ #undef OUT #endif -TYPE_NAME_ALIAS(std::list< osg::ref_ptr< osg::Texture::TextureObject > >, osg::Texture::TextureObjectList) - -TYPE_NAME_ALIAS(osg::buffered_object< osg::Texture::TextureObjectList >, osg::Texture::TextureObjectListMap) - BEGIN_ENUM_REFLECTOR(osg::Texture::WrapParameter) I_DeclaringFile("osg/Texture"); I_EnumLabel(osg::Texture::WRAP_S); @@ -101,6 +97,10 @@ BEGIN_ENUM_REFLECTOR(osg::Texture::GenerateMipmapMode) I_EnumLabel(osg::Texture::GENERATE_MIPMAP_TEX_PARAMETER); END_REFLECTOR +TYPE_NAME_ALIAS(std::list< osg::ref_ptr< osg::Texture::TextureObject > >, osg::Texture::TextureObjectList) + +TYPE_NAME_ALIAS(osg::buffered_object< osg::Texture::TextureObjectList >, osg::Texture::TextureObjectListMap) + BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Texture) I_DeclaringFile("osg/Texture"); I_BaseType(osg::StateAttribute); @@ -116,7 +116,7 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Texture) __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::PURE_VIRTUAL, __osg_Object_P1__clone__C5_CopyOp_R1, "Clone an attribute, with Object* return type. ", @@ -161,7 +161,7 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Texture) __GLenum__getTextureTarget, "", ""); - I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, x, Properties::VIRTUAL, __bool__getModeUsage__StateAttribute_ModeUsage_R1, "Return the modes associated with this StateAttribute. ", diff --git a/src/osgWrappers/osg/Texture1D.cpp b/src/osgWrappers/osg/Texture1D.cpp index a485ff930..c86dea5e0 100644 --- a/src/osgWrappers/osg/Texture1D.cpp +++ b/src/osgWrappers/osg/Texture1D.cpp @@ -40,7 +40,7 @@ BEGIN_OBJECT_REFLECTOR(osg::Texture1D) __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an attribute, with Object* return type. ", diff --git a/src/osgWrappers/osg/Texture2D.cpp b/src/osgWrappers/osg/Texture2D.cpp index dbff5ab74..3e356a103 100644 --- a/src/osgWrappers/osg/Texture2D.cpp +++ b/src/osgWrappers/osg/Texture2D.cpp @@ -45,7 +45,7 @@ BEGIN_OBJECT_REFLECTOR(osg::Texture2D) __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an attribute, with Object* return type. ", diff --git a/src/osgWrappers/osg/Texture2DArray.cpp b/src/osgWrappers/osg/Texture2DArray.cpp index fa48afb7a..a25c8f043 100644 --- a/src/osgWrappers/osg/Texture2DArray.cpp +++ b/src/osgWrappers/osg/Texture2DArray.cpp @@ -1,369 +1,369 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_OBJECT_REFLECTOR(osg::Texture2DArray) - I_DeclaringFile("osg/Texture2DArray"); - I_BaseType(osg::Texture); - I_Constructor0(____Texture2DArray, - "", - ""); - I_ConstructorWithDefaults2(IN, const osg::Texture2DArray &, cm, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, - ____Texture2DArray__C5_Texture2DArray_R1__C5_CopyOp_R1, - "Copy constructor using CopyOp to manage deep vs shallow copy. ", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __osg_Object_P1__cloneType, - "Clone the type of an attribute, with Object* return type. ", - "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::VIRTUAL, - __osg_Object_P1__clone__C5_osg_CopyOp_R1, - "Clone an attribute, with Object* return type. ", - "Must be defined by derived classes. "); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "Return true if this and obj are of the same kind of object. ", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "Return the name of the attribute's library. ", - ""); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "Return the name of the attribute's class type. ", - ""); - I_Method0(osg::StateAttribute::Type, getType, - Properties::VIRTUAL, - __Type__getType, - "Return the Type identifier of the attribute's class type. ", - ""); - I_Method1(int, compare, IN, const osg::StateAttribute &, rhs, - Properties::VIRTUAL, - __int__compare__C5_StateAttribute_R1, - "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", - ""); - I_Method0(GLenum, getTextureTarget, - Properties::VIRTUAL, - __GLenum__getTextureTarget, - "", - ""); - I_Method2(void, setImage, IN, unsigned int, layer, IN, osg::Image *, image, - Properties::VIRTUAL, - __void__setImage__unsigned_int__Image_P1, - "Set the texture image for specified layer. ", - ""); - I_Method1(osg::Image *, getImage, IN, unsigned int, layer, - Properties::VIRTUAL, - __Image_P1__getImage__unsigned_int, - "Get the texture image for specified layer. ", - ""); - I_Method1(const osg::Image *, getImage, IN, unsigned int, layer, - Properties::VIRTUAL, - __C5_Image_P1__getImage__unsigned_int, - "Get the const texture image for specified layer. ", - ""); - I_Method0(unsigned int, getNumImages, - Properties::VIRTUAL, - __unsigned_int__getNumImages, - "Get the number of images that are assigned to the Texture. ", - "The number is equal to the texture depth. To get the maximum possible image/layer count, you have to use the extension subclass, since it provides graphic context dependent information. "); - I_Method2(unsigned int &, getModifiedCount, IN, unsigned int, layer, IN, unsigned int, contextID, - Properties::NON_VIRTUAL, - __unsigned_int_R1__getModifiedCount__unsigned_int__unsigned_int, - "Check how often was a certain layer in the given context modified. ", - ""); - I_Method3(void, setTextureSize, IN, int, width, IN, int, height, IN, int, depth, - Properties::NON_VIRTUAL, - __void__setTextureSize__int__int__int, - "Set the texture width and height. ", - "If width or height are zero then the respective size value is calculated from the source image sizes. Depth parameter specifies the number of layers to be used. "); - I_Method1(void, setTextureWidth, IN, int, width, - Properties::NON_VIRTUAL, - __void__setTextureWidth__int, - "", - ""); - I_Method1(void, setTextureHeight, IN, int, height, - Properties::NON_VIRTUAL, - __void__setTextureHeight__int, - "", - ""); - I_Method1(void, setTextureDepth, IN, int, depth, - Properties::NON_VIRTUAL, - __void__setTextureDepth__int, - "", - ""); - I_Method0(int, getTextureWidth, - Properties::VIRTUAL, - __int__getTextureWidth, - "", - ""); - I_Method0(int, getTextureHeight, - Properties::VIRTUAL, - __int__getTextureHeight, - "", - ""); - I_Method0(int, getTextureDepth, - Properties::VIRTUAL, - __int__getTextureDepth, - "", - ""); - I_Method1(void, setSubloadCallback, IN, osg::Texture2DArray::SubloadCallback *, cb, - Properties::NON_VIRTUAL, - __void__setSubloadCallback__SubloadCallback_P1, - "", - ""); - I_Method0(osg::Texture2DArray::SubloadCallback *, getSubloadCallback, - Properties::NON_VIRTUAL, - __SubloadCallback_P1__getSubloadCallback, - "", - ""); - I_Method0(const osg::Texture2DArray::SubloadCallback *, getSubloadCallback, - Properties::NON_VIRTUAL, - __C5_SubloadCallback_P1__getSubloadCallback, - "", - ""); - I_Method1(void, setNumMipmapLevels, IN, unsigned int, num, - Properties::NON_VIRTUAL, - __void__setNumMipmapLevels__unsigned_int, - "Set the number of mip map levels the the texture has been created with. ", - "Should only be called within an osg::Texture::apply() and custom OpenGL texture load. "); - I_Method0(unsigned int, getNumMipmapLevels, - Properties::NON_VIRTUAL, - __unsigned_int__getNumMipmapLevels, - "Get the number of mip map levels the the texture has been created with. ", - ""); - I_Method8(void, copyTexSubImage2DArray, IN, osg::State &, state, IN, int, xoffset, IN, int, yoffset, IN, int, zoffset, IN, int, x, IN, int, y, IN, int, width, IN, int, height, - Properties::NON_VIRTUAL, - __void__copyTexSubImage2DArray__State_R1__int__int__int__int__int__int__int, - "Copies a two-dimensional texture subimage, as per glCopyTexSubImage3D. ", - "Updates a portion of an existing OpenGL texture object from the current OpenGL background framebuffer contents at position x, y with width width and height height. Loads framebuffer data into the texture using offsets xoffset and yoffset. zoffset specifies the layer of the texture array to which the result is copied. "); - I_Method1(void, apply, IN, osg::State &, state, - Properties::VIRTUAL, - __void__apply__State_R1, - "Bind the texture if already compiled. ", - "Otherwise recompile. "); - I_StaticMethod2(osg::Texture2DArray::Extensions *, getExtensions, IN, unsigned int, contextID, IN, bool, createIfNotInitalized, - __Extensions_P1__getExtensions__unsigned_int__bool_S, - "Function to call to get the extension of a specified context. ", - "If the Extension object for that context has not yet been created and the 'createIfNotInitalized' flag been set to false then returns NULL. If 'createIfNotInitalized' is true then the Extensions object is automatically created. However, in this case the extension object will only be created with the graphics context associated with ContextID. "); - I_StaticMethod2(void, setExtensions, IN, unsigned int, contextID, IN, osg::Texture2DArray::Extensions *, extensions, - __void__setExtensions__unsigned_int__Extensions_P1_S, - "The setExtensions method allows users to override the extensions across graphics contexts. ", - "Typically used when you have different extensions supported across graphics pipes but need to ensure that they all use the same low common denominator extensions. "); - I_ProtectedMethod0(bool, imagesValid, - Properties::NON_VIRTUAL, - Properties::CONST, - __bool__imagesValid, - "", - ""); - I_ProtectedMethod0(void, computeInternalFormat, - Properties::VIRTUAL, - Properties::CONST, - __void__computeInternalFormat, - "", - ""); - I_ProtectedMethod1(void, allocateMipmap, IN, osg::State &, state, - Properties::VIRTUAL, - Properties::CONST, - __void__allocateMipmap__State_R1, - "Allocate mipmap levels of the texture by subsequent calling of glTexImage* function. ", - ""); - I_ProtectedMethod7(void, applyTexImage2DArray_subload, IN, osg::State &, state, IN, osg::Image *, image, IN, GLsizei, inwidth, IN, GLsizei, inheight, IN, GLsizei, indepth, IN, GLenum, inInternalFormat, IN, GLsizei &, numMipmapLevels, - Properties::NON_VIRTUAL, - Properties::CONST, - __void__applyTexImage2DArray_subload__State_R1__Image_P1__GLsizei__GLsizei__GLsizei__GLenum__GLsizei_R1, - "", - ""); - I_ArrayProperty(osg::Image *, Image, - __Image_P1__getImage__unsigned_int, - __void__setImage__unsigned_int__Image_P1, - __unsigned_int__getNumImages, - 0, - 0, - 0); - I_SimpleProperty(unsigned int, NumMipmapLevels, - 0, - __void__setNumMipmapLevels__unsigned_int); - I_SimpleProperty(osg::Texture2DArray::SubloadCallback *, SubloadCallback, - __SubloadCallback_P1__getSubloadCallback, - __void__setSubloadCallback__SubloadCallback_P1); - I_SimpleProperty(int, TextureDepth, - __int__getTextureDepth, - __void__setTextureDepth__int); - I_SimpleProperty(int, TextureHeight, - __int__getTextureHeight, - __void__setTextureHeight__int); - I_SimpleProperty(GLenum, TextureTarget, - __GLenum__getTextureTarget, - 0); - I_SimpleProperty(int, TextureWidth, - __int__getTextureWidth, - __void__setTextureWidth__int); - I_SimpleProperty(osg::StateAttribute::Type, Type, - __Type__getType, - 0); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(osg::Texture2DArray::Extensions) - I_DeclaringFile("osg/Texture2DArray"); - I_BaseType(osg::Referenced); - I_Constructor1(IN, unsigned int, contextID, - Properties::NON_EXPLICIT, - ____Extensions__unsigned_int, - "", - ""); - I_Constructor1(IN, const osg::Texture2DArray::Extensions &, rhs, - Properties::NON_EXPLICIT, - ____Extensions__C5_Extensions_R1, - "", - ""); - I_Method1(void, lowestCommonDenominator, IN, const osg::Texture2DArray::Extensions &, rhs, - Properties::NON_VIRTUAL, - __void__lowestCommonDenominator__C5_Extensions_R1, - "", - ""); - I_Method1(void, setupGLExtensions, IN, unsigned int, contextID, - Properties::NON_VIRTUAL, - __void__setupGLExtensions__unsigned_int, - "", - ""); - I_Method1(void, setTexture2DArraySupported, IN, bool, flag, - Properties::NON_VIRTUAL, - __void__setTexture2DArraySupported__bool, - "", - ""); - I_Method0(bool, isTexture2DArraySupported, - Properties::NON_VIRTUAL, - __bool__isTexture2DArraySupported, - "", - ""); - I_Method1(void, setTexture3DSupported, IN, bool, flag, - Properties::NON_VIRTUAL, - __void__setTexture3DSupported__bool, - "", - ""); - I_Method0(bool, isTexture3DSupported, - Properties::NON_VIRTUAL, - __bool__isTexture3DSupported, - "", - ""); - I_Method1(void, setMaxLayerCount, IN, GLint, count, - Properties::NON_VIRTUAL, - __void__setMaxLayerCount__GLint, - "", - ""); - I_Method0(GLint, maxLayerCount, - Properties::NON_VIRTUAL, - __GLint__maxLayerCount, - "", - ""); - I_Method1(void, setMax2DSize, IN, GLint, size, - Properties::NON_VIRTUAL, - __void__setMax2DSize__GLint, - "", - ""); - I_Method0(GLint, max2DSize, - Properties::NON_VIRTUAL, - __GLint__max2DSize, - "", - ""); - I_Method10(void, glTexImage3D, IN, GLenum, target, IN, GLint, level, IN, GLenum, internalFormat, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLint, border, IN, GLenum, format, IN, GLenum, type, IN, const GLvoid *, pixels, - Properties::NON_VIRTUAL, - __void__glTexImage3D__GLenum__GLint__GLenum__GLsizei__GLsizei__GLsizei__GLint__GLenum__GLenum__C5_GLvoid_P1, - "", - ""); - I_Method11(void, glTexSubImage3D, IN, GLenum, target, IN, GLint, level, IN, GLint, xoffset, IN, GLint, yoffset, IN, GLint, zoffset, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLenum, format, IN, GLenum, type, IN, const GLvoid *, pixels, - Properties::NON_VIRTUAL, - __void__glTexSubImage3D__GLenum__GLint__GLint__GLint__GLint__GLsizei__GLsizei__GLsizei__GLenum__GLenum__C5_GLvoid_P1, - "", - ""); - I_Method9(void, glCopyTexSubImage3D, IN, GLenum, target, IN, GLint, level, IN, GLint, xoffset, IN, GLint, yoffset, IN, GLint, zoffset, IN, GLint, x, IN, GLint, y, IN, GLsizei, width, IN, GLsizei, height, - Properties::NON_VIRTUAL, - __void__glCopyTexSubImage3D__GLenum__GLint__GLint__GLint__GLint__GLint__GLint__GLsizei__GLsizei, - "", - ""); - I_Method0(bool, isCompressedTexImage3DSupported, - Properties::NON_VIRTUAL, - __bool__isCompressedTexImage3DSupported, - "", - ""); - I_Method9(void, glCompressedTexImage3D, IN, GLenum, target, IN, GLint, level, IN, GLenum, internalformat, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLint, border, IN, GLsizei, imageSize, IN, const GLvoid *, data, - Properties::NON_VIRTUAL, - __void__glCompressedTexImage3D__GLenum__GLint__GLenum__GLsizei__GLsizei__GLsizei__GLint__GLsizei__C5_GLvoid_P1, - "", - ""); - I_Method0(bool, isCompressedTexSubImage3DSupported, - Properties::NON_VIRTUAL, - __bool__isCompressedTexSubImage3DSupported, - "", - ""); - I_Method11(void, glCompressedTexSubImage3D, IN, GLenum, target, IN, GLint, level, IN, GLint, xoffset, IN, GLint, yoffset, IN, GLint, zoffset, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLenum, format, IN, GLsizei, imageSize, IN, const GLvoid *, data, - Properties::NON_VIRTUAL, - __void__glCompressedTexSubImage3D__GLenum__GLint__GLint__GLint__GLint__GLsizei__GLsizei__GLsizei__GLenum__GLsizei__C5_GLvoid_P1, - "", - ""); - - - - - - I_SimpleProperty(GLint, Max2DSize, - 0, - __void__setMax2DSize__GLint); - I_SimpleProperty(GLint, MaxLayerCount, - 0, - __void__setMaxLayerCount__GLint); - I_SimpleProperty(bool, Texture2DArraySupported, - 0, - __void__setTexture2DArraySupported__bool); - I_SimpleProperty(bool, Texture3DSupported, - 0, - __void__setTexture3DSupported__bool); -END_REFLECTOR - -BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Texture2DArray::SubloadCallback) - I_DeclaringFile("osg/Texture2DArray"); - I_BaseType(osg::Referenced); - I_Constructor0(____SubloadCallback, - "", - ""); - I_Method2(void, load, IN, const osg::Texture2DArray &, texture, IN, osg::State &, state, - Properties::PURE_VIRTUAL, - __void__load__C5_Texture2DArray_R1__State_R1, - "", - ""); - I_Method2(void, subload, IN, const osg::Texture2DArray &, texture, IN, osg::State &, state, - Properties::PURE_VIRTUAL, - __void__subload__C5_Texture2DArray_R1__State_R1, - "", - ""); -END_REFLECTOR - +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osg::Texture2DArray) + I_DeclaringFile("osg/Texture2DArray"); + I_BaseType(osg::Texture); + I_Constructor0(____Texture2DArray, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Texture2DArray &, cm, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Texture2DArray__C5_Texture2DArray_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an attribute, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "Return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "Return the name of the attribute's library. ", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "Return the name of the attribute's class type. ", + ""); + I_Method0(osg::StateAttribute::Type, getType, + Properties::VIRTUAL, + __Type__getType, + "Return the Type identifier of the attribute's class type. ", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, rhs, + Properties::VIRTUAL, + __int__compare__C5_StateAttribute_R1, + "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method0(GLenum, getTextureTarget, + Properties::VIRTUAL, + __GLenum__getTextureTarget, + "", + ""); + I_Method2(void, setImage, IN, unsigned int, layer, IN, osg::Image *, image, + Properties::VIRTUAL, + __void__setImage__unsigned_int__Image_P1, + "Set the texture image for specified layer. ", + ""); + I_Method1(osg::Image *, getImage, IN, unsigned int, layer, + Properties::VIRTUAL, + __Image_P1__getImage__unsigned_int, + "Get the texture image for specified layer. ", + ""); + I_Method1(const osg::Image *, getImage, IN, unsigned int, layer, + Properties::VIRTUAL, + __C5_Image_P1__getImage__unsigned_int, + "Get the const texture image for specified layer. ", + ""); + I_Method0(unsigned int, getNumImages, + Properties::VIRTUAL, + __unsigned_int__getNumImages, + "Get the number of images that are assigned to the Texture. ", + "The number is equal to the texture depth. To get the maximum possible image/layer count, you have to use the extension subclass, since it provides graphic context dependent information. "); + I_Method2(unsigned int &, getModifiedCount, IN, unsigned int, layer, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __unsigned_int_R1__getModifiedCount__unsigned_int__unsigned_int, + "Check how often was a certain layer in the given context modified. ", + ""); + I_Method3(void, setTextureSize, IN, int, width, IN, int, height, IN, int, depth, + Properties::NON_VIRTUAL, + __void__setTextureSize__int__int__int, + "Set the texture width and height. ", + "If width or height are zero then the respective size value is calculated from the source image sizes. Depth parameter specifies the number of layers to be used. "); + I_Method1(void, setTextureWidth, IN, int, width, + Properties::NON_VIRTUAL, + __void__setTextureWidth__int, + "", + ""); + I_Method1(void, setTextureHeight, IN, int, height, + Properties::NON_VIRTUAL, + __void__setTextureHeight__int, + "", + ""); + I_Method1(void, setTextureDepth, IN, int, depth, + Properties::NON_VIRTUAL, + __void__setTextureDepth__int, + "", + ""); + I_Method0(int, getTextureWidth, + Properties::VIRTUAL, + __int__getTextureWidth, + "", + ""); + I_Method0(int, getTextureHeight, + Properties::VIRTUAL, + __int__getTextureHeight, + "", + ""); + I_Method0(int, getTextureDepth, + Properties::VIRTUAL, + __int__getTextureDepth, + "", + ""); + I_Method1(void, setSubloadCallback, IN, osg::Texture2DArray::SubloadCallback *, cb, + Properties::NON_VIRTUAL, + __void__setSubloadCallback__SubloadCallback_P1, + "", + ""); + I_Method0(osg::Texture2DArray::SubloadCallback *, getSubloadCallback, + Properties::NON_VIRTUAL, + __SubloadCallback_P1__getSubloadCallback, + "", + ""); + I_Method0(const osg::Texture2DArray::SubloadCallback *, getSubloadCallback, + Properties::NON_VIRTUAL, + __C5_SubloadCallback_P1__getSubloadCallback, + "", + ""); + I_Method1(void, setNumMipmapLevels, IN, unsigned int, num, + Properties::NON_VIRTUAL, + __void__setNumMipmapLevels__unsigned_int, + "Set the number of mip map levels the the texture has been created with. ", + "Should only be called within an osg::Texture::apply() and custom OpenGL texture load. "); + I_Method0(unsigned int, getNumMipmapLevels, + Properties::NON_VIRTUAL, + __unsigned_int__getNumMipmapLevels, + "Get the number of mip map levels the the texture has been created with. ", + ""); + I_Method8(void, copyTexSubImage2DArray, IN, osg::State &, state, IN, int, xoffset, IN, int, yoffset, IN, int, zoffset, IN, int, x, IN, int, y, IN, int, width, IN, int, height, + Properties::NON_VIRTUAL, + __void__copyTexSubImage2DArray__State_R1__int__int__int__int__int__int__int, + "Copies a two-dimensional texture subimage, as per glCopyTexSubImage3D. ", + "Updates a portion of an existing OpenGL texture object from the current OpenGL background framebuffer contents at position x, y with width width and height height. Loads framebuffer data into the texture using offsets xoffset and yoffset. zoffset specifies the layer of the texture array to which the result is copied. "); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__State_R1, + "Bind the texture if already compiled. ", + "Otherwise recompile. "); + I_StaticMethod2(osg::Texture2DArray::Extensions *, getExtensions, IN, unsigned int, contextID, IN, bool, createIfNotInitalized, + __Extensions_P1__getExtensions__unsigned_int__bool_S, + "Function to call to get the extension of a specified context. ", + "If the Extension object for that context has not yet been created and the 'createIfNotInitalized' flag been set to false then returns NULL. If 'createIfNotInitalized' is true then the Extensions object is automatically created. However, in this case the extension object will only be created with the graphics context associated with ContextID. "); + I_StaticMethod2(void, setExtensions, IN, unsigned int, contextID, IN, osg::Texture2DArray::Extensions *, extensions, + __void__setExtensions__unsigned_int__Extensions_P1_S, + "The setExtensions method allows users to override the extensions across graphics contexts. ", + "Typically used when you have different extensions supported across graphics pipes but need to ensure that they all use the same low common denominator extensions. "); + I_ProtectedMethod0(bool, imagesValid, + Properties::NON_VIRTUAL, + Properties::CONST, + __bool__imagesValid, + "", + ""); + I_ProtectedMethod0(void, computeInternalFormat, + Properties::VIRTUAL, + Properties::CONST, + __void__computeInternalFormat, + "", + ""); + I_ProtectedMethod1(void, allocateMipmap, IN, osg::State &, state, + Properties::VIRTUAL, + Properties::CONST, + __void__allocateMipmap__State_R1, + "Allocate mipmap levels of the texture by subsequent calling of glTexImage* function. ", + ""); + I_ProtectedMethod7(void, applyTexImage2DArray_subload, IN, osg::State &, state, IN, osg::Image *, image, IN, GLsizei, inwidth, IN, GLsizei, inheight, IN, GLsizei, indepth, IN, GLenum, inInternalFormat, IN, GLsizei &, numMipmapLevels, + Properties::NON_VIRTUAL, + Properties::CONST, + __void__applyTexImage2DArray_subload__State_R1__Image_P1__GLsizei__GLsizei__GLsizei__GLenum__GLsizei_R1, + "", + ""); + I_ArrayProperty(osg::Image *, Image, + __Image_P1__getImage__unsigned_int, + __void__setImage__unsigned_int__Image_P1, + __unsigned_int__getNumImages, + 0, + 0, + 0); + I_SimpleProperty(unsigned int, NumMipmapLevels, + 0, + __void__setNumMipmapLevels__unsigned_int); + I_SimpleProperty(osg::Texture2DArray::SubloadCallback *, SubloadCallback, + __SubloadCallback_P1__getSubloadCallback, + __void__setSubloadCallback__SubloadCallback_P1); + I_SimpleProperty(int, TextureDepth, + __int__getTextureDepth, + __void__setTextureDepth__int); + I_SimpleProperty(int, TextureHeight, + __int__getTextureHeight, + __void__setTextureHeight__int); + I_SimpleProperty(GLenum, TextureTarget, + __GLenum__getTextureTarget, + 0); + I_SimpleProperty(int, TextureWidth, + __int__getTextureWidth, + __void__setTextureWidth__int); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::Texture2DArray::Extensions) + I_DeclaringFile("osg/Texture2DArray"); + I_BaseType(osg::Referenced); + I_Constructor1(IN, unsigned int, contextID, + Properties::NON_EXPLICIT, + ____Extensions__unsigned_int, + "", + ""); + I_Constructor1(IN, const osg::Texture2DArray::Extensions &, rhs, + Properties::NON_EXPLICIT, + ____Extensions__C5_Extensions_R1, + "", + ""); + I_Method1(void, lowestCommonDenominator, IN, const osg::Texture2DArray::Extensions &, rhs, + Properties::NON_VIRTUAL, + __void__lowestCommonDenominator__C5_Extensions_R1, + "", + ""); + I_Method1(void, setupGLExtensions, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __void__setupGLExtensions__unsigned_int, + "", + ""); + I_Method1(void, setTexture2DArraySupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setTexture2DArraySupported__bool, + "", + ""); + I_Method0(bool, isTexture2DArraySupported, + Properties::NON_VIRTUAL, + __bool__isTexture2DArraySupported, + "", + ""); + I_Method1(void, setTexture3DSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setTexture3DSupported__bool, + "", + ""); + I_Method0(bool, isTexture3DSupported, + Properties::NON_VIRTUAL, + __bool__isTexture3DSupported, + "", + ""); + I_Method1(void, setMaxLayerCount, IN, GLint, count, + Properties::NON_VIRTUAL, + __void__setMaxLayerCount__GLint, + "", + ""); + I_Method0(GLint, maxLayerCount, + Properties::NON_VIRTUAL, + __GLint__maxLayerCount, + "", + ""); + I_Method1(void, setMax2DSize, IN, GLint, size, + Properties::NON_VIRTUAL, + __void__setMax2DSize__GLint, + "", + ""); + I_Method0(GLint, max2DSize, + Properties::NON_VIRTUAL, + __GLint__max2DSize, + "", + ""); + I_Method10(void, glTexImage3D, IN, GLenum, target, IN, GLint, level, IN, GLenum, internalFormat, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLint, border, IN, GLenum, format, IN, GLenum, type, IN, const GLvoid *, pixels, + Properties::NON_VIRTUAL, + __void__glTexImage3D__GLenum__GLint__GLenum__GLsizei__GLsizei__GLsizei__GLint__GLenum__GLenum__C5_GLvoid_P1, + "", + ""); + I_Method11(void, glTexSubImage3D, IN, GLenum, target, IN, GLint, level, IN, GLint, xoffset, IN, GLint, yoffset, IN, GLint, zoffset, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLenum, format, IN, GLenum, type, IN, const GLvoid *, pixels, + Properties::NON_VIRTUAL, + __void__glTexSubImage3D__GLenum__GLint__GLint__GLint__GLint__GLsizei__GLsizei__GLsizei__GLenum__GLenum__C5_GLvoid_P1, + "", + ""); + I_Method9(void, glCopyTexSubImage3D, IN, GLenum, target, IN, GLint, level, IN, GLint, xoffset, IN, GLint, yoffset, IN, GLint, zoffset, IN, GLint, x, IN, GLint, y, IN, GLsizei, width, IN, GLsizei, height, + Properties::NON_VIRTUAL, + __void__glCopyTexSubImage3D__GLenum__GLint__GLint__GLint__GLint__GLint__GLint__GLsizei__GLsizei, + "", + ""); + I_Method0(bool, isCompressedTexImage3DSupported, + Properties::NON_VIRTUAL, + __bool__isCompressedTexImage3DSupported, + "", + ""); + I_Method9(void, glCompressedTexImage3D, IN, GLenum, target, IN, GLint, level, IN, GLenum, internalformat, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLint, border, IN, GLsizei, imageSize, IN, const GLvoid *, data, + Properties::NON_VIRTUAL, + __void__glCompressedTexImage3D__GLenum__GLint__GLenum__GLsizei__GLsizei__GLsizei__GLint__GLsizei__C5_GLvoid_P1, + "", + ""); + I_Method0(bool, isCompressedTexSubImage3DSupported, + Properties::NON_VIRTUAL, + __bool__isCompressedTexSubImage3DSupported, + "", + ""); + I_Method11(void, glCompressedTexSubImage3D, IN, GLenum, target, IN, GLint, level, IN, GLint, xoffset, IN, GLint, yoffset, IN, GLint, zoffset, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLenum, format, IN, GLsizei, imageSize, IN, const GLvoid *, data, + Properties::NON_VIRTUAL, + __void__glCompressedTexSubImage3D__GLenum__GLint__GLint__GLint__GLint__GLsizei__GLsizei__GLsizei__GLenum__GLsizei__C5_GLvoid_P1, + "", + ""); + + + + + + I_SimpleProperty(GLint, Max2DSize, + 0, + __void__setMax2DSize__GLint); + I_SimpleProperty(GLint, MaxLayerCount, + 0, + __void__setMaxLayerCount__GLint); + I_SimpleProperty(bool, Texture2DArraySupported, + 0, + __void__setTexture2DArraySupported__bool); + I_SimpleProperty(bool, Texture3DSupported, + 0, + __void__setTexture3DSupported__bool); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Texture2DArray::SubloadCallback) + I_DeclaringFile("osg/Texture2DArray"); + I_BaseType(osg::Referenced); + I_Constructor0(____SubloadCallback, + "", + ""); + I_Method2(void, load, IN, const osg::Texture2DArray &, texture, IN, osg::State &, state, + Properties::PURE_VIRTUAL, + __void__load__C5_Texture2DArray_R1__State_R1, + "", + ""); + I_Method2(void, subload, IN, const osg::Texture2DArray &, texture, IN, osg::State &, state, + Properties::PURE_VIRTUAL, + __void__subload__C5_Texture2DArray_R1__State_R1, + "", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/osg/Texture3D.cpp b/src/osgWrappers/osg/Texture3D.cpp index 6e91e223b..f93a86914 100644 --- a/src/osgWrappers/osg/Texture3D.cpp +++ b/src/osgWrappers/osg/Texture3D.cpp @@ -40,7 +40,7 @@ BEGIN_OBJECT_REFLECTOR(osg::Texture3D) __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an attribute, with Object* return type. ", diff --git a/src/osgWrappers/osg/TextureCubeMap.cpp b/src/osgWrappers/osg/TextureCubeMap.cpp index 8d29506e4..0549c788a 100644 --- a/src/osgWrappers/osg/TextureCubeMap.cpp +++ b/src/osgWrappers/osg/TextureCubeMap.cpp @@ -50,7 +50,7 @@ BEGIN_OBJECT_REFLECTOR(osg::TextureCubeMap) __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an attribute, with Object* return type. ", diff --git a/src/osgWrappers/osg/TextureRectangle.cpp b/src/osgWrappers/osg/TextureRectangle.cpp index 615ab4d34..e92100578 100644 --- a/src/osgWrappers/osg/TextureRectangle.cpp +++ b/src/osgWrappers/osg/TextureRectangle.cpp @@ -45,7 +45,7 @@ BEGIN_OBJECT_REFLECTOR(osg::TextureRectangle) __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an attribute, with Object* return type. ", diff --git a/src/osgWrappers/osg/Uniform.cpp b/src/osgWrappers/osg/Uniform.cpp index 13126eadf..0f1d32eda 100644 --- a/src/osgWrappers/osg/Uniform.cpp +++ b/src/osgWrappers/osg/Uniform.cpp @@ -123,8 +123,6 @@ BEGIN_VALUE_REFLECTOR(osg::Matrix3) ""); END_REFLECTOR -TYPE_NAME_ALIAS(std::vector< osg::StateSet * >, osg::Uniform::ParentList) - BEGIN_ENUM_REFLECTOR(osg::Uniform::Type) I_DeclaringFile("osg/Uniform"); I_EnumLabel(osg::Uniform::FLOAT); @@ -182,6 +180,8 @@ BEGIN_ENUM_REFLECTOR(osg::Uniform::Type) I_EnumLabel(osg::Uniform::UNDEFINED); END_REFLECTOR +TYPE_NAME_ALIAS(std::vector< osg::StateSet * >, osg::Uniform::ParentList) + BEGIN_OBJECT_REFLECTOR(osg::Uniform) I_DeclaringFile("osg/Uniform"); I_BaseType(osg::Object); @@ -201,7 +201,7 @@ BEGIN_OBJECT_REFLECTOR(osg::Uniform) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", @@ -869,7 +869,7 @@ BEGIN_OBJECT_REFLECTOR(osg::Uniform::Callback) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", diff --git a/src/osgWrappers/osg/VertexProgram.cpp b/src/osgWrappers/osg/VertexProgram.cpp index 89f706a0a..71a05ea33 100644 --- a/src/osgWrappers/osg/VertexProgram.cpp +++ b/src/osgWrappers/osg/VertexProgram.cpp @@ -45,7 +45,7 @@ BEGIN_OBJECT_REFLECTOR(osg::VertexProgram) __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an attribute, with Object* return type. ", @@ -75,7 +75,7 @@ BEGIN_OBJECT_REFLECTOR(osg::VertexProgram) __int__compare__C5_osg_StateAttribute_R1, "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); - I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, x, Properties::VIRTUAL, __bool__getModeUsage__StateAttribute_ModeUsage_R1, "Return the modes associated with this StateAttribute. ", @@ -145,12 +145,12 @@ BEGIN_OBJECT_REFLECTOR(osg::VertexProgram) __void__dirtyVertexProgramObject, "Force a recompile on next apply() of associated OpenGL vertex program objects. ", ""); - I_Method1(void, apply, IN, osg::State &, state, + I_Method1(void, apply, IN, osg::State &, x, Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state. "); - I_Method1(void, compileGLObjects, IN, osg::State &, state, + I_Method1(void, compileGLObjects, IN, osg::State &, x, Properties::VIRTUAL, __void__compileGLObjects__State_R1, "Default to nothing to compile - all state is applied immediately. ", diff --git a/src/osgWrappers/osg/View.cpp b/src/osgWrappers/osg/View.cpp index 0fb906de7..c408c7a9e 100644 --- a/src/osgWrappers/osg/View.cpp +++ b/src/osgWrappers/osg/View.cpp @@ -49,7 +49,7 @@ BEGIN_OBJECT_REFLECTOR(osg::View) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", diff --git a/src/osgWrappers/osg/Viewport.cpp b/src/osgWrappers/osg/Viewport.cpp index 34647b7ff..d6ecbb174 100644 --- a/src/osgWrappers/osg/Viewport.cpp +++ b/src/osgWrappers/osg/Viewport.cpp @@ -46,7 +46,7 @@ BEGIN_OBJECT_REFLECTOR(osg::Viewport) __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an attribute, with Object* return type. ", @@ -136,7 +136,7 @@ BEGIN_OBJECT_REFLECTOR(osg::Viewport) __C5_osg_Matrix__computeWindowMatrix, "Compute the Window Matrix which takes projected coords into Window coordinates. ", "To convert local coordinates into window coordinates use v_window = v_local * MVPW matrix, where the MVPW matrix is ModelViewMatrix * ProjectionMatrix * WindowMatrix, the latter supplied by Viewport::computeWindowMatrix(), the ModelView and Projection Matrix can either be sourced from the current osg::State object, via osgUtil::SceneView or CullVisitor. "); - I_Method1(void, apply, IN, osg::State &, state, + I_Method1(void, apply, IN, osg::State &, x, Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", diff --git a/src/osgWrappers/osgDB/DatabasePager.cpp b/src/osgWrappers/osgDB/DatabasePager.cpp index 2c7c38ee6..f85a26290 100644 --- a/src/osgWrappers/osgDB/DatabasePager.cpp +++ b/src/osgWrappers/osgDB/DatabasePager.cpp @@ -29,6 +29,14 @@ #undef OUT #endif +BEGIN_ENUM_REFLECTOR(osgDB::DatabasePager::DrawablePolicy) + I_DeclaringFile("osgDB/DatabasePager"); + I_EnumLabel(osgDB::DatabasePager::DO_NOT_MODIFY_DRAWABLE_SETTINGS); + I_EnumLabel(osgDB::DatabasePager::USE_DISPLAY_LISTS); + I_EnumLabel(osgDB::DatabasePager::USE_VERTEX_BUFFER_OBJECTS); + I_EnumLabel(osgDB::DatabasePager::USE_VERTEX_ARRAYS); +END_REFLECTOR + TYPE_NAME_ALIAS(OpenThreads::Thread::ThreadPriority, osgDB::DatabasePager::ThreadPriority) TYPE_NAME_ALIAS(std::list< osg::ref_ptr< osg::PagedLOD > >, osgDB::DatabasePager::PagedLODList) @@ -45,14 +53,6 @@ TYPE_NAME_ALIAS(std::set< unsigned int >, osgDB::DatabasePager::ActiveGraphicsCo TYPE_NAME_ALIAS(std::vector< osg::observer_ptr< osg::GraphicsContext > >, osgDB::DatabasePager::CompileGraphicsContexts) -BEGIN_ENUM_REFLECTOR(osgDB::DatabasePager::DrawablePolicy) - I_DeclaringFile("osgDB/DatabasePager"); - I_EnumLabel(osgDB::DatabasePager::DO_NOT_MODIFY_DRAWABLE_SETTINGS); - I_EnumLabel(osgDB::DatabasePager::USE_DISPLAY_LISTS); - I_EnumLabel(osgDB::DatabasePager::USE_VERTEX_BUFFER_OBJECTS); - I_EnumLabel(osgDB::DatabasePager::USE_VERTEX_ARRAYS); -END_REFLECTOR - BEGIN_OBJECT_REFLECTOR(osgDB::DatabasePager) I_DeclaringFile("osgDB/DatabasePager"); I_BaseType(osg::NodeVisitor::DatabaseRequestHandler); diff --git a/src/osgWrappers/osgDB/DotOsgWrapper.cpp b/src/osgWrappers/osgDB/DotOsgWrapper.cpp index 85e5dcefe..13f9003b8 100644 --- a/src/osgWrappers/osgDB/DotOsgWrapper.cpp +++ b/src/osgWrappers/osgDB/DotOsgWrapper.cpp @@ -21,18 +21,18 @@ #undef OUT #endif -TYPE_NAME_ALIAS(std::vector< std::string >, osgDB::DotOsgWrapper::Associates) - -TYPE_NAME_ALIAS(bool (*)(osg::Object&,osgDB::Input&), osgDB::DotOsgWrapper::ReadFunc) - -TYPE_NAME_ALIAS(bool (*)(const osg::Object&,osgDB::Output&), osgDB::DotOsgWrapper::WriteFunc) - BEGIN_ENUM_REFLECTOR(osgDB::DotOsgWrapper::ReadWriteMode) I_DeclaringFile("osgDB/DotOsgWrapper"); I_EnumLabel(osgDB::DotOsgWrapper::READ_AND_WRITE); I_EnumLabel(osgDB::DotOsgWrapper::READ_ONLY); END_REFLECTOR +TYPE_NAME_ALIAS(std::vector< std::string >, osgDB::DotOsgWrapper::Associates) + +TYPE_NAME_ALIAS(bool (*)(osg::Object&,osgDB::Input&), osgDB::DotOsgWrapper::ReadFunc) + +TYPE_NAME_ALIAS(bool (*)(const osg::Object&,osgDB::Output&), osgDB::DotOsgWrapper::WriteFunc) + BEGIN_OBJECT_REFLECTOR(osgDB::DotOsgWrapper) I_DeclaringFile("osgDB/DotOsgWrapper"); I_BaseType(osg::Referenced); diff --git a/src/osgWrappers/osgDB/DynamicLibrary.cpp b/src/osgWrappers/osgDB/DynamicLibrary.cpp index 63c2a9e0b..10dc1d29e 100644 --- a/src/osgWrappers/osgDB/DynamicLibrary.cpp +++ b/src/osgWrappers/osgDB/DynamicLibrary.cpp @@ -27,6 +27,10 @@ TYPE_NAME_ALIAS(void *, osgDB::DynamicLibrary::PROC_ADDRESS) BEGIN_OBJECT_REFLECTOR(osgDB::DynamicLibrary) I_DeclaringFile("osgDB/DynamicLibrary"); I_BaseType(osg::Referenced); + I_StaticMethod1(osgDB::DynamicLibrary *, loadLibrary, IN, const std::string &, libraryName, + __DynamicLibrary_P1__loadLibrary__C5_std_string_R1_S, + "returns a pointer to a DynamicLibrary object on successfully opening of library returns NULL on failure. ", + ""); I_Method0(const std::string &, getName, Properties::NON_VIRTUAL, __C5_std_string_R1__getName, @@ -47,10 +51,6 @@ BEGIN_OBJECT_REFLECTOR(osgDB::DynamicLibrary) __PROC_ADDRESS__getProcAddress__C5_std_string_R1, "return address of function located in library. ", ""); - I_StaticMethod1(osgDB::DynamicLibrary *, loadLibrary, IN, const std::string &, libraryName, - __DynamicLibrary_P1__loadLibrary__C5_std_string_R1_S, - "returns a pointer to a DynamicLibrary object on successfully opening of library returns NULL on failure. ", - ""); I_ProtectedConstructor0(____DynamicLibrary, "disallow default constructor. ", ""); diff --git a/src/osgWrappers/osgDB/FileUtils.cpp b/src/osgWrappers/osgDB/FileUtils.cpp index 8b74bc34c..6e52fb00a 100644 --- a/src/osgWrappers/osgDB/FileUtils.cpp +++ b/src/osgWrappers/osgDB/FileUtils.cpp @@ -20,8 +20,6 @@ #undef OUT #endif -TYPE_NAME_ALIAS(std::vector< std::string >, osgDB::DirectoryContents) - BEGIN_ENUM_REFLECTOR(osgDB::CaseSensitivity) I_DeclaringFile("osgDB/FileUtils"); I_EnumLabel(osgDB::CASE_SENSITIVE); @@ -35,3 +33,5 @@ BEGIN_ENUM_REFLECTOR(osgDB::FileType) I_EnumLabel(osgDB::DIRECTORY); END_REFLECTOR +TYPE_NAME_ALIAS(std::vector< std::string >, osgDB::DirectoryContents) + diff --git a/src/osgWrappers/osgDB/ImageOptions.cpp b/src/osgWrappers/osgDB/ImageOptions.cpp index b83c9679c..472491999 100644 --- a/src/osgWrappers/osgDB/ImageOptions.cpp +++ b/src/osgWrappers/osgDB/ImageOptions.cpp @@ -56,7 +56,7 @@ BEGIN_OBJECT_REFLECTOR(osgDB::ImageOptions) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", diff --git a/src/osgWrappers/osgDB/ReaderWriter.cpp b/src/osgWrappers/osgDB/ReaderWriter.cpp index 4f9eed522..674148b09 100644 --- a/src/osgWrappers/osgDB/ReaderWriter.cpp +++ b/src/osgWrappers/osgDB/ReaderWriter.cpp @@ -28,8 +28,6 @@ #undef OUT #endif -TYPE_NAME_ALIAS(std::map< std::string COMMA std::string >, osgDB::ReaderWriter::FormatDescriptionMap) - BEGIN_ENUM_REFLECTOR(osgDB::ReaderWriter::ArchiveStatus) I_DeclaringFile("osgDB/ReaderWriter"); I_EnumLabel(osgDB::ReaderWriter::READ); @@ -37,6 +35,8 @@ BEGIN_ENUM_REFLECTOR(osgDB::ReaderWriter::ArchiveStatus) I_EnumLabel(osgDB::ReaderWriter::CREATE); END_REFLECTOR +TYPE_NAME_ALIAS(std::map< std::string COMMA std::string >, osgDB::ReaderWriter::FormatDescriptionMap) + BEGIN_OBJECT_REFLECTOR(osgDB::ReaderWriter) I_DeclaringFile("osgDB/ReaderWriter"); I_BaseType(osg::Object); @@ -52,7 +52,7 @@ BEGIN_OBJECT_REFLECTOR(osgDB::ReaderWriter) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", @@ -261,7 +261,7 @@ BEGIN_OBJECT_REFLECTOR(osgDB::ReaderWriter::Options) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", diff --git a/src/osgWrappers/osgDB/Registry.cpp b/src/osgWrappers/osgDB/Registry.cpp index a11c46d3c..d1330562f 100644 --- a/src/osgWrappers/osgDB/Registry.cpp +++ b/src/osgWrappers/osgDB/Registry.cpp @@ -74,6 +74,10 @@ TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgDB::ReaderWriter > >, osgDB::Regis BEGIN_OBJECT_REFLECTOR(osgDB::Registry) I_DeclaringFile("osgDB/Registry"); I_BaseType(osg::Referenced); + I_StaticMethodWithDefaults1(osgDB::Registry *, instance, IN, bool, erase, false, + __Registry_P1__instance__bool_S, + "", + ""); I_Method1(void, readCommandLine, IN, osg::ArgumentParser &, commandLine, Properties::NON_VIRTUAL, __void__readCommandLine__osg_ArgumentParser_R1, @@ -554,10 +558,6 @@ BEGIN_OBJECT_REFLECTOR(osgDB::Registry) __void__addArchiveExtension__C5_std_string, "Add an Archive extension. ", ""); - I_StaticMethodWithDefaults1(osgDB::Registry *, instance, IN, bool, erase, false, - __Registry_P1__instance__bool_S, - "", - ""); I_ProtectedConstructor0(____Registry, "constructor is private, as its a singleton, preventing construction other than via the instance() method and therefore ensuring only one copy is ever constructed ", ""); diff --git a/src/osgWrappers/osgFX/Registry.cpp b/src/osgWrappers/osgFX/Registry.cpp index 11c79cfa8..8c5781445 100644 --- a/src/osgWrappers/osgFX/Registry.cpp +++ b/src/osgWrappers/osgFX/Registry.cpp @@ -26,6 +26,10 @@ TYPE_NAME_ALIAS(std::map< std::string COMMA osg::ref_ptr< const osgFX::Effect > BEGIN_OBJECT_REFLECTOR(osgFX::Registry) I_DeclaringFile("osgFX/Registry"); I_BaseType(osg::Referenced); + I_StaticMethod0(osgFX::Registry *, instance, + __Registry_P1__instance_S, + "", + ""); I_Method1(void, registerEffect, IN, const osgFX::Effect *, effect, Properties::NON_VIRTUAL, __void__registerEffect__C5_Effect_P1, @@ -36,10 +40,6 @@ BEGIN_OBJECT_REFLECTOR(osgFX::Registry) __C5_EffectMap_R1__getEffectMap, "", ""); - I_StaticMethod0(osgFX::Registry *, instance, - __Registry_P1__instance_S, - "", - ""); I_ProtectedConstructor0(____Registry, "", ""); diff --git a/src/osgWrappers/osgFX/Validator.cpp b/src/osgWrappers/osgFX/Validator.cpp index 0d5b7355b..2ebf6cce8 100644 --- a/src/osgWrappers/osgFX/Validator.cpp +++ b/src/osgWrappers/osgFX/Validator.cpp @@ -45,7 +45,7 @@ BEGIN_OBJECT_REFLECTOR(osgFX::Validator) __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an attribute, with Object* return type. ", @@ -70,12 +70,12 @@ BEGIN_OBJECT_REFLECTOR(osgFX::Validator) __Type__getType, "Return the Type identifier of the attribute's class type. ", ""); - I_Method1(void, apply, IN, osg::State &, state, + I_Method1(void, apply, IN, osg::State &, x, Properties::VIRTUAL, __void__apply__osg_State_R1, "apply the OpenGL state attributes. ", "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state. "); - I_Method1(void, compileGLObjects, IN, osg::State &, state, + I_Method1(void, compileGLObjects, IN, osg::State &, x, Properties::VIRTUAL, __void__compileGLObjects__osg_State_R1, "Default to nothing to compile - all state is applied immediately. ", diff --git a/src/osgWrappers/osgGA/AnimationPathManipulator.cpp b/src/osgWrappers/osgGA/AnimationPathManipulator.cpp index 6355af4d9..7cff2a385 100644 --- a/src/osgWrappers/osgGA/AnimationPathManipulator.cpp +++ b/src/osgWrappers/osgGA/AnimationPathManipulator.cpp @@ -93,17 +93,17 @@ BEGIN_OBJECT_REFLECTOR(osgGA::AnimationPathManipulator) __bool__valid, "", ""); - I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x, Properties::VIRTUAL, __void__init__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, "Start/restart the manipulator. ", "FIXME: what does this actually mean? Provide examples. "); - I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x, Properties::VIRTUAL, __void__home__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, "Move the camera to the default position. ", "May be ignored by manipulators if home functionality is not appropriate. "); - I_Method1(void, home, IN, double, currentTime, + I_Method1(void, home, IN, double, x, Properties::VIRTUAL, __void__home__double, "Move the camera to the default position. ", diff --git a/src/osgWrappers/osgGA/DriveManipulator.cpp b/src/osgWrappers/osgGA/DriveManipulator.cpp index 83aba6e55..ce77dede7 100644 --- a/src/osgWrappers/osgGA/DriveManipulator.cpp +++ b/src/osgWrappers/osgGA/DriveManipulator.cpp @@ -76,12 +76,12 @@ BEGIN_OBJECT_REFLECTOR(osgGA::DriveManipulator) __void__computeHomePosition, "Compute the home position. ", ""); - I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x, Properties::VIRTUAL, __void__home__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, "Move the camera to the default position. ", "May be ignored by manipulators if home functionality is not appropriate. "); - I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x, Properties::VIRTUAL, __void__init__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, "Start/restart the manipulator. ", diff --git a/src/osgWrappers/osgGA/FlightManipulator.cpp b/src/osgWrappers/osgGA/FlightManipulator.cpp index e5b0f670e..a2028e91d 100644 --- a/src/osgWrappers/osgGA/FlightManipulator.cpp +++ b/src/osgWrappers/osgGA/FlightManipulator.cpp @@ -77,12 +77,12 @@ BEGIN_OBJECT_REFLECTOR(osgGA::FlightManipulator) __osg_Node_P1__getNode, "Return node if attached. ", ""); - I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x, Properties::VIRTUAL, __void__home__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, "Move the camera to the default position. ", "May be ignored by manipulators if home functionality is not appropriate. "); - I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x, Properties::VIRTUAL, __void__init__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, "Start/restart the manipulator. ", diff --git a/src/osgWrappers/osgGA/GUIEventAdapter.cpp b/src/osgWrappers/osgGA/GUIEventAdapter.cpp index 81c9d9354..9fd0e78ef 100644 --- a/src/osgWrappers/osgGA/GUIEventAdapter.cpp +++ b/src/osgWrappers/osgGA/GUIEventAdapter.cpp @@ -242,7 +242,7 @@ BEGIN_OBJECT_REFLECTOR(osgGA::GUIEventAdapter) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", diff --git a/src/osgWrappers/osgGA/GUIEventHandler.cpp b/src/osgWrappers/osgGA/GUIEventHandler.cpp index a0e6f2f66..41266c7a9 100644 --- a/src/osgWrappers/osgGA/GUIEventHandler.cpp +++ b/src/osgWrappers/osgGA/GUIEventHandler.cpp @@ -44,7 +44,7 @@ BEGIN_OBJECT_REFLECTOR(osgGA::GUIEventHandler) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", diff --git a/src/osgWrappers/osgGA/KeySwitchMatrixManipulator.cpp b/src/osgWrappers/osgGA/KeySwitchMatrixManipulator.cpp index 88dcb8601..40fd7f9be 100644 --- a/src/osgWrappers/osgGA/KeySwitchMatrixManipulator.cpp +++ b/src/osgWrappers/osgGA/KeySwitchMatrixManipulator.cpp @@ -143,7 +143,7 @@ BEGIN_OBJECT_REFLECTOR(osgGA::KeySwitchMatrixManipulator) __float__getFusionDistanceValue, "Get the FusionDistanceValue. ", "Used by SceneView for setting up stereo convergence. "); - I_Method1(void, setNode, IN, osg::Node *, n, + I_Method1(void, setNode, IN, osg::Node *, x, Properties::VIRTUAL, __void__setNode__osg_Node_P1, "Attach a node to the manipulator, automatically detaching any previously attached node. ", @@ -173,12 +173,12 @@ BEGIN_OBJECT_REFLECTOR(osgGA::KeySwitchMatrixManipulator) __void__computeHomePosition, "Compute the home position. ", ""); - I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, ee, IN, osgGA::GUIActionAdapter &, aa, + I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x, Properties::VIRTUAL, __void__home__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, "Move the camera to the default position. ", "May be ignored by manipulators if home functionality is not appropriate. "); - I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, ee, IN, osgGA::GUIActionAdapter &, aa, + I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x, Properties::VIRTUAL, __void__init__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, "Start/restart the manipulator. ", diff --git a/src/osgWrappers/osgGA/NodeTrackerManipulator.cpp b/src/osgWrappers/osgGA/NodeTrackerManipulator.cpp index a35eb03e4..ccb338089 100644 --- a/src/osgWrappers/osgGA/NodeTrackerManipulator.cpp +++ b/src/osgWrappers/osgGA/NodeTrackerManipulator.cpp @@ -26,8 +26,6 @@ #undef OUT #endif -TYPE_NAME_ALIAS(std::vector< osg::observer_ptr< osg::Node > >, osgGA::NodeTrackerManipulator::ObserverNodePath) - BEGIN_ENUM_REFLECTOR(osgGA::NodeTrackerManipulator::TrackerMode) I_DeclaringFile("osgGA/NodeTrackerManipulator"); I_EnumLabel(osgGA::NodeTrackerManipulator::NODE_CENTER); @@ -41,6 +39,8 @@ BEGIN_ENUM_REFLECTOR(osgGA::NodeTrackerManipulator::RotationMode) I_EnumLabel(osgGA::NodeTrackerManipulator::ELEVATION_AZIM); END_REFLECTOR +TYPE_NAME_ALIAS(std::vector< osg::observer_ptr< osg::Node > >, osgGA::NodeTrackerManipulator::ObserverNodePath) + BEGIN_OBJECT_REFLECTOR(osgGA::NodeTrackerManipulator) I_DeclaringFile("osgGA/NodeTrackerManipulator"); I_BaseType(osgGA::MatrixManipulator); diff --git a/src/osgWrappers/osgParticle/AccelOperator.cpp b/src/osgWrappers/osgParticle/AccelOperator.cpp index 2b0cc511d..632321bbd 100644 --- a/src/osgWrappers/osgParticle/AccelOperator.cpp +++ b/src/osgWrappers/osgParticle/AccelOperator.cpp @@ -40,7 +40,7 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::AccelOperator) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", diff --git a/src/osgWrappers/osgParticle/AngularAccelOperator.cpp b/src/osgWrappers/osgParticle/AngularAccelOperator.cpp index 31529b851..e10b218b3 100644 --- a/src/osgWrappers/osgParticle/AngularAccelOperator.cpp +++ b/src/osgWrappers/osgParticle/AngularAccelOperator.cpp @@ -40,7 +40,7 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::AngularAccelOperator) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", diff --git a/src/osgWrappers/osgParticle/BoxPlacer.cpp b/src/osgWrappers/osgParticle/BoxPlacer.cpp index 2e0d3700c..7b8320094 100644 --- a/src/osgWrappers/osgParticle/BoxPlacer.cpp +++ b/src/osgWrappers/osgParticle/BoxPlacer.cpp @@ -85,7 +85,7 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::BoxPlacer) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", diff --git a/src/osgWrappers/osgParticle/ConnectedParticleSystem.cpp b/src/osgWrappers/osgParticle/ConnectedParticleSystem.cpp index ee6d48307..6e0927717 100644 --- a/src/osgWrappers/osgParticle/ConnectedParticleSystem.cpp +++ b/src/osgWrappers/osgParticle/ConnectedParticleSystem.cpp @@ -39,7 +39,7 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::ConnectedParticleSystem) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", diff --git a/src/osgWrappers/osgParticle/ConstantRateCounter.cpp b/src/osgWrappers/osgParticle/ConstantRateCounter.cpp index 661bac69d..ca306f9d1 100644 --- a/src/osgWrappers/osgParticle/ConstantRateCounter.cpp +++ b/src/osgWrappers/osgParticle/ConstantRateCounter.cpp @@ -37,7 +37,7 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::ConstantRateCounter) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", diff --git a/src/osgWrappers/osgParticle/ForceOperator.cpp b/src/osgWrappers/osgParticle/ForceOperator.cpp index e60257f7d..ce8d64861 100644 --- a/src/osgWrappers/osgParticle/ForceOperator.cpp +++ b/src/osgWrappers/osgParticle/ForceOperator.cpp @@ -40,7 +40,7 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::ForceOperator) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", diff --git a/src/osgWrappers/osgParticle/LinearInterpolator.cpp b/src/osgWrappers/osgParticle/LinearInterpolator.cpp index c351f8d76..852fa9482 100644 --- a/src/osgWrappers/osgParticle/LinearInterpolator.cpp +++ b/src/osgWrappers/osgParticle/LinearInterpolator.cpp @@ -37,7 +37,7 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::LinearInterpolator) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", diff --git a/src/osgWrappers/osgParticle/MultiSegmentPlacer.cpp b/src/osgWrappers/osgParticle/MultiSegmentPlacer.cpp index 7a728e66e..aae5f2319 100644 --- a/src/osgWrappers/osgParticle/MultiSegmentPlacer.cpp +++ b/src/osgWrappers/osgParticle/MultiSegmentPlacer.cpp @@ -39,7 +39,7 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::MultiSegmentPlacer) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", diff --git a/src/osgWrappers/osgParticle/ParticleProcessor.cpp b/src/osgWrappers/osgParticle/ParticleProcessor.cpp index a6ae7c8f9..78a157b40 100644 --- a/src/osgWrappers/osgParticle/ParticleProcessor.cpp +++ b/src/osgWrappers/osgParticle/ParticleProcessor.cpp @@ -153,7 +153,7 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::ParticleProcessor) __bool__isAlive, "Check whether the processor is alive with respect to start time and life duration. ", "Note that this method may return true even if the processor has been disabled by calling setEnabled(false). To test whether the processor is actually processing particles or not, you should evaluate (isEnabled() && isAlive()). "); - I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + I_Method1(void, traverse, IN, osg::NodeVisitor &, x, Properties::VIRTUAL, __void__traverse__osg_NodeVisitor_R1, "Traverse downwards : calls children's accept method with NodeVisitor. ", diff --git a/src/osgWrappers/osgParticle/ParticleSystem.cpp b/src/osgWrappers/osgParticle/ParticleSystem.cpp index ff43b575d..cfac38595 100644 --- a/src/osgWrappers/osgParticle/ParticleSystem.cpp +++ b/src/osgWrappers/osgParticle/ParticleSystem.cpp @@ -54,7 +54,7 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::ParticleSystem) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", diff --git a/src/osgWrappers/osgParticle/ParticleSystemUpdater.cpp b/src/osgWrappers/osgParticle/ParticleSystemUpdater.cpp index a38ff333b..9262fbafb 100644 --- a/src/osgWrappers/osgParticle/ParticleSystemUpdater.cpp +++ b/src/osgWrappers/osgParticle/ParticleSystemUpdater.cpp @@ -115,7 +115,7 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::ParticleSystemUpdater) __unsigned_int__getParticleSystemIndex__C5_ParticleSystem_P1, "get index number of ParticleSystem. ", ""); - I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + I_Method1(void, traverse, IN, osg::NodeVisitor &, x, Properties::VIRTUAL, __void__traverse__osg_NodeVisitor_R1, "Traverse downwards : calls children's accept method with NodeVisitor. ", diff --git a/src/osgWrappers/osgParticle/PointPlacer.cpp b/src/osgWrappers/osgParticle/PointPlacer.cpp index d170bb862..a04235c5b 100644 --- a/src/osgWrappers/osgParticle/PointPlacer.cpp +++ b/src/osgWrappers/osgParticle/PointPlacer.cpp @@ -39,7 +39,7 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::PointPlacer) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", diff --git a/src/osgWrappers/osgParticle/PrecipitationEffect.cpp b/src/osgWrappers/osgParticle/PrecipitationEffect.cpp index 16d2c1e9a..525249a85 100644 --- a/src/osgWrappers/osgParticle/PrecipitationEffect.cpp +++ b/src/osgWrappers/osgParticle/PrecipitationEffect.cpp @@ -60,7 +60,7 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::PrecipitationEffect) __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); - I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + I_Method1(void, traverse, IN, osg::NodeVisitor &, x, Properties::VIRTUAL, __void__traverse__osg_NodeVisitor_R1, "Traverse downwards : calls children's accept method with NodeVisitor. ", @@ -316,7 +316,7 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::PrecipitationEffect::PrecipitationDrawable) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", diff --git a/src/osgWrappers/osgParticle/RadialShooter.cpp b/src/osgWrappers/osgParticle/RadialShooter.cpp index a67a82610..d445cf3f0 100644 --- a/src/osgWrappers/osgParticle/RadialShooter.cpp +++ b/src/osgWrappers/osgParticle/RadialShooter.cpp @@ -40,7 +40,7 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::RadialShooter) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", diff --git a/src/osgWrappers/osgParticle/RandomRateCounter.cpp b/src/osgWrappers/osgParticle/RandomRateCounter.cpp index 1b7729d66..5ef437b8c 100644 --- a/src/osgWrappers/osgParticle/RandomRateCounter.cpp +++ b/src/osgWrappers/osgParticle/RandomRateCounter.cpp @@ -37,7 +37,7 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::RandomRateCounter) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", diff --git a/src/osgWrappers/osgParticle/SectorPlacer.cpp b/src/osgWrappers/osgParticle/SectorPlacer.cpp index 5509218ea..e97710619 100644 --- a/src/osgWrappers/osgParticle/SectorPlacer.cpp +++ b/src/osgWrappers/osgParticle/SectorPlacer.cpp @@ -70,7 +70,7 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::SectorPlacer) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", diff --git a/src/osgWrappers/osgParticle/SegmentPlacer.cpp b/src/osgWrappers/osgParticle/SegmentPlacer.cpp index e701b9031..63cd26e35 100644 --- a/src/osgWrappers/osgParticle/SegmentPlacer.cpp +++ b/src/osgWrappers/osgParticle/SegmentPlacer.cpp @@ -39,7 +39,7 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::SegmentPlacer) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", diff --git a/src/osgWrappers/osgShadow/OccluderGeometry.cpp b/src/osgWrappers/osgShadow/OccluderGeometry.cpp index 0f51f34ee..f99af8b82 100644 --- a/src/osgWrappers/osgShadow/OccluderGeometry.cpp +++ b/src/osgWrappers/osgShadow/OccluderGeometry.cpp @@ -48,7 +48,7 @@ BEGIN_OBJECT_REFLECTOR(osgShadow::OccluderGeometry) __Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", @@ -162,10 +162,6 @@ BEGIN_OBJECT_REFLECTOR(osgShadow::OccluderGeometry) __void__setBoundingPolytope__C5_osg_Polytope_R1); END_REFLECTOR -TYPE_NAME_ALIAS(std::vector< osg::Vec3 >, osgShadow::ShadowVolumeGeometry::Vec3List) - -TYPE_NAME_ALIAS(std::vector< GLuint >, osgShadow::ShadowVolumeGeometry::UIntList) - BEGIN_ENUM_REFLECTOR(osgShadow::ShadowVolumeGeometry::DrawMode) I_DeclaringFile("osgShadow/OccluderGeometry"); I_EnumLabel(osgShadow::ShadowVolumeGeometry::GEOMETRY); @@ -173,6 +169,10 @@ BEGIN_ENUM_REFLECTOR(osgShadow::ShadowVolumeGeometry::DrawMode) I_EnumLabel(osgShadow::ShadowVolumeGeometry::STENCIL_TWO_SIDED); END_REFLECTOR +TYPE_NAME_ALIAS(std::vector< osg::Vec3 >, osgShadow::ShadowVolumeGeometry::Vec3List) + +TYPE_NAME_ALIAS(std::vector< GLuint >, osgShadow::ShadowVolumeGeometry::UIntList) + BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowVolumeGeometry) I_DeclaringFile("osgShadow/OccluderGeometry"); I_BaseType(osg::Drawable); @@ -188,7 +188,7 @@ BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowVolumeGeometry) __Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", diff --git a/src/osgWrappers/osgShadow/ParallelSplitShadowMap.cpp b/src/osgWrappers/osgShadow/ParallelSplitShadowMap.cpp index 34d0f02f7..1a266bece 100644 --- a/src/osgWrappers/osgShadow/ParallelSplitShadowMap.cpp +++ b/src/osgWrappers/osgShadow/ParallelSplitShadowMap.cpp @@ -1,194 +1,194 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_ENUM_REFLECTOR(osgShadow::ParallelSplitShadowMap::SplitCalcMode) - I_DeclaringFile("osgShadow/ParallelSplitShadowMap"); - I_EnumLabel(osgShadow::ParallelSplitShadowMap::SPLIT_LINEAR); - I_EnumLabel(osgShadow::ParallelSplitShadowMap::SPLIT_EXP); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(osgShadow::ParallelSplitShadowMap) - I_DeclaringFile("osgShadow/ParallelSplitShadowMap"); - I_BaseType(osgShadow::ShadowTechnique); - I_ConstructorWithDefaults2(IN, osg::Geode **, debugGroup, NULL, IN, int, icountplanes, 3, - ____ParallelSplitShadowMap__osg_Geode_P1P1__int, - "", - ""); - I_ConstructorWithDefaults2(IN, const osgShadow::ParallelSplitShadowMap &, es, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, - ____ParallelSplitShadowMap__C5_ParallelSplitShadowMap_R1__C5_osg_CopyOp_R1, - "", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __osg_Object_P1__cloneType, - "Clone the type of an object, with Object* return type. ", - "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::VIRTUAL, - __osg_Object_P1__clone__C5_osg_CopyOp_R1, - "Clone an object, with Object* return type. ", - "Must be defined by derived classes. "); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "return the name of the object's library. ", - "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "return the name of the object's class type. ", - "Must be defined by derived classes. "); - I_Method0(void, init, - Properties::VIRTUAL, - __void__init, - "Initialize the ShadowedScene and local cached data structures. ", - ""); - I_Method1(void, update, IN, osg::NodeVisitor &, nv, - Properties::VIRTUAL, - __void__update__osg_NodeVisitor_R1, - "Run the update traversal of the ShadowedScene and update any loca chached data structures. ", - ""); - I_Method1(void, cull, IN, osgUtil::CullVisitor &, cv, - Properties::VIRTUAL, - __void__cull__osgUtil_CullVisitor_R1, - "Run the cull traversal of the ShadowedScene and set up the rendering for this ShadowTechnique. ", - ""); - I_Method0(void, cleanSceneGraph, - Properties::VIRTUAL, - __void__cleanSceneGraph, - "Clean scene graph from any shadow technique specific nodes, state and drawables. ", - ""); - I_Method0(void, setDebugColorOn, - Properties::NON_VIRTUAL, - __void__setDebugColorOn, - "Switch on the debug coloring in GLSL (only the first 3 texture/splits showed for visualisation. ", - ""); - I_Method1(void, setPolygonOffset, IN, const osg::Vec2f &, p, - Properties::NON_VIRTUAL, - __void__setPolygonOffset__C5_osg_Vec2f_R1, - "Set the polygon offset osg::Vec2f(factor,unit). ", - ""); - I_Method0(const osg::Vec2f &, getPolygonOffset, - Properties::NON_VIRTUAL, - __C5_osg_Vec2f_R1__getPolygonOffset, - "Get the polygon offset osg::Vec2f(factor,unit). ", - ""); - I_Method1(void, setTextureResolution, IN, unsigned int, resolution, - Properties::NON_VIRTUAL, - __void__setTextureResolution__unsigned_int, - "Set the texture resolution. ", - ""); - I_Method1(void, setMaxFarDistance, IN, double, farDist, - Properties::NON_VIRTUAL, - __void__setMaxFarDistance__double, - "Set the max far distance. ", - ""); - I_Method1(void, setMoveVCamBehindRCamFactor, IN, double, distFactor, - Properties::NON_VIRTUAL, - __void__setMoveVCamBehindRCamFactor__double, - "Set the factor for moving the virtual camera behind the real camera. ", - ""); - I_Method1(void, setMinNearDistanceForSplits, IN, double, nd, - Properties::NON_VIRTUAL, - __void__setMinNearDistanceForSplits__double, - "Set min near distance for splits. ", - ""); - I_Method1(void, setUserLight, IN, osg::Light *, light, - Properties::NON_VIRTUAL, - __void__setUserLight__osg_Light_P1, - "set a user defined light for shadow simulation (sun light, . ", - ".. ) when this light get passed to pssm, the scene's light are no longer collected and simulated. just this user passed light, it needs to be a directional light. "); - I_Method1(void, setAmbientBias, IN, const osg::Vec2 &, ambientBias, - Properties::NON_VIRTUAL, - __void__setAmbientBias__C5_osg_Vec2_R1, - "Set the values for the ambient bias the shader will use. ", - ""); - I_Method1(void, setFragmentShaderGenerator, IN, osgShadow::ParallelSplitShadowMap::FragmentShaderGenerator *, fsw, - Properties::NON_VIRTUAL, - __void__setFragmentShaderGenerator__FragmentShaderGenerator_P1, - "set fragment shader generator ", - ""); - I_MethodWithDefaults1(void, enableShadowGLSLFiltering, IN, bool, filtering, true, - Properties::NON_VIRTUAL, - __void__enableShadowGLSLFiltering__bool, - "enable / disable shadow filtering ", - ""); - I_MethodWithDefaults1(void, setSplitCalculationMode, IN, osgShadow::ParallelSplitShadowMap::SplitCalcMode, scm, osgShadow::ParallelSplitShadowMap::SPLIT_EXP, - Properties::NON_VIRTUAL, - __void__setSplitCalculationMode__SplitCalcMode, - "set split calculation mode ", - ""); - I_SimpleProperty(const osg::Vec2 &, AmbientBias, - 0, - __void__setAmbientBias__C5_osg_Vec2_R1); - I_SimpleProperty(osgShadow::ParallelSplitShadowMap::FragmentShaderGenerator *, FragmentShaderGenerator, - 0, - __void__setFragmentShaderGenerator__FragmentShaderGenerator_P1); - I_SimpleProperty(double, MaxFarDistance, - 0, - __void__setMaxFarDistance__double); - I_SimpleProperty(double, MinNearDistanceForSplits, - 0, - __void__setMinNearDistanceForSplits__double); - I_SimpleProperty(double, MoveVCamBehindRCamFactor, - 0, - __void__setMoveVCamBehindRCamFactor__double); - I_SimpleProperty(const osg::Vec2f &, PolygonOffset, - __C5_osg_Vec2f_R1__getPolygonOffset, - __void__setPolygonOffset__C5_osg_Vec2f_R1); - I_SimpleProperty(osgShadow::ParallelSplitShadowMap::SplitCalcMode, SplitCalculationMode, - 0, - __void__setSplitCalculationMode__SplitCalcMode); - I_SimpleProperty(unsigned int, TextureResolution, - 0, - __void__setTextureResolution__unsigned_int); - I_SimpleProperty(osg::Light *, UserLight, - 0, - __void__setUserLight__osg_Light_P1); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(osgShadow::ParallelSplitShadowMap::FragmentShaderGenerator) - I_DeclaringFile("osgShadow/ParallelSplitShadowMap"); - I_BaseType(osg::Referenced); - I_Constructor0(____FragmentShaderGenerator, - "", - ""); - I_Method6(std::string, generateGLSL_FragmentShader_BaseTex, IN, bool, debug, IN, unsigned int, splitCount, IN, double, textureRes, IN, bool, filtered, IN, unsigned int, nbrSplits, IN, unsigned int, textureOffset, - Properties::VIRTUAL, - __std_string__generateGLSL_FragmentShader_BaseTex__bool__unsigned_int__double__bool__unsigned_int__unsigned_int, - "generate the GLSL fragement shader ", - ""); -END_REFLECTOR - +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgShadow::ParallelSplitShadowMap::SplitCalcMode) + I_DeclaringFile("osgShadow/ParallelSplitShadowMap"); + I_EnumLabel(osgShadow::ParallelSplitShadowMap::SPLIT_LINEAR); + I_EnumLabel(osgShadow::ParallelSplitShadowMap::SPLIT_EXP); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgShadow::ParallelSplitShadowMap) + I_DeclaringFile("osgShadow/ParallelSplitShadowMap"); + I_BaseType(osgShadow::ShadowTechnique); + I_ConstructorWithDefaults2(IN, osg::Geode **, debugGroup, NULL, IN, int, icountplanes, 3, + ____ParallelSplitShadowMap__osg_Geode_P1P1__int, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgShadow::ParallelSplitShadowMap &, es, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ParallelSplitShadowMap__C5_ParallelSplitShadowMap_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method0(void, init, + Properties::VIRTUAL, + __void__init, + "Initialize the ShadowedScene and local cached data structures. ", + ""); + I_Method1(void, update, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__update__osg_NodeVisitor_R1, + "Run the update traversal of the ShadowedScene and update any loca chached data structures. ", + ""); + I_Method1(void, cull, IN, osgUtil::CullVisitor &, cv, + Properties::VIRTUAL, + __void__cull__osgUtil_CullVisitor_R1, + "Run the cull traversal of the ShadowedScene and set up the rendering for this ShadowTechnique. ", + ""); + I_Method0(void, cleanSceneGraph, + Properties::VIRTUAL, + __void__cleanSceneGraph, + "Clean scene graph from any shadow technique specific nodes, state and drawables. ", + ""); + I_Method0(void, setDebugColorOn, + Properties::NON_VIRTUAL, + __void__setDebugColorOn, + "Switch on the debug coloring in GLSL (only the first 3 texture/splits showed for visualisation. ", + ""); + I_Method1(void, setPolygonOffset, IN, const osg::Vec2f &, p, + Properties::NON_VIRTUAL, + __void__setPolygonOffset__C5_osg_Vec2f_R1, + "Set the polygon offset osg::Vec2f(factor,unit). ", + ""); + I_Method0(const osg::Vec2f &, getPolygonOffset, + Properties::NON_VIRTUAL, + __C5_osg_Vec2f_R1__getPolygonOffset, + "Get the polygon offset osg::Vec2f(factor,unit). ", + ""); + I_Method1(void, setTextureResolution, IN, unsigned int, resolution, + Properties::NON_VIRTUAL, + __void__setTextureResolution__unsigned_int, + "Set the texture resolution. ", + ""); + I_Method1(void, setMaxFarDistance, IN, double, farDist, + Properties::NON_VIRTUAL, + __void__setMaxFarDistance__double, + "Set the max far distance. ", + ""); + I_Method1(void, setMoveVCamBehindRCamFactor, IN, double, distFactor, + Properties::NON_VIRTUAL, + __void__setMoveVCamBehindRCamFactor__double, + "Set the factor for moving the virtual camera behind the real camera. ", + ""); + I_Method1(void, setMinNearDistanceForSplits, IN, double, nd, + Properties::NON_VIRTUAL, + __void__setMinNearDistanceForSplits__double, + "Set min near distance for splits. ", + ""); + I_Method1(void, setUserLight, IN, osg::Light *, light, + Properties::NON_VIRTUAL, + __void__setUserLight__osg_Light_P1, + "set a user defined light for shadow simulation (sun light, . ", + ".. ) when this light get passed to pssm, the scene's light are no longer collected and simulated. just this user passed light, it needs to be a directional light. "); + I_Method1(void, setAmbientBias, IN, const osg::Vec2 &, ambientBias, + Properties::NON_VIRTUAL, + __void__setAmbientBias__C5_osg_Vec2_R1, + "Set the values for the ambient bias the shader will use. ", + ""); + I_Method1(void, setFragmentShaderGenerator, IN, osgShadow::ParallelSplitShadowMap::FragmentShaderGenerator *, fsw, + Properties::NON_VIRTUAL, + __void__setFragmentShaderGenerator__FragmentShaderGenerator_P1, + "set fragment shader generator ", + ""); + I_MethodWithDefaults1(void, enableShadowGLSLFiltering, IN, bool, filtering, true, + Properties::NON_VIRTUAL, + __void__enableShadowGLSLFiltering__bool, + "enable / disable shadow filtering ", + ""); + I_MethodWithDefaults1(void, setSplitCalculationMode, IN, osgShadow::ParallelSplitShadowMap::SplitCalcMode, scm, osgShadow::ParallelSplitShadowMap::SPLIT_EXP, + Properties::NON_VIRTUAL, + __void__setSplitCalculationMode__SplitCalcMode, + "set split calculation mode ", + ""); + I_SimpleProperty(const osg::Vec2 &, AmbientBias, + 0, + __void__setAmbientBias__C5_osg_Vec2_R1); + I_SimpleProperty(osgShadow::ParallelSplitShadowMap::FragmentShaderGenerator *, FragmentShaderGenerator, + 0, + __void__setFragmentShaderGenerator__FragmentShaderGenerator_P1); + I_SimpleProperty(double, MaxFarDistance, + 0, + __void__setMaxFarDistance__double); + I_SimpleProperty(double, MinNearDistanceForSplits, + 0, + __void__setMinNearDistanceForSplits__double); + I_SimpleProperty(double, MoveVCamBehindRCamFactor, + 0, + __void__setMoveVCamBehindRCamFactor__double); + I_SimpleProperty(const osg::Vec2f &, PolygonOffset, + __C5_osg_Vec2f_R1__getPolygonOffset, + __void__setPolygonOffset__C5_osg_Vec2f_R1); + I_SimpleProperty(osgShadow::ParallelSplitShadowMap::SplitCalcMode, SplitCalculationMode, + 0, + __void__setSplitCalculationMode__SplitCalcMode); + I_SimpleProperty(unsigned int, TextureResolution, + 0, + __void__setTextureResolution__unsigned_int); + I_SimpleProperty(osg::Light *, UserLight, + 0, + __void__setUserLight__osg_Light_P1); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgShadow::ParallelSplitShadowMap::FragmentShaderGenerator) + I_DeclaringFile("osgShadow/ParallelSplitShadowMap"); + I_BaseType(osg::Referenced); + I_Constructor0(____FragmentShaderGenerator, + "", + ""); + I_Method6(std::string, generateGLSL_FragmentShader_BaseTex, IN, bool, debug, IN, unsigned int, splitCount, IN, double, textureRes, IN, bool, filtered, IN, unsigned int, nbrSplits, IN, unsigned int, textureOffset, + Properties::VIRTUAL, + __std_string__generateGLSL_FragmentShader_BaseTex__bool__unsigned_int__double__bool__unsigned_int__unsigned_int, + "generate the GLSL fragement shader ", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/osgShadow/ShadowMap.cpp b/src/osgWrappers/osgShadow/ShadowMap.cpp index 81a669d27..4cf29fb84 100644 --- a/src/osgWrappers/osgShadow/ShadowMap.cpp +++ b/src/osgWrappers/osgShadow/ShadowMap.cpp @@ -49,7 +49,7 @@ BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowMap) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", diff --git a/src/osgWrappers/osgShadow/ShadowTechnique.cpp b/src/osgWrappers/osgShadow/ShadowTechnique.cpp index ed84d509c..4ff55dd95 100644 --- a/src/osgWrappers/osgShadow/ShadowTechnique.cpp +++ b/src/osgWrappers/osgShadow/ShadowTechnique.cpp @@ -40,7 +40,7 @@ BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowTechnique) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", diff --git a/src/osgWrappers/osgShadow/ShadowTexture.cpp b/src/osgWrappers/osgShadow/ShadowTexture.cpp index 1a3294979..803c60085 100644 --- a/src/osgWrappers/osgShadow/ShadowTexture.cpp +++ b/src/osgWrappers/osgShadow/ShadowTexture.cpp @@ -39,7 +39,7 @@ BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowTexture) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", diff --git a/src/osgWrappers/osgShadow/ShadowVolume.cpp b/src/osgWrappers/osgShadow/ShadowVolume.cpp index 2e7d2235f..3150301f1 100644 --- a/src/osgWrappers/osgShadow/ShadowVolume.cpp +++ b/src/osgWrappers/osgShadow/ShadowVolume.cpp @@ -40,7 +40,7 @@ BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowVolume) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", diff --git a/src/osgWrappers/osgShadow/ShadowedScene.cpp b/src/osgWrappers/osgShadow/ShadowedScene.cpp index a17de04f1..f76077422 100644 --- a/src/osgWrappers/osgShadow/ShadowedScene.cpp +++ b/src/osgWrappers/osgShadow/ShadowedScene.cpp @@ -66,7 +66,7 @@ BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowedScene) __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); - I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + I_Method1(void, traverse, IN, osg::NodeVisitor &, x, Properties::VIRTUAL, __void__traverse__osg_NodeVisitor_R1, "Traverse downwards : calls children's accept method with NodeVisitor. ", diff --git a/src/osgWrappers/osgShadow/SoftShadowMap.cpp b/src/osgWrappers/osgShadow/SoftShadowMap.cpp index 30446224b..f3bbe226d 100644 --- a/src/osgWrappers/osgShadow/SoftShadowMap.cpp +++ b/src/osgWrappers/osgShadow/SoftShadowMap.cpp @@ -1,174 +1,174 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_OBJECT_REFLECTOR(osgShadow::SoftShadowMap) - I_DeclaringFile("osgShadow/SoftShadowMap"); - I_BaseType(osgShadow::ShadowTechnique); - I_Constructor0(____SoftShadowMap, - "", - ""); - I_ConstructorWithDefaults2(IN, const osgShadow::SoftShadowMap &, es, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, - ____SoftShadowMap__C5_SoftShadowMap_R1__C5_osg_CopyOp_R1, - "", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __osg_Object_P1__cloneType, - "Clone the type of an object, with Object* return type. ", - "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::VIRTUAL, - __osg_Object_P1__clone__C5_osg_CopyOp_R1, - "Clone an object, with Object* return type. ", - "Must be defined by derived classes. "); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "return the name of the object's library. ", - "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "return the name of the object's class type. ", - "Must be defined by derived classes. "); - I_Method1(void, setTextureUnit, IN, unsigned int, unit, - Properties::NON_VIRTUAL, - __void__setTextureUnit__unsigned_int, - "Set the texture unit that the shadow texture will be applied on. ", - ""); - I_Method0(unsigned int, getTextureUnit, - Properties::NON_VIRTUAL, - __unsigned_int__getTextureUnit, - "Get the texture unit that the shadow texture will be applied on. ", - ""); - I_Method1(void, setAmbientBias, IN, const osg::Vec2 &, ambientBias, - Properties::NON_VIRTUAL, - __void__setAmbientBias__C5_osg_Vec2_R1, - "Set the values for the ambient bias the shader will use. ", - ""); - I_Method2(void, setTextureSize, IN, int, width, IN, int, height, - Properties::NON_VIRTUAL, - __void__setTextureSize__int__int, - "Set the resolution of the rendertarget texture used for shadow generation. ", - ""); - I_Method1(void, setTextureSize, IN, const osg::Vec2s &, x, - Properties::NON_VIRTUAL, - __void__setTextureSize__C5_osg_Vec2s_R1, - "Set the resolution of the rendertarget texture used for shadow generation. ", - ""); - I_Method0(const osg::Vec2s &, getTextureSize, - Properties::NON_VIRTUAL, - __C5_osg_Vec2s_R1__getTextureSize, - "Get the resolution of the rendertarget texture used for shadow generation. ", - ""); - I_Method1(void, setBias, IN, float, bias, - Properties::NON_VIRTUAL, - __void__setBias__float, - "Add a small bias to the z-value when calculating the MVPT matrix, this can reduce shadow acne problem. ", - "Suitable values are 0-0.005 Default is 0. "); - I_Method0(float, getBias, - Properties::NON_VIRTUAL, - __float__getBias, - "Return the bias value set used when calculating the MVPT matrix. ", - ""); - I_Method1(void, setSoftnessWidth, IN, const float, softnesswidth, - Properties::NON_VIRTUAL, - __void__setSoftnessWidth__C5_float, - "Set the values for width of the soft penumbra the shader will use. ", - "Zero is for hard shadow (no penumbra). 0.01 is already very soft penumbra. Default is 0.005. "); - I_Method1(void, setJitteringScale, IN, const float, jitteringscale, - Properties::NON_VIRTUAL, - __void__setJitteringScale__C5_float, - "Set the values for jittering scale the shader will use. ", - "Zero is no jittering (i.e. see the banding in penumbra) High values (>64) cause 'pixelization' of the penumbra. Usually but not necessarily power of two number. Default is 32. "); - I_Method0(const osg::Vec2 &, getAmbientBias, - Properties::NON_VIRTUAL, - __C5_osg_Vec2_R1__getAmbientBias, - "Get the values that are used for the ambient bias in the shader. ", - ""); - I_Method0(const float, getSoftnessWidth, - Properties::NON_VIRTUAL, - __C5_float__getSoftnessWidth, - "Get the value used for width of the soft penumbra in the shader. ", - ""); - I_Method0(const float, getJitteringScale, - Properties::NON_VIRTUAL, - __C5_float__getJitteringScale, - "Get the value used for jittering scale in the shader. ", - ""); - I_Method0(void, init, - Properties::VIRTUAL, - __void__init, - "initialize the ShadowedScene and local cached data structures. ", - ""); - I_Method1(void, update, IN, osg::NodeVisitor &, nv, - Properties::VIRTUAL, - __void__update__osg_NodeVisitor_R1, - "run the update traversal of the ShadowedScene and update any loca chached data structures. ", - ""); - I_Method1(void, cull, IN, osgUtil::CullVisitor &, cv, - Properties::VIRTUAL, - __void__cull__osgUtil_CullVisitor_R1, - "run the cull traversal of the ShadowedScene and set up the rendering for this ShadowTechnique. ", - ""); - I_Method0(void, cleanSceneGraph, - Properties::VIRTUAL, - __void__cleanSceneGraph, - "Clean scene graph from any shadow technique specific nodes, state and drawables. ", - ""); - I_ProtectedMethod1(void, initJittering, IN, osg::StateSet *, x, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __void__initJittering__osg_StateSet_P1, - "", - ""); - I_SimpleProperty(const osg::Vec2 &, AmbientBias, - __C5_osg_Vec2_R1__getAmbientBias, - __void__setAmbientBias__C5_osg_Vec2_R1); - I_SimpleProperty(float, Bias, - __float__getBias, - __void__setBias__float); - I_SimpleProperty(const float, JitteringScale, - __C5_float__getJitteringScale, - __void__setJitteringScale__C5_float); - I_SimpleProperty(const float, SoftnessWidth, - __C5_float__getSoftnessWidth, - __void__setSoftnessWidth__C5_float); - I_SimpleProperty(const osg::Vec2s &, TextureSize, - __C5_osg_Vec2s_R1__getTextureSize, - __void__setTextureSize__C5_osg_Vec2s_R1); - I_SimpleProperty(unsigned int, TextureUnit, - __unsigned_int__getTextureUnit, - __void__setTextureUnit__unsigned_int); -END_REFLECTOR - +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgShadow::SoftShadowMap) + I_DeclaringFile("osgShadow/SoftShadowMap"); + I_BaseType(osgShadow::ShadowTechnique); + I_Constructor0(____SoftShadowMap, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgShadow::SoftShadowMap &, es, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____SoftShadowMap__C5_SoftShadowMap_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(void, setTextureUnit, IN, unsigned int, unit, + Properties::NON_VIRTUAL, + __void__setTextureUnit__unsigned_int, + "Set the texture unit that the shadow texture will be applied on. ", + ""); + I_Method0(unsigned int, getTextureUnit, + Properties::NON_VIRTUAL, + __unsigned_int__getTextureUnit, + "Get the texture unit that the shadow texture will be applied on. ", + ""); + I_Method1(void, setAmbientBias, IN, const osg::Vec2 &, ambientBias, + Properties::NON_VIRTUAL, + __void__setAmbientBias__C5_osg_Vec2_R1, + "Set the values for the ambient bias the shader will use. ", + ""); + I_Method2(void, setTextureSize, IN, int, width, IN, int, height, + Properties::NON_VIRTUAL, + __void__setTextureSize__int__int, + "Set the resolution of the rendertarget texture used for shadow generation. ", + ""); + I_Method1(void, setTextureSize, IN, const osg::Vec2s &, x, + Properties::NON_VIRTUAL, + __void__setTextureSize__C5_osg_Vec2s_R1, + "Set the resolution of the rendertarget texture used for shadow generation. ", + ""); + I_Method0(const osg::Vec2s &, getTextureSize, + Properties::NON_VIRTUAL, + __C5_osg_Vec2s_R1__getTextureSize, + "Get the resolution of the rendertarget texture used for shadow generation. ", + ""); + I_Method1(void, setBias, IN, float, bias, + Properties::NON_VIRTUAL, + __void__setBias__float, + "Add a small bias to the z-value when calculating the MVPT matrix, this can reduce shadow acne problem. ", + "Suitable values are 0-0.005 Default is 0. "); + I_Method0(float, getBias, + Properties::NON_VIRTUAL, + __float__getBias, + "Return the bias value set used when calculating the MVPT matrix. ", + ""); + I_Method1(void, setSoftnessWidth, IN, const float, softnesswidth, + Properties::NON_VIRTUAL, + __void__setSoftnessWidth__C5_float, + "Set the values for width of the soft penumbra the shader will use. ", + "Zero is for hard shadow (no penumbra). 0.01 is already very soft penumbra. Default is 0.005. "); + I_Method1(void, setJitteringScale, IN, const float, jitteringscale, + Properties::NON_VIRTUAL, + __void__setJitteringScale__C5_float, + "Set the values for jittering scale the shader will use. ", + "Zero is no jittering (i.e. see the banding in penumbra) High values (>64) cause 'pixelization' of the penumbra. Usually but not necessarily power of two number. Default is 32. "); + I_Method0(const osg::Vec2 &, getAmbientBias, + Properties::NON_VIRTUAL, + __C5_osg_Vec2_R1__getAmbientBias, + "Get the values that are used for the ambient bias in the shader. ", + ""); + I_Method0(const float, getSoftnessWidth, + Properties::NON_VIRTUAL, + __C5_float__getSoftnessWidth, + "Get the value used for width of the soft penumbra in the shader. ", + ""); + I_Method0(const float, getJitteringScale, + Properties::NON_VIRTUAL, + __C5_float__getJitteringScale, + "Get the value used for jittering scale in the shader. ", + ""); + I_Method0(void, init, + Properties::VIRTUAL, + __void__init, + "initialize the ShadowedScene and local cached data structures. ", + ""); + I_Method1(void, update, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__update__osg_NodeVisitor_R1, + "run the update traversal of the ShadowedScene and update any loca chached data structures. ", + ""); + I_Method1(void, cull, IN, osgUtil::CullVisitor &, cv, + Properties::VIRTUAL, + __void__cull__osgUtil_CullVisitor_R1, + "run the cull traversal of the ShadowedScene and set up the rendering for this ShadowTechnique. ", + ""); + I_Method0(void, cleanSceneGraph, + Properties::VIRTUAL, + __void__cleanSceneGraph, + "Clean scene graph from any shadow technique specific nodes, state and drawables. ", + ""); + I_ProtectedMethod1(void, initJittering, IN, osg::StateSet *, x, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__initJittering__osg_StateSet_P1, + "", + ""); + I_SimpleProperty(const osg::Vec2 &, AmbientBias, + __C5_osg_Vec2_R1__getAmbientBias, + __void__setAmbientBias__C5_osg_Vec2_R1); + I_SimpleProperty(float, Bias, + __float__getBias, + __void__setBias__float); + I_SimpleProperty(const float, JitteringScale, + __C5_float__getJitteringScale, + __void__setJitteringScale__C5_float); + I_SimpleProperty(const float, SoftnessWidth, + __C5_float__getSoftnessWidth, + __void__setSoftnessWidth__C5_float); + I_SimpleProperty(const osg::Vec2s &, TextureSize, + __C5_osg_Vec2s_R1__getTextureSize, + __void__setTextureSize__C5_osg_Vec2s_R1); + I_SimpleProperty(unsigned int, TextureUnit, + __unsigned_int__getTextureUnit, + __void__setTextureUnit__unsigned_int); +END_REFLECTOR + diff --git a/src/osgWrappers/osgSim/BlinkSequence.cpp b/src/osgWrappers/osgSim/BlinkSequence.cpp index 6bbf2e220..642bc7b7c 100644 --- a/src/osgWrappers/osgSim/BlinkSequence.cpp +++ b/src/osgWrappers/osgSim/BlinkSequence.cpp @@ -38,7 +38,7 @@ BEGIN_OBJECT_REFLECTOR(osgSim::BlinkSequence) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", @@ -149,7 +149,7 @@ BEGIN_OBJECT_REFLECTOR(osgSim::SequenceGroup) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", diff --git a/src/osgWrappers/osgSim/DOFTransform.cpp b/src/osgWrappers/osgSim/DOFTransform.cpp index e801c706c..3ce27c610 100644 --- a/src/osgWrappers/osgSim/DOFTransform.cpp +++ b/src/osgWrappers/osgSim/DOFTransform.cpp @@ -75,7 +75,7 @@ BEGIN_OBJECT_REFLECTOR(osgSim::DOFTransform) __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); - I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + I_Method1(void, traverse, IN, osg::NodeVisitor &, x, Properties::VIRTUAL, __void__traverse__osg_NodeVisitor_R1, "Traverse downwards : calls children's accept method with NodeVisitor. ", diff --git a/src/osgWrappers/osgSim/Impostor.cpp b/src/osgWrappers/osgSim/Impostor.cpp index a77fb4c65..169261c5b 100644 --- a/src/osgWrappers/osgSim/Impostor.cpp +++ b/src/osgWrappers/osgSim/Impostor.cpp @@ -68,7 +68,7 @@ BEGIN_OBJECT_REFLECTOR(osgSim::Impostor) __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); - I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + I_Method1(void, traverse, IN, osg::NodeVisitor &, x, Properties::VIRTUAL, __void__traverse__osg_NodeVisitor_R1, "Traverse downwards : calls children's accept method with NodeVisitor. ", diff --git a/src/osgWrappers/osgSim/LightPointNode.cpp b/src/osgWrappers/osgSim/LightPointNode.cpp index e656e22d5..1ab60cf7c 100644 --- a/src/osgWrappers/osgSim/LightPointNode.cpp +++ b/src/osgWrappers/osgSim/LightPointNode.cpp @@ -68,7 +68,7 @@ BEGIN_OBJECT_REFLECTOR(osgSim::LightPointNode) __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); - I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + I_Method1(void, traverse, IN, osg::NodeVisitor &, x, Properties::VIRTUAL, __void__traverse__osg_NodeVisitor_R1, "Traverse downwards : calls children's accept method with NodeVisitor. ", diff --git a/src/osgWrappers/osgSim/LightPointSystem.cpp b/src/osgWrappers/osgSim/LightPointSystem.cpp index 0d1239cad..6a49074ed 100644 --- a/src/osgWrappers/osgSim/LightPointSystem.cpp +++ b/src/osgWrappers/osgSim/LightPointSystem.cpp @@ -44,7 +44,7 @@ BEGIN_OBJECT_REFLECTOR(osgSim::LightPointSystem) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", diff --git a/src/osgWrappers/osgSim/MultiSwitch.cpp b/src/osgWrappers/osgSim/MultiSwitch.cpp index e34c62e60..dcf15b50a 100644 --- a/src/osgWrappers/osgSim/MultiSwitch.cpp +++ b/src/osgWrappers/osgSim/MultiSwitch.cpp @@ -68,7 +68,7 @@ BEGIN_OBJECT_REFLECTOR(osgSim::MultiSwitch) __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); - I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + I_Method1(void, traverse, IN, osg::NodeVisitor &, x, Properties::VIRTUAL, __void__traverse__osg_NodeVisitor_R1, "Traverse downwards : calls children's accept method with NodeVisitor. ", diff --git a/src/osgWrappers/osgSim/ObjectRecordData.cpp b/src/osgWrappers/osgSim/ObjectRecordData.cpp index b12f5ce01..abf19bd89 100644 --- a/src/osgWrappers/osgSim/ObjectRecordData.cpp +++ b/src/osgWrappers/osgSim/ObjectRecordData.cpp @@ -1,77 +1,77 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_ENUM_REFLECTOR(osgSim::ObjectRecordData::Flags) - I_DeclaringFile("osgSim/ObjectRecordData"); - I_EnumLabel(osgSim::ObjectRecordData::DONT_DISPLAY_IN_DAYLIGHT); - I_EnumLabel(osgSim::ObjectRecordData::DONT_DISPLAY_AT_DUSK); - I_EnumLabel(osgSim::ObjectRecordData::DONT_DISPLAY_AT_NIGHT); - I_EnumLabel(osgSim::ObjectRecordData::DONT_ILLUMINATE); - I_EnumLabel(osgSim::ObjectRecordData::FLAT_SHADED); - I_EnumLabel(osgSim::ObjectRecordData::GROUPS_SHADOW_OBJECT); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(osgSim::ObjectRecordData) - I_DeclaringFile("osgSim/ObjectRecordData"); - I_BaseType(osg::Object); - I_Constructor0(____ObjectRecordData, - "", - ""); - I_ConstructorWithDefaults2(IN, const osgSim::ObjectRecordData &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, - ____ObjectRecordData__C5_ObjectRecordData_R1__C5_osg_CopyOp_R1, - "", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __osg_Object_P1__cloneType, - "Clone the type of an object, with Object* return type. ", - "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::VIRTUAL, - __osg_Object_P1__clone__C5_osg_CopyOp_R1, - "Clone an object, with Object* return type. ", - "Must be defined by derived classes. "); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "return the name of the object's library. ", - "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "return the name of the object's class type. ", - "Must be defined by derived classes. "); - I_PublicMemberProperty(unsigned int, _flags); - I_PublicMemberProperty(short, _relativePriority); - I_PublicMemberProperty(unsigned short, _transparency); - I_PublicMemberProperty(short, _effectID1); - I_PublicMemberProperty(short, _effectID2); - I_PublicMemberProperty(short, _significance); -END_REFLECTOR - +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgSim::ObjectRecordData::Flags) + I_DeclaringFile("osgSim/ObjectRecordData"); + I_EnumLabel(osgSim::ObjectRecordData::DONT_DISPLAY_IN_DAYLIGHT); + I_EnumLabel(osgSim::ObjectRecordData::DONT_DISPLAY_AT_DUSK); + I_EnumLabel(osgSim::ObjectRecordData::DONT_DISPLAY_AT_NIGHT); + I_EnumLabel(osgSim::ObjectRecordData::DONT_ILLUMINATE); + I_EnumLabel(osgSim::ObjectRecordData::FLAT_SHADED); + I_EnumLabel(osgSim::ObjectRecordData::GROUPS_SHADOW_OBJECT); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgSim::ObjectRecordData) + I_DeclaringFile("osgSim/ObjectRecordData"); + I_BaseType(osg::Object); + I_Constructor0(____ObjectRecordData, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgSim::ObjectRecordData &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ObjectRecordData__C5_ObjectRecordData_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_PublicMemberProperty(unsigned int, _flags); + I_PublicMemberProperty(short, _relativePriority); + I_PublicMemberProperty(unsigned short, _transparency); + I_PublicMemberProperty(short, _effectID1); + I_PublicMemberProperty(short, _effectID2); + I_PublicMemberProperty(short, _significance); +END_REFLECTOR + diff --git a/src/osgWrappers/osgSim/OverlayNode.cpp b/src/osgWrappers/osgSim/OverlayNode.cpp index e7a63bfb3..238b3032e 100644 --- a/src/osgWrappers/osgSim/OverlayNode.cpp +++ b/src/osgWrappers/osgSim/OverlayNode.cpp @@ -76,7 +76,7 @@ BEGIN_OBJECT_REFLECTOR(osgSim::OverlayNode) __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); - I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + I_Method1(void, traverse, IN, osg::NodeVisitor &, x, Properties::VIRTUAL, __void__traverse__osg_NodeVisitor_R1, "Traverse downwards : calls children's accept method with NodeVisitor. ", diff --git a/src/osgWrappers/osgSim/ScalarBar.cpp b/src/osgWrappers/osgSim/ScalarBar.cpp index 83bcdc08b..9aaf40025 100644 --- a/src/osgWrappers/osgSim/ScalarBar.cpp +++ b/src/osgWrappers/osgSim/ScalarBar.cpp @@ -40,7 +40,7 @@ BEGIN_OBJECT_REFLECTOR(osgSim::ScalarBar) I_ConstructorWithDefaults7(IN, int, numColors, , IN, int, numLabels, , IN, osgSim::ScalarsToColors *, stc, , IN, const std::string &, title, , IN, osgSim::ScalarBar::Orientation, orientation, osgSim::ScalarBar::HORIZONTAL, IN, float, aspectRatio, 0.25, IN, osgSim::ScalarBar::ScalarPrinter *, sp, new osgSim::ScalarBar::ScalarPrinter, ____ScalarBar__int__int__ScalarsToColors_P1__C5_std_string_R1__Orientation__float__ScalarPrinter_P1, "Construct a ScalarBar with the supplied parameters. ", - " param numColors Specify the number of colors in the scalar bar. Color interpolation occurs where necessary. numLabels Specify the number of labels in the scalar bar. stc The ScalarsToColors defining the range of scalars and the colors they map to. title The title to be used when displaying the ScalarBar. Specify \"\" for no title. orientation The orientation of the ScalarBar. param aspectRatio The aspect ration (y/x) for the displayed bar. Bear in mind you may want to change this if you change the orientation. sp A ScalarPrinter object for the ScalarBar. For every displayed ScalarBar label, the scalar value will be passed to the ScalarPrinter object to turn it into a string. Users may override the default ScalarPrinter object to map scalars to whatever strings they wish. see Orientation. see ScalarPrinter "); + " param numColors Specify the number of colors in the scalar bar. Color interpolation occurs where necessary. numLabels Specify the number of labels in the scalar bar. stc The ScalarsToColors defining the range of scalars and the colors they map to. title The title to be used when displaying the ScalarBar. Specify \"\" for no title. orientation The orientation of the ScalarBar. param aspectRatio The aspect ration (y/x) for the displayed bar. Bear in mind you may want to change this if you change the orientation. sp A ScalarPrinter object for the ScalarBar. For every displayed ScalarBar label, the scalar value will be passed to the ScalarPrinter object to turn it into a string. Users may override the default ScalarPrinter object to map scalars to whatever strings they wish. see Orientation. see ScalarPrinter "); I_Constructor2(IN, const osgSim::ScalarBar &, rhs, IN, const osg::CopyOp &, co, ____ScalarBar__C5_ScalarBar_R1__C5_osg_CopyOp_R1, "Copy constructor. ", @@ -159,7 +159,7 @@ BEGIN_OBJECT_REFLECTOR(osgSim::ScalarBar) Properties::NON_VIRTUAL, __void__setScalarPrinter__ScalarPrinter_P1, "Set a ScalarPrinter object for the ScalarBar. ", - "For every displayed ScalarBar label, the scalar value will be passed to the ScalarPrinter object to turn it into a string. Users may override the default ScalarPrinter object to map scalars to whatever strings they wish.ScalarPrinter "); + "For every displayed ScalarBar label, the scalar value will be passed to the ScalarPrinter object to turn it into a string. Users may override the default ScalarPrinter object to map scalars to whatever strings they wish. ScalarPrinter "); I_Method0(const osgSim::ScalarBar::ScalarPrinter *, getScalarPrinter, Properties::NON_VIRTUAL, __C5_ScalarPrinter_P1__getScalarPrinter, diff --git a/src/osgWrappers/osgSim/Sector.cpp b/src/osgWrappers/osgSim/Sector.cpp index ef3ead9d7..8d14b7cc8 100644 --- a/src/osgWrappers/osgSim/Sector.cpp +++ b/src/osgWrappers/osgSim/Sector.cpp @@ -44,7 +44,7 @@ BEGIN_OBJECT_REFLECTOR(osgSim::AzimElevationSector) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", @@ -108,7 +108,7 @@ BEGIN_OBJECT_REFLECTOR(osgSim::AzimSector) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", @@ -149,7 +149,7 @@ BEGIN_OBJECT_REFLECTOR(osgSim::ConeSector) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", @@ -224,7 +224,7 @@ BEGIN_OBJECT_REFLECTOR(osgSim::DirectionalSector) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", @@ -377,7 +377,7 @@ BEGIN_OBJECT_REFLECTOR(osgSim::ElevationSector) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", diff --git a/src/osgWrappers/osgSim/SphereSegment.cpp b/src/osgWrappers/osgSim/SphereSegment.cpp index 92afb0e4d..beccac126 100644 --- a/src/osgWrappers/osgSim/SphereSegment.cpp +++ b/src/osgWrappers/osgSim/SphereSegment.cpp @@ -29,8 +29,6 @@ #undef OUT #endif -TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osg::Vec3Array > >, osgSim::SphereSegment::LineList) - BEGIN_ENUM_REFLECTOR(osgSim::SphereSegment::DrawMask) I_DeclaringFile("osgSim/SphereSegment"); I_EnumLabel(osgSim::SphereSegment::SURFACE); @@ -40,6 +38,8 @@ BEGIN_ENUM_REFLECTOR(osgSim::SphereSegment::DrawMask) I_EnumLabel(osgSim::SphereSegment::ALL); END_REFLECTOR +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osg::Vec3Array > >, osgSim::SphereSegment::LineList) + BEGIN_OBJECT_REFLECTOR(osgSim::SphereSegment) I_DeclaringFile("osgSim/SphereSegment"); I_BaseType(osg::Geode); diff --git a/src/osgWrappers/osgSim/VisibilityGroup.cpp b/src/osgWrappers/osgSim/VisibilityGroup.cpp index e5df19b49..9c2b0655e 100644 --- a/src/osgWrappers/osgSim/VisibilityGroup.cpp +++ b/src/osgWrappers/osgSim/VisibilityGroup.cpp @@ -64,7 +64,7 @@ BEGIN_OBJECT_REFLECTOR(osgSim::VisibilityGroup) __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); - I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + I_Method1(void, traverse, IN, osg::NodeVisitor &, x, Properties::VIRTUAL, __void__traverse__osg_NodeVisitor_R1, "Traverse downwards : calls children's accept method with NodeVisitor. ", diff --git a/src/osgWrappers/osgTerrain/GeometryTechnique.cpp b/src/osgWrappers/osgTerrain/GeometryTechnique.cpp index d351562b3..8b5c50c76 100644 --- a/src/osgWrappers/osgTerrain/GeometryTechnique.cpp +++ b/src/osgWrappers/osgTerrain/GeometryTechnique.cpp @@ -1,181 +1,181 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_ENUM_REFLECTOR(osgTerrain::GeometryTechnique::FilterType) - I_DeclaringFile("osgTerrain/GeometryTechnique"); - I_EnumLabel(osgTerrain::GeometryTechnique::GAUSSIAN); - I_EnumLabel(osgTerrain::GeometryTechnique::SMOOTH); - I_EnumLabel(osgTerrain::GeometryTechnique::SHARPEN); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(osgTerrain::GeometryTechnique) - I_DeclaringFile("osgTerrain/GeometryTechnique"); - I_BaseType(osgTerrain::TerrainTechnique); - I_Constructor0(____GeometryTechnique, - "", - ""); - I_ConstructorWithDefaults2(IN, const osgTerrain::GeometryTechnique &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, - ____GeometryTechnique__C5_GeometryTechnique_R1__C5_osg_CopyOp_R1, - "Copy constructor using CopyOp to manage deep vs shallow copy. ", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __osg_Object_P1__cloneType, - "Clone the type of an object, with Object* return type. ", - "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::VIRTUAL, - __osg_Object_P1__clone__C5_osg_CopyOp_R1, - "Clone an object, with Object* return type. ", - "Must be defined by derived classes. "); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "return the name of the object's library. ", - "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "return the name of the object's class type. ", - "Must be defined by derived classes. "); - I_Method0(void, init, - Properties::VIRTUAL, - __void__init, - "", - ""); - I_Method0(osgTerrain::Locator *, computeMasterLocator, - Properties::VIRTUAL, - __Locator_P1__computeMasterLocator, - "", - ""); - I_Method1(osg::Vec3d, computeCenterModel, IN, osgTerrain::Locator *, masterLocator, - Properties::VIRTUAL, - __osg_Vec3d__computeCenterModel__Locator_P1, - "", - ""); - I_Method2(void, generateGeometry, IN, osgTerrain::Locator *, masterLocator, IN, const osg::Vec3d &, centerModel, - Properties::VIRTUAL, - __void__generateGeometry__Locator_P1__C5_osg_Vec3d_R1, - "", - ""); - I_Method0(void, applyColorLayers, - Properties::VIRTUAL, - __void__applyColorLayers, - "", - ""); - I_Method0(void, applyTransparency, - Properties::VIRTUAL, - __void__applyTransparency, - "", - ""); - I_Method0(void, smoothGeometry, - Properties::VIRTUAL, - __void__smoothGeometry, - "", - ""); - I_Method1(void, update, IN, osgUtil::UpdateVisitor *, nv, - Properties::VIRTUAL, - __void__update__osgUtil_UpdateVisitor_P1, - "", - ""); - I_Method1(void, cull, IN, osgUtil::CullVisitor *, nv, - Properties::VIRTUAL, - __void__cull__osgUtil_CullVisitor_P1, - "", - ""); - I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, - Properties::VIRTUAL, - __void__traverse__osg_NodeVisitor_R1, - "Traverse the terain subgraph. ", - ""); - I_Method0(void, cleanSceneGraph, - Properties::VIRTUAL, - __void__cleanSceneGraph, - "Clean scene graph from any terrain technique specific nodes. ", - ""); - I_Method1(void, setFilterBias, IN, float, filterBias, - Properties::NON_VIRTUAL, - __void__setFilterBias__float, - "", - ""); - I_Method0(float, getFilterBias, - Properties::NON_VIRTUAL, - __float__getFilterBias, - "", - ""); - I_Method1(void, setFilterWidth, IN, float, filterWidth, - Properties::NON_VIRTUAL, - __void__setFilterWidth__float, - "", - ""); - I_Method0(float, getFilterWidth, - Properties::NON_VIRTUAL, - __float__getFilterWidth, - "", - ""); - I_Method1(void, setFilterMatrix, IN, const osg::Matrix3 &, matrix, - Properties::NON_VIRTUAL, - __void__setFilterMatrix__C5_osg_Matrix3_R1, - "", - ""); - I_Method0(osg::Matrix3 &, getFilterMatrix, - Properties::NON_VIRTUAL, - __osg_Matrix3_R1__getFilterMatrix, - "", - ""); - I_Method0(const osg::Matrix3 &, getFilterMatrix, - Properties::NON_VIRTUAL, - __C5_osg_Matrix3_R1__getFilterMatrix, - "", - ""); - I_Method1(void, setFilterMatrixAs, IN, osgTerrain::GeometryTechnique::FilterType, filterType, - Properties::NON_VIRTUAL, - __void__setFilterMatrixAs__FilterType, - "", - ""); - I_SimpleProperty(float, FilterBias, - __float__getFilterBias, - __void__setFilterBias__float); - I_SimpleProperty(const osg::Matrix3 &, FilterMatrix, - __C5_osg_Matrix3_R1__getFilterMatrix, - __void__setFilterMatrix__C5_osg_Matrix3_R1); - I_SimpleProperty(osgTerrain::GeometryTechnique::FilterType, FilterMatrixAs, - 0, - __void__setFilterMatrixAs__FilterType); - I_SimpleProperty(float, FilterWidth, - __float__getFilterWidth, - __void__setFilterWidth__float); -END_REFLECTOR - +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgTerrain::GeometryTechnique::FilterType) + I_DeclaringFile("osgTerrain/GeometryTechnique"); + I_EnumLabel(osgTerrain::GeometryTechnique::GAUSSIAN); + I_EnumLabel(osgTerrain::GeometryTechnique::SMOOTH); + I_EnumLabel(osgTerrain::GeometryTechnique::SHARPEN); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgTerrain::GeometryTechnique) + I_DeclaringFile("osgTerrain/GeometryTechnique"); + I_BaseType(osgTerrain::TerrainTechnique); + I_Constructor0(____GeometryTechnique, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgTerrain::GeometryTechnique &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____GeometryTechnique__C5_GeometryTechnique_R1__C5_osg_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method0(void, init, + Properties::VIRTUAL, + __void__init, + "", + ""); + I_Method0(osgTerrain::Locator *, computeMasterLocator, + Properties::VIRTUAL, + __Locator_P1__computeMasterLocator, + "", + ""); + I_Method1(osg::Vec3d, computeCenterModel, IN, osgTerrain::Locator *, masterLocator, + Properties::VIRTUAL, + __osg_Vec3d__computeCenterModel__Locator_P1, + "", + ""); + I_Method2(void, generateGeometry, IN, osgTerrain::Locator *, masterLocator, IN, const osg::Vec3d &, centerModel, + Properties::VIRTUAL, + __void__generateGeometry__Locator_P1__C5_osg_Vec3d_R1, + "", + ""); + I_Method0(void, applyColorLayers, + Properties::VIRTUAL, + __void__applyColorLayers, + "", + ""); + I_Method0(void, applyTransparency, + Properties::VIRTUAL, + __void__applyTransparency, + "", + ""); + I_Method0(void, smoothGeometry, + Properties::VIRTUAL, + __void__smoothGeometry, + "", + ""); + I_Method1(void, update, IN, osgUtil::UpdateVisitor *, nv, + Properties::VIRTUAL, + __void__update__osgUtil_UpdateVisitor_P1, + "", + ""); + I_Method1(void, cull, IN, osgUtil::CullVisitor *, nv, + Properties::VIRTUAL, + __void__cull__osgUtil_CullVisitor_P1, + "", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__traverse__osg_NodeVisitor_R1, + "Traverse the terain subgraph. ", + ""); + I_Method0(void, cleanSceneGraph, + Properties::VIRTUAL, + __void__cleanSceneGraph, + "Clean scene graph from any terrain technique specific nodes. ", + ""); + I_Method1(void, setFilterBias, IN, float, filterBias, + Properties::NON_VIRTUAL, + __void__setFilterBias__float, + "", + ""); + I_Method0(float, getFilterBias, + Properties::NON_VIRTUAL, + __float__getFilterBias, + "", + ""); + I_Method1(void, setFilterWidth, IN, float, filterWidth, + Properties::NON_VIRTUAL, + __void__setFilterWidth__float, + "", + ""); + I_Method0(float, getFilterWidth, + Properties::NON_VIRTUAL, + __float__getFilterWidth, + "", + ""); + I_Method1(void, setFilterMatrix, IN, const osg::Matrix3 &, matrix, + Properties::NON_VIRTUAL, + __void__setFilterMatrix__C5_osg_Matrix3_R1, + "", + ""); + I_Method0(osg::Matrix3 &, getFilterMatrix, + Properties::NON_VIRTUAL, + __osg_Matrix3_R1__getFilterMatrix, + "", + ""); + I_Method0(const osg::Matrix3 &, getFilterMatrix, + Properties::NON_VIRTUAL, + __C5_osg_Matrix3_R1__getFilterMatrix, + "", + ""); + I_Method1(void, setFilterMatrixAs, IN, osgTerrain::GeometryTechnique::FilterType, filterType, + Properties::NON_VIRTUAL, + __void__setFilterMatrixAs__FilterType, + "", + ""); + I_SimpleProperty(float, FilterBias, + __float__getFilterBias, + __void__setFilterBias__float); + I_SimpleProperty(const osg::Matrix3 &, FilterMatrix, + __C5_osg_Matrix3_R1__getFilterMatrix, + __void__setFilterMatrix__C5_osg_Matrix3_R1); + I_SimpleProperty(osgTerrain::GeometryTechnique::FilterType, FilterMatrixAs, + 0, + __void__setFilterMatrixAs__FilterType); + I_SimpleProperty(float, FilterWidth, + __float__getFilterWidth, + __void__setFilterWidth__float); +END_REFLECTOR + diff --git a/src/osgWrappers/osgTerrain/Layer.cpp b/src/osgWrappers/osgTerrain/Layer.cpp index 8dcce3b3f..dbe9dc2e4 100644 --- a/src/osgWrappers/osgTerrain/Layer.cpp +++ b/src/osgWrappers/osgTerrain/Layer.cpp @@ -1,982 +1,871 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_OBJECT_REFLECTOR(osgTerrain::CompositeLayer) - I_DeclaringFile("osgTerrain/Layer"); - I_BaseType(osgTerrain::Layer); - I_Constructor0(____CompositeLayer, - "", - ""); - I_ConstructorWithDefaults2(IN, const osgTerrain::CompositeLayer &, compositeLayer, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, - ____CompositeLayer__C5_CompositeLayer_R1__C5_osg_CopyOp_R1, - "Copy constructor using CopyOp to manage deep vs shallow copy. ", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __osg_Object_P1__cloneType, - "Clone the type of an object, with Object* return type. ", - "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::VIRTUAL, - __osg_Object_P1__clone__C5_osg_CopyOp_R1, - "Clone an object, with Object* return type. ", - "Must be defined by derived classes. "); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "return the name of the object's library. ", - "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "return the name of the object's class type. ", - "Must be defined by derived classes. "); - I_Method0(void, clear, - Properties::NON_VIRTUAL, - __void__clear, - "", - ""); - I_Method2(void, setFileName, IN, unsigned int, i, IN, const std::string &, filename, - Properties::NON_VIRTUAL, - __void__setFileName__unsigned_int__C5_std_string_R1, - "", - ""); - I_Method1(const std::string &, getFileName, IN, unsigned int, i, - Properties::NON_VIRTUAL, - __C5_std_string_R1__getFileName__unsigned_int, - "", - ""); - I_Method2(void, setLayer, IN, unsigned int, i, IN, osgTerrain::Layer *, layer, - Properties::NON_VIRTUAL, - __void__setLayer__unsigned_int__Layer_P1, - "", - ""); - I_Method1(osgTerrain::Layer *, getLayer, IN, unsigned int, i, - Properties::NON_VIRTUAL, - __Layer_P1__getLayer__unsigned_int, - "", - ""); - I_Method1(const osgTerrain::Layer *, getLayer, IN, unsigned int, i, - Properties::NON_VIRTUAL, - __C5_Layer_P1__getLayer__unsigned_int, - "", - ""); - I_Method1(void, addLayer, IN, const std::string &, filename, - Properties::NON_VIRTUAL, - __void__addLayer__C5_std_string_R1, - "", - ""); - I_Method1(void, addLayer, IN, osgTerrain::Layer *, layer, - Properties::NON_VIRTUAL, - __void__addLayer__Layer_P1, - "", - ""); - I_Method1(void, removeLayer, IN, unsigned int, i, - Properties::NON_VIRTUAL, - __void__removeLayer__unsigned_int, - "", - ""); - I_Method0(unsigned int, getNumLayers, - Properties::NON_VIRTUAL, - __unsigned_int__getNumLayers, - "", - ""); - I_IndexedProperty(const std::string &, FileName, - __C5_std_string_R1__getFileName__unsigned_int, - __void__setFileName__unsigned_int__C5_std_string_R1, - 0); - I_ArrayProperty(osgTerrain::Layer *, Layer, - __Layer_P1__getLayer__unsigned_int, - __void__setLayer__unsigned_int__Layer_P1, - __unsigned_int__getNumLayers, - __void__addLayer__Layer_P1, - 0, - __void__removeLayer__unsigned_int); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(osgTerrain::ContourLayer) - I_DeclaringFile("osgTerrain/Layer"); - I_BaseType(osgTerrain::Layer); - I_ConstructorWithDefaults1(IN, osg::TransferFunction1D *, tf, 0, - Properties::NON_EXPLICIT, - ____ContourLayer__osg_TransferFunction1D_P1, - "", - ""); - I_ConstructorWithDefaults2(IN, const osgTerrain::ContourLayer &, tfLayer, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, - ____ContourLayer__C5_ContourLayer_R1__C5_osg_CopyOp_R1, - "Copy constructor using CopyOp to manage deep vs shallow copy. ", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __osg_Object_P1__cloneType, - "Clone the type of an object, with Object* return type. ", - "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::VIRTUAL, - __osg_Object_P1__clone__C5_osg_CopyOp_R1, - "Clone an object, with Object* return type. ", - "Must be defined by derived classes. "); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "return the name of the object's library. ", - "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "return the name of the object's class type. ", - "Must be defined by derived classes. "); - I_Method2(bool, transform, IN, float, offset, IN, float, scale, - Properties::VIRTUAL, - __bool__transform__float__float, - "", - ""); - I_Method1(void, setTransferFunction, IN, osg::TransferFunction1D *, tf, - Properties::NON_VIRTUAL, - __void__setTransferFunction__osg_TransferFunction1D_P1, - "", - ""); - I_Method0(osg::TransferFunction1D *, getTransferFunction, - Properties::NON_VIRTUAL, - __osg_TransferFunction1D_P1__getTransferFunction, - "", - ""); - I_Method0(const osg::TransferFunction1D *, getTransferFunction, - Properties::NON_VIRTUAL, - __C5_osg_TransferFunction1D_P1__getTransferFunction, - "", - ""); - I_Method0(osg::Image *, getImage, - Properties::VIRTUAL, - __osg_Image_P1__getImage, - "Return image associated with layer. ", - ""); - I_Method0(const osg::Image *, getImage, - Properties::VIRTUAL, - __C5_osg_Image_P1__getImage, - "Return const image associated with layer. ", - ""); - I_Method0(unsigned int, getNumColumns, - Properties::VIRTUAL, - __unsigned_int__getNumColumns, - "", - ""); - I_Method0(unsigned int, getNumRows, - Properties::VIRTUAL, - __unsigned_int__getNumRows, - "", - ""); - I_Method3(bool, getValue, IN, unsigned int, i, IN, unsigned int, j, IN, float &, value, - Properties::VIRTUAL, - __bool__getValue__unsigned_int__unsigned_int__float_R1, - "", - ""); - I_Method3(bool, getValue, IN, unsigned int, i, IN, unsigned int, j, IN, osg::Vec2 &, value, - Properties::VIRTUAL, - __bool__getValue__unsigned_int__unsigned_int__osg_Vec2_R1, - "", - ""); - I_Method3(bool, getValue, IN, unsigned int, i, IN, unsigned int, j, IN, osg::Vec3 &, value, - Properties::VIRTUAL, - __bool__getValue__unsigned_int__unsigned_int__osg_Vec3_R1, - "", - ""); - I_Method3(bool, getValue, IN, unsigned int, i, IN, unsigned int, j, IN, osg::Vec4 &, value, - Properties::VIRTUAL, - __bool__getValue__unsigned_int__unsigned_int__osg_Vec4_R1, - "", - ""); - I_Method0(void, dirty, - Properties::VIRTUAL, - __void__dirty, - "increment the modified count. ", - "\" "); - I_Method1(void, setModifiedCount, IN, unsigned int, value, - Properties::VIRTUAL, - __void__setModifiedCount__unsigned_int, - "Set the modified count value. ", - ""); - I_Method0(unsigned int, getModifiedCount, - Properties::VIRTUAL, - __unsigned_int__getModifiedCount, - "Get modified count value. ", - ""); - I_SimpleProperty(osg::Image *, Image, - __osg_Image_P1__getImage, - 0); - I_SimpleProperty(unsigned int, ModifiedCount, - __unsigned_int__getModifiedCount, - __void__setModifiedCount__unsigned_int); - I_SimpleProperty(osg::TransferFunction1D *, TransferFunction, - __osg_TransferFunction1D_P1__getTransferFunction, - __void__setTransferFunction__osg_TransferFunction1D_P1); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(osgTerrain::HeightFieldLayer) - I_DeclaringFile("osgTerrain/Layer"); - I_BaseType(osgTerrain::Layer); - I_ConstructorWithDefaults1(IN, osg::HeightField *, hf, 0, - Properties::NON_EXPLICIT, - ____HeightFieldLayer__osg_HeightField_P1, - "", - ""); - I_ConstructorWithDefaults2(IN, const osgTerrain::HeightFieldLayer &, hfLayer, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, - ____HeightFieldLayer__C5_HeightFieldLayer_R1__C5_osg_CopyOp_R1, - "Copy constructor using CopyOp to manage deep vs shallow copy. ", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __osg_Object_P1__cloneType, - "Clone the type of an object, with Object* return type. ", - "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::VIRTUAL, - __osg_Object_P1__clone__C5_osg_CopyOp_R1, - "Clone an object, with Object* return type. ", - "Must be defined by derived classes. "); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "return the name of the object's library. ", - "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "return the name of the object's class type. ", - "Must be defined by derived classes. "); - I_Method1(void, setFileName, IN, const std::string &, filename, - Properties::VIRTUAL, - __void__setFileName__C5_std_string_R1, - "Set the file name of the data associated with this layer. ", - ""); - I_Method0(const std::string &, getFileName, - Properties::VIRTUAL, - __C5_std_string_R1__getFileName, - "Get the file name of the layer. ", - ""); - I_Method2(bool, transform, IN, float, offset, IN, float, scale, - Properties::VIRTUAL, - __bool__transform__float__float, - "", - ""); - I_Method1(void, setHeightField, IN, osg::HeightField *, hf, - Properties::NON_VIRTUAL, - __void__setHeightField__osg_HeightField_P1, - "", - ""); - I_Method0(osg::HeightField *, getHeightField, - Properties::NON_VIRTUAL, - __osg_HeightField_P1__getHeightField, - "", - ""); - I_Method0(const osg::HeightField *, getHeightField, - Properties::NON_VIRTUAL, - __C5_osg_HeightField_P1__getHeightField, - "", - ""); - I_Method0(unsigned int, getNumColumns, - Properties::VIRTUAL, - __unsigned_int__getNumColumns, - "", - ""); - I_Method0(unsigned int, getNumRows, - Properties::VIRTUAL, - __unsigned_int__getNumRows, - "", - ""); - I_Method3(bool, getValue, IN, unsigned int, i, IN, unsigned int, j, IN, float &, value, - Properties::VIRTUAL, - __bool__getValue__unsigned_int__unsigned_int__float_R1, - "", - ""); - I_Method3(bool, getValue, IN, unsigned int, i, IN, unsigned int, j, IN, osg::Vec2 &, value, - Properties::VIRTUAL, - __bool__getValue__unsigned_int__unsigned_int__osg_Vec2_R1, - "", - ""); - I_Method3(bool, getValue, IN, unsigned int, i, IN, unsigned int, j, IN, osg::Vec3 &, value, - Properties::VIRTUAL, - __bool__getValue__unsigned_int__unsigned_int__osg_Vec3_R1, - "", - ""); - I_Method3(bool, getValue, IN, unsigned int, i, IN, unsigned int, j, IN, osg::Vec4 &, value, - Properties::VIRTUAL, - __bool__getValue__unsigned_int__unsigned_int__osg_Vec4_R1, - "", - ""); - I_Method0(void, dirty, - Properties::VIRTUAL, - __void__dirty, - "increment the modified count. ", - "\" "); - I_Method1(void, setModifiedCount, IN, unsigned int, value, - Properties::VIRTUAL, - __void__setModifiedCount__unsigned_int, - "Set the modified count value. ", - ""); - I_Method0(unsigned int, getModifiedCount, - Properties::VIRTUAL, - __unsigned_int__getModifiedCount, - "Get modified count value. ", - ""); - I_SimpleProperty(const std::string &, FileName, - __C5_std_string_R1__getFileName, - __void__setFileName__C5_std_string_R1); - I_SimpleProperty(osg::HeightField *, HeightField, - __osg_HeightField_P1__getHeightField, - __void__setHeightField__osg_HeightField_P1); - I_SimpleProperty(unsigned int, ModifiedCount, - __unsigned_int__getModifiedCount, - __void__setModifiedCount__unsigned_int); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(osgTerrain::ImageLayer) - I_DeclaringFile("osgTerrain/Layer"); - I_BaseType(osgTerrain::Layer); - I_ConstructorWithDefaults1(IN, osg::Image *, image, 0, - Properties::NON_EXPLICIT, - ____ImageLayer__osg_Image_P1, - "", - ""); - I_ConstructorWithDefaults2(IN, const osgTerrain::ImageLayer &, imageLayer, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, - ____ImageLayer__C5_ImageLayer_R1__C5_osg_CopyOp_R1, - "Copy constructor using CopyOp to manage deep vs shallow copy. ", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __osg_Object_P1__cloneType, - "Clone the type of an object, with Object* return type. ", - "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::VIRTUAL, - __osg_Object_P1__clone__C5_osg_CopyOp_R1, - "Clone an object, with Object* return type. ", - "Must be defined by derived classes. "); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "return the name of the object's library. ", - "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "return the name of the object's class type. ", - "Must be defined by derived classes. "); - I_Method1(void, setFileName, IN, const std::string &, filename, - Properties::VIRTUAL, - __void__setFileName__C5_std_string_R1, - "Set the file name of the data associated with this layer. ", - ""); - I_Method0(const std::string &, getFileName, - Properties::VIRTUAL, - __C5_std_string_R1__getFileName, - "Get the file name of the layer. ", - ""); - I_Method2(bool, transform, IN, float, offset, IN, float, scale, - Properties::VIRTUAL, - __bool__transform__float__float, - "", - ""); - I_Method1(void, setImage, IN, osg::Image *, image, - Properties::NON_VIRTUAL, - __void__setImage__osg_Image_P1, - "", - ""); - I_Method0(osg::Image *, getImage, - Properties::VIRTUAL, - __osg_Image_P1__getImage, - "Return image associated with layer. ", - ""); - I_Method0(const osg::Image *, getImage, - Properties::VIRTUAL, - __C5_osg_Image_P1__getImage, - "Return const image associated with layer. ", - ""); - I_Method0(unsigned int, getNumColumns, - Properties::VIRTUAL, - __unsigned_int__getNumColumns, - "", - ""); - I_Method0(unsigned int, getNumRows, - Properties::VIRTUAL, - __unsigned_int__getNumRows, - "", - ""); - I_Method3(bool, getValue, IN, unsigned int, i, IN, unsigned int, j, IN, float &, value, - Properties::VIRTUAL, - __bool__getValue__unsigned_int__unsigned_int__float_R1, - "", - ""); - I_Method3(bool, getValue, IN, unsigned int, i, IN, unsigned int, j, IN, osg::Vec2 &, value, - Properties::VIRTUAL, - __bool__getValue__unsigned_int__unsigned_int__osg_Vec2_R1, - "", - ""); - I_Method3(bool, getValue, IN, unsigned int, i, IN, unsigned int, j, IN, osg::Vec3 &, value, - Properties::VIRTUAL, - __bool__getValue__unsigned_int__unsigned_int__osg_Vec3_R1, - "", - ""); - I_Method3(bool, getValue, IN, unsigned int, i, IN, unsigned int, j, IN, osg::Vec4 &, value, - Properties::VIRTUAL, - __bool__getValue__unsigned_int__unsigned_int__osg_Vec4_R1, - "", - ""); - I_Method0(void, dirty, - Properties::VIRTUAL, - __void__dirty, - "increment the modified count. ", - "\" "); - I_Method1(void, setModifiedCount, IN, unsigned int, value, - Properties::VIRTUAL, - __void__setModifiedCount__unsigned_int, - "Set the modified count value. ", - ""); - I_Method0(unsigned int, getModifiedCount, - Properties::VIRTUAL, - __unsigned_int__getModifiedCount, - "Get modified count value. ", - ""); - I_SimpleProperty(const std::string &, FileName, - __C5_std_string_R1__getFileName, - __void__setFileName__C5_std_string_R1); - I_SimpleProperty(osg::Image *, Image, - __osg_Image_P1__getImage, - __void__setImage__osg_Image_P1); - I_SimpleProperty(unsigned int, ModifiedCount, - __unsigned_int__getModifiedCount, - __void__setModifiedCount__unsigned_int); -END_REFLECTOR - -BEGIN_ENUM_REFLECTOR(osgTerrain::Layer::Filter) - I_DeclaringFile("osgTerrain/Layer"); - I_EnumLabel(osgTerrain::Layer::NEAREST); - I_EnumLabel(osgTerrain::Layer::LINEAR); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(osgTerrain::Layer) - I_DeclaringFile("osgTerrain/Layer"); - I_BaseType(osg::Object); - I_Constructor0(____Layer, - "", - ""); - I_ConstructorWithDefaults2(IN, const osgTerrain::Layer &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, - ____Layer__C5_Layer_R1__C5_osg_CopyOp_R1, - "Copy constructor using CopyOp to manage deep vs shallow copy. ", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __osg_Object_P1__cloneType, - "Clone the type of an object, with Object* return type. ", - "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::VIRTUAL, - __osg_Object_P1__clone__C5_osg_CopyOp_R1, - "Clone an object, with Object* return type. ", - "Must be defined by derived classes. "); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "return the name of the object's library. ", - "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "return the name of the object's class type. ", - "Must be defined by derived classes. "); - I_Method1(void, setFileName, IN, const std::string &, filename, - Properties::VIRTUAL, - __void__setFileName__C5_std_string_R1, - "Set the file name of the data associated with this layer. ", - ""); - I_Method0(const std::string &, getFileName, - Properties::VIRTUAL, - __C5_std_string_R1__getFileName, - "Get the file name of the layer. ", - ""); - I_Method1(void, setLocator, IN, osgTerrain::Locator *, locator, - Properties::NON_VIRTUAL, - __void__setLocator__Locator_P1, - "", - ""); - I_Method0(osgTerrain::Locator *, getLocator, - Properties::NON_VIRTUAL, - __Locator_P1__getLocator, - "", - ""); - I_Method0(const osgTerrain::Locator *, getLocator, - Properties::NON_VIRTUAL, - __C5_Locator_P1__getLocator, - "", - ""); - I_Method1(void, setMinLevel, IN, unsigned int, minLevel, - Properties::NON_VIRTUAL, - __void__setMinLevel__unsigned_int, - "", - ""); - I_Method0(unsigned int, getMinLevel, - Properties::NON_VIRTUAL, - __unsigned_int__getMinLevel, - "", - ""); - I_Method1(void, setMaxLevel, IN, unsigned int, maxLevel, - Properties::NON_VIRTUAL, - __void__setMaxLevel__unsigned_int, - "", - ""); - I_Method0(unsigned int, getMaxLevel, - Properties::NON_VIRTUAL, - __unsigned_int__getMaxLevel, - "", - ""); - I_Method1(void, setValidDataOperator, IN, osgTerrain::ValidDataOperator *, validDataOp, - Properties::NON_VIRTUAL, - __void__setValidDataOperator__ValidDataOperator_P1, - "", - ""); - I_Method0(osgTerrain::ValidDataOperator *, getValidDataOperator, - Properties::NON_VIRTUAL, - __ValidDataOperator_P1__getValidDataOperator, - "", - ""); - I_Method0(const osgTerrain::ValidDataOperator *, getValidDataOperator, - Properties::NON_VIRTUAL, - __C5_ValidDataOperator_P1__getValidDataOperator, - "", - ""); - I_Method0(unsigned int, getNumColumns, - Properties::VIRTUAL, - __unsigned_int__getNumColumns, - "", - ""); - I_Method0(unsigned int, getNumRows, - Properties::VIRTUAL, - __unsigned_int__getNumRows, - "", - ""); - I_Method1(void, setDefaultValue, IN, const osg::Vec4 &, value, - Properties::NON_VIRTUAL, - __void__setDefaultValue__C5_osg_Vec4_R1, - "", - ""); - I_Method0(const osg::Vec4 &, getDefaultValue, - Properties::NON_VIRTUAL, - __C5_osg_Vec4_R1__getDefaultValue, - "", - ""); - I_Method1(void, setFilter, IN, osgTerrain::Layer::Filter, filter, - Properties::NON_VIRTUAL, - __void__setFilter__Filter, - "Set the texture filter to use when do texture associated with this layer. ", - ""); - I_Method0(osgTerrain::Layer::Filter, getFilter, - Properties::NON_VIRTUAL, - __Filter__getFilter, - "Get the texture filter to use when do texture associated with this layer. ", - ""); - I_Method0(osg::Image *, getImage, - Properties::VIRTUAL, - __osg_Image_P1__getImage, - "Return image associated with layer if supported. ", - ""); - I_Method0(const osg::Image *, getImage, - Properties::VIRTUAL, - __C5_osg_Image_P1__getImage, - "Return const image associated with layer if supported. ", - ""); - I_Method2(bool, transform, IN, float, offset, IN, float, scale, - Properties::VIRTUAL, - __bool__transform__float__float, - "", - ""); - I_Method3(bool, getValue, IN, unsigned, int, IN, unsigned, int, IN, float &, x, - Properties::VIRTUAL, - __bool__getValue__unsigned__unsigned__float_R1, - "", - ""); - I_Method3(bool, getValue, IN, unsigned, int, IN, unsigned, int, IN, osg::Vec2 &, x, - Properties::VIRTUAL, - __bool__getValue__unsigned__unsigned__osg_Vec2_R1, - "", - ""); - I_Method3(bool, getValue, IN, unsigned, int, IN, unsigned, int, IN, osg::Vec3 &, x, - Properties::VIRTUAL, - __bool__getValue__unsigned__unsigned__osg_Vec3_R1, - "", - ""); - I_Method3(bool, getValue, IN, unsigned, int, IN, unsigned, int, IN, osg::Vec4 &, x, - Properties::VIRTUAL, - __bool__getValue__unsigned__unsigned__osg_Vec4_R1, - "", - ""); - I_Method3(bool, getValidValue, IN, unsigned int, i, IN, unsigned int, j, IN, float &, value, - Properties::NON_VIRTUAL, - __bool__getValidValue__unsigned_int__unsigned_int__float_R1, - "", - ""); - I_Method3(bool, getValidValue, IN, unsigned int, i, IN, unsigned int, j, IN, osg::Vec2 &, value, - Properties::NON_VIRTUAL, - __bool__getValidValue__unsigned_int__unsigned_int__osg_Vec2_R1, - "", - ""); - I_Method3(bool, getValidValue, IN, unsigned int, i, IN, unsigned int, j, IN, osg::Vec3 &, value, - Properties::NON_VIRTUAL, - __bool__getValidValue__unsigned_int__unsigned_int__osg_Vec3_R1, - "", - ""); - I_Method3(bool, getValidValue, IN, unsigned int, i, IN, unsigned int, j, IN, osg::Vec4 &, value, - Properties::NON_VIRTUAL, - __bool__getValidValue__unsigned_int__unsigned_int__osg_Vec4_R1, - "", - ""); - I_Method6(void, computeIndices, IN, double, ndc_x, IN, double, ndc_y, IN, unsigned int &, i, IN, unsigned int &, j, IN, double &, ir, IN, double &, jr, - Properties::NON_VIRTUAL, - __void__computeIndices__double__double__unsigned_int_R1__unsigned_int_R1__double_R1__double_R1, - "", - ""); - I_Method3(bool, getInterpolatedValue, IN, double, ndc_x, IN, double, ndc_y, IN, float &, value, - Properties::NON_VIRTUAL, - __bool__getInterpolatedValue__double__double__float_R1, - "", - ""); - I_Method0(void, dirty, - Properties::VIRTUAL, - __void__dirty, - "increment the modified count. ", - "\" "); - I_Method1(void, setModifiedCount, IN, unsigned, int, - Properties::VIRTUAL, - __void__setModifiedCount__unsigned, - "Set the modified count value. ", - ""); - I_Method0(unsigned int, getModifiedCount, - Properties::VIRTUAL, - __unsigned_int__getModifiedCount, - "Get modified count value. ", - ""); - I_Method1(osg::BoundingSphere, computeBound, IN, bool, treatAsElevationLayer, - Properties::VIRTUAL, - __osg_BoundingSphere__computeBound__bool, - "", - ""); - I_SimpleProperty(const osg::Vec4 &, DefaultValue, - __C5_osg_Vec4_R1__getDefaultValue, - __void__setDefaultValue__C5_osg_Vec4_R1); - I_SimpleProperty(const std::string &, FileName, - __C5_std_string_R1__getFileName, - __void__setFileName__C5_std_string_R1); - I_SimpleProperty(osgTerrain::Layer::Filter, Filter, - __Filter__getFilter, - __void__setFilter__Filter); - I_SimpleProperty(osg::Image *, Image, - __osg_Image_P1__getImage, - 0); - I_SimpleProperty(osgTerrain::Locator *, Locator, - __Locator_P1__getLocator, - __void__setLocator__Locator_P1); - I_SimpleProperty(unsigned int, MaxLevel, - __unsigned_int__getMaxLevel, - __void__setMaxLevel__unsigned_int); - I_SimpleProperty(unsigned int, MinLevel, - __unsigned_int__getMinLevel, - __void__setMinLevel__unsigned_int); - I_SimpleProperty(unsigned, ModifiedCount, - 0, - __void__setModifiedCount__unsigned); - I_SimpleProperty(osgTerrain::ValidDataOperator *, ValidDataOperator, - __ValidDataOperator_P1__getValidDataOperator, - __void__setValidDataOperator__ValidDataOperator_P1); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(osgTerrain::ProxyLayer) - I_DeclaringFile("osgTerrain/Layer"); - I_BaseType(osgTerrain::Layer); - I_Constructor0(____ProxyLayer, - "", - ""); - I_ConstructorWithDefaults2(IN, const osgTerrain::ProxyLayer &, proxyLayer, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, - ____ProxyLayer__C5_ProxyLayer_R1__C5_osg_CopyOp_R1, - "Copy constructor using CopyOp to manage deep vs shallow copy. ", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __osg_Object_P1__cloneType, - "Clone the type of an object, with Object* return type. ", - "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::VIRTUAL, - __osg_Object_P1__clone__C5_osg_CopyOp_R1, - "Clone an object, with Object* return type. ", - "Must be defined by derived classes. "); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "return the name of the object's library. ", - "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "return the name of the object's class type. ", - "Must be defined by derived classes. "); - I_Method1(void, setImplementation, IN, osgTerrain::Layer *, layer, - Properties::NON_VIRTUAL, - __void__setImplementation__Layer_P1, - "Set the implementation layer that does the actual work. ", - ""); - I_Method0(osgTerrain::Layer *, getImplementation, - Properties::NON_VIRTUAL, - __Layer_P1__getImplementation, - "Get the implementation layer that does the actual work. ", - ""); - I_Method0(const osgTerrain::Layer *, getImplementation, - Properties::NON_VIRTUAL, - __C5_Layer_P1__getImplementation, - "Get the const implementation layer that does the actual work. ", - ""); - I_Method1(void, setFileName, IN, const std::string &, filename, - Properties::VIRTUAL, - __void__setFileName__C5_std_string_R1, - "Set the file name of the data associated with this layer. ", - ""); - I_Method0(const std::string &, getFileName, - Properties::VIRTUAL, - __C5_std_string_R1__getFileName, - "Get the file name of the layer. ", - ""); - I_Method0(unsigned int, getNumColumns, - Properties::VIRTUAL, - __unsigned_int__getNumColumns, - "", - ""); - I_Method0(unsigned int, getNumRows, - Properties::VIRTUAL, - __unsigned_int__getNumRows, - "", - ""); - I_Method2(bool, transform, IN, float, offset, IN, float, scale, - Properties::VIRTUAL, - __bool__transform__float__float, - "", - ""); - I_Method3(bool, getValue, IN, unsigned int, i, IN, unsigned int, j, IN, float &, value, - Properties::VIRTUAL, - __bool__getValue__unsigned_int__unsigned_int__float_R1, - "", - ""); - I_Method3(bool, getValue, IN, unsigned int, i, IN, unsigned int, j, IN, osg::Vec2 &, value, - Properties::VIRTUAL, - __bool__getValue__unsigned_int__unsigned_int__osg_Vec2_R1, - "", - ""); - I_Method3(bool, getValue, IN, unsigned int, i, IN, unsigned int, j, IN, osg::Vec3 &, value, - Properties::VIRTUAL, - __bool__getValue__unsigned_int__unsigned_int__osg_Vec3_R1, - "", - ""); - I_Method3(bool, getValue, IN, unsigned int, i, IN, unsigned int, j, IN, osg::Vec4 &, value, - Properties::VIRTUAL, - __bool__getValue__unsigned_int__unsigned_int__osg_Vec4_R1, - "", - ""); - I_Method0(void, dirty, - Properties::VIRTUAL, - __void__dirty, - "increment the modified count. ", - "\" "); - I_Method1(void, setModifiedCount, IN, unsigned int, value, - Properties::VIRTUAL, - __void__setModifiedCount__unsigned_int, - "Set the modified count value. ", - ""); - I_Method0(unsigned int, getModifiedCount, - Properties::VIRTUAL, - __unsigned_int__getModifiedCount, - "Get modified count value. ", - ""); - I_Method1(osg::BoundingSphere, computeBound, IN, bool, treatAsElevationLayer, - Properties::VIRTUAL, - __osg_BoundingSphere__computeBound__bool, - "", - ""); - I_SimpleProperty(const std::string &, FileName, - __C5_std_string_R1__getFileName, - __void__setFileName__C5_std_string_R1); - I_SimpleProperty(osgTerrain::Layer *, Implementation, - __Layer_P1__getImplementation, - __void__setImplementation__Layer_P1); - I_SimpleProperty(unsigned int, ModifiedCount, - __unsigned_int__getModifiedCount, - __void__setModifiedCount__unsigned_int); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(osgTerrain::SwitchLayer) - I_DeclaringFile("osgTerrain/Layer"); - I_BaseType(osgTerrain::Layer); - I_Constructor0(____SwitchLayer, - "", - ""); - I_ConstructorWithDefaults2(IN, const osgTerrain::SwitchLayer &, switchLayer, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, - ____SwitchLayer__C5_SwitchLayer_R1__C5_osg_CopyOp_R1, - "Copy constructor using CopyOp to manage deep vs shallow copy. ", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __osg_Object_P1__cloneType, - "Clone the type of an object, with Object* return type. ", - "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::VIRTUAL, - __osg_Object_P1__clone__C5_osg_CopyOp_R1, - "Clone an object, with Object* return type. ", - "Must be defined by derived classes. "); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "return the name of the object's library. ", - "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "return the name of the object's class type. ", - "Must be defined by derived classes. "); - I_Method0(void, clear, - Properties::NON_VIRTUAL, - __void__clear, - "", - ""); - I_Method1(void, setActiveLayer, IN, unsigned int, i, - Properties::NON_VIRTUAL, - __void__setActiveLayer__unsigned_int, - "", - ""); - I_Method0(unsigned int, getActiveLayer, - Properties::NON_VIRTUAL, - __unsigned_int__getActiveLayer, - "", - ""); - I_Method2(void, setFileName, IN, unsigned int, i, IN, const std::string &, filename, - Properties::NON_VIRTUAL, - __void__setFileName__unsigned_int__C5_std_string_R1, - "", - ""); - I_Method1(const std::string &, getFileName, IN, unsigned int, i, - Properties::NON_VIRTUAL, - __C5_std_string_R1__getFileName__unsigned_int, - "", - ""); - I_Method2(void, setLayer, IN, unsigned int, i, IN, osgTerrain::Layer *, layer, - Properties::NON_VIRTUAL, - __void__setLayer__unsigned_int__Layer_P1, - "", - ""); - I_Method1(osgTerrain::Layer *, getLayer, IN, unsigned int, i, - Properties::NON_VIRTUAL, - __Layer_P1__getLayer__unsigned_int, - "", - ""); - I_Method1(const osgTerrain::Layer *, getLayer, IN, unsigned int, i, - Properties::NON_VIRTUAL, - __C5_Layer_P1__getLayer__unsigned_int, - "", - ""); - I_Method1(void, addLayer, IN, const std::string &, filename, - Properties::NON_VIRTUAL, - __void__addLayer__C5_std_string_R1, - "", - ""); - I_Method1(void, addLayer, IN, osgTerrain::Layer *, layer, - Properties::NON_VIRTUAL, - __void__addLayer__Layer_P1, - "", - ""); - I_Method1(void, removeLayer, IN, unsigned int, i, - Properties::NON_VIRTUAL, - __void__removeLayer__unsigned_int, - "", - ""); - I_Method0(unsigned int, getNumLayers, - Properties::NON_VIRTUAL, - __unsigned_int__getNumLayers, - "", - ""); - I_SimpleProperty(unsigned int, ActiveLayer, - __unsigned_int__getActiveLayer, - __void__setActiveLayer__unsigned_int); - I_IndexedProperty(const std::string &, FileName, - __C5_std_string_R1__getFileName__unsigned_int, - __void__setFileName__unsigned_int__C5_std_string_R1, - 0); - I_ArrayProperty(osgTerrain::Layer *, Layer, - __Layer_P1__getLayer__unsigned_int, - __void__setLayer__unsigned_int__Layer_P1, - __unsigned_int__getNumLayers, - __void__addLayer__Layer_P1, - 0, - __void__removeLayer__unsigned_int); -END_REFLECTOR - +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgTerrain::CompositeLayer) + I_DeclaringFile("osgTerrain/Layer"); + I_BaseType(osgTerrain::Layer); + I_Constructor0(____CompositeLayer, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgTerrain::CompositeLayer &, compositeLayer, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____CompositeLayer__C5_CompositeLayer_R1__C5_osg_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method0(void, clear, + Properties::NON_VIRTUAL, + __void__clear, + "", + ""); + I_Method2(void, setFileName, IN, unsigned int, i, IN, const std::string &, filename, + Properties::NON_VIRTUAL, + __void__setFileName__unsigned_int__C5_std_string_R1, + "", + ""); + I_Method1(const std::string &, getFileName, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getFileName__unsigned_int, + "", + ""); + I_Method2(void, setLayer, IN, unsigned int, i, IN, osgTerrain::Layer *, layer, + Properties::NON_VIRTUAL, + __void__setLayer__unsigned_int__Layer_P1, + "", + ""); + I_Method1(osgTerrain::Layer *, getLayer, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __Layer_P1__getLayer__unsigned_int, + "", + ""); + I_Method1(const osgTerrain::Layer *, getLayer, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __C5_Layer_P1__getLayer__unsigned_int, + "", + ""); + I_Method1(void, addLayer, IN, const std::string &, filename, + Properties::NON_VIRTUAL, + __void__addLayer__C5_std_string_R1, + "", + ""); + I_Method1(void, addLayer, IN, osgTerrain::Layer *, layer, + Properties::NON_VIRTUAL, + __void__addLayer__Layer_P1, + "", + ""); + I_Method1(void, removeLayer, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __void__removeLayer__unsigned_int, + "", + ""); + I_Method0(unsigned int, getNumLayers, + Properties::NON_VIRTUAL, + __unsigned_int__getNumLayers, + "", + ""); + I_IndexedProperty(const std::string &, FileName, + __C5_std_string_R1__getFileName__unsigned_int, + __void__setFileName__unsigned_int__C5_std_string_R1, + 0); + I_ArrayProperty(osgTerrain::Layer *, Layer, + __Layer_P1__getLayer__unsigned_int, + __void__setLayer__unsigned_int__Layer_P1, + __unsigned_int__getNumLayers, + __void__addLayer__Layer_P1, + 0, + __void__removeLayer__unsigned_int); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgTerrain::ContourLayer) + I_DeclaringFile("osgTerrain/Layer"); + I_BaseType(osgTerrain::Layer); + I_ConstructorWithDefaults1(IN, osg::TransferFunction1D *, tf, 0, + Properties::NON_EXPLICIT, + ____ContourLayer__osg_TransferFunction1D_P1, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgTerrain::ContourLayer &, tfLayer, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ContourLayer__C5_ContourLayer_R1__C5_osg_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method2(bool, transform, IN, float, offset, IN, float, scale, + Properties::VIRTUAL, + __bool__transform__float__float, + "", + ""); + I_Method1(void, setTransferFunction, IN, osg::TransferFunction1D *, tf, + Properties::NON_VIRTUAL, + __void__setTransferFunction__osg_TransferFunction1D_P1, + "", + ""); + I_Method0(osg::TransferFunction1D *, getTransferFunction, + Properties::NON_VIRTUAL, + __osg_TransferFunction1D_P1__getTransferFunction, + "", + ""); + I_Method0(const osg::TransferFunction1D *, getTransferFunction, + Properties::NON_VIRTUAL, + __C5_osg_TransferFunction1D_P1__getTransferFunction, + "", + ""); + I_Method0(osg::Image *, getImage, + Properties::VIRTUAL, + __osg_Image_P1__getImage, + "Return image associated with layer. ", + ""); + I_Method0(const osg::Image *, getImage, + Properties::VIRTUAL, + __C5_osg_Image_P1__getImage, + "Return const image associated with layer. ", + ""); + I_Method0(unsigned int, getNumColumns, + Properties::VIRTUAL, + __unsigned_int__getNumColumns, + "", + ""); + I_Method0(unsigned int, getNumRows, + Properties::VIRTUAL, + __unsigned_int__getNumRows, + "", + ""); + I_Method3(bool, getValue, IN, unsigned int, i, IN, unsigned int, j, IN, float &, value, + Properties::VIRTUAL, + __bool__getValue__unsigned_int__unsigned_int__float_R1, + "", + ""); + I_Method3(bool, getValue, IN, unsigned int, i, IN, unsigned int, j, IN, osg::Vec2 &, value, + Properties::VIRTUAL, + __bool__getValue__unsigned_int__unsigned_int__osg_Vec2_R1, + "", + ""); + I_Method3(bool, getValue, IN, unsigned int, i, IN, unsigned int, j, IN, osg::Vec3 &, value, + Properties::VIRTUAL, + __bool__getValue__unsigned_int__unsigned_int__osg_Vec3_R1, + "", + ""); + I_Method3(bool, getValue, IN, unsigned int, i, IN, unsigned int, j, IN, osg::Vec4 &, value, + Properties::VIRTUAL, + __bool__getValue__unsigned_int__unsigned_int__osg_Vec4_R1, + "", + ""); + I_Method0(void, dirty, + Properties::VIRTUAL, + __void__dirty, + "increment the modified count. ", + "\" "); + I_Method1(void, setModifiedCount, IN, unsigned int, int, + Properties::VIRTUAL, + __void__setModifiedCount__unsigned_int, + "Set the modified count value. ", + ""); + I_Method0(unsigned int, getModifiedCount, + Properties::VIRTUAL, + __unsigned_int__getModifiedCount, + "Get modified count value. ", + ""); + I_SimpleProperty(osg::Image *, Image, + __osg_Image_P1__getImage, + 0); + I_SimpleProperty(unsigned int, ModifiedCount, + __unsigned_int__getModifiedCount, + __void__setModifiedCount__unsigned_int); + I_SimpleProperty(osg::TransferFunction1D *, TransferFunction, + __osg_TransferFunction1D_P1__getTransferFunction, + __void__setTransferFunction__osg_TransferFunction1D_P1); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgTerrain::HeightFieldLayer) + I_DeclaringFile("osgTerrain/Layer"); + I_BaseType(osgTerrain::Layer); + I_ConstructorWithDefaults1(IN, osg::HeightField *, hf, 0, + Properties::NON_EXPLICIT, + ____HeightFieldLayer__osg_HeightField_P1, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgTerrain::HeightFieldLayer &, hfLayer, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____HeightFieldLayer__C5_HeightFieldLayer_R1__C5_osg_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(void, setFileName, IN, const std::string &, filename, + Properties::VIRTUAL, + __void__setFileName__C5_std_string_R1, + "Set the file name of the data associated with this layer. ", + ""); + I_Method0(const std::string &, getFileName, + Properties::VIRTUAL, + __C5_std_string_R1__getFileName, + "Get the file name of the layer. ", + ""); + I_Method2(bool, transform, IN, float, offset, IN, float, scale, + Properties::VIRTUAL, + __bool__transform__float__float, + "", + ""); + I_Method1(void, setHeightField, IN, osg::HeightField *, hf, + Properties::NON_VIRTUAL, + __void__setHeightField__osg_HeightField_P1, + "", + ""); + I_Method0(osg::HeightField *, getHeightField, + Properties::NON_VIRTUAL, + __osg_HeightField_P1__getHeightField, + "", + ""); + I_Method0(const osg::HeightField *, getHeightField, + Properties::NON_VIRTUAL, + __C5_osg_HeightField_P1__getHeightField, + "", + ""); + I_Method0(unsigned int, getNumColumns, + Properties::VIRTUAL, + __unsigned_int__getNumColumns, + "", + ""); + I_Method0(unsigned int, getNumRows, + Properties::VIRTUAL, + __unsigned_int__getNumRows, + "", + ""); + I_Method3(bool, getValue, IN, unsigned int, i, IN, unsigned int, j, IN, float &, value, + Properties::VIRTUAL, + __bool__getValue__unsigned_int__unsigned_int__float_R1, + "", + ""); + I_Method3(bool, getValue, IN, unsigned int, i, IN, unsigned int, j, IN, osg::Vec2 &, value, + Properties::VIRTUAL, + __bool__getValue__unsigned_int__unsigned_int__osg_Vec2_R1, + "", + ""); + I_Method3(bool, getValue, IN, unsigned int, i, IN, unsigned int, j, IN, osg::Vec3 &, value, + Properties::VIRTUAL, + __bool__getValue__unsigned_int__unsigned_int__osg_Vec3_R1, + "", + ""); + I_Method3(bool, getValue, IN, unsigned int, i, IN, unsigned int, j, IN, osg::Vec4 &, value, + Properties::VIRTUAL, + __bool__getValue__unsigned_int__unsigned_int__osg_Vec4_R1, + "", + ""); + I_Method0(void, dirty, + Properties::VIRTUAL, + __void__dirty, + "increment the modified count. ", + "\" "); + I_Method1(void, setModifiedCount, IN, unsigned int, int, + Properties::VIRTUAL, + __void__setModifiedCount__unsigned_int, + "Set the modified count value. ", + ""); + I_Method0(unsigned int, getModifiedCount, + Properties::VIRTUAL, + __unsigned_int__getModifiedCount, + "Get modified count value. ", + ""); + I_SimpleProperty(const std::string &, FileName, + __C5_std_string_R1__getFileName, + __void__setFileName__C5_std_string_R1); + I_SimpleProperty(osg::HeightField *, HeightField, + __osg_HeightField_P1__getHeightField, + __void__setHeightField__osg_HeightField_P1); + I_SimpleProperty(unsigned int, ModifiedCount, + __unsigned_int__getModifiedCount, + __void__setModifiedCount__unsigned_int); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgTerrain::ImageLayer) + I_DeclaringFile("osgTerrain/Layer"); + I_BaseType(osgTerrain::Layer); + I_ConstructorWithDefaults1(IN, osg::Image *, image, 0, + Properties::NON_EXPLICIT, + ____ImageLayer__osg_Image_P1, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgTerrain::ImageLayer &, imageLayer, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ImageLayer__C5_ImageLayer_R1__C5_osg_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(void, setFileName, IN, const std::string &, filename, + Properties::VIRTUAL, + __void__setFileName__C5_std_string_R1, + "Set the file name of the data associated with this layer. ", + ""); + I_Method0(const std::string &, getFileName, + Properties::VIRTUAL, + __C5_std_string_R1__getFileName, + "Get the file name of the layer. ", + ""); + I_Method2(bool, transform, IN, float, offset, IN, float, scale, + Properties::VIRTUAL, + __bool__transform__float__float, + "", + ""); + I_Method1(void, setImage, IN, osg::Image *, image, + Properties::NON_VIRTUAL, + __void__setImage__osg_Image_P1, + "", + ""); + I_Method0(osg::Image *, getImage, + Properties::VIRTUAL, + __osg_Image_P1__getImage, + "Return image associated with layer. ", + ""); + I_Method0(const osg::Image *, getImage, + Properties::VIRTUAL, + __C5_osg_Image_P1__getImage, + "Return const image associated with layer. ", + ""); + I_Method0(unsigned int, getNumColumns, + Properties::VIRTUAL, + __unsigned_int__getNumColumns, + "", + ""); + I_Method0(unsigned int, getNumRows, + Properties::VIRTUAL, + __unsigned_int__getNumRows, + "", + ""); + I_Method3(bool, getValue, IN, unsigned int, i, IN, unsigned int, j, IN, float &, value, + Properties::VIRTUAL, + __bool__getValue__unsigned_int__unsigned_int__float_R1, + "", + ""); + I_Method3(bool, getValue, IN, unsigned int, i, IN, unsigned int, j, IN, osg::Vec2 &, value, + Properties::VIRTUAL, + __bool__getValue__unsigned_int__unsigned_int__osg_Vec2_R1, + "", + ""); + I_Method3(bool, getValue, IN, unsigned int, i, IN, unsigned int, j, IN, osg::Vec3 &, value, + Properties::VIRTUAL, + __bool__getValue__unsigned_int__unsigned_int__osg_Vec3_R1, + "", + ""); + I_Method3(bool, getValue, IN, unsigned int, i, IN, unsigned int, j, IN, osg::Vec4 &, value, + Properties::VIRTUAL, + __bool__getValue__unsigned_int__unsigned_int__osg_Vec4_R1, + "", + ""); + I_Method0(void, dirty, + Properties::VIRTUAL, + __void__dirty, + "increment the modified count. ", + "\" "); + I_Method1(void, setModifiedCount, IN, unsigned int, int, + Properties::VIRTUAL, + __void__setModifiedCount__unsigned_int, + "Set the modified count value. ", + ""); + I_Method0(unsigned int, getModifiedCount, + Properties::VIRTUAL, + __unsigned_int__getModifiedCount, + "Get modified count value. ", + ""); + I_SimpleProperty(const std::string &, FileName, + __C5_std_string_R1__getFileName, + __void__setFileName__C5_std_string_R1); + I_SimpleProperty(osg::Image *, Image, + __osg_Image_P1__getImage, + __void__setImage__osg_Image_P1); + I_SimpleProperty(unsigned int, ModifiedCount, + __unsigned_int__getModifiedCount, + __void__setModifiedCount__unsigned_int); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgTerrain::Layer::Filter) + I_DeclaringFile("osgTerrain/Layer"); + I_EnumLabel(osgTerrain::Layer::NEAREST); + I_EnumLabel(osgTerrain::Layer::LINEAR); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgTerrain::Layer) + I_DeclaringFile("osgTerrain/Layer"); + I_BaseType(osg::Object); + I_Constructor0(____Layer, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgTerrain::Layer &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Layer__C5_Layer_R1__C5_osg_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(void, setFileName, IN, const std::string &, filename, + Properties::VIRTUAL, + __void__setFileName__C5_std_string_R1, + "Set the file name of the data associated with this layer. ", + ""); + I_Method0(const std::string &, getFileName, + Properties::VIRTUAL, + __C5_std_string_R1__getFileName, + "Get the file name of the layer. ", + ""); + I_Method1(void, setLocator, IN, osgTerrain::Locator *, locator, + Properties::NON_VIRTUAL, + __void__setLocator__Locator_P1, + "", + ""); + I_Method0(osgTerrain::Locator *, getLocator, + Properties::NON_VIRTUAL, + __Locator_P1__getLocator, + "", + ""); + I_Method0(const osgTerrain::Locator *, getLocator, + Properties::NON_VIRTUAL, + __C5_Locator_P1__getLocator, + "", + ""); + I_Method1(void, setMinLevel, IN, unsigned int, minLevel, + Properties::NON_VIRTUAL, + __void__setMinLevel__unsigned_int, + "", + ""); + I_Method0(unsigned int, getMinLevel, + Properties::NON_VIRTUAL, + __unsigned_int__getMinLevel, + "", + ""); + I_Method1(void, setMaxLevel, IN, unsigned int, maxLevel, + Properties::NON_VIRTUAL, + __void__setMaxLevel__unsigned_int, + "", + ""); + I_Method0(unsigned int, getMaxLevel, + Properties::NON_VIRTUAL, + __unsigned_int__getMaxLevel, + "", + ""); + I_Method1(void, setValidDataOperator, IN, osgTerrain::ValidDataOperator *, validDataOp, + Properties::NON_VIRTUAL, + __void__setValidDataOperator__ValidDataOperator_P1, + "", + ""); + I_Method0(osgTerrain::ValidDataOperator *, getValidDataOperator, + Properties::NON_VIRTUAL, + __ValidDataOperator_P1__getValidDataOperator, + "", + ""); + I_Method0(const osgTerrain::ValidDataOperator *, getValidDataOperator, + Properties::NON_VIRTUAL, + __C5_ValidDataOperator_P1__getValidDataOperator, + "", + ""); + I_Method0(unsigned int, getNumColumns, + Properties::VIRTUAL, + __unsigned_int__getNumColumns, + "", + ""); + I_Method0(unsigned int, getNumRows, + Properties::VIRTUAL, + __unsigned_int__getNumRows, + "", + ""); + I_Method1(void, setDefaultValue, IN, const osg::Vec4 &, value, + Properties::NON_VIRTUAL, + __void__setDefaultValue__C5_osg_Vec4_R1, + "", + ""); + I_Method0(const osg::Vec4 &, getDefaultValue, + Properties::NON_VIRTUAL, + __C5_osg_Vec4_R1__getDefaultValue, + "", + ""); + I_Method1(void, setFilter, IN, osgTerrain::Layer::Filter, filter, + Properties::NON_VIRTUAL, + __void__setFilter__Filter, + "Set the texture filter to use when do texture associated with this layer. ", + ""); + I_Method0(osgTerrain::Layer::Filter, getFilter, + Properties::NON_VIRTUAL, + __Filter__getFilter, + "Get the texture filter to use when do texture associated with this layer. ", + ""); + I_Method0(osg::Image *, getImage, + Properties::VIRTUAL, + __osg_Image_P1__getImage, + "Return image associated with layer if supported. ", + ""); + I_Method0(const osg::Image *, getImage, + Properties::VIRTUAL, + __C5_osg_Image_P1__getImage, + "Return const image associated with layer if supported. ", + ""); + I_Method2(bool, transform, IN, float, offset, IN, float, scale, + Properties::VIRTUAL, + __bool__transform__float__float, + "", + ""); + I_Method3(bool, getValue, IN, unsigned, int, IN, unsigned, int, IN, float &, x, + Properties::VIRTUAL, + __bool__getValue__unsigned__unsigned__float_R1, + "", + ""); + I_Method3(bool, getValue, IN, unsigned, int, IN, unsigned, int, IN, osg::Vec2 &, x, + Properties::VIRTUAL, + __bool__getValue__unsigned__unsigned__osg_Vec2_R1, + "", + ""); + I_Method3(bool, getValue, IN, unsigned, int, IN, unsigned, int, IN, osg::Vec3 &, x, + Properties::VIRTUAL, + __bool__getValue__unsigned__unsigned__osg_Vec3_R1, + "", + ""); + I_Method3(bool, getValue, IN, unsigned, int, IN, unsigned, int, IN, osg::Vec4 &, x, + Properties::VIRTUAL, + __bool__getValue__unsigned__unsigned__osg_Vec4_R1, + "", + ""); + I_Method3(bool, getValidValue, IN, unsigned int, i, IN, unsigned int, j, IN, float &, value, + Properties::NON_VIRTUAL, + __bool__getValidValue__unsigned_int__unsigned_int__float_R1, + "", + ""); + I_Method3(bool, getValidValue, IN, unsigned int, i, IN, unsigned int, j, IN, osg::Vec2 &, value, + Properties::NON_VIRTUAL, + __bool__getValidValue__unsigned_int__unsigned_int__osg_Vec2_R1, + "", + ""); + I_Method3(bool, getValidValue, IN, unsigned int, i, IN, unsigned int, j, IN, osg::Vec3 &, value, + Properties::NON_VIRTUAL, + __bool__getValidValue__unsigned_int__unsigned_int__osg_Vec3_R1, + "", + ""); + I_Method3(bool, getValidValue, IN, unsigned int, i, IN, unsigned int, j, IN, osg::Vec4 &, value, + Properties::NON_VIRTUAL, + __bool__getValidValue__unsigned_int__unsigned_int__osg_Vec4_R1, + "", + ""); + I_Method6(void, computeIndices, IN, double, ndc_x, IN, double, ndc_y, IN, unsigned int &, i, IN, unsigned int &, j, IN, double &, ir, IN, double &, jr, + Properties::NON_VIRTUAL, + __void__computeIndices__double__double__unsigned_int_R1__unsigned_int_R1__double_R1__double_R1, + "", + ""); + I_Method3(bool, getInterpolatedValue, IN, double, ndc_x, IN, double, ndc_y, IN, float &, value, + Properties::NON_VIRTUAL, + __bool__getInterpolatedValue__double__double__float_R1, + "", + ""); + I_Method0(void, dirty, + Properties::VIRTUAL, + __void__dirty, + "increment the modified count. ", + "\" "); + I_Method1(void, setModifiedCount, IN, unsigned, int, + Properties::VIRTUAL, + __void__setModifiedCount__unsigned, + "Set the modified count value. ", + ""); + I_Method0(unsigned int, getModifiedCount, + Properties::VIRTUAL, + __unsigned_int__getModifiedCount, + "Get modified count value. ", + ""); + I_Method1(osg::BoundingSphere, computeBound, IN, bool, treatAsElevationLayer, + Properties::VIRTUAL, + __osg_BoundingSphere__computeBound__bool, + "", + ""); + I_SimpleProperty(const osg::Vec4 &, DefaultValue, + __C5_osg_Vec4_R1__getDefaultValue, + __void__setDefaultValue__C5_osg_Vec4_R1); + I_SimpleProperty(const std::string &, FileName, + __C5_std_string_R1__getFileName, + __void__setFileName__C5_std_string_R1); + I_SimpleProperty(osgTerrain::Layer::Filter, Filter, + __Filter__getFilter, + __void__setFilter__Filter); + I_SimpleProperty(osg::Image *, Image, + __osg_Image_P1__getImage, + 0); + I_SimpleProperty(osgTerrain::Locator *, Locator, + __Locator_P1__getLocator, + __void__setLocator__Locator_P1); + I_SimpleProperty(unsigned int, MaxLevel, + __unsigned_int__getMaxLevel, + __void__setMaxLevel__unsigned_int); + I_SimpleProperty(unsigned int, MinLevel, + __unsigned_int__getMinLevel, + __void__setMinLevel__unsigned_int); + I_SimpleProperty(unsigned, ModifiedCount, + 0, + __void__setModifiedCount__unsigned); + I_SimpleProperty(osgTerrain::ValidDataOperator *, ValidDataOperator, + __ValidDataOperator_P1__getValidDataOperator, + __void__setValidDataOperator__ValidDataOperator_P1); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgTerrain::ProxyLayer) + I_DeclaringFile("osgTerrain/Layer"); + I_BaseType(osgTerrain::Layer); + I_Constructor0(____ProxyLayer, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgTerrain::ProxyLayer &, proxyLayer, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ProxyLayer__C5_ProxyLayer_R1__C5_osg_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(void, setImplementation, IN, osgTerrain::Layer *, layer, + Properties::NON_VIRTUAL, + __void__setImplementation__Layer_P1, + "Set the implementation layer that does the actual work. ", + ""); + I_Method0(osgTerrain::Layer *, getImplementation, + Properties::NON_VIRTUAL, + __Layer_P1__getImplementation, + "Get the implementation layer that does the actual work. ", + ""); + I_Method0(const osgTerrain::Layer *, getImplementation, + Properties::NON_VIRTUAL, + __C5_Layer_P1__getImplementation, + "Get the const implementation layer that does the actual work. ", + ""); + I_Method1(void, setFileName, IN, const std::string &, filename, + Properties::VIRTUAL, + __void__setFileName__C5_std_string_R1, + "Set the file name of the data associated with this layer. ", + ""); + I_Method0(const std::string &, getFileName, + Properties::VIRTUAL, + __C5_std_string_R1__getFileName, + "Get the file name of the layer. ", + ""); + I_Method0(unsigned int, getNumColumns, + Properties::VIRTUAL, + __unsigned_int__getNumColumns, + "", + ""); + I_Method0(unsigned int, getNumRows, + Properties::VIRTUAL, + __unsigned_int__getNumRows, + "", + ""); + I_Method2(bool, transform, IN, float, offset, IN, float, scale, + Properties::VIRTUAL, + __bool__transform__float__float, + "", + ""); + I_Method3(bool, getValue, IN, unsigned int, i, IN, unsigned int, j, IN, float &, value, + Properties::VIRTUAL, + __bool__getValue__unsigned_int__unsigned_int__float_R1, + "", + ""); + I_Method3(bool, getValue, IN, unsigned int, i, IN, unsigned int, j, IN, osg::Vec2 &, value, + Properties::VIRTUAL, + __bool__getValue__unsigned_int__unsigned_int__osg_Vec2_R1, + "", + ""); + I_Method3(bool, getValue, IN, unsigned int, i, IN, unsigned int, j, IN, osg::Vec3 &, value, + Properties::VIRTUAL, + __bool__getValue__unsigned_int__unsigned_int__osg_Vec3_R1, + "", + ""); + I_Method3(bool, getValue, IN, unsigned int, i, IN, unsigned int, j, IN, osg::Vec4 &, value, + Properties::VIRTUAL, + __bool__getValue__unsigned_int__unsigned_int__osg_Vec4_R1, + "", + ""); + I_Method0(void, dirty, + Properties::VIRTUAL, + __void__dirty, + "increment the modified count. ", + "\" "); + I_Method1(void, setModifiedCount, IN, unsigned int, int, + Properties::VIRTUAL, + __void__setModifiedCount__unsigned_int, + "Set the modified count value. ", + ""); + I_Method0(unsigned int, getModifiedCount, + Properties::VIRTUAL, + __unsigned_int__getModifiedCount, + "Get modified count value. ", + ""); + I_Method1(osg::BoundingSphere, computeBound, IN, bool, treatAsElevationLayer, + Properties::VIRTUAL, + __osg_BoundingSphere__computeBound__bool, + "", + ""); + I_SimpleProperty(const std::string &, FileName, + __C5_std_string_R1__getFileName, + __void__setFileName__C5_std_string_R1); + I_SimpleProperty(osgTerrain::Layer *, Implementation, + __Layer_P1__getImplementation, + __void__setImplementation__Layer_P1); + I_SimpleProperty(unsigned int, ModifiedCount, + __unsigned_int__getModifiedCount, + __void__setModifiedCount__unsigned_int); +END_REFLECTOR + diff --git a/src/osgWrappers/osgTerrain/Locator.cpp b/src/osgWrappers/osgTerrain/Locator.cpp index 54768280f..7e4bbbc34 100644 --- a/src/osgWrappers/osgTerrain/Locator.cpp +++ b/src/osgWrappers/osgTerrain/Locator.cpp @@ -1,196 +1,196 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_ENUM_REFLECTOR(osgTerrain::Locator::CoordinateSystemType) - I_DeclaringFile("osgTerrain/Locator"); - I_EnumLabel(osgTerrain::Locator::GEOCENTRIC); - I_EnumLabel(osgTerrain::Locator::GEOGRAPHIC); - I_EnumLabel(osgTerrain::Locator::PROJECTED); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(osgTerrain::Locator) - I_DeclaringFile("osgTerrain/Locator"); - I_BaseType(osg::Object); - I_Constructor0(____Locator, - "", - ""); - I_ConstructorWithDefaults2(IN, const osgTerrain::Locator &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, - ____Locator__C5_Locator_R1__C5_osg_CopyOp_R1, - "Copy constructor using CopyOp to manage deep vs shallow copy. ", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __osg_Object_P1__cloneType, - "Clone the type of an object, with Object* return type. ", - "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::VIRTUAL, - __osg_Object_P1__clone__C5_osg_CopyOp_R1, - "Clone an object, with Object* return type. ", - "Must be defined by derived classes. "); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "return the name of the object's library. ", - "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "return the name of the object's class type. ", - "Must be defined by derived classes. "); - I_Method1(void, setCoordinateSystemType, IN, osgTerrain::Locator::CoordinateSystemType, type, - Properties::NON_VIRTUAL, - __void__setCoordinateSystemType__CoordinateSystemType, - "Set the CoordinatesSyetemType. ", - "Note, the user must keep the CoordinateSystemString consistent with the type of the CoordinateSystem. "); - I_Method0(osgTerrain::Locator::CoordinateSystemType, getCoordinateSystemType, - Properties::NON_VIRTUAL, - __CoordinateSystemType__getCoordinateSystemType, - "Get the CoordinatesSyetemType. ", - ""); - I_Method1(void, setFormat, IN, const std::string &, format, - Properties::NON_VIRTUAL, - __void__setFormat__C5_std_string_R1, - "Set the coordinate system format string. ", - "Typical values would be WKT, PROJ4, USGS etc. "); - I_Method0(const std::string &, getFormat, - Properties::NON_VIRTUAL, - __C5_std_string_R1__getFormat, - "Get the coordinate system format string. ", - ""); - I_Method1(void, setCoordinateSystem, IN, const std::string &, cs, - Properties::NON_VIRTUAL, - __void__setCoordinateSystem__C5_std_string_R1, - "Set the CoordinateSystem reference string, should be stored in a form consistent with the Format. ", - ""); - I_Method0(const std::string &, getCoordinateSystem, - Properties::NON_VIRTUAL, - __C5_std_string_R1__getCoordinateSystem, - "Get the CoordinateSystem reference string. ", - ""); - I_Method1(void, setEllipsoidModel, IN, osg::EllipsoidModel *, ellipsode, - Properties::NON_VIRTUAL, - __void__setEllipsoidModel__osg_EllipsoidModel_P1, - "Set EllipsoidModel to describe the model used to map lat, long and height into geocentric XYZ and back. ", - ""); - I_Method0(osg::EllipsoidModel *, getEllipsoidModel, - Properties::NON_VIRTUAL, - __osg_EllipsoidModel_P1__getEllipsoidModel, - "Get the EllipsoidModel. ", - ""); - I_Method0(const osg::EllipsoidModel *, getEllipsoidModel, - Properties::NON_VIRTUAL, - __C5_osg_EllipsoidModel_P1__getEllipsoidModel, - "Get the const EllipsoidModel. ", - ""); - I_Method1(void, setTransform, IN, const osg::Matrixd &, transform, - Properties::NON_VIRTUAL, - __void__setTransform__C5_osg_Matrixd_R1, - "Set the transformation from local coordinates to model coordinates. ", - ""); - I_Method0(const osg::Matrixd &, getTransform, - Properties::NON_VIRTUAL, - __C5_osg_Matrixd_R1__getTransform, - "Set the transformation from local coordinates to model coordinates. ", - ""); - I_Method4(void, setTransformAsExtents, IN, double, minX, IN, double, minY, IN, double, maxX, IN, double, maxY, - Properties::NON_VIRTUAL, - __void__setTransformAsExtents__double__double__double__double, - "Set the extents of the local coords. ", - ""); - I_Method0(bool, orientationOpenGL, - Properties::VIRTUAL, - __bool__orientationOpenGL, - "", - ""); - I_Method2(bool, convertLocalToModel, IN, const osg::Vec3d &, x, IN, osg::Vec3d &, x, - Properties::VIRTUAL, - __bool__convertLocalToModel__C5_osg_Vec3d_R1__osg_Vec3d_R1, - "", - ""); - I_Method2(bool, convertModelToLocal, IN, const osg::Vec3d &, x, IN, osg::Vec3d &, x, - Properties::VIRTUAL, - __bool__convertModelToLocal__C5_osg_Vec3d_R1__osg_Vec3d_R1, - "", - ""); - I_Method3(bool, computeLocalBounds, IN, osgTerrain::Locator &, source, IN, osg::Vec3d &, bottomLeft, IN, osg::Vec3d &, topRight, - Properties::NON_VIRTUAL, - __bool__computeLocalBounds__Locator_R1__osg_Vec3d_R1__osg_Vec3d_R1, - "", - ""); - I_Method1(void, setDefinedInFile, IN, bool, flag, - Properties::NON_VIRTUAL, - __void__setDefinedInFile__bool, - "", - ""); - I_Method0(bool, getDefinedInFile, - Properties::NON_VIRTUAL, - __bool__getDefinedInFile, - "", - ""); - I_Method1(void, setTransformScaledByResolution, IN, bool, scaledByResolution, - Properties::NON_VIRTUAL, - __void__setTransformScaledByResolution__bool, - "", - ""); - I_Method0(bool, getTransformScaledByResolution, - Properties::NON_VIRTUAL, - __bool__getTransformScaledByResolution, - "", - ""); - I_StaticMethod4(bool, convertLocalCoordBetween, IN, const osgTerrain::Locator &, source, IN, const osg::Vec3d &, sourceNDC, IN, const osgTerrain::Locator &, destination, IN, osg::Vec3d &, destinationNDC, - __bool__convertLocalCoordBetween__C5_Locator_R1__C5_osg_Vec3d_R1__C5_Locator_R1__osg_Vec3d_R1_S, - "", - ""); - I_SimpleProperty(const std::string &, CoordinateSystem, - __C5_std_string_R1__getCoordinateSystem, - __void__setCoordinateSystem__C5_std_string_R1); - I_SimpleProperty(osgTerrain::Locator::CoordinateSystemType, CoordinateSystemType, - __CoordinateSystemType__getCoordinateSystemType, - __void__setCoordinateSystemType__CoordinateSystemType); - I_SimpleProperty(bool, DefinedInFile, - __bool__getDefinedInFile, - __void__setDefinedInFile__bool); - I_SimpleProperty(osg::EllipsoidModel *, EllipsoidModel, - __osg_EllipsoidModel_P1__getEllipsoidModel, - __void__setEllipsoidModel__osg_EllipsoidModel_P1); - I_SimpleProperty(const std::string &, Format, - __C5_std_string_R1__getFormat, - __void__setFormat__C5_std_string_R1); - I_SimpleProperty(const osg::Matrixd &, Transform, - __C5_osg_Matrixd_R1__getTransform, - __void__setTransform__C5_osg_Matrixd_R1); - I_SimpleProperty(bool, TransformScaledByResolution, - __bool__getTransformScaledByResolution, - __void__setTransformScaledByResolution__bool); -END_REFLECTOR - +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgTerrain::Locator::CoordinateSystemType) + I_DeclaringFile("osgTerrain/Locator"); + I_EnumLabel(osgTerrain::Locator::GEOCENTRIC); + I_EnumLabel(osgTerrain::Locator::GEOGRAPHIC); + I_EnumLabel(osgTerrain::Locator::PROJECTED); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgTerrain::Locator) + I_DeclaringFile("osgTerrain/Locator"); + I_BaseType(osg::Object); + I_Constructor0(____Locator, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgTerrain::Locator &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Locator__C5_Locator_R1__C5_osg_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(void, setCoordinateSystemType, IN, osgTerrain::Locator::CoordinateSystemType, type, + Properties::NON_VIRTUAL, + __void__setCoordinateSystemType__CoordinateSystemType, + "Set the CoordinatesSyetemType. ", + "Note, the user must keep the CoordinateSystemString consistent with the type of the CoordinateSystem. "); + I_Method0(osgTerrain::Locator::CoordinateSystemType, getCoordinateSystemType, + Properties::NON_VIRTUAL, + __CoordinateSystemType__getCoordinateSystemType, + "Get the CoordinatesSyetemType. ", + ""); + I_Method1(void, setFormat, IN, const std::string &, format, + Properties::NON_VIRTUAL, + __void__setFormat__C5_std_string_R1, + "Set the coordinate system format string. ", + "Typical values would be WKT, PROJ4, USGS etc. "); + I_Method0(const std::string &, getFormat, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getFormat, + "Get the coordinate system format string. ", + ""); + I_Method1(void, setCoordinateSystem, IN, const std::string &, cs, + Properties::NON_VIRTUAL, + __void__setCoordinateSystem__C5_std_string_R1, + "Set the CoordinateSystem reference string, should be stored in a form consistent with the Format. ", + ""); + I_Method0(const std::string &, getCoordinateSystem, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getCoordinateSystem, + "Get the CoordinateSystem reference string. ", + ""); + I_Method1(void, setEllipsoidModel, IN, osg::EllipsoidModel *, ellipsode, + Properties::NON_VIRTUAL, + __void__setEllipsoidModel__osg_EllipsoidModel_P1, + "Set EllipsoidModel to describe the model used to map lat, long and height into geocentric XYZ and back. ", + ""); + I_Method0(osg::EllipsoidModel *, getEllipsoidModel, + Properties::NON_VIRTUAL, + __osg_EllipsoidModel_P1__getEllipsoidModel, + "Get the EllipsoidModel. ", + ""); + I_Method0(const osg::EllipsoidModel *, getEllipsoidModel, + Properties::NON_VIRTUAL, + __C5_osg_EllipsoidModel_P1__getEllipsoidModel, + "Get the const EllipsoidModel. ", + ""); + I_Method1(void, setTransform, IN, const osg::Matrixd &, transform, + Properties::NON_VIRTUAL, + __void__setTransform__C5_osg_Matrixd_R1, + "Set the transformation from local coordinates to model coordinates. ", + ""); + I_Method0(const osg::Matrixd &, getTransform, + Properties::NON_VIRTUAL, + __C5_osg_Matrixd_R1__getTransform, + "Set the transformation from local coordinates to model coordinates. ", + ""); + I_Method4(void, setTransformAsExtents, IN, double, minX, IN, double, minY, IN, double, maxX, IN, double, maxY, + Properties::NON_VIRTUAL, + __void__setTransformAsExtents__double__double__double__double, + "Set the extents of the local coords. ", + ""); + I_Method0(bool, orientationOpenGL, + Properties::VIRTUAL, + __bool__orientationOpenGL, + "", + ""); + I_Method2(bool, convertLocalToModel, IN, const osg::Vec3d &, x, IN, osg::Vec3d &, x, + Properties::VIRTUAL, + __bool__convertLocalToModel__C5_osg_Vec3d_R1__osg_Vec3d_R1, + "", + ""); + I_Method2(bool, convertModelToLocal, IN, const osg::Vec3d &, x, IN, osg::Vec3d &, x, + Properties::VIRTUAL, + __bool__convertModelToLocal__C5_osg_Vec3d_R1__osg_Vec3d_R1, + "", + ""); + I_Method3(bool, computeLocalBounds, IN, osgTerrain::Locator &, source, IN, osg::Vec3d &, bottomLeft, IN, osg::Vec3d &, topRight, + Properties::NON_VIRTUAL, + __bool__computeLocalBounds__Locator_R1__osg_Vec3d_R1__osg_Vec3d_R1, + "", + ""); + I_Method1(void, setDefinedInFile, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setDefinedInFile__bool, + "", + ""); + I_Method0(bool, getDefinedInFile, + Properties::NON_VIRTUAL, + __bool__getDefinedInFile, + "", + ""); + I_Method1(void, setTransformScaledByResolution, IN, bool, scaledByResolution, + Properties::NON_VIRTUAL, + __void__setTransformScaledByResolution__bool, + "", + ""); + I_Method0(bool, getTransformScaledByResolution, + Properties::NON_VIRTUAL, + __bool__getTransformScaledByResolution, + "", + ""); + I_StaticMethod4(bool, convertLocalCoordBetween, IN, const osgTerrain::Locator &, source, IN, const osg::Vec3d &, sourceNDC, IN, const osgTerrain::Locator &, destination, IN, osg::Vec3d &, destinationNDC, + __bool__convertLocalCoordBetween__C5_Locator_R1__C5_osg_Vec3d_R1__C5_Locator_R1__osg_Vec3d_R1_S, + "", + ""); + I_SimpleProperty(const std::string &, CoordinateSystem, + __C5_std_string_R1__getCoordinateSystem, + __void__setCoordinateSystem__C5_std_string_R1); + I_SimpleProperty(osgTerrain::Locator::CoordinateSystemType, CoordinateSystemType, + __CoordinateSystemType__getCoordinateSystemType, + __void__setCoordinateSystemType__CoordinateSystemType); + I_SimpleProperty(bool, DefinedInFile, + __bool__getDefinedInFile, + __void__setDefinedInFile__bool); + I_SimpleProperty(osg::EllipsoidModel *, EllipsoidModel, + __osg_EllipsoidModel_P1__getEllipsoidModel, + __void__setEllipsoidModel__osg_EllipsoidModel_P1); + I_SimpleProperty(const std::string &, Format, + __C5_std_string_R1__getFormat, + __void__setFormat__C5_std_string_R1); + I_SimpleProperty(const osg::Matrixd &, Transform, + __C5_osg_Matrixd_R1__getTransform, + __void__setTransform__C5_osg_Matrixd_R1); + I_SimpleProperty(bool, TransformScaledByResolution, + __bool__getTransformScaledByResolution, + __void__setTransformScaledByResolution__bool); +END_REFLECTOR + diff --git a/src/osgWrappers/osgTerrain/Terrain.cpp b/src/osgWrappers/osgTerrain/Terrain.cpp index 00a33a129..175812015 100644 --- a/src/osgWrappers/osgTerrain/Terrain.cpp +++ b/src/osgWrappers/osgTerrain/Terrain.cpp @@ -1,127 +1,127 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include -#include -#include -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_OBJECT_REFLECTOR(osgTerrain::Terrain) - I_DeclaringFile("osgTerrain/Terrain"); - I_BaseType(osg::Group); - I_Constructor0(____Terrain, - "", - ""); - I_ConstructorWithDefaults2(IN, const osgTerrain::Terrain &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, - ____Terrain__C5_Terrain_R1__C5_osg_CopyOp_R1, - "Copy constructor using CopyOp to manage deep vs shallow copy. ", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __osg_Object_P1__cloneType, - "clone an object of the same type as the node. ", - ""); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "return true if this and obj are of the same kind of object. ", - ""); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "return the name of the node's class type. ", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "return the name of the node's library. ", - ""); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv, - Properties::VIRTUAL, - __void__accept__osg_NodeVisitor_R1, - "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", - ""); - I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, - Properties::VIRTUAL, - __void__traverse__osg_NodeVisitor_R1, - "Traverse downwards : calls children's accept method with NodeVisitor. ", - ""); - I_Method1(void, setSampleRatio, IN, float, ratio, - Properties::NON_VIRTUAL, - __void__setSampleRatio__float, - "Set the sample ratio hint that TerrainTile should use when building geometry. ", - "Defaults to 1.0, which means use all original sample points. "); - I_Method0(float, getSampleRatio, - Properties::NON_VIRTUAL, - __float__getSampleRatio, - "Get the sample ratio hint. ", - ""); - I_Method1(void, setVerticalScale, IN, float, scale, - Properties::NON_VIRTUAL, - __void__setVerticalScale__float, - "Set the vertical scale hint. ", - ""); - I_Method0(float, getVerticalScale, - Properties::NON_VIRTUAL, - __float__getVerticalScale, - "Get the vertical scale hint. ", - ""); - I_Method1(osgTerrain::TerrainTile *, getTile, IN, const osgTerrain::TileID &, tileID, - Properties::NON_VIRTUAL, - __TerrainTile_P1__getTile__C5_TileID_R1, - "Get the TerrainTile for a given TileID. ", - ""); - I_Method1(const osgTerrain::TerrainTile *, getTile, IN, const osgTerrain::TileID &, tileID, - Properties::NON_VIRTUAL, - __C5_TerrainTile_P1__getTile__C5_TileID_R1, - "Get the const TerrainTile for a given TileID. ", - ""); - I_ProtectedMethod0(void, dirtyRegisteredTiles, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __void__dirtyRegisteredTiles, - "", - ""); - I_ProtectedMethod1(void, registerTerrainTile, IN, osgTerrain::TerrainTile *, tile, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __void__registerTerrainTile__TerrainTile_P1, - "", - ""); - I_ProtectedMethod1(void, unregisterTerrainTile, IN, osgTerrain::TerrainTile *, tile, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __void__unregisterTerrainTile__TerrainTile_P1, - "", - ""); - I_SimpleProperty(float, SampleRatio, - __float__getSampleRatio, - __void__setSampleRatio__float); - I_SimpleProperty(float, VerticalScale, - __float__getVerticalScale, - __void__setVerticalScale__float); -END_REFLECTOR - +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgTerrain::Terrain) + I_DeclaringFile("osgTerrain/Terrain"); + I_BaseType(osg::Group); + I_Constructor0(____Terrain, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgTerrain::Terrain &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Terrain__C5_Terrain_R1__C5_osg_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "clone an object of the same type as the node. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, x, + Properties::VIRTUAL, + __void__traverse__osg_NodeVisitor_R1, + "Traverse downwards : calls children's accept method with NodeVisitor. ", + ""); + I_Method1(void, setSampleRatio, IN, float, ratio, + Properties::NON_VIRTUAL, + __void__setSampleRatio__float, + "Set the sample ratio hint that TerrainTile should use when building geometry. ", + "Defaults to 1.0, which means use all original sample points. "); + I_Method0(float, getSampleRatio, + Properties::NON_VIRTUAL, + __float__getSampleRatio, + "Get the sample ratio hint. ", + ""); + I_Method1(void, setVerticalScale, IN, float, scale, + Properties::NON_VIRTUAL, + __void__setVerticalScale__float, + "Set the vertical scale hint. ", + ""); + I_Method0(float, getVerticalScale, + Properties::NON_VIRTUAL, + __float__getVerticalScale, + "Get the vertical scale hint. ", + ""); + I_Method1(osgTerrain::TerrainTile *, getTile, IN, const osgTerrain::TileID &, tileID, + Properties::NON_VIRTUAL, + __TerrainTile_P1__getTile__C5_TileID_R1, + "Get the TerrainTile for a given TileID. ", + ""); + I_Method1(const osgTerrain::TerrainTile *, getTile, IN, const osgTerrain::TileID &, tileID, + Properties::NON_VIRTUAL, + __C5_TerrainTile_P1__getTile__C5_TileID_R1, + "Get the const TerrainTile for a given TileID. ", + ""); + I_ProtectedMethod0(void, dirtyRegisteredTiles, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__dirtyRegisteredTiles, + "", + ""); + I_ProtectedMethod1(void, registerTerrainTile, IN, osgTerrain::TerrainTile *, tile, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__registerTerrainTile__TerrainTile_P1, + "", + ""); + I_ProtectedMethod1(void, unregisterTerrainTile, IN, osgTerrain::TerrainTile *, tile, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__unregisterTerrainTile__TerrainTile_P1, + "", + ""); + I_SimpleProperty(float, SampleRatio, + __float__getSampleRatio, + __void__setSampleRatio__float); + I_SimpleProperty(float, VerticalScale, + __float__getVerticalScale, + __void__setVerticalScale__float); +END_REFLECTOR + diff --git a/src/osgWrappers/osgTerrain/TerrainTechnique.cpp b/src/osgWrappers/osgTerrain/TerrainTechnique.cpp index 9280885be..16c6ba4bd 100644 --- a/src/osgWrappers/osgTerrain/TerrainTechnique.cpp +++ b/src/osgWrappers/osgTerrain/TerrainTechnique.cpp @@ -1,109 +1,109 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_OBJECT_REFLECTOR(osgTerrain::TerrainTechnique) - I_DeclaringFile("osgTerrain/TerrainTechnique"); - I_BaseType(osg::Object); - I_Constructor0(____TerrainTechnique, - "", - ""); - I_ConstructorWithDefaults2(IN, const osgTerrain::TerrainTechnique &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, - ____TerrainTechnique__C5_TerrainTechnique_R1__C5_osg_CopyOp_R1, - "Copy constructor using CopyOp to manage deep vs shallow copy. ", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __osg_Object_P1__cloneType, - "Clone the type of an object, with Object* return type. ", - "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::VIRTUAL, - __osg_Object_P1__clone__C5_osg_CopyOp_R1, - "Clone an object, with Object* return type. ", - "Must be defined by derived classes. "); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "return the name of the object's library. ", - "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "return the name of the object's class type. ", - "Must be defined by derived classes. "); - I_Method0(osgTerrain::TerrainTile *, getTerrainTile, - Properties::NON_VIRTUAL, - __TerrainTile_P1__getTerrainTile, - "", - ""); - I_Method0(const osgTerrain::TerrainTile *, getTerrainTile, - Properties::NON_VIRTUAL, - __C5_TerrainTile_P1__getTerrainTile, - "", - ""); - I_Method0(void, init, - Properties::VIRTUAL, - __void__init, - "", - ""); - I_Method1(void, update, IN, osgUtil::UpdateVisitor *, nv, - Properties::VIRTUAL, - __void__update__osgUtil_UpdateVisitor_P1, - "", - ""); - I_Method1(void, cull, IN, osgUtil::CullVisitor *, nv, - Properties::VIRTUAL, - __void__cull__osgUtil_CullVisitor_P1, - "", - ""); - I_Method0(void, cleanSceneGraph, - Properties::VIRTUAL, - __void__cleanSceneGraph, - "Clean scene graph from any terrain technique specific nodes. ", - ""); - I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, - Properties::VIRTUAL, - __void__traverse__osg_NodeVisitor_R1, - "Traverse the terrain subgraph. ", - ""); - I_ProtectedMethod1(void, setDirty, IN, bool, dirty, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __void__setDirty__bool, - "", - ""); - I_SimpleProperty(osgTerrain::TerrainTile *, TerrainTile, - __TerrainTile_P1__getTerrainTile, - 0); -END_REFLECTOR - +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgTerrain::TerrainTechnique) + I_DeclaringFile("osgTerrain/TerrainTechnique"); + I_BaseType(osg::Object); + I_Constructor0(____TerrainTechnique, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgTerrain::TerrainTechnique &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TerrainTechnique__C5_TerrainTechnique_R1__C5_osg_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method0(osgTerrain::TerrainTile *, getTerrainTile, + Properties::NON_VIRTUAL, + __TerrainTile_P1__getTerrainTile, + "", + ""); + I_Method0(const osgTerrain::TerrainTile *, getTerrainTile, + Properties::NON_VIRTUAL, + __C5_TerrainTile_P1__getTerrainTile, + "", + ""); + I_Method0(void, init, + Properties::VIRTUAL, + __void__init, + "", + ""); + I_Method1(void, update, IN, osgUtil::UpdateVisitor *, nv, + Properties::VIRTUAL, + __void__update__osgUtil_UpdateVisitor_P1, + "", + ""); + I_Method1(void, cull, IN, osgUtil::CullVisitor *, nv, + Properties::VIRTUAL, + __void__cull__osgUtil_CullVisitor_P1, + "", + ""); + I_Method0(void, cleanSceneGraph, + Properties::VIRTUAL, + __void__cleanSceneGraph, + "Clean scene graph from any terrain technique specific nodes. ", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__traverse__osg_NodeVisitor_R1, + "Traverse the terrain subgraph. ", + ""); + I_ProtectedMethod1(void, setDirty, IN, bool, dirty, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__setDirty__bool, + "", + ""); + I_SimpleProperty(osgTerrain::TerrainTile *, TerrainTile, + __TerrainTile_P1__getTerrainTile, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/osgTerrain/TerrainTile.cpp b/src/osgWrappers/osgTerrain/TerrainTile.cpp index 35679c9b6..979622f7e 100644 --- a/src/osgWrappers/osgTerrain/TerrainTile.cpp +++ b/src/osgWrappers/osgTerrain/TerrainTile.cpp @@ -1,257 +1,257 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_OBJECT_REFLECTOR(osgTerrain::TerrainTile) - I_DeclaringFile("osgTerrain/TerrainTile"); - I_BaseType(osg::Group); - I_Constructor0(____TerrainTile, - "", - ""); - I_ConstructorWithDefaults2(IN, const osgTerrain::TerrainTile &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, - ____TerrainTile__C5_TerrainTile_R1__C5_osg_CopyOp_R1, - "Copy constructor using CopyOp to manage deep vs shallow copy. ", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __osg_Object_P1__cloneType, - "clone an object of the same type as the node. ", - ""); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "return true if this and obj are of the same kind of object. ", - ""); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "return the name of the node's class type. ", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "return the name of the node's library. ", - ""); - I_Method1(void, accept, IN, osg::NodeVisitor &, nv, - Properties::VIRTUAL, - __void__accept__osg_NodeVisitor_R1, - "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", - ""); - I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, - Properties::VIRTUAL, - __void__traverse__osg_NodeVisitor_R1, - "Traverse downwards : calls children's accept method with NodeVisitor. ", - ""); - I_Method0(void, init, - Properties::NON_VIRTUAL, - __void__init, - "Call init on any attached TerrainTechnique. ", - ""); - I_Method1(void, setTerrain, IN, osgTerrain::Terrain *, ts, - Properties::NON_VIRTUAL, - __void__setTerrain__Terrain_P1, - "Set the Terrain that this Terrain tile is a member of. ", - ""); - I_Method0(osgTerrain::Terrain *, getTerrain, - Properties::NON_VIRTUAL, - __Terrain_P1__getTerrain, - "Get the Terrain that this Terrain tile is a member of. ", - ""); - I_Method0(const osgTerrain::Terrain *, getTerrain, - Properties::NON_VIRTUAL, - __C5_Terrain_P1__getTerrain, - "Get the const Terrain that this Terrain tile is a member of. ", - ""); - I_Method1(void, setTileID, IN, const osgTerrain::TileID &, tileID, - Properties::NON_VIRTUAL, - __void__setTileID__C5_TileID_R1, - "Set the TileID (layer, x,y) of the TerrainTile. ", - "The TileID is used so it can be located by its neighbours via the enclosing Terrain node that manages a map of TileID to TerraiTiles. "); - I_Method0(const osgTerrain::TileID &, getTileID, - Properties::NON_VIRTUAL, - __C5_TileID_R1__getTileID, - "Get the TileID (layer, x,y) of the TerrainTile. ", - ""); - I_Method1(void, setTerrainTechnique, IN, osgTerrain::TerrainTechnique *, TerrainTechnique, - Properties::NON_VIRTUAL, - __void__setTerrainTechnique__TerrainTechnique_P1, - "Set the TerrainTechnique. ", - ""); - I_Method0(osgTerrain::TerrainTechnique *, getTerrainTechnique, - Properties::NON_VIRTUAL, - __TerrainTechnique_P1__getTerrainTechnique, - "Get the TerrainTechnique. ", - ""); - I_Method0(const osgTerrain::TerrainTechnique *, getTerrainTechnique, - Properties::NON_VIRTUAL, - __C5_TerrainTechnique_P1__getTerrainTechnique, - "Get the const TerrainTechnique. ", - ""); - I_Method1(void, setLocator, IN, osgTerrain::Locator *, locator, - Properties::NON_VIRTUAL, - __void__setLocator__Locator_P1, - "Set the coordinate frame locator of the terrain node. ", - "The locator takes non-dimensional s,t coordinates into the X,Y,Z world coords and back. "); - I_Method0(osgTerrain::Locator *, getLocator, - Properties::NON_VIRTUAL, - __Locator_P1__getLocator, - "Get the coordinate frame locator of the terrain node. ", - ""); - I_Method0(const osgTerrain::Locator *, getLocator, - Properties::NON_VIRTUAL, - __C5_Locator_P1__getLocator, - "Get the coordinate frame locator of the terrain node. ", - ""); - I_Method1(void, setElevationLayer, IN, osgTerrain::Layer *, layer, - Properties::NON_VIRTUAL, - __void__setElevationLayer__Layer_P1, - "Set the layer to use to define the elevations of the terrain. ", - ""); - I_Method0(osgTerrain::Layer *, getElevationLayer, - Properties::NON_VIRTUAL, - __Layer_P1__getElevationLayer, - "Get the layer to use to define the elevations of the terrain. ", - ""); - I_Method0(const osgTerrain::Layer *, getElevationLayer, - Properties::NON_VIRTUAL, - __C5_Layer_P1__getElevationLayer, - "Get the const layer to use to define the elevations of the terrain. ", - ""); - I_Method2(void, setColorLayer, IN, unsigned int, i, IN, osgTerrain::Layer *, layer, - Properties::NON_VIRTUAL, - __void__setColorLayer__unsigned_int__Layer_P1, - "Set a color layer with specified layer number. ", - ""); - I_Method1(osgTerrain::Layer *, getColorLayer, IN, unsigned int, i, - Properties::NON_VIRTUAL, - __Layer_P1__getColorLayer__unsigned_int, - "Get color layer with specified layer number. ", - ""); - I_Method1(const osgTerrain::Layer *, getColorLayer, IN, unsigned int, i, - Properties::NON_VIRTUAL, - __C5_Layer_P1__getColorLayer__unsigned_int, - "Set const color layer with specified layer number. ", - ""); - I_Method0(unsigned int, getNumColorLayers, - Properties::NON_VIRTUAL, - __unsigned_int__getNumColorLayers, - "Get the number of colour layers. ", - ""); - I_Method1(void, setRequiresNormals, IN, bool, flag, - Properties::NON_VIRTUAL, - __void__setRequiresNormals__bool, - "Set hint to whether the TerrainTechnique should create per vertex normals for lighting purposes. ", - ""); - I_Method0(bool, getRequiresNormals, - Properties::NON_VIRTUAL, - __bool__getRequiresNormals, - "Get whether the TerrainTechnique should create per vertex normals for lighting purposes. ", - ""); - I_Method1(void, setTreatBoundariesToValidDataAsDefaultValue, IN, bool, flag, - Properties::NON_VIRTUAL, - __void__setTreatBoundariesToValidDataAsDefaultValue__bool, - "Set the hint to whether the TerrainTechnique should treat the invalid Layer entries that at are neigbours to valid entries with the default value. ", - ""); - I_Method0(bool, getTreatBoundariesToValidDataAsDefaultValue, - Properties::NON_VIRTUAL, - __bool__getTreatBoundariesToValidDataAsDefaultValue, - "Get whether the TeatBoundariesToValidDataAsDefaultValue hint. ", - ""); - I_Method1(void, setDirty, IN, bool, dirty, - Properties::NON_VIRTUAL, - __void__setDirty__bool, - "Set the dirty flag on/off. ", - ""); - I_Method0(bool, getDirty, - Properties::NON_VIRTUAL, - __bool__getDirty, - "return true if the tile is dirty and needs to be updated, ", - ""); - I_Method0(osg::BoundingSphere, computeBound, - Properties::VIRTUAL, - __osg_BoundingSphere__computeBound, - "Compute the bounding volume of the terrain by computing the union of the bounding volumes of all layers. ", - ""); - I_ArrayProperty(osgTerrain::Layer *, ColorLayer, - __Layer_P1__getColorLayer__unsigned_int, - __void__setColorLayer__unsigned_int__Layer_P1, - __unsigned_int__getNumColorLayers, - 0, - 0, - 0); - I_SimpleProperty(bool, Dirty, - __bool__getDirty, - __void__setDirty__bool); - I_SimpleProperty(osgTerrain::Layer *, ElevationLayer, - __Layer_P1__getElevationLayer, - __void__setElevationLayer__Layer_P1); - I_SimpleProperty(osgTerrain::Locator *, Locator, - __Locator_P1__getLocator, - __void__setLocator__Locator_P1); - I_SimpleProperty(bool, RequiresNormals, - __bool__getRequiresNormals, - __void__setRequiresNormals__bool); - I_SimpleProperty(osgTerrain::Terrain *, Terrain, - __Terrain_P1__getTerrain, - __void__setTerrain__Terrain_P1); - I_SimpleProperty(osgTerrain::TerrainTechnique *, TerrainTechnique, - __TerrainTechnique_P1__getTerrainTechnique, - __void__setTerrainTechnique__TerrainTechnique_P1); - I_SimpleProperty(const osgTerrain::TileID &, TileID, - __C5_TileID_R1__getTileID, - __void__setTileID__C5_TileID_R1); - I_SimpleProperty(bool, TreatBoundariesToValidDataAsDefaultValue, - __bool__getTreatBoundariesToValidDataAsDefaultValue, - __void__setTreatBoundariesToValidDataAsDefaultValue__bool); -END_REFLECTOR - -BEGIN_VALUE_REFLECTOR(osgTerrain::TileID) - I_DeclaringFile("osgTerrain/TerrainTile"); - I_Constructor0(____TileID, - "", - ""); - I_Constructor3(IN, int, in_layer, IN, int, in_x, IN, int, in_y, - ____TileID__int__int__int, - "", - ""); - I_Method0(bool, valid, - Properties::NON_VIRTUAL, - __bool__valid, - "", - ""); - I_PublicMemberProperty(int, layer); - I_PublicMemberProperty(int, x); - I_PublicMemberProperty(int, y); -END_REFLECTOR - +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgTerrain::TerrainTile) + I_DeclaringFile("osgTerrain/TerrainTile"); + I_BaseType(osg::Group); + I_Constructor0(____TerrainTile, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgTerrain::TerrainTile &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TerrainTile__C5_TerrainTile_R1__C5_osg_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "clone an object of the same type as the node. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, x, + Properties::VIRTUAL, + __void__traverse__osg_NodeVisitor_R1, + "Traverse downwards : calls children's accept method with NodeVisitor. ", + ""); + I_Method0(void, init, + Properties::NON_VIRTUAL, + __void__init, + "Call init on any attached TerrainTechnique. ", + ""); + I_Method1(void, setTerrain, IN, osgTerrain::Terrain *, ts, + Properties::NON_VIRTUAL, + __void__setTerrain__Terrain_P1, + "Set the Terrain that this Terrain tile is a member of. ", + ""); + I_Method0(osgTerrain::Terrain *, getTerrain, + Properties::NON_VIRTUAL, + __Terrain_P1__getTerrain, + "Get the Terrain that this Terrain tile is a member of. ", + ""); + I_Method0(const osgTerrain::Terrain *, getTerrain, + Properties::NON_VIRTUAL, + __C5_Terrain_P1__getTerrain, + "Get the const Terrain that this Terrain tile is a member of. ", + ""); + I_Method1(void, setTileID, IN, const osgTerrain::TileID &, tileID, + Properties::NON_VIRTUAL, + __void__setTileID__C5_TileID_R1, + "Set the TileID (layer, x,y) of the TerrainTile. ", + "The TileID is used so it can be located by its neighbours via the enclosing Terrain node that manages a map of TileID to TerraiTiles. "); + I_Method0(const osgTerrain::TileID &, getTileID, + Properties::NON_VIRTUAL, + __C5_TileID_R1__getTileID, + "Get the TileID (layer, x,y) of the TerrainTile. ", + ""); + I_Method1(void, setTerrainTechnique, IN, osgTerrain::TerrainTechnique *, TerrainTechnique, + Properties::NON_VIRTUAL, + __void__setTerrainTechnique__TerrainTechnique_P1, + "Set the TerrainTechnique. ", + ""); + I_Method0(osgTerrain::TerrainTechnique *, getTerrainTechnique, + Properties::NON_VIRTUAL, + __TerrainTechnique_P1__getTerrainTechnique, + "Get the TerrainTechnique. ", + ""); + I_Method0(const osgTerrain::TerrainTechnique *, getTerrainTechnique, + Properties::NON_VIRTUAL, + __C5_TerrainTechnique_P1__getTerrainTechnique, + "Get the const TerrainTechnique. ", + ""); + I_Method1(void, setLocator, IN, osgTerrain::Locator *, locator, + Properties::NON_VIRTUAL, + __void__setLocator__Locator_P1, + "Set the coordinate frame locator of the terrain node. ", + "The locator takes non-dimensional s,t coordinates into the X,Y,Z world coords and back. "); + I_Method0(osgTerrain::Locator *, getLocator, + Properties::NON_VIRTUAL, + __Locator_P1__getLocator, + "Get the coordinate frame locator of the terrain node. ", + ""); + I_Method0(const osgTerrain::Locator *, getLocator, + Properties::NON_VIRTUAL, + __C5_Locator_P1__getLocator, + "Get the coordinate frame locator of the terrain node. ", + ""); + I_Method1(void, setElevationLayer, IN, osgTerrain::Layer *, layer, + Properties::NON_VIRTUAL, + __void__setElevationLayer__Layer_P1, + "Set the layer to use to define the elevations of the terrain. ", + ""); + I_Method0(osgTerrain::Layer *, getElevationLayer, + Properties::NON_VIRTUAL, + __Layer_P1__getElevationLayer, + "Get the layer to use to define the elevations of the terrain. ", + ""); + I_Method0(const osgTerrain::Layer *, getElevationLayer, + Properties::NON_VIRTUAL, + __C5_Layer_P1__getElevationLayer, + "Get the const layer to use to define the elevations of the terrain. ", + ""); + I_Method2(void, setColorLayer, IN, unsigned int, i, IN, osgTerrain::Layer *, layer, + Properties::NON_VIRTUAL, + __void__setColorLayer__unsigned_int__Layer_P1, + "Set a color layer with specified layer number. ", + ""); + I_Method1(osgTerrain::Layer *, getColorLayer, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __Layer_P1__getColorLayer__unsigned_int, + "Get color layer with specified layer number. ", + ""); + I_Method1(const osgTerrain::Layer *, getColorLayer, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __C5_Layer_P1__getColorLayer__unsigned_int, + "Set const color layer with specified layer number. ", + ""); + I_Method0(unsigned int, getNumColorLayers, + Properties::NON_VIRTUAL, + __unsigned_int__getNumColorLayers, + "Get the number of colour layers. ", + ""); + I_Method1(void, setRequiresNormals, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setRequiresNormals__bool, + "Set hint to whether the TerrainTechnique should create per vertex normals for lighting purposes. ", + ""); + I_Method0(bool, getRequiresNormals, + Properties::NON_VIRTUAL, + __bool__getRequiresNormals, + "Get whether the TerrainTechnique should create per vertex normals for lighting purposes. ", + ""); + I_Method1(void, setTreatBoundariesToValidDataAsDefaultValue, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setTreatBoundariesToValidDataAsDefaultValue__bool, + "Set the hint to whether the TerrainTechnique should treat the invalid Layer entries that at are neigbours to valid entries with the default value. ", + ""); + I_Method0(bool, getTreatBoundariesToValidDataAsDefaultValue, + Properties::NON_VIRTUAL, + __bool__getTreatBoundariesToValidDataAsDefaultValue, + "Get whether the TeatBoundariesToValidDataAsDefaultValue hint. ", + ""); + I_Method1(void, setDirty, IN, bool, dirty, + Properties::NON_VIRTUAL, + __void__setDirty__bool, + "Set the dirty flag on/off. ", + ""); + I_Method0(bool, getDirty, + Properties::NON_VIRTUAL, + __bool__getDirty, + "return true if the tile is dirty and needs to be updated, ", + ""); + I_Method0(osg::BoundingSphere, computeBound, + Properties::VIRTUAL, + __osg_BoundingSphere__computeBound, + "Compute the bounding volume of the terrain by computing the union of the bounding volumes of all layers. ", + ""); + I_ArrayProperty(osgTerrain::Layer *, ColorLayer, + __Layer_P1__getColorLayer__unsigned_int, + __void__setColorLayer__unsigned_int__Layer_P1, + __unsigned_int__getNumColorLayers, + 0, + 0, + 0); + I_SimpleProperty(bool, Dirty, + __bool__getDirty, + __void__setDirty__bool); + I_SimpleProperty(osgTerrain::Layer *, ElevationLayer, + __Layer_P1__getElevationLayer, + __void__setElevationLayer__Layer_P1); + I_SimpleProperty(osgTerrain::Locator *, Locator, + __Locator_P1__getLocator, + __void__setLocator__Locator_P1); + I_SimpleProperty(bool, RequiresNormals, + __bool__getRequiresNormals, + __void__setRequiresNormals__bool); + I_SimpleProperty(osgTerrain::Terrain *, Terrain, + __Terrain_P1__getTerrain, + __void__setTerrain__Terrain_P1); + I_SimpleProperty(osgTerrain::TerrainTechnique *, TerrainTechnique, + __TerrainTechnique_P1__getTerrainTechnique, + __void__setTerrainTechnique__TerrainTechnique_P1); + I_SimpleProperty(const osgTerrain::TileID &, TileID, + __C5_TileID_R1__getTileID, + __void__setTileID__C5_TileID_R1); + I_SimpleProperty(bool, TreatBoundariesToValidDataAsDefaultValue, + __bool__getTreatBoundariesToValidDataAsDefaultValue, + __void__setTreatBoundariesToValidDataAsDefaultValue__bool); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgTerrain::TileID) + I_DeclaringFile("osgTerrain/TerrainTile"); + I_Constructor0(____TileID, + "", + ""); + I_Constructor3(IN, int, in_layer, IN, int, in_x, IN, int, in_y, + ____TileID__int__int__int, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_PublicMemberProperty(int, layer); + I_PublicMemberProperty(int, x); + I_PublicMemberProperty(int, y); +END_REFLECTOR + diff --git a/src/osgWrappers/osgText/FadeText.cpp b/src/osgWrappers/osgText/FadeText.cpp index b92dd9a90..942bf89e0 100644 --- a/src/osgWrappers/osgText/FadeText.cpp +++ b/src/osgWrappers/osgText/FadeText.cpp @@ -39,7 +39,7 @@ BEGIN_OBJECT_REFLECTOR(osgText::FadeText) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", diff --git a/src/osgWrappers/osgText/KerningType.cpp b/src/osgWrappers/osgText/KerningType.cpp index d071ffbff..5f168f1e1 100644 --- a/src/osgWrappers/osgText/KerningType.cpp +++ b/src/osgWrappers/osgText/KerningType.cpp @@ -1,33 +1,33 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -TYPE_NAME_ALIAS(std::pair< unsigned int COMMA unsigned int >, osgText::FontResolution) - -BEGIN_ENUM_REFLECTOR(osgText::KerningType) - I_DeclaringFile("osgText/KerningType"); - I_EnumLabel(osgText::KERNING_DEFAULT); - I_EnumLabel(osgText::KERNING_UNFITTED); - I_EnumLabel(osgText::KERNING_NONE); -END_REFLECTOR - -STD_PAIR_REFLECTOR(std::pair< unsigned int COMMA unsigned int >) - +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgText::KerningType) + I_DeclaringFile("osgText/KerningType"); + I_EnumLabel(osgText::KERNING_DEFAULT); + I_EnumLabel(osgText::KERNING_UNFITTED); + I_EnumLabel(osgText::KERNING_NONE); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::pair< unsigned int COMMA unsigned int >, osgText::FontResolution) + +STD_PAIR_REFLECTOR(std::pair< unsigned int COMMA unsigned int >) + diff --git a/src/osgWrappers/osgText/String.cpp b/src/osgWrappers/osgText/String.cpp index a397cfdaf..3e9831bdb 100644 --- a/src/osgWrappers/osgText/String.cpp +++ b/src/osgWrappers/osgText/String.cpp @@ -20,8 +20,6 @@ #undef OUT #endif -TYPE_NAME_ALIAS(osgText::VectorUInt, osgText::String::vector_type) - BEGIN_ENUM_REFLECTOR(osgText::String::Encoding) I_DeclaringFile("osgText/String"); I_EnumLabel(osgText::String::ENCODING_UNDEFINED); @@ -36,6 +34,8 @@ BEGIN_ENUM_REFLECTOR(osgText::String::Encoding) I_EnumLabel(osgText::String::ENCODING_SIGNATURE); END_REFLECTOR +TYPE_NAME_ALIAS(osgText::VectorUInt, osgText::String::vector_type) + BEGIN_OBJECT_REFLECTOR(osgText::String) I_DeclaringFile("osgText/String"); I_BaseType(osgText::VectorUInt); diff --git a/src/osgWrappers/osgText/Text.cpp b/src/osgWrappers/osgText/Text.cpp index e446843a7..a7d916ec6 100644 --- a/src/osgWrappers/osgText/Text.cpp +++ b/src/osgWrappers/osgText/Text.cpp @@ -28,8 +28,6 @@ #undef OUT #endif -TYPE_NAME_ALIAS(std::map< osg::ref_ptr< osgText::Font::GlyphTexture > COMMA osgText::Text::GlyphQuads >, osgText::Text::TextureGlyphQuadMap) - BEGIN_ENUM_REFLECTOR(osgText::Text::BackdropType) I_DeclaringFile("osgText/Text"); I_EnumLabel(osgText::Text::DROP_SHADOW_BOTTOM_RIGHT); @@ -59,6 +57,8 @@ BEGIN_ENUM_REFLECTOR(osgText::Text::ColorGradientMode) I_EnumLabel(osgText::Text::OVERALL); END_REFLECTOR +TYPE_NAME_ALIAS(std::map< osg::ref_ptr< osgText::Font::GlyphTexture > COMMA osgText::Text::GlyphQuads >, osgText::Text::TextureGlyphQuadMap) + BEGIN_OBJECT_REFLECTOR(osgText::Text) I_DeclaringFile("osgText/Text"); I_BaseType(osgText::TextBase); @@ -74,7 +74,7 @@ BEGIN_OBJECT_REFLECTOR(osgText::Text) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", diff --git a/src/osgWrappers/osgText/Text3D.cpp b/src/osgWrappers/osgText/Text3D.cpp index 4f2308cf5..f7bae9a8f 100644 --- a/src/osgWrappers/osgText/Text3D.cpp +++ b/src/osgWrappers/osgText/Text3D.cpp @@ -1,235 +1,235 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_ENUM_REFLECTOR(osgText::Text3D::RenderMode) - I_DeclaringFile("osgText/Text3D"); - I_EnumLabel(osgText::Text3D::PER_FACE); - I_EnumLabel(osgText::Text3D::PER_GLYPH); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(osgText::Text3D) - I_DeclaringFile("osgText/Text3D"); - I_BaseType(osgText::TextBase); - I_Constructor0(____Text3D, - "", - ""); - I_ConstructorWithDefaults2(IN, const osgText::Text3D &, text, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, - ____Text3D__C5_Text3D_R1__C5_osg_CopyOp_R1, - "", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __osg_Object_P1__cloneType, - "Clone the type of an object, with Object* return type. ", - "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::VIRTUAL, - __osg_Object_P1__clone__C5_osg_CopyOp_R1, - "Clone an object, with Object* return type. ", - "Must be defined by derived classes. "); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "return the name of the object's library. ", - "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "return the name of the object's class type. ", - "Must be defined by derived classes. "); - I_Method0(float, getCharacterDepth, - Properties::NON_VIRTUAL, - __float__getCharacterDepth, - "Get the Charactere Depth of text. ", - ""); - I_Method1(void, setCharacterDepth, IN, float, characterDepth, - Properties::NON_VIRTUAL, - __void__setCharacterDepth__float, - "Set the Charactere Depth of text. ", - ""); - I_Method0(osgText::Text3D::RenderMode, getRenderMode, - Properties::NON_VIRTUAL, - __RenderMode__getRenderMode, - "Get the render mode used to render the text. ", - ""); - I_Method1(void, setRenderMode, IN, osgText::Text3D::RenderMode, renderMode, - Properties::NON_VIRTUAL, - __void__setRenderMode__RenderMode, - "Set the render mode used to render the text. ", - ""); - I_MethodWithDefaults1(void, setFont, IN, osgText::Font3D *, font, 0, - Properties::NON_VIRTUAL, - __void__setFont__Font3D_P1, - "Set the Font to use to render the text. ", - "setFont(0) sets the use of the default font. "); - I_Method1(void, setFont, IN, osg::ref_ptr< osgText::Font3D >, font, - Properties::NON_VIRTUAL, - __void__setFont__osg_ref_ptrT1_Font3D_, - "Set the Font to use to render the text. ", - ""); - I_Method1(void, setFont, IN, const std::string &, fontfile, - Properties::NON_VIRTUAL, - __void__setFont__C5_std_string_R1, - "Set the font, loaded from the specified front file, to use to render the text, setFont(\"\") sets the use of the default font. ", - "See the osgText::readFontFile function for how the font file will be located. "); - I_Method0(const osgText::Font3D *, getFont, - Properties::NON_VIRTUAL, - __C5_Font3D_P1__getFont, - "Get the font. ", - "Return 0 if default is being used. "); - I_Method1(void, drawImplementation, IN, osg::RenderInfo &, renderInfo, - Properties::VIRTUAL, - __void__drawImplementation__osg_RenderInfo_R1, - "Draw the text. ", - ""); - I_Method1(bool, supports, IN, const osg::Drawable::AttributeFunctor &, x, - Properties::VIRTUAL, - __bool__supports__C5_osg_Drawable_AttributeFunctor_R1, - "return false, osgText::Text does not support accept(AttributeFunctor&). ", - ""); - I_Method1(bool, supports, IN, const osg::Drawable::ConstAttributeFunctor &, x, - Properties::VIRTUAL, - __bool__supports__C5_osg_Drawable_ConstAttributeFunctor_R1, - "return true, osgText::Text does support accept(ConstAttributeFunctor&). ", - ""); - I_Method1(bool, supports, IN, const osg::PrimitiveFunctor &, x, - Properties::VIRTUAL, - __bool__supports__C5_osg_PrimitiveFunctor_R1, - "return true, osgText::Text does support accept(PrimitiveFunctor&) . ", - ""); - I_Method1(void, setThreadSafeRefUnref, IN, bool, threadSafe, - Properties::VIRTUAL, - __void__setThreadSafeRefUnref__bool, - "Set whether to use a mutex to ensure ref() and unref() are thread safe. ", - ""); - I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, - Properties::VIRTUAL, - __void__resizeGLObjectBuffers__unsigned_int, - "Resize any per context GLObject buffers to specified size. ", - ""); - I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, - Properties::VIRTUAL, - __void__releaseGLObjects__osg_State_P1, - "If State is non-zero, this function releases OpenGL objects for the specified graphics context. ", - "Otherwise, releases OpenGL objexts for all graphics contexts. "); - I_Method0(osg::BoundingBox, computeBound, - Properties::VIRTUAL, - __osg_BoundingBox__computeBound, - "Compute the bounding box around Drawables's geometry. ", - ""); - I_ProtectedMethod1(void, renderPerGlyph, IN, osg::State &, state, - Properties::NON_VIRTUAL, - Properties::CONST, - __void__renderPerGlyph__osg_State_R1, - "", - ""); - I_ProtectedMethod1(void, renderPerFace, IN, osg::State &, state, - Properties::NON_VIRTUAL, - Properties::CONST, - __void__renderPerFace__osg_State_R1, - "", - ""); - I_ProtectedMethod3(osgText::String::iterator, computeLastCharacterOnLine, IN, osg::Vec2 &, cursor, IN, osgText::String::iterator, first, IN, osgText::String::iterator, last, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __String_iterator__computeLastCharacterOnLine__osg_Vec2_R1__String_iterator__String_iterator, - "", - ""); - I_ProtectedMethod0(void, computeGlyphRepresentation, - Properties::VIRTUAL, - Properties::NON_CONST, - __void__computeGlyphRepresentation, - "", - ""); - I_ProtectedMethod1(void, computePositions, IN, unsigned int, contextID, - Properties::VIRTUAL, - Properties::CONST, - __void__computePositions__unsigned_int, - "", - ""); - I_SimpleProperty(float, CharacterDepth, - __float__getCharacterDepth, - __void__setCharacterDepth__float); - I_SimpleProperty(osg::ref_ptr< osgText::Font3D >, Font, - 0, - __void__setFont__osg_ref_ptrT1_Font3D_); - I_SimpleProperty(osgText::Text3D::RenderMode, RenderMode, - __RenderMode__getRenderMode, - __void__setRenderMode__RenderMode); - I_SimpleProperty(bool, ThreadSafeRefUnref, - 0, - __void__setThreadSafeRefUnref__bool); -END_REFLECTOR - -BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgText::Font3D >) - I_DeclaringFile("osg/ref_ptr"); - I_Constructor0(____ref_ptr, - "", - ""); - I_Constructor1(IN, osgText::Font3D *, ptr, - Properties::NON_EXPLICIT, - ____ref_ptr__T_P1, - "", - ""); - I_Constructor1(IN, const osg::ref_ptr< osgText::Font3D > &, rp, - Properties::NON_EXPLICIT, - ____ref_ptr__C5_ref_ptr_R1, - "", - ""); - I_Method0(osgText::Font3D *, get, - Properties::NON_VIRTUAL, - __T_P1__get, - "", - ""); - I_Method0(bool, valid, - Properties::NON_VIRTUAL, - __bool__valid, - "", - ""); - I_Method0(osgText::Font3D *, release, - Properties::NON_VIRTUAL, - __T_P1__release, - "", - ""); - I_Method1(void, swap, IN, osg::ref_ptr< osgText::Font3D > &, rp, - Properties::NON_VIRTUAL, - __void__swap__ref_ptr_R1, - "", - ""); - I_SimpleProperty(osgText::Font3D *, , - __T_P1__get, - 0); -END_REFLECTOR - +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgText::Text3D::RenderMode) + I_DeclaringFile("osgText/Text3D"); + I_EnumLabel(osgText::Text3D::PER_FACE); + I_EnumLabel(osgText::Text3D::PER_GLYPH); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgText::Text3D) + I_DeclaringFile("osgText/Text3D"); + I_BaseType(osgText::TextBase); + I_Constructor0(____Text3D, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgText::Text3D &, text, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Text3D__C5_Text3D_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method0(float, getCharacterDepth, + Properties::NON_VIRTUAL, + __float__getCharacterDepth, + "Get the Charactere Depth of text. ", + ""); + I_Method1(void, setCharacterDepth, IN, float, characterDepth, + Properties::NON_VIRTUAL, + __void__setCharacterDepth__float, + "Set the Charactere Depth of text. ", + ""); + I_Method0(osgText::Text3D::RenderMode, getRenderMode, + Properties::NON_VIRTUAL, + __RenderMode__getRenderMode, + "Get the render mode used to render the text. ", + ""); + I_Method1(void, setRenderMode, IN, osgText::Text3D::RenderMode, renderMode, + Properties::NON_VIRTUAL, + __void__setRenderMode__RenderMode, + "Set the render mode used to render the text. ", + ""); + I_MethodWithDefaults1(void, setFont, IN, osgText::Font3D *, font, 0, + Properties::NON_VIRTUAL, + __void__setFont__Font3D_P1, + "Set the Font to use to render the text. ", + "setFont(0) sets the use of the default font. "); + I_Method1(void, setFont, IN, osg::ref_ptr< osgText::Font3D >, font, + Properties::NON_VIRTUAL, + __void__setFont__osg_ref_ptrT1_Font3D_, + "Set the Font to use to render the text. ", + ""); + I_Method1(void, setFont, IN, const std::string &, fontfile, + Properties::NON_VIRTUAL, + __void__setFont__C5_std_string_R1, + "Set the font, loaded from the specified front file, to use to render the text, setFont(\"\") sets the use of the default font. ", + "See the osgText::readFontFile function for how the font file will be located. "); + I_Method0(const osgText::Font3D *, getFont, + Properties::NON_VIRTUAL, + __C5_Font3D_P1__getFont, + "Get the font. ", + "Return 0 if default is being used. "); + I_Method1(void, drawImplementation, IN, osg::RenderInfo &, renderInfo, + Properties::VIRTUAL, + __void__drawImplementation__osg_RenderInfo_R1, + "Draw the text. ", + ""); + I_Method1(bool, supports, IN, const osg::Drawable::AttributeFunctor &, x, + Properties::VIRTUAL, + __bool__supports__C5_osg_Drawable_AttributeFunctor_R1, + "return false, osgText::Text does not support accept(AttributeFunctor&). ", + ""); + I_Method1(bool, supports, IN, const osg::Drawable::ConstAttributeFunctor &, x, + Properties::VIRTUAL, + __bool__supports__C5_osg_Drawable_ConstAttributeFunctor_R1, + "return true, osgText::Text does support accept(ConstAttributeFunctor&). ", + ""); + I_Method1(bool, supports, IN, const osg::PrimitiveFunctor &, x, + Properties::VIRTUAL, + __bool__supports__C5_osg_PrimitiveFunctor_R1, + "return true, osgText::Text does support accept(PrimitiveFunctor&) . ", + ""); + I_Method1(void, setThreadSafeRefUnref, IN, bool, threadSafe, + Properties::VIRTUAL, + __void__setThreadSafeRefUnref__bool, + "Set whether to use a mutex to ensure ref() and unref() are thread safe. ", + ""); + I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, + __void__resizeGLObjectBuffers__unsigned_int, + "Resize any per context GLObject buffers to specified size. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + Properties::VIRTUAL, + __void__releaseGLObjects__osg_State_P1, + "If State is non-zero, this function releases OpenGL objects for the specified graphics context. ", + "Otherwise, releases OpenGL objexts for all graphics contexts. "); + I_Method0(osg::BoundingBox, computeBound, + Properties::VIRTUAL, + __osg_BoundingBox__computeBound, + "Compute the bounding box around Drawables's geometry. ", + ""); + I_ProtectedMethod1(void, renderPerGlyph, IN, osg::State &, state, + Properties::NON_VIRTUAL, + Properties::CONST, + __void__renderPerGlyph__osg_State_R1, + "", + ""); + I_ProtectedMethod1(void, renderPerFace, IN, osg::State &, state, + Properties::NON_VIRTUAL, + Properties::CONST, + __void__renderPerFace__osg_State_R1, + "", + ""); + I_ProtectedMethod3(osgText::String::iterator, computeLastCharacterOnLine, IN, osg::Vec2 &, cursor, IN, osgText::String::iterator, first, IN, osgText::String::iterator, last, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __String_iterator__computeLastCharacterOnLine__osg_Vec2_R1__String_iterator__String_iterator, + "", + ""); + I_ProtectedMethod0(void, computeGlyphRepresentation, + Properties::VIRTUAL, + Properties::NON_CONST, + __void__computeGlyphRepresentation, + "", + ""); + I_ProtectedMethod1(void, computePositions, IN, unsigned int, contextID, + Properties::VIRTUAL, + Properties::CONST, + __void__computePositions__unsigned_int, + "", + ""); + I_SimpleProperty(float, CharacterDepth, + __float__getCharacterDepth, + __void__setCharacterDepth__float); + I_SimpleProperty(osg::ref_ptr< osgText::Font3D >, Font, + 0, + __void__setFont__osg_ref_ptrT1_Font3D_); + I_SimpleProperty(osgText::Text3D::RenderMode, RenderMode, + __RenderMode__getRenderMode, + __void__setRenderMode__RenderMode); + I_SimpleProperty(bool, ThreadSafeRefUnref, + 0, + __void__setThreadSafeRefUnref__bool); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgText::Font3D >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osgText::Font3D *, ptr, + Properties::NON_EXPLICIT, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osgText::Font3D > &, rp, + Properties::NON_EXPLICIT, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osgText::Font3D *, get, + Properties::NON_VIRTUAL, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(osgText::Font3D *, release, + Properties::NON_VIRTUAL, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osgText::Font3D > &, rp, + Properties::NON_VIRTUAL, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osgText::Font3D *, , + __T_P1__get, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/osgUtil/CullVisitor.cpp b/src/osgWrappers/osgUtil/CullVisitor.cpp index fea6498c8..bb67f26e9 100644 --- a/src/osgWrappers/osgUtil/CullVisitor.cpp +++ b/src/osgWrappers/osgUtil/CullVisitor.cpp @@ -83,17 +83,17 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::CullVisitor) __osg_Vec3__getViewPoint, "Get the view point in local coordinates. ", "Note, not all NodeVisitor implement this method, it is mainly cull visitors which will implement. "); - I_Method2(float, getDistanceToEyePoint, IN, const osg::Vec3 &, pos, IN, bool, withLODScale, + I_Method2(float, getDistanceToEyePoint, IN, const osg::Vec3 &, x, IN, bool, x, Properties::VIRTUAL, __float__getDistanceToEyePoint__C5_osg_Vec3_R1__bool, "Get the distance from a point to the eye point, distance value in local coordinate system. ", "Note, not all NodeVisitor implement this method, it is mainly cull visitors which will implement. If the getDistanceFromEyePoint(pos) is not implemented then a default value of 0.0 is returned. "); - I_Method2(float, getDistanceFromEyePoint, IN, const osg::Vec3 &, pos, IN, bool, withLODScale, + I_Method2(float, getDistanceFromEyePoint, IN, const osg::Vec3 &, x, IN, bool, x, Properties::VIRTUAL, __float__getDistanceFromEyePoint__C5_osg_Vec3_R1__bool, "Get the distance of a point from the eye point, distance value in the eye coordinate system. ", "Note, not all NodeVisitor implement this method, it is mainly cull visitors which will implement. If the getDistanceFromEyePoint(pos) is not implemented than a default value of 0.0 is returned. "); - I_Method2(float, getDistanceToViewPoint, IN, const osg::Vec3 &, pos, IN, bool, withLODScale, + I_Method2(float, getDistanceToViewPoint, IN, const osg::Vec3 &, x, IN, bool, x, Properties::VIRTUAL, __float__getDistanceToViewPoint__C5_osg_Vec3_R1__bool, "Get the distance from a point to the view point, distance value in local coordinate system. ", diff --git a/src/osgWrappers/osgUtil/GLObjectsVisitor.cpp b/src/osgWrappers/osgUtil/GLObjectsVisitor.cpp index 2ff248457..2018ed0aa 100644 --- a/src/osgWrappers/osgUtil/GLObjectsVisitor.cpp +++ b/src/osgWrappers/osgUtil/GLObjectsVisitor.cpp @@ -41,8 +41,6 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::GLObjectsOperation) ""); END_REFLECTOR -TYPE_NAME_ALIAS(unsigned int, osgUtil::GLObjectsVisitor::Mode) - BEGIN_ENUM_REFLECTOR(osgUtil::GLObjectsVisitor::ModeValues) I_DeclaringFile("osgUtil/GLObjectsVisitor"); I_EnumLabel(osgUtil::GLObjectsVisitor::SWITCH_ON_DISPLAY_LISTS); @@ -56,6 +54,8 @@ BEGIN_ENUM_REFLECTOR(osgUtil::GLObjectsVisitor::ModeValues) I_EnumLabel(osgUtil::GLObjectsVisitor::CHECK_BLACK_LISTED_MODES); END_REFLECTOR +TYPE_NAME_ALIAS(unsigned int, osgUtil::GLObjectsVisitor::Mode) + BEGIN_OBJECT_REFLECTOR(osgUtil::GLObjectsVisitor) I_DeclaringFile("osgUtil/GLObjectsVisitor"); I_BaseType(osg::NodeVisitor); diff --git a/src/osgWrappers/osgUtil/IntersectVisitor.cpp b/src/osgWrappers/osgUtil/IntersectVisitor.cpp index 2ed9f221d..f279d9318 100644 --- a/src/osgWrappers/osgUtil/IntersectVisitor.cpp +++ b/src/osgWrappers/osgUtil/IntersectVisitor.cpp @@ -188,16 +188,16 @@ BEGIN_VALUE_REFLECTOR(osgUtil::Hit) I_PublicMemberProperty(osg::Vec3, _intersectNormal); END_REFLECTOR -TYPE_NAME_ALIAS(std::vector< osgUtil::Hit >, osgUtil::IntersectVisitor::HitList) - -TYPE_NAME_ALIAS(std::map< const osg::LineSegment * COMMA osgUtil::IntersectVisitor::HitList >, osgUtil::IntersectVisitor::LineSegmentHitListMap) - BEGIN_ENUM_REFLECTOR(osgUtil::IntersectVisitor::LODSelectionMode) I_DeclaringFile("osgUtil/IntersectVisitor"); I_EnumLabel(osgUtil::IntersectVisitor::USE_HIGHEST_LEVEL_OF_DETAIL); I_EnumLabel(osgUtil::IntersectVisitor::USE_SEGMENT_START_POINT_AS_EYE_POINT_FOR_LOD_LEVEL_SELECTION); END_REFLECTOR +TYPE_NAME_ALIAS(std::vector< osgUtil::Hit >, osgUtil::IntersectVisitor::HitList) + +TYPE_NAME_ALIAS(std::map< const osg::LineSegment * COMMA osgUtil::IntersectVisitor::HitList >, osgUtil::IntersectVisitor::LineSegmentHitListMap) + BEGIN_OBJECT_REFLECTOR(osgUtil::IntersectVisitor) I_DeclaringFile("osgUtil/IntersectVisitor"); I_BaseType(osg::NodeVisitor); diff --git a/src/osgWrappers/osgUtil/RenderBin.cpp b/src/osgWrappers/osgUtil/RenderBin.cpp index 26a9fb0ad..dbbbb0bbb 100644 --- a/src/osgWrappers/osgUtil/RenderBin.cpp +++ b/src/osgWrappers/osgUtil/RenderBin.cpp @@ -36,12 +36,6 @@ BEGIN_VALUE_REFLECTOR(osgUtil::RegisterRenderBinProxy) ""); END_REFLECTOR -TYPE_NAME_ALIAS(std::vector< osgUtil::RenderLeaf * >, osgUtil::RenderBin::RenderLeafList) - -TYPE_NAME_ALIAS(std::vector< osgUtil::StateGraph * >, osgUtil::RenderBin::StateGraphList) - -TYPE_NAME_ALIAS(std::map< int COMMA osg::ref_ptr< osgUtil::RenderBin > >, osgUtil::RenderBin::RenderBinList) - BEGIN_ENUM_REFLECTOR(osgUtil::RenderBin::SortMode) I_DeclaringFile("osgUtil/RenderBin"); I_EnumLabel(osgUtil::RenderBin::SORT_BY_STATE); @@ -50,9 +44,39 @@ BEGIN_ENUM_REFLECTOR(osgUtil::RenderBin::SortMode) I_EnumLabel(osgUtil::RenderBin::SORT_BACK_TO_FRONT); END_REFLECTOR +TYPE_NAME_ALIAS(std::vector< osgUtil::RenderLeaf * >, osgUtil::RenderBin::RenderLeafList) + +TYPE_NAME_ALIAS(std::vector< osgUtil::StateGraph * >, osgUtil::RenderBin::StateGraphList) + +TYPE_NAME_ALIAS(std::map< int COMMA osg::ref_ptr< osgUtil::RenderBin > >, osgUtil::RenderBin::RenderBinList) + BEGIN_OBJECT_REFLECTOR(osgUtil::RenderBin) I_DeclaringFile("osgUtil/RenderBin"); I_BaseType(osg::Object); + I_StaticMethod1(osgUtil::RenderBin *, createRenderBin, IN, const std::string &, binName, + __RenderBin_P1__createRenderBin__C5_std_string_R1_S, + "", + ""); + I_StaticMethod1(osgUtil::RenderBin *, getRenderBinPrototype, IN, const std::string &, binName, + __RenderBin_P1__getRenderBinPrototype__C5_std_string_R1_S, + "", + ""); + I_StaticMethod2(void, addRenderBinPrototype, IN, const std::string &, binName, IN, osgUtil::RenderBin *, proto, + __void__addRenderBinPrototype__C5_std_string_R1__RenderBin_P1_S, + "", + ""); + I_StaticMethod1(void, removeRenderBinPrototype, IN, osgUtil::RenderBin *, proto, + __void__removeRenderBinPrototype__RenderBin_P1_S, + "", + ""); + I_StaticMethod1(void, setDefaultRenderBinSortMode, IN, osgUtil::RenderBin::SortMode, mode, + __void__setDefaultRenderBinSortMode__SortMode_S, + "", + ""); + I_StaticMethod0(osgUtil::RenderBin::SortMode, getDefaultRenderBinSortMode, + __SortMode__getDefaultRenderBinSortMode_S, + "", + ""); I_Constructor0(____RenderBin, "", ""); @@ -70,7 +94,7 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::RenderBin) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", @@ -270,30 +294,6 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::RenderBin) __void__copyLeavesFromStateGraphListToRenderLeafList, "", ""); - I_StaticMethod1(osgUtil::RenderBin *, createRenderBin, IN, const std::string &, binName, - __RenderBin_P1__createRenderBin__C5_std_string_R1_S, - "", - ""); - I_StaticMethod1(osgUtil::RenderBin *, getRenderBinPrototype, IN, const std::string &, binName, - __RenderBin_P1__getRenderBinPrototype__C5_std_string_R1_S, - "", - ""); - I_StaticMethod2(void, addRenderBinPrototype, IN, const std::string &, binName, IN, osgUtil::RenderBin *, proto, - __void__addRenderBinPrototype__C5_std_string_R1__RenderBin_P1_S, - "", - ""); - I_StaticMethod1(void, removeRenderBinPrototype, IN, osgUtil::RenderBin *, proto, - __void__removeRenderBinPrototype__RenderBin_P1_S, - "", - ""); - I_StaticMethod1(void, setDefaultRenderBinSortMode, IN, osgUtil::RenderBin::SortMode, mode, - __void__setDefaultRenderBinSortMode__SortMode_S, - "", - ""); - I_StaticMethod0(osgUtil::RenderBin::SortMode, getDefaultRenderBinSortMode, - __SortMode__getDefaultRenderBinSortMode_S, - "", - ""); I_SimpleProperty(int, BinNum, __int__getBinNum, 0); diff --git a/src/osgWrappers/osgUtil/RenderStage.cpp b/src/osgWrappers/osgUtil/RenderStage.cpp index e80331daa..aaaa19750 100644 --- a/src/osgWrappers/osgUtil/RenderStage.cpp +++ b/src/osgWrappers/osgUtil/RenderStage.cpp @@ -57,7 +57,7 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::RenderStage) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", diff --git a/src/osgWrappers/osgUtil/SceneView.cpp b/src/osgWrappers/osgUtil/SceneView.cpp index 784f1f648..4d4f4f2e4 100644 --- a/src/osgWrappers/osgUtil/SceneView.cpp +++ b/src/osgWrappers/osgUtil/SceneView.cpp @@ -43,8 +43,6 @@ #undef OUT #endif -TYPE_NAME_ALIAS(osgUtil::SceneView::Options, osgUtil::SceneView::LightingMode) - BEGIN_ENUM_REFLECTOR(osgUtil::SceneView::Options) I_DeclaringFile("osgUtil/SceneView"); I_EnumLabel(osgUtil::SceneView::NO_SCENEVIEW_LIGHT); @@ -73,6 +71,8 @@ BEGIN_ENUM_REFLECTOR(osgUtil::SceneView::FusionDistanceMode) I_EnumLabel(osgUtil::SceneView::PROPORTIONAL_TO_SCREEN_DISTANCE); END_REFLECTOR +TYPE_NAME_ALIAS(osgUtil::SceneView::Options, osgUtil::SceneView::LightingMode) + BEGIN_OBJECT_REFLECTOR(osgUtil::SceneView) I_DeclaringFile("osgUtil/SceneView"); I_BaseType(osg::Object); @@ -91,7 +91,7 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::SceneView) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", diff --git a/src/osgWrappers/osgUtil/Statistics.cpp b/src/osgWrappers/osgUtil/Statistics.cpp index 4f411605f..6090a1e57 100644 --- a/src/osgWrappers/osgUtil/Statistics.cpp +++ b/src/osgWrappers/osgUtil/Statistics.cpp @@ -33,12 +33,6 @@ #undef OUT #endif -TYPE_NAME_ALIAS(std::pair< unsigned int COMMA unsigned int >, osgUtil::Statistics::PrimitivePair) - -TYPE_NAME_ALIAS(std::map< GLenum COMMA osgUtil::Statistics::PrimitivePair >, osgUtil::Statistics::PrimitiveValueMap) - -TYPE_NAME_ALIAS(std::map< GLenum COMMA unsigned int >, osgUtil::Statistics::PrimitiveCountMap) - BEGIN_ENUM_REFLECTOR(osgUtil::Statistics::StatsType) I_DeclaringFile("osgUtil/Statistics"); I_EnumLabel(osgUtil::Statistics::STAT_NONE); @@ -51,6 +45,12 @@ BEGIN_ENUM_REFLECTOR(osgUtil::Statistics::StatsType) I_EnumLabel(osgUtil::Statistics::STAT_RESTART); END_REFLECTOR +TYPE_NAME_ALIAS(std::pair< unsigned int COMMA unsigned int >, osgUtil::Statistics::PrimitivePair) + +TYPE_NAME_ALIAS(std::map< GLenum COMMA osgUtil::Statistics::PrimitivePair >, osgUtil::Statistics::PrimitiveValueMap) + +TYPE_NAME_ALIAS(std::map< GLenum COMMA unsigned int >, osgUtil::Statistics::PrimitiveCountMap) + BEGIN_OBJECT_REFLECTOR(osgUtil::Statistics) I_DeclaringFile("osgUtil/Statistics"); I_BaseType(osg::PrimitiveFunctor); @@ -67,52 +67,52 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::Statistics) __void__setType__StatsType, "", ""); - I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec3 *, x, + I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec3 *, vertices, Properties::VIRTUAL, __void__setVertexArray__unsigned_int__C5_osg_Vec3_P1, "Sets the array of vertices used to describe the primitives. ", "Somehow mimics the OpenGL glVertexPointer() function. "); - I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec2 *, x, + I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec2 *, vertices, Properties::VIRTUAL, __void__setVertexArray__unsigned_int__C5_osg_Vec2_P1, "Sets the array of vertices used to describe the primitives. ", "Somehow mimics the OpenGL glVertexPointer() function. "); - I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec4 *, x, + I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec4 *, vertices, Properties::VIRTUAL, __void__setVertexArray__unsigned_int__C5_osg_Vec4_P1, "Sets the array of vertices used to describe the primitives. ", "Somehow mimics the OpenGL glVertexPointer() function. "); - I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec3d *, x, + I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec3d *, vertices, Properties::VIRTUAL, __void__setVertexArray__unsigned_int__C5_osg_Vec3d_P1, "Sets the array of vertices used to describe the primitives. ", "Somehow mimics the OpenGL glVertexPointer() function. "); - I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec2d *, x, + I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec2d *, vertices, Properties::VIRTUAL, __void__setVertexArray__unsigned_int__C5_osg_Vec2d_P1, "Sets the array of vertices used to describe the primitives. ", "Somehow mimics the OpenGL glVertexPointer() function. "); - I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec4d *, x, + I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec4d *, vertices, Properties::VIRTUAL, __void__setVertexArray__unsigned_int__C5_osg_Vec4d_P1, "Sets the array of vertices used to describe the primitives. ", "Somehow mimics the OpenGL glVertexPointer() function. "); - I_Method3(void, drawArrays, IN, GLenum, mode, IN, GLint, x, IN, GLsizei, count, + I_Method3(void, drawArrays, IN, GLenum, mode, IN, GLint, first, IN, GLsizei, count, Properties::VIRTUAL, __void__drawArrays__GLenum__GLint__GLsizei, "Mimics the OpenGL glDrawArrays() function. ", ""); - I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLubyte *, x, + I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLubyte *, indices, Properties::VIRTUAL, __void__drawElements__GLenum__GLsizei__C5_GLubyte_P1, "Mimics the OpenGL glDrawElements() function. ", ""); - I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLushort *, x, + I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLushort *, indices, Properties::VIRTUAL, __void__drawElements__GLenum__GLsizei__C5_GLushort_P1, "Mimics the OpenGL glDrawElements() function. ", ""); - I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLuint *, x, + I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLuint *, indices, Properties::VIRTUAL, __void__drawElements__GLenum__GLsizei__C5_GLuint_P1, "Mimics the OpenGL glDrawElements() function. ", @@ -127,32 +127,32 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::Statistics) __void__vertex, "", ""); - I_Method3(void, vertex, IN, float, x, IN, float, x, IN, float, x, + I_Method3(void, vertex, IN, float, x, IN, float, y, IN, float, z, Properties::VIRTUAL, __void__vertex__float__float__float, "Mimics the OpenGL glVertex() \"family of functions\". ", ""); - I_Method1(void, vertex, IN, const osg::Vec3 &, x, + I_Method1(void, vertex, IN, const osg::Vec3 &, vert, Properties::VIRTUAL, __void__vertex__C5_osg_Vec3_R1, "Mimics the OpenGL glVertex() \"family of functions\". ", ""); - I_Method1(void, vertex, IN, const osg::Vec2 &, x, + I_Method1(void, vertex, IN, const osg::Vec2 &, vert, Properties::VIRTUAL, __void__vertex__C5_osg_Vec2_R1, "Mimics the OpenGL glVertex() \"family of functions\". ", ""); - I_Method1(void, vertex, IN, const osg::Vec4 &, x, + I_Method1(void, vertex, IN, const osg::Vec4 &, vert, Properties::VIRTUAL, __void__vertex__C5_osg_Vec4_R1, "Mimics the OpenGL glVertex() \"family of functions\". ", ""); - I_Method2(void, vertex, IN, float, x, IN, float, x, + I_Method2(void, vertex, IN, float, x, IN, float, y, Properties::VIRTUAL, __void__vertex__float__float, "Mimics the OpenGL glVertex() \"family of functions\". ", ""); - I_Method4(void, vertex, IN, float, x, IN, float, x, IN, float, x, IN, float, x, + I_Method4(void, vertex, IN, float, x, IN, float, y, IN, float, z, IN, float, w, Properties::VIRTUAL, __void__vertex__float__float__float__float, "Mimics the OpenGL glVertex() \"family of functions\". ", diff --git a/src/osgWrappers/osgUtil/Tessellator.cpp b/src/osgWrappers/osgUtil/Tessellator.cpp index 51ec8a7b8..b2c63d3fb 100644 --- a/src/osgWrappers/osgUtil/Tessellator.cpp +++ b/src/osgWrappers/osgUtil/Tessellator.cpp @@ -22,10 +22,6 @@ #undef OUT #endif -TYPE_NAME_ALIAS(std::vector< osg::Vec3 * >, osgUtil::Tessellator::VertexPointList) - -TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgUtil::Tessellator::Prim > >, osgUtil::Tessellator::PrimList) - BEGIN_ENUM_REFLECTOR(osgUtil::Tessellator::WindingType) I_DeclaringFile("osgUtil/Tessellator"); I_EnumLabel(osgUtil::Tessellator::TESS_WINDING_ODD); @@ -42,6 +38,10 @@ BEGIN_ENUM_REFLECTOR(osgUtil::Tessellator::TessellationType) I_EnumLabel(osgUtil::Tessellator::TESS_TYPE_POLYGONS); END_REFLECTOR +TYPE_NAME_ALIAS(std::vector< osg::Vec3 * >, osgUtil::Tessellator::VertexPointList) + +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgUtil::Tessellator::Prim > >, osgUtil::Tessellator::PrimList) + BEGIN_OBJECT_REFLECTOR(osgUtil::Tessellator) I_DeclaringFile("osgUtil/Tessellator"); I_BaseType(osg::Referenced); diff --git a/src/osgWrappers/osgViewer/CompositeViewer.cpp b/src/osgWrappers/osgViewer/CompositeViewer.cpp index 1f2fff863..291ca4edf 100644 --- a/src/osgWrappers/osgViewer/CompositeViewer.cpp +++ b/src/osgWrappers/osgViewer/CompositeViewer.cpp @@ -51,7 +51,7 @@ BEGIN_OBJECT_REFLECTOR(osgViewer::CompositeViewer) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", diff --git a/src/osgWrappers/osgViewer/GraphicsWindow.cpp b/src/osgWrappers/osgViewer/GraphicsWindow.cpp index 2efc5a54c..3366939f2 100644 --- a/src/osgWrappers/osgViewer/GraphicsWindow.cpp +++ b/src/osgWrappers/osgViewer/GraphicsWindow.cpp @@ -201,12 +201,12 @@ BEGIN_OBJECT_REFLECTOR(osgViewer::GraphicsWindow) __void__requestRedraw, "requestRedraw() requests a single redraw. ", ""); - I_MethodWithDefaults1(void, requestContinuousUpdate, IN, bool, x, true, + I_MethodWithDefaults1(void, requestContinuousUpdate, IN, bool, needed, true, Properties::VIRTUAL, __void__requestContinuousUpdate__bool, "requestContinousUpdate(bool) is for en/disabling a throw or idle callback to be requested by a GUIEventHandler (typically a MatrixManipulator, though other GUIEventHandler's may also provide functionality). ", "GUI toolkits can respond to this immediately by registering an idle/timed callback, or can delay setting the callback and update at their own leisure. "); - I_Method2(void, requestWarpPointer, IN, float, x, IN, float, x, + I_Method2(void, requestWarpPointer, IN, float, x, IN, float, y, Properties::VIRTUAL, __void__requestWarpPointer__float__float, "requestWarpPointer(int,int) is requesting a repositioning of the mouse pointer to a specified x,y location on the window. ", diff --git a/src/osgWrappers/osgViewer/View.cpp b/src/osgWrappers/osgViewer/View.cpp index 9f23e609f..457129b4a 100644 --- a/src/osgWrappers/osgViewer/View.cpp +++ b/src/osgWrappers/osgViewer/View.cpp @@ -56,7 +56,7 @@ BEGIN_OBJECT_REFLECTOR(osgViewer::View) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", diff --git a/src/osgWrappers/osgViewer/Viewer.cpp b/src/osgWrappers/osgViewer/Viewer.cpp index 089f6e304..875655769 100644 --- a/src/osgWrappers/osgViewer/Viewer.cpp +++ b/src/osgWrappers/osgViewer/Viewer.cpp @@ -52,7 +52,7 @@ BEGIN_OBJECT_REFLECTOR(osgViewer::Viewer) __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", diff --git a/src/osgWrappers/osgViewer/ViewerBase.cpp b/src/osgWrappers/osgViewer/ViewerBase.cpp index fabe3120b..ff6a39f09 100644 --- a/src/osgWrappers/osgViewer/ViewerBase.cpp +++ b/src/osgWrappers/osgViewer/ViewerBase.cpp @@ -1,405 +1,405 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -#include - -TYPE_NAME_ALIAS(std::vector< osg::Camera * >, osgViewer::ViewerBase::Cameras) - -TYPE_NAME_ALIAS(std::vector< osg::GraphicsContext * >, osgViewer::ViewerBase::Contexts) - -TYPE_NAME_ALIAS(std::vector< osgViewer::GraphicsWindow * >, osgViewer::ViewerBase::Windows) - -TYPE_NAME_ALIAS(std::vector< OpenThreads::Thread * >, osgViewer::ViewerBase::Threads) - -TYPE_NAME_ALIAS(std::vector< osg::OperationThread * >, osgViewer::ViewerBase::OperationThreads) - -TYPE_NAME_ALIAS(std::vector< osgViewer::Scene * >, osgViewer::ViewerBase::Scenes) - -TYPE_NAME_ALIAS(std::vector< osgViewer::View * >, osgViewer::ViewerBase::Views) - -BEGIN_ENUM_REFLECTOR(osgViewer::ViewerBase::ThreadingModel) - I_DeclaringFile("osgViewer/ViewerBase"); - I_EnumLabel(osgViewer::ViewerBase::SingleThreaded); - I_EnumLabel(osgViewer::ViewerBase::CullDrawThreadPerContext); - I_EnumLabel(osgViewer::ViewerBase::ThreadPerContext); - I_EnumLabel(osgViewer::ViewerBase::DrawThreadPerContext); - I_EnumLabel(osgViewer::ViewerBase::CullThreadPerCameraDrawThreadPerContext); - I_EnumLabel(osgViewer::ViewerBase::ThreadPerCamera); - I_EnumLabel(osgViewer::ViewerBase::AutomaticSelection); -END_REFLECTOR - -BEGIN_ENUM_REFLECTOR(osgViewer::ViewerBase::BarrierPosition) - I_DeclaringFile("osgViewer/ViewerBase"); - I_EnumLabel(osgViewer::ViewerBase::BeforeSwapBuffers); - I_EnumLabel(osgViewer::ViewerBase::AfterSwapBuffers); -END_REFLECTOR - -BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgViewer::ViewerBase) - I_DeclaringFile("osgViewer/ViewerBase"); - I_VirtualBaseType(osg::Object); - I_Constructor0(____ViewerBase, - "", - ""); - I_Constructor1(IN, const osgViewer::ViewerBase &, vb, - Properties::NON_EXPLICIT, - ____ViewerBase__C5_ViewerBase_R1, - "", - ""); - I_Method1(void, setStats, IN, osg::Stats *, stats, - Properties::NON_VIRTUAL, - __void__setStats__osg_Stats_P1, - "Set the Stats object used for collect various frame related timing and scene graph stats. ", - ""); - I_Method0(osg::Stats *, getStats, - Properties::NON_VIRTUAL, - __osg_Stats_P1__getStats, - "Get the Viewers Stats object. ", - ""); - I_Method0(const osg::Stats *, getStats, - Properties::NON_VIRTUAL, - __C5_osg_Stats_P1__getStats, - "Get the Viewers Stats object. ", - ""); - I_Method1(bool, readConfiguration, IN, const std::string &, filename, - Properties::PURE_VIRTUAL, - __bool__readConfiguration__C5_std_string_R1, - "read the viewer configuration from a configuration file. ", - ""); - I_Method0(bool, isRealized, - Properties::PURE_VIRTUAL, - __bool__isRealized, - "Get whether at least of one of this viewers windows are realized. ", - ""); - I_Method0(void, realize, - Properties::PURE_VIRTUAL, - __void__realize, - "set up windows and associated threads. ", - ""); - I_Method1(void, setThreadingModel, IN, osgViewer::ViewerBase::ThreadingModel, threadingModel, - Properties::VIRTUAL, - __void__setThreadingModel__ThreadingModel, - "Set the threading model the rendering traversals will use. ", - ""); - I_Method0(osgViewer::ViewerBase::ThreadingModel, getThreadingModel, - Properties::NON_VIRTUAL, - __ThreadingModel__getThreadingModel, - "Get the threading model the rendering traversals will use. ", - ""); - I_Method0(osgViewer::ViewerBase::ThreadingModel, suggestBestThreadingModel, - Properties::VIRTUAL, - __ThreadingModel__suggestBestThreadingModel, - "Let the viewer suggest the best threading model for the viewers camera/window setup and the hardware available. ", - ""); - I_Method0(void, setUpThreading, - Properties::VIRTUAL, - __void__setUpThreading, - "Set up the threading and processor affinity as per the viewers threading model. ", - ""); - I_Method0(bool, areThreadsRunning, - Properties::NON_VIRTUAL, - __bool__areThreadsRunning, - "Return true if viewer threads are running. ", - ""); - I_Method0(void, stopThreading, - Properties::VIRTUAL, - __void__stopThreading, - "Stop any threads begin run by viewer. ", - ""); - I_Method0(void, startThreading, - Properties::VIRTUAL, - __void__startThreading, - "Start any threads required by the viewer. ", - ""); - I_Method1(void, setEndBarrierPosition, IN, osgViewer::ViewerBase::BarrierPosition, bp, - Properties::NON_VIRTUAL, - __void__setEndBarrierPosition__BarrierPosition, - "Set the position of the end barrier. ", - "AfterSwapBuffers may result in slightly higher framerates, but may lead to inconsistent swapping between different windows. BeforeSwapBuffers may lead to slightly lower framerate, but improve consistency in timing of swap buffers, especially important if you are likely to consistently break frame. "); - I_Method0(osgViewer::ViewerBase::BarrierPosition, getEndBarrierPosition, - Properties::NON_VIRTUAL, - __BarrierPosition__getEndBarrierPosition, - "Get the end barrier position. ", - ""); - I_Method1(void, setDone, IN, bool, done, - Properties::NON_VIRTUAL, - __void__setDone__bool, - "Set the done flag to signal the viewer's work is done and should exit the frame loop. ", - ""); - I_Method0(bool, done, - Properties::NON_VIRTUAL, - __bool__done, - "Return true if viewer's work is done and should exit the frame loop. ", - ""); - I_Method1(void, setEventVisitor, IN, osgGA::EventVisitor *, eventVisitor, - Properties::NON_VIRTUAL, - __void__setEventVisitor__osgGA_EventVisitor_P1, - "Set the EventVisitor. ", - ""); - I_Method0(osgGA::EventVisitor *, getEventVisitor, - Properties::NON_VIRTUAL, - __osgGA_EventVisitor_P1__getEventVisitor, - "Get the EventVisitor. ", - ""); - I_Method0(const osgGA::EventVisitor *, getEventVisitor, - Properties::NON_VIRTUAL, - __C5_osgGA_EventVisitor_P1__getEventVisitor, - "Get the const EventVisitor. ", - ""); - I_Method1(void, setKeyEventSetsDone, IN, int, key, - Properties::NON_VIRTUAL, - __void__setKeyEventSetsDone__int, - "Set the key event that the viewer checks on each frame to see if the viewer's done flag should be set to signal end of viewers main loop. ", - "Default value is Escape (osgGA::GUIEVentAdapter::KEY_Escape). Setting to 0 switches off the feature. "); - I_Method0(int, getKeyEventSetsDone, - Properties::NON_VIRTUAL, - __int__getKeyEventSetsDone, - "get the key event that the viewer checks on each frame to see if the viewer's done flag. ", - ""); - I_Method1(void, setQuitEventSetsDone, IN, bool, flag, - Properties::NON_VIRTUAL, - __void__setQuitEventSetsDone__bool, - "if the flag is true, the viewer set its done flag when a QUIT_APPLICATION is received, false disables this feature ", - ""); - I_Method0(bool, getQuitEventSetsDone, - Properties::NON_VIRTUAL, - __bool__getQuitEventSetsDone, - "", - "true if the viewer respond to the QUIT_APPLICATION-event "); - I_Method1(void, setReleaseContextAtEndOfFrameHint, IN, bool, hint, - Properties::NON_VIRTUAL, - __void__setReleaseContextAtEndOfFrameHint__bool, - "Hint to tell the renderingTraversals() method whether to call relaseContext() on the last context that was made current by the thread calling renderingTraverals(). ", - "Note, when running multi-threaded viewer no threads will be made current or release current. Setting this hint to false can enable the frame loop to be lazy about calling makeCurrent and releaseContext on each new frame, helping performance. However, if you frame loop is managing multiple graphics context all from the main frame thread then this hint must be left on, otherwise the wrong context could be left active, introducing errors in rendering. "); - I_Method0(bool, getReleaseContextAtEndOfFrameHint, - Properties::NON_VIRTUAL, - __bool__getReleaseContextAtEndOfFrameHint, - "Hint to tell the renderingTraversals() method whether to call relaseContext(). ", - ""); - I_Method1(void, setUpdateVisitor, IN, osgUtil::UpdateVisitor *, updateVisitor, - Properties::NON_VIRTUAL, - __void__setUpdateVisitor__osgUtil_UpdateVisitor_P1, - "Set the UpdateVisitor. ", - ""); - I_Method0(osgUtil::UpdateVisitor *, getUpdateVisitor, - Properties::NON_VIRTUAL, - __osgUtil_UpdateVisitor_P1__getUpdateVisitor, - "Get the UpdateVisitor. ", - ""); - I_Method0(const osgUtil::UpdateVisitor *, getUpdateVisitor, - Properties::NON_VIRTUAL, - __C5_osgUtil_UpdateVisitor_P1__getUpdateVisitor, - "Get the const UpdateVisitor. ", - ""); - I_Method1(void, setUpdateOperations, IN, osg::OperationQueue *, operations, - Properties::NON_VIRTUAL, - __void__setUpdateOperations__osg_OperationQueue_P1, - "Set the Update OperationQueue. ", - ""); - I_Method0(osg::OperationQueue *, getUpdateOperations, - Properties::NON_VIRTUAL, - __osg_OperationQueue_P1__getUpdateOperations, - "Get the Update OperationQueue. ", - ""); - I_Method0(const osg::OperationQueue *, getUpdateOperations, - Properties::NON_VIRTUAL, - __C5_osg_OperationQueue_P1__getUpdateOperations, - "Get the const Update OperationQueue. ", - ""); - I_Method1(void, addUpdateOperation, IN, osg::Operation *, operation, - Properties::NON_VIRTUAL, - __void__addUpdateOperation__osg_Operation_P1, - "Add an update operation. ", - ""); - I_Method1(void, removeUpdateOperation, IN, osg::Operation *, operation, - Properties::NON_VIRTUAL, - __void__removeUpdateOperation__osg_Operation_P1, - "Remove an update operation. ", - ""); - I_Method1(void, setRealizeOperation, IN, osg::Operation *, op, - Properties::NON_VIRTUAL, - __void__setRealizeOperation__osg_Operation_P1, - "Set the graphics operation to call on realization of the viewers graphics windows. ", - ""); - I_Method0(osg::Operation *, getRealizeOperation, - Properties::NON_VIRTUAL, - __osg_Operation_P1__getRealizeOperation, - "Get the graphics operation to call on realization of the viewers graphics windows. ", - ""); - I_Method0(void, checkWindowStatus, - Properties::NON_VIRTUAL, - __void__checkWindowStatus, - "Check to see if windows are still open, if not set viewer done to true. ", - ""); - I_Method0(int, run, - Properties::PURE_VIRTUAL, - __int__run, - "Execute a main frame loop. ", - "Equivalent to while (!viewer.done()) viewer.frame(); Also calls realize() if the viewer is not already realized, and installs trackball manipulator if one is not already assigned. "); - I_MethodWithDefaults1(void, frame, IN, double, simulationTime, USE_REFERENCE_TIME, - Properties::VIRTUAL, - __void__frame__double, - "Render a complete new frame. ", - "Calls advance(), eventTraversal(), updateTraversal(), renderingTraversals(). "); - I_MethodWithDefaults1(void, advance, IN, double, simulationTime, USE_REFERENCE_TIME, - Properties::PURE_VIRTUAL, - __void__advance__double, - "", - ""); - I_Method0(void, eventTraversal, - Properties::PURE_VIRTUAL, - __void__eventTraversal, - "", - ""); - I_Method0(void, updateTraversal, - Properties::PURE_VIRTUAL, - __void__updateTraversal, - "", - ""); - I_Method0(void, renderingTraversals, - Properties::VIRTUAL, - __void__renderingTraversals, - "", - ""); - I_MethodWithDefaults2(void, getCameras, IN, osgViewer::ViewerBase::Cameras &, cameras, , IN, bool, onlyActive, true, - Properties::PURE_VIRTUAL, - __void__getCameras__Cameras_R1__bool, - "", - ""); - I_MethodWithDefaults2(void, getContexts, IN, osgViewer::ViewerBase::Contexts &, contexts, , IN, bool, onlyValid, true, - Properties::PURE_VIRTUAL, - __void__getContexts__Contexts_R1__bool, - "", - ""); - I_MethodWithDefaults2(void, getWindows, IN, osgViewer::ViewerBase::Windows &, windows, , IN, bool, onlyValid, true, - Properties::PURE_VIRTUAL, - __void__getWindows__Windows_R1__bool, - "", - ""); - I_MethodWithDefaults2(void, getAllThreads, IN, osgViewer::ViewerBase::Threads &, threads, , IN, bool, onlyActive, true, - Properties::PURE_VIRTUAL, - __void__getAllThreads__Threads_R1__bool, - "", - ""); - I_MethodWithDefaults2(void, getOperationThreads, IN, osgViewer::ViewerBase::OperationThreads &, threads, , IN, bool, onlyActive, true, - Properties::PURE_VIRTUAL, - __void__getOperationThreads__OperationThreads_R1__bool, - "", - ""); - I_MethodWithDefaults2(void, getScenes, IN, osgViewer::ViewerBase::Scenes &, scenes, , IN, bool, onlyValid, true, - Properties::PURE_VIRTUAL, - __void__getScenes__Scenes_R1__bool, - "", - ""); - I_MethodWithDefaults2(void, getViews, IN, osgViewer::ViewerBase::Views &, views, , IN, bool, onlyValid, true, - Properties::PURE_VIRTUAL, - __void__getViews__Views_R1__bool, - "", - ""); - I_Method0(double, elapsedTime, - Properties::PURE_VIRTUAL, - __double__elapsedTime, - "", - ""); - I_Method0(osg::FrameStamp *, getViewerFrameStamp, - Properties::PURE_VIRTUAL, - __osg_FrameStamp_P1__getViewerFrameStamp, - "", - ""); - I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, - Properties::PURE_VIRTUAL, - __void__getUsage__osg_ApplicationUsage_R1, - "Get the keyboard and mouse usage of this viewer. ", - ""); - I_ProtectedMethod1(void, makeCurrent, IN, osg::GraphicsContext *, gc, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __void__makeCurrent__osg_GraphicsContext_P1, - "", - ""); - I_ProtectedMethod0(void, releaseContext, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __void__releaseContext, - "", - ""); - I_ProtectedMethod0(void, viewerInit, - Properties::PURE_VIRTUAL, - Properties::NON_CONST, - __void__viewerInit, - "", - ""); - I_SimpleProperty(bool, Done, - 0, - __void__setDone__bool); - I_SimpleProperty(osgViewer::ViewerBase::BarrierPosition, EndBarrierPosition, - __BarrierPosition__getEndBarrierPosition, - __void__setEndBarrierPosition__BarrierPosition); - I_SimpleProperty(osgGA::EventVisitor *, EventVisitor, - __osgGA_EventVisitor_P1__getEventVisitor, - __void__setEventVisitor__osgGA_EventVisitor_P1); - I_SimpleProperty(int, KeyEventSetsDone, - __int__getKeyEventSetsDone, - __void__setKeyEventSetsDone__int); - I_SimpleProperty(bool, QuitEventSetsDone, - __bool__getQuitEventSetsDone, - __void__setQuitEventSetsDone__bool); - I_SimpleProperty(osg::Operation *, RealizeOperation, - __osg_Operation_P1__getRealizeOperation, - __void__setRealizeOperation__osg_Operation_P1); - I_SimpleProperty(bool, ReleaseContextAtEndOfFrameHint, - __bool__getReleaseContextAtEndOfFrameHint, - __void__setReleaseContextAtEndOfFrameHint__bool); - I_SimpleProperty(osg::Stats *, Stats, - __osg_Stats_P1__getStats, - __void__setStats__osg_Stats_P1); - I_SimpleProperty(osgViewer::ViewerBase::ThreadingModel, ThreadingModel, - __ThreadingModel__getThreadingModel, - __void__setThreadingModel__ThreadingModel); - I_SimpleProperty(osg::OperationQueue *, UpdateOperations, - __osg_OperationQueue_P1__getUpdateOperations, - __void__setUpdateOperations__osg_OperationQueue_P1); - I_SimpleProperty(osgUtil::UpdateVisitor *, UpdateVisitor, - __osgUtil_UpdateVisitor_P1__getUpdateVisitor, - __void__setUpdateVisitor__osgUtil_UpdateVisitor_P1); - I_SimpleProperty(osg::FrameStamp *, ViewerFrameStamp, - __osg_FrameStamp_P1__getViewerFrameStamp, - 0); -END_REFLECTOR - -STD_VECTOR_REFLECTOR(std::vector< OpenThreads::Thread * >) - -STD_VECTOR_REFLECTOR(std::vector< osg::Camera * >) - -STD_VECTOR_REFLECTOR(std::vector< osg::OperationThread * >) - -STD_VECTOR_REFLECTOR(std::vector< osgViewer::GraphicsWindow * >) - -STD_VECTOR_REFLECTOR(std::vector< osgViewer::Scene * >) - -STD_VECTOR_REFLECTOR(std::vector< osgViewer::View * >) - +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +#include + +BEGIN_ENUM_REFLECTOR(osgViewer::ViewerBase::ThreadingModel) + I_DeclaringFile("osgViewer/ViewerBase"); + I_EnumLabel(osgViewer::ViewerBase::SingleThreaded); + I_EnumLabel(osgViewer::ViewerBase::CullDrawThreadPerContext); + I_EnumLabel(osgViewer::ViewerBase::ThreadPerContext); + I_EnumLabel(osgViewer::ViewerBase::DrawThreadPerContext); + I_EnumLabel(osgViewer::ViewerBase::CullThreadPerCameraDrawThreadPerContext); + I_EnumLabel(osgViewer::ViewerBase::ThreadPerCamera); + I_EnumLabel(osgViewer::ViewerBase::AutomaticSelection); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgViewer::ViewerBase::BarrierPosition) + I_DeclaringFile("osgViewer/ViewerBase"); + I_EnumLabel(osgViewer::ViewerBase::BeforeSwapBuffers); + I_EnumLabel(osgViewer::ViewerBase::AfterSwapBuffers); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< osg::Camera * >, osgViewer::ViewerBase::Cameras) + +TYPE_NAME_ALIAS(std::vector< osg::GraphicsContext * >, osgViewer::ViewerBase::Contexts) + +TYPE_NAME_ALIAS(std::vector< osgViewer::GraphicsWindow * >, osgViewer::ViewerBase::Windows) + +TYPE_NAME_ALIAS(std::vector< OpenThreads::Thread * >, osgViewer::ViewerBase::Threads) + +TYPE_NAME_ALIAS(std::vector< osg::OperationThread * >, osgViewer::ViewerBase::OperationThreads) + +TYPE_NAME_ALIAS(std::vector< osgViewer::Scene * >, osgViewer::ViewerBase::Scenes) + +TYPE_NAME_ALIAS(std::vector< osgViewer::View * >, osgViewer::ViewerBase::Views) + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgViewer::ViewerBase) + I_DeclaringFile("osgViewer/ViewerBase"); + I_VirtualBaseType(osg::Object); + I_Constructor0(____ViewerBase, + "", + ""); + I_Constructor1(IN, const osgViewer::ViewerBase &, vb, + Properties::NON_EXPLICIT, + ____ViewerBase__C5_ViewerBase_R1, + "", + ""); + I_Method1(void, setStats, IN, osg::Stats *, stats, + Properties::NON_VIRTUAL, + __void__setStats__osg_Stats_P1, + "Set the Stats object used for collect various frame related timing and scene graph stats. ", + ""); + I_Method0(osg::Stats *, getStats, + Properties::NON_VIRTUAL, + __osg_Stats_P1__getStats, + "Get the Viewers Stats object. ", + ""); + I_Method0(const osg::Stats *, getStats, + Properties::NON_VIRTUAL, + __C5_osg_Stats_P1__getStats, + "Get the Viewers Stats object. ", + ""); + I_Method1(bool, readConfiguration, IN, const std::string &, filename, + Properties::PURE_VIRTUAL, + __bool__readConfiguration__C5_std_string_R1, + "read the viewer configuration from a configuration file. ", + ""); + I_Method0(bool, isRealized, + Properties::PURE_VIRTUAL, + __bool__isRealized, + "Get whether at least of one of this viewers windows are realized. ", + ""); + I_Method0(void, realize, + Properties::PURE_VIRTUAL, + __void__realize, + "set up windows and associated threads. ", + ""); + I_Method1(void, setThreadingModel, IN, osgViewer::ViewerBase::ThreadingModel, threadingModel, + Properties::VIRTUAL, + __void__setThreadingModel__ThreadingModel, + "Set the threading model the rendering traversals will use. ", + ""); + I_Method0(osgViewer::ViewerBase::ThreadingModel, getThreadingModel, + Properties::NON_VIRTUAL, + __ThreadingModel__getThreadingModel, + "Get the threading model the rendering traversals will use. ", + ""); + I_Method0(osgViewer::ViewerBase::ThreadingModel, suggestBestThreadingModel, + Properties::VIRTUAL, + __ThreadingModel__suggestBestThreadingModel, + "Let the viewer suggest the best threading model for the viewers camera/window setup and the hardware available. ", + ""); + I_Method0(void, setUpThreading, + Properties::VIRTUAL, + __void__setUpThreading, + "Set up the threading and processor affinity as per the viewers threading model. ", + ""); + I_Method0(bool, areThreadsRunning, + Properties::NON_VIRTUAL, + __bool__areThreadsRunning, + "Return true if viewer threads are running. ", + ""); + I_Method0(void, stopThreading, + Properties::VIRTUAL, + __void__stopThreading, + "Stop any threads begin run by viewer. ", + ""); + I_Method0(void, startThreading, + Properties::VIRTUAL, + __void__startThreading, + "Start any threads required by the viewer. ", + ""); + I_Method1(void, setEndBarrierPosition, IN, osgViewer::ViewerBase::BarrierPosition, bp, + Properties::NON_VIRTUAL, + __void__setEndBarrierPosition__BarrierPosition, + "Set the position of the end barrier. ", + "AfterSwapBuffers may result in slightly higher framerates, but may lead to inconsistent swapping between different windows. BeforeSwapBuffers may lead to slightly lower framerate, but improve consistency in timing of swap buffers, especially important if you are likely to consistently break frame. "); + I_Method0(osgViewer::ViewerBase::BarrierPosition, getEndBarrierPosition, + Properties::NON_VIRTUAL, + __BarrierPosition__getEndBarrierPosition, + "Get the end barrier position. ", + ""); + I_Method1(void, setDone, IN, bool, done, + Properties::NON_VIRTUAL, + __void__setDone__bool, + "Set the done flag to signal the viewer's work is done and should exit the frame loop. ", + ""); + I_Method0(bool, done, + Properties::NON_VIRTUAL, + __bool__done, + "Return true if viewer's work is done and should exit the frame loop. ", + ""); + I_Method1(void, setEventVisitor, IN, osgGA::EventVisitor *, eventVisitor, + Properties::NON_VIRTUAL, + __void__setEventVisitor__osgGA_EventVisitor_P1, + "Set the EventVisitor. ", + ""); + I_Method0(osgGA::EventVisitor *, getEventVisitor, + Properties::NON_VIRTUAL, + __osgGA_EventVisitor_P1__getEventVisitor, + "Get the EventVisitor. ", + ""); + I_Method0(const osgGA::EventVisitor *, getEventVisitor, + Properties::NON_VIRTUAL, + __C5_osgGA_EventVisitor_P1__getEventVisitor, + "Get the const EventVisitor. ", + ""); + I_Method1(void, setKeyEventSetsDone, IN, int, key, + Properties::NON_VIRTUAL, + __void__setKeyEventSetsDone__int, + "Set the key event that the viewer checks on each frame to see if the viewer's done flag should be set to signal end of viewers main loop. ", + "Default value is Escape (osgGA::GUIEVentAdapter::KEY_Escape). Setting to 0 switches off the feature. "); + I_Method0(int, getKeyEventSetsDone, + Properties::NON_VIRTUAL, + __int__getKeyEventSetsDone, + "get the key event that the viewer checks on each frame to see if the viewer's done flag. ", + ""); + I_Method1(void, setQuitEventSetsDone, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setQuitEventSetsDone__bool, + "if the flag is true, the viewer set its done flag when a QUIT_APPLICATION is received, false disables this feature ", + ""); + I_Method0(bool, getQuitEventSetsDone, + Properties::NON_VIRTUAL, + __bool__getQuitEventSetsDone, + "true if the viewer respond to the QUIT_APPLICATION-event ", + ""); + I_Method1(void, setReleaseContextAtEndOfFrameHint, IN, bool, hint, + Properties::NON_VIRTUAL, + __void__setReleaseContextAtEndOfFrameHint__bool, + "Hint to tell the renderingTraversals() method whether to call relaseContext() on the last context that was made current by the thread calling renderingTraverals(). ", + "Note, when running multi-threaded viewer no threads will be made current or release current. Setting this hint to false can enable the frame loop to be lazy about calling makeCurrent and releaseContext on each new frame, helping performance. However, if you frame loop is managing multiple graphics context all from the main frame thread then this hint must be left on, otherwise the wrong context could be left active, introducing errors in rendering. "); + I_Method0(bool, getReleaseContextAtEndOfFrameHint, + Properties::NON_VIRTUAL, + __bool__getReleaseContextAtEndOfFrameHint, + "Hint to tell the renderingTraversals() method whether to call relaseContext(). ", + ""); + I_Method1(void, setUpdateVisitor, IN, osgUtil::UpdateVisitor *, updateVisitor, + Properties::NON_VIRTUAL, + __void__setUpdateVisitor__osgUtil_UpdateVisitor_P1, + "Set the UpdateVisitor. ", + ""); + I_Method0(osgUtil::UpdateVisitor *, getUpdateVisitor, + Properties::NON_VIRTUAL, + __osgUtil_UpdateVisitor_P1__getUpdateVisitor, + "Get the UpdateVisitor. ", + ""); + I_Method0(const osgUtil::UpdateVisitor *, getUpdateVisitor, + Properties::NON_VIRTUAL, + __C5_osgUtil_UpdateVisitor_P1__getUpdateVisitor, + "Get the const UpdateVisitor. ", + ""); + I_Method1(void, setUpdateOperations, IN, osg::OperationQueue *, operations, + Properties::NON_VIRTUAL, + __void__setUpdateOperations__osg_OperationQueue_P1, + "Set the Update OperationQueue. ", + ""); + I_Method0(osg::OperationQueue *, getUpdateOperations, + Properties::NON_VIRTUAL, + __osg_OperationQueue_P1__getUpdateOperations, + "Get the Update OperationQueue. ", + ""); + I_Method0(const osg::OperationQueue *, getUpdateOperations, + Properties::NON_VIRTUAL, + __C5_osg_OperationQueue_P1__getUpdateOperations, + "Get the const Update OperationQueue. ", + ""); + I_Method1(void, addUpdateOperation, IN, osg::Operation *, operation, + Properties::NON_VIRTUAL, + __void__addUpdateOperation__osg_Operation_P1, + "Add an update operation. ", + ""); + I_Method1(void, removeUpdateOperation, IN, osg::Operation *, operation, + Properties::NON_VIRTUAL, + __void__removeUpdateOperation__osg_Operation_P1, + "Remove an update operation. ", + ""); + I_Method1(void, setRealizeOperation, IN, osg::Operation *, op, + Properties::NON_VIRTUAL, + __void__setRealizeOperation__osg_Operation_P1, + "Set the graphics operation to call on realization of the viewers graphics windows. ", + ""); + I_Method0(osg::Operation *, getRealizeOperation, + Properties::NON_VIRTUAL, + __osg_Operation_P1__getRealizeOperation, + "Get the graphics operation to call on realization of the viewers graphics windows. ", + ""); + I_Method0(void, checkWindowStatus, + Properties::NON_VIRTUAL, + __void__checkWindowStatus, + "Check to see if windows are still open, if not set viewer done to true. ", + ""); + I_Method0(int, run, + Properties::PURE_VIRTUAL, + __int__run, + "Execute a main frame loop. ", + "Equivalent to while (!viewer.done()) viewer.frame(); Also calls realize() if the viewer is not already realized, and installs trackball manipulator if one is not already assigned. "); + I_MethodWithDefaults1(void, frame, IN, double, simulationTime, USE_REFERENCE_TIME, + Properties::VIRTUAL, + __void__frame__double, + "Render a complete new frame. ", + "Calls advance(), eventTraversal(), updateTraversal(), renderingTraversals(). "); + I_MethodWithDefaults1(void, advance, IN, double, simulationTime, USE_REFERENCE_TIME, + Properties::PURE_VIRTUAL, + __void__advance__double, + "", + ""); + I_Method0(void, eventTraversal, + Properties::PURE_VIRTUAL, + __void__eventTraversal, + "", + ""); + I_Method0(void, updateTraversal, + Properties::PURE_VIRTUAL, + __void__updateTraversal, + "", + ""); + I_Method0(void, renderingTraversals, + Properties::VIRTUAL, + __void__renderingTraversals, + "", + ""); + I_MethodWithDefaults2(void, getCameras, IN, osgViewer::ViewerBase::Cameras &, cameras, , IN, bool, onlyActive, true, + Properties::PURE_VIRTUAL, + __void__getCameras__Cameras_R1__bool, + "", + ""); + I_MethodWithDefaults2(void, getContexts, IN, osgViewer::ViewerBase::Contexts &, contexts, , IN, bool, onlyValid, true, + Properties::PURE_VIRTUAL, + __void__getContexts__Contexts_R1__bool, + "", + ""); + I_MethodWithDefaults2(void, getWindows, IN, osgViewer::ViewerBase::Windows &, windows, , IN, bool, onlyValid, true, + Properties::PURE_VIRTUAL, + __void__getWindows__Windows_R1__bool, + "", + ""); + I_MethodWithDefaults2(void, getAllThreads, IN, osgViewer::ViewerBase::Threads &, threads, , IN, bool, onlyActive, true, + Properties::PURE_VIRTUAL, + __void__getAllThreads__Threads_R1__bool, + "", + ""); + I_MethodWithDefaults2(void, getOperationThreads, IN, osgViewer::ViewerBase::OperationThreads &, threads, , IN, bool, onlyActive, true, + Properties::PURE_VIRTUAL, + __void__getOperationThreads__OperationThreads_R1__bool, + "", + ""); + I_MethodWithDefaults2(void, getScenes, IN, osgViewer::ViewerBase::Scenes &, scenes, , IN, bool, onlyValid, true, + Properties::PURE_VIRTUAL, + __void__getScenes__Scenes_R1__bool, + "", + ""); + I_MethodWithDefaults2(void, getViews, IN, osgViewer::ViewerBase::Views &, views, , IN, bool, onlyValid, true, + Properties::PURE_VIRTUAL, + __void__getViews__Views_R1__bool, + "", + ""); + I_Method0(double, elapsedTime, + Properties::PURE_VIRTUAL, + __double__elapsedTime, + "", + ""); + I_Method0(osg::FrameStamp *, getViewerFrameStamp, + Properties::PURE_VIRTUAL, + __osg_FrameStamp_P1__getViewerFrameStamp, + "", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::PURE_VIRTUAL, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this viewer. ", + ""); + I_ProtectedMethod1(void, makeCurrent, IN, osg::GraphicsContext *, gc, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__makeCurrent__osg_GraphicsContext_P1, + "", + ""); + I_ProtectedMethod0(void, releaseContext, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__releaseContext, + "", + ""); + I_ProtectedMethod0(void, viewerInit, + Properties::PURE_VIRTUAL, + Properties::NON_CONST, + __void__viewerInit, + "", + ""); + I_SimpleProperty(bool, Done, + 0, + __void__setDone__bool); + I_SimpleProperty(osgViewer::ViewerBase::BarrierPosition, EndBarrierPosition, + __BarrierPosition__getEndBarrierPosition, + __void__setEndBarrierPosition__BarrierPosition); + I_SimpleProperty(osgGA::EventVisitor *, EventVisitor, + __osgGA_EventVisitor_P1__getEventVisitor, + __void__setEventVisitor__osgGA_EventVisitor_P1); + I_SimpleProperty(int, KeyEventSetsDone, + __int__getKeyEventSetsDone, + __void__setKeyEventSetsDone__int); + I_SimpleProperty(bool, QuitEventSetsDone, + __bool__getQuitEventSetsDone, + __void__setQuitEventSetsDone__bool); + I_SimpleProperty(osg::Operation *, RealizeOperation, + __osg_Operation_P1__getRealizeOperation, + __void__setRealizeOperation__osg_Operation_P1); + I_SimpleProperty(bool, ReleaseContextAtEndOfFrameHint, + __bool__getReleaseContextAtEndOfFrameHint, + __void__setReleaseContextAtEndOfFrameHint__bool); + I_SimpleProperty(osg::Stats *, Stats, + __osg_Stats_P1__getStats, + __void__setStats__osg_Stats_P1); + I_SimpleProperty(osgViewer::ViewerBase::ThreadingModel, ThreadingModel, + __ThreadingModel__getThreadingModel, + __void__setThreadingModel__ThreadingModel); + I_SimpleProperty(osg::OperationQueue *, UpdateOperations, + __osg_OperationQueue_P1__getUpdateOperations, + __void__setUpdateOperations__osg_OperationQueue_P1); + I_SimpleProperty(osgUtil::UpdateVisitor *, UpdateVisitor, + __osgUtil_UpdateVisitor_P1__getUpdateVisitor, + __void__setUpdateVisitor__osgUtil_UpdateVisitor_P1); + I_SimpleProperty(osg::FrameStamp *, ViewerFrameStamp, + __osg_FrameStamp_P1__getViewerFrameStamp, + 0); +END_REFLECTOR + +STD_VECTOR_REFLECTOR(std::vector< OpenThreads::Thread * >) + +STD_VECTOR_REFLECTOR(std::vector< osg::Camera * >) + +STD_VECTOR_REFLECTOR(std::vector< osg::OperationThread * >) + +STD_VECTOR_REFLECTOR(std::vector< osgViewer::GraphicsWindow * >) + +STD_VECTOR_REFLECTOR(std::vector< osgViewer::Scene * >) + +STD_VECTOR_REFLECTOR(std::vector< osgViewer::View * >) + diff --git a/src/osgWrappers/osgViewer/ViewerEventHandlers.cpp b/src/osgWrappers/osgViewer/ViewerEventHandlers.cpp index 7ce478d8e..cc0b6c33b 100644 --- a/src/osgWrappers/osgViewer/ViewerEventHandlers.cpp +++ b/src/osgWrappers/osgViewer/ViewerEventHandlers.cpp @@ -1,585 +1,585 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_OBJECT_REFLECTOR(osgViewer::HelpHandler) - I_DeclaringFile("osgViewer/ViewerEventHandlers"); - I_BaseType(osgGA::GUIEventHandler); - I_ConstructorWithDefaults1(IN, osg::ApplicationUsage *, au, 0, - Properties::NON_EXPLICIT, - ____HelpHandler__osg_ApplicationUsage_P1, - "", - ""); - I_Method1(void, setApplicationUsage, IN, osg::ApplicationUsage *, au, - Properties::NON_VIRTUAL, - __void__setApplicationUsage__osg_ApplicationUsage_P1, - "", - ""); - I_Method0(osg::ApplicationUsage *, getApplicationUsage, - Properties::NON_VIRTUAL, - __osg_ApplicationUsage_P1__getApplicationUsage, - "", - ""); - I_Method0(const osg::ApplicationUsage *, getApplicationUsage, - Properties::NON_VIRTUAL, - __C5_osg_ApplicationUsage_P1__getApplicationUsage, - "", - ""); - I_Method1(void, setKeyEventTogglesOnScreenHelp, IN, int, key, - Properties::NON_VIRTUAL, - __void__setKeyEventTogglesOnScreenHelp__int, - "", - ""); - I_Method0(int, getKeyEventTogglesOnScreenHelp, - Properties::NON_VIRTUAL, - __int__getKeyEventTogglesOnScreenHelp, - "", - ""); - I_Method0(void, reset, - Properties::NON_VIRTUAL, - __void__reset, - "", - ""); - I_Method0(osg::Camera *, getCamera, - Properties::NON_VIRTUAL, - __osg_Camera_P1__getCamera, - "", - ""); - I_Method0(const osg::Camera *, getCamera, - Properties::NON_VIRTUAL, - __C5_osg_Camera_P1__getCamera, - "", - ""); - I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa, - Properties::VIRTUAL, - __bool__handle__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, - "Deprecated, Handle events, return true if handled, false otherwise. ", - ""); - I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, - Properties::VIRTUAL, - __void__getUsage__osg_ApplicationUsage_R1, - "Get the keyboard and mouse usage of this manipulator. ", - ""); - I_ProtectedMethod1(void, setUpHUDCamera, IN, osgViewer::ViewerBase *, viewer, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __void__setUpHUDCamera__osgViewer_ViewerBase_P1, - "", - ""); - I_ProtectedMethod1(void, setUpScene, IN, osgViewer::ViewerBase *, viewer, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __void__setUpScene__osgViewer_ViewerBase_P1, - "", - ""); - I_SimpleProperty(osg::ApplicationUsage *, ApplicationUsage, - __osg_ApplicationUsage_P1__getApplicationUsage, - __void__setApplicationUsage__osg_ApplicationUsage_P1); - I_SimpleProperty(osg::Camera *, Camera, - __osg_Camera_P1__getCamera, - 0); - I_SimpleProperty(int, KeyEventTogglesOnScreenHelp, - __int__getKeyEventTogglesOnScreenHelp, - __void__setKeyEventTogglesOnScreenHelp__int); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(osgViewer::LODScaleHandler) - I_DeclaringFile("osgViewer/ViewerEventHandlers"); - I_BaseType(osgGA::GUIEventHandler); - I_Constructor0(____LODScaleHandler, - "", - ""); - I_Method1(void, setKeyEventIncreaseLODScale, IN, int, key, - Properties::NON_VIRTUAL, - __void__setKeyEventIncreaseLODScale__int, - "", - ""); - I_Method0(int, getKeyEventIncreaseLODScale, - Properties::NON_VIRTUAL, - __int__getKeyEventIncreaseLODScale, - "", - ""); - I_Method1(void, setKeyEventDecreaseLODScale, IN, int, key, - Properties::NON_VIRTUAL, - __void__setKeyEventDecreaseLODScale__int, - "", - ""); - I_Method0(int, getKeyEventDecreaseLODScale, - Properties::NON_VIRTUAL, - __int__getKeyEventDecreaseLODScale, - "", - ""); - I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa, - Properties::VIRTUAL, - __bool__handle__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, - "Deprecated, Handle events, return true if handled, false otherwise. ", - ""); - I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, - Properties::VIRTUAL, - __void__getUsage__osg_ApplicationUsage_R1, - "Get the keyboard and mouse usage of this manipulator. ", - ""); - I_SimpleProperty(int, KeyEventDecreaseLODScale, - __int__getKeyEventDecreaseLODScale, - __void__setKeyEventDecreaseLODScale__int); - I_SimpleProperty(int, KeyEventIncreaseLODScale, - __int__getKeyEventIncreaseLODScale, - __void__setKeyEventIncreaseLODScale__int); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(osgViewer::RecordCameraPathHandler) - I_DeclaringFile("osgViewer/ViewerEventHandlers"); - I_BaseType(osgGA::GUIEventHandler); - I_ConstructorWithDefaults1(IN, const std::string &, filename, "saved_animation.path", - Properties::NON_EXPLICIT, - ____RecordCameraPathHandler__C5_std_string_R1, - "", - ""); - I_Method1(void, setKeyEventToggleRecord, IN, int, key, - Properties::NON_VIRTUAL, - __void__setKeyEventToggleRecord__int, - "", - ""); - I_Method0(int, getKeyEventToggleRecord, - Properties::NON_VIRTUAL, - __int__getKeyEventToggleRecord, - "", - ""); - I_Method1(void, setKeyEventTogglePlayback, IN, int, key, - Properties::NON_VIRTUAL, - __void__setKeyEventTogglePlayback__int, - "", - ""); - I_Method0(int, getKeyEventTogglePlayback, - Properties::NON_VIRTUAL, - __int__getKeyEventTogglePlayback, - "", - ""); - I_MethodWithDefaults1(void, setAutoIncrementFilename, IN, bool, autoinc, true, - Properties::NON_VIRTUAL, - __void__setAutoIncrementFilename__bool, - "", - ""); - I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, - Properties::VIRTUAL, - __void__getUsage__osg_ApplicationUsage_R1, - "Get the keyboard and mouse usage of this manipulator. ", - ""); - I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa, - Properties::VIRTUAL, - __bool__handle__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, - "Deprecated, Handle events, return true if handled, false otherwise. ", - ""); - I_SimpleProperty(bool, AutoIncrementFilename, - 0, - __void__setAutoIncrementFilename__bool); - I_SimpleProperty(int, KeyEventTogglePlayback, - __int__getKeyEventTogglePlayback, - __void__setKeyEventTogglePlayback__int); - I_SimpleProperty(int, KeyEventToggleRecord, - __int__getKeyEventToggleRecord, - __void__setKeyEventToggleRecord__int); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(osgViewer::ScreenCaptureHandler) - I_DeclaringFile("osgViewer/ViewerEventHandlers"); - I_BaseType(osgGA::GUIEventHandler); - I_ConstructorWithDefaults1(IN, osgViewer::ScreenCaptureHandler::CaptureOperation *, defaultOperation, 0, - Properties::NON_EXPLICIT, - ____ScreenCaptureHandler__CaptureOperation_P1, - "", - ""); - I_Method1(void, setKeyEventTakeScreenShot, IN, int, key, - Properties::NON_VIRTUAL, - __void__setKeyEventTakeScreenShot__int, - "", - ""); - I_Method0(int, getKeyEventTakeScreenShot, - Properties::NON_VIRTUAL, - __int__getKeyEventTakeScreenShot, - "", - ""); - I_Method1(void, setCaptureOperation, IN, osgViewer::ScreenCaptureHandler::CaptureOperation *, operation, - Properties::NON_VIRTUAL, - __void__setCaptureOperation__CaptureOperation_P1, - "", - ""); - I_Method0(osgViewer::ScreenCaptureHandler::CaptureOperation *, getCaptureOperation, - Properties::NON_VIRTUAL, - __CaptureOperation_P1__getCaptureOperation, - "", - ""); - I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa, - Properties::VIRTUAL, - __bool__handle__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, - "Deprecated, Handle events, return true if handled, false otherwise. ", - ""); - I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, - Properties::VIRTUAL, - __void__getUsage__osg_ApplicationUsage_R1, - "Get the keyboard and mouse usage of this manipulator. ", - ""); - I_ProtectedMethod1(void, addCallbackToViewer, IN, osgViewer::ViewerBase &, viewer, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __void__addCallbackToViewer__osgViewer_ViewerBase_R1, - "", - ""); - I_SimpleProperty(osgViewer::ScreenCaptureHandler::CaptureOperation *, CaptureOperation, - __CaptureOperation_P1__getCaptureOperation, - __void__setCaptureOperation__CaptureOperation_P1); - I_SimpleProperty(int, KeyEventTakeScreenShot, - __int__getKeyEventTakeScreenShot, - __void__setKeyEventTakeScreenShot__int); -END_REFLECTOR - -BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgViewer::ScreenCaptureHandler::CaptureOperation) - I_DeclaringFile("osgViewer/ViewerEventHandlers"); - I_BaseType(osg::Referenced); - I_Constructor0(____CaptureOperation, - "", - ""); -END_REFLECTOR - -BEGIN_ENUM_REFLECTOR(osgViewer::ScreenCaptureHandler::WriteToFile::SavePolicy) - I_DeclaringFile("osgViewer/ViewerEventHandlers"); - I_EnumLabel(osgViewer::ScreenCaptureHandler::WriteToFile::OVERWRITE); - I_EnumLabel(osgViewer::ScreenCaptureHandler::WriteToFile::SEQUENTIAL_NUMBER); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(osgViewer::ScreenCaptureHandler::WriteToFile) - I_DeclaringFile("osgViewer/ViewerEventHandlers"); - I_BaseType(osgViewer::ScreenCaptureHandler::CaptureOperation); - I_ConstructorWithDefaults3(IN, const std::string &, filename, , IN, const std::string &, extension, , IN, osgViewer::ScreenCaptureHandler::WriteToFile::SavePolicy, savePolicy, osgViewer::ScreenCaptureHandler::WriteToFile::OVERWRITE, - ____WriteToFile__C5_std_string_R1__C5_std_string_R1__SavePolicy, - "", - ""); - I_Method1(void, setSavePolicy, IN, osgViewer::ScreenCaptureHandler::WriteToFile::SavePolicy, savePolicy, - Properties::NON_VIRTUAL, - __void__setSavePolicy__SavePolicy, - "", - ""); - I_Method0(osgViewer::ScreenCaptureHandler::WriteToFile::SavePolicy, getSavePolicy, - Properties::NON_VIRTUAL, - __SavePolicy__getSavePolicy, - "", - ""); - I_SimpleProperty(osgViewer::ScreenCaptureHandler::WriteToFile::SavePolicy, SavePolicy, - __SavePolicy__getSavePolicy, - __void__setSavePolicy__SavePolicy); -END_REFLECTOR - -BEGIN_ENUM_REFLECTOR(osgViewer::StatsHandler::StatsType) - I_DeclaringFile("osgViewer/ViewerEventHandlers"); - I_EnumLabel(osgViewer::StatsHandler::NO_STATS); - I_EnumLabel(osgViewer::StatsHandler::FRAME_RATE); - I_EnumLabel(osgViewer::StatsHandler::VIEWER_STATS); - I_EnumLabel(osgViewer::StatsHandler::LAST); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(osgViewer::StatsHandler) - I_DeclaringFile("osgViewer/ViewerEventHandlers"); - I_BaseType(osgGA::GUIEventHandler); - I_Constructor0(____StatsHandler, - "", - ""); - I_Method1(void, setKeyEventTogglesOnScreenStats, IN, int, key, - Properties::NON_VIRTUAL, - __void__setKeyEventTogglesOnScreenStats__int, - "", - ""); - I_Method0(int, getKeyEventTogglesOnScreenStats, - Properties::NON_VIRTUAL, - __int__getKeyEventTogglesOnScreenStats, - "", - ""); - I_Method1(void, setKeyEventPrintsOutStats, IN, int, key, - Properties::NON_VIRTUAL, - __void__setKeyEventPrintsOutStats__int, - "", - ""); - I_Method0(int, getKeyEventPrintsOutStats, - Properties::NON_VIRTUAL, - __int__getKeyEventPrintsOutStats, - "", - ""); - I_Method0(double, getBlockMultiplier, - Properties::NON_VIRTUAL, - __double__getBlockMultiplier, - "", - ""); - I_Method0(void, reset, - Properties::NON_VIRTUAL, - __void__reset, - "", - ""); - I_Method0(osg::Camera *, getCamera, - Properties::NON_VIRTUAL, - __osg_Camera_P1__getCamera, - "", - ""); - I_Method0(const osg::Camera *, getCamera, - Properties::NON_VIRTUAL, - __C5_osg_Camera_P1__getCamera, - "", - ""); - I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa, - Properties::VIRTUAL, - __bool__handle__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, - "Deprecated, Handle events, return true if handled, false otherwise. ", - ""); - I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, - Properties::VIRTUAL, - __void__getUsage__osg_ApplicationUsage_R1, - "Get the keyboard and mouse usage of this manipulator. ", - ""); - I_ProtectedMethod1(void, setUpHUDCamera, IN, osgViewer::ViewerBase *, viewer, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __void__setUpHUDCamera__osgViewer_ViewerBase_P1, - "", - ""); - I_ProtectedMethod4(osg::Geometry *, createGeometry, IN, const osg::Vec3 &, pos, IN, float, height, IN, const osg::Vec4 &, colour, IN, unsigned int, numBlocks, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __osg_Geometry_P1__createGeometry__C5_osg_Vec3_R1__float__C5_osg_Vec4_R1__unsigned_int, - "", - ""); - I_ProtectedMethod4(osg::Geometry *, createFrameMarkers, IN, const osg::Vec3 &, pos, IN, float, height, IN, const osg::Vec4 &, colour, IN, unsigned int, numBlocks, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __osg_Geometry_P1__createFrameMarkers__C5_osg_Vec3_R1__float__C5_osg_Vec4_R1__unsigned_int, - "", - ""); - I_ProtectedMethod4(osg::Geometry *, createTick, IN, const osg::Vec3 &, pos, IN, float, height, IN, const osg::Vec4 &, colour, IN, unsigned int, numTicks, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __osg_Geometry_P1__createTick__C5_osg_Vec3_R1__float__C5_osg_Vec4_R1__unsigned_int, - "", - ""); - I_ProtectedMethod7(osg::Node *, createCameraStats, IN, const std::string &, font, IN, osg::Vec3 &, pos, IN, float, startBlocks, IN, bool, aquireGPUStats, IN, float, characterSize, IN, osg::Stats *, viewerStats, IN, osg::Camera *, camera, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __osg_Node_P1__createCameraStats__C5_std_string_R1__osg_Vec3_R1__float__bool__float__osg_Stats_P1__osg_Camera_P1, - "", - ""); - I_ProtectedMethod1(void, setUpScene, IN, osgViewer::ViewerBase *, viewer, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __void__setUpScene__osgViewer_ViewerBase_P1, - "", - ""); - I_ProtectedMethod0(void, updateThreadingModelText, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __void__updateThreadingModelText, - "", - ""); - I_SimpleProperty(double, BlockMultiplier, - __double__getBlockMultiplier, - 0); - I_SimpleProperty(osg::Camera *, Camera, - __osg_Camera_P1__getCamera, - 0); - I_SimpleProperty(int, KeyEventPrintsOutStats, - __int__getKeyEventPrintsOutStats, - __void__setKeyEventPrintsOutStats__int); - I_SimpleProperty(int, KeyEventTogglesOnScreenStats, - __int__getKeyEventTogglesOnScreenStats, - __void__setKeyEventTogglesOnScreenStats__int); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(osgViewer::ThreadingHandler) - I_DeclaringFile("osgViewer/ViewerEventHandlers"); - I_BaseType(osgGA::GUIEventHandler); - I_Constructor0(____ThreadingHandler, - "", - ""); - I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, - Properties::VIRTUAL, - __void__getUsage__osg_ApplicationUsage_R1, - "Get the keyboard and mouse usage of this manipulator. ", - ""); - I_Method1(void, setKeyEventChangeThreadingModel, IN, int, key, - Properties::NON_VIRTUAL, - __void__setKeyEventChangeThreadingModel__int, - "", - ""); - I_Method0(int, getKeyEventChangeThreadingModel, - Properties::NON_VIRTUAL, - __int__getKeyEventChangeThreadingModel, - "", - ""); - I_Method1(void, setChangeThreadingModel, IN, bool, flag, - Properties::NON_VIRTUAL, - __void__setChangeThreadingModel__bool, - "", - ""); - I_Method0(bool, getChangeThreadingModel, - Properties::NON_VIRTUAL, - __bool__getChangeThreadingModel, - "", - ""); - I_Method1(void, setKeyEventChangeEndBarrierPosition, IN, int, key, - Properties::NON_VIRTUAL, - __void__setKeyEventChangeEndBarrierPosition__int, - "", - ""); - I_Method0(int, getKeyEventChangeEndBarrierPosition, - Properties::NON_VIRTUAL, - __int__getKeyEventChangeEndBarrierPosition, - "", - ""); - I_Method1(void, setChangeEndBarrierPosition, IN, bool, flag, - Properties::NON_VIRTUAL, - __void__setChangeEndBarrierPosition__bool, - "", - ""); - I_Method0(bool, getChangeEndBarrierPosition, - Properties::NON_VIRTUAL, - __bool__getChangeEndBarrierPosition, - "", - ""); - I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa, - Properties::VIRTUAL, - __bool__handle__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, - "Deprecated, Handle events, return true if handled, false otherwise. ", - ""); - I_SimpleProperty(bool, ChangeEndBarrierPosition, - __bool__getChangeEndBarrierPosition, - __void__setChangeEndBarrierPosition__bool); - I_SimpleProperty(bool, ChangeThreadingModel, - __bool__getChangeThreadingModel, - __void__setChangeThreadingModel__bool); - I_SimpleProperty(int, KeyEventChangeEndBarrierPosition, - __int__getKeyEventChangeEndBarrierPosition, - __void__setKeyEventChangeEndBarrierPosition__int); - I_SimpleProperty(int, KeyEventChangeThreadingModel, - __int__getKeyEventChangeThreadingModel, - __void__setKeyEventChangeThreadingModel__int); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(osgViewer::WindowSizeHandler) - I_DeclaringFile("osgViewer/ViewerEventHandlers"); - I_BaseType(osgGA::GUIEventHandler); - I_Constructor0(____WindowSizeHandler, - "", - ""); - I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, - Properties::VIRTUAL, - __void__getUsage__osg_ApplicationUsage_R1, - "Get the keyboard and mouse usage of this manipulator. ", - ""); - I_Method1(void, setKeyEventToggleFullscreen, IN, int, key, - Properties::NON_VIRTUAL, - __void__setKeyEventToggleFullscreen__int, - "", - ""); - I_Method0(int, getKeyEventToggleFullscreen, - Properties::NON_VIRTUAL, - __int__getKeyEventToggleFullscreen, - "", - ""); - I_Method1(void, setToggleFullscreen, IN, bool, flag, - Properties::NON_VIRTUAL, - __void__setToggleFullscreen__bool, - "", - ""); - I_Method0(bool, getToggleFullscreen, - Properties::NON_VIRTUAL, - __bool__getToggleFullscreen, - "", - ""); - I_Method1(void, setKeyEventWindowedResolutionUp, IN, int, key, - Properties::NON_VIRTUAL, - __void__setKeyEventWindowedResolutionUp__int, - "", - ""); - I_Method0(int, getKeyEventWindowedResolutionUp, - Properties::NON_VIRTUAL, - __int__getKeyEventWindowedResolutionUp, - "", - ""); - I_Method1(void, setKeyEventWindowedResolutionDown, IN, int, key, - Properties::NON_VIRTUAL, - __void__setKeyEventWindowedResolutionDown__int, - "", - ""); - I_Method0(int, getKeyEventWindowedResolutionDown, - Properties::NON_VIRTUAL, - __int__getKeyEventWindowedResolutionDown, - "", - ""); - I_Method1(void, setChangeWindowedResolution, IN, bool, flag, - Properties::NON_VIRTUAL, - __void__setChangeWindowedResolution__bool, - "", - ""); - I_Method0(bool, getChangeWindowedResolution, - Properties::NON_VIRTUAL, - __bool__getChangeWindowedResolution, - "", - ""); - I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa, - Properties::VIRTUAL, - __bool__handle__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, - "Deprecated, Handle events, return true if handled, false otherwise. ", - ""); - I_ProtectedMethod1(void, toggleFullscreen, IN, osgViewer::GraphicsWindow *, window, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __void__toggleFullscreen__osgViewer_GraphicsWindow_P1, - "", - ""); - I_ProtectedMethod2(void, changeWindowedResolution, IN, osgViewer::GraphicsWindow *, window, IN, bool, increase, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __void__changeWindowedResolution__osgViewer_GraphicsWindow_P1__bool, - "", - ""); - I_ProtectedMethod4(unsigned int, getNearestResolution, IN, int, screenWidth, IN, int, screenHeight, IN, int, width, IN, int, height, - Properties::NON_VIRTUAL, - Properties::CONST, - __unsigned_int__getNearestResolution__int__int__int__int, - "", - ""); - I_SimpleProperty(bool, ChangeWindowedResolution, - __bool__getChangeWindowedResolution, - __void__setChangeWindowedResolution__bool); - I_SimpleProperty(int, KeyEventToggleFullscreen, - __int__getKeyEventToggleFullscreen, - __void__setKeyEventToggleFullscreen__int); - I_SimpleProperty(int, KeyEventWindowedResolutionDown, - __int__getKeyEventWindowedResolutionDown, - __void__setKeyEventWindowedResolutionDown__int); - I_SimpleProperty(int, KeyEventWindowedResolutionUp, - __int__getKeyEventWindowedResolutionUp, - __void__setKeyEventWindowedResolutionUp__int); - I_SimpleProperty(bool, ToggleFullscreen, - __bool__getToggleFullscreen, - __void__setToggleFullscreen__bool); -END_REFLECTOR - +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgViewer::HelpHandler) + I_DeclaringFile("osgViewer/ViewerEventHandlers"); + I_BaseType(osgGA::GUIEventHandler); + I_ConstructorWithDefaults1(IN, osg::ApplicationUsage *, au, 0, + Properties::NON_EXPLICIT, + ____HelpHandler__osg_ApplicationUsage_P1, + "", + ""); + I_Method1(void, setApplicationUsage, IN, osg::ApplicationUsage *, au, + Properties::NON_VIRTUAL, + __void__setApplicationUsage__osg_ApplicationUsage_P1, + "", + ""); + I_Method0(osg::ApplicationUsage *, getApplicationUsage, + Properties::NON_VIRTUAL, + __osg_ApplicationUsage_P1__getApplicationUsage, + "", + ""); + I_Method0(const osg::ApplicationUsage *, getApplicationUsage, + Properties::NON_VIRTUAL, + __C5_osg_ApplicationUsage_P1__getApplicationUsage, + "", + ""); + I_Method1(void, setKeyEventTogglesOnScreenHelp, IN, int, key, + Properties::NON_VIRTUAL, + __void__setKeyEventTogglesOnScreenHelp__int, + "", + ""); + I_Method0(int, getKeyEventTogglesOnScreenHelp, + Properties::NON_VIRTUAL, + __int__getKeyEventTogglesOnScreenHelp, + "", + ""); + I_Method0(void, reset, + Properties::NON_VIRTUAL, + __void__reset, + "", + ""); + I_Method0(osg::Camera *, getCamera, + Properties::NON_VIRTUAL, + __osg_Camera_P1__getCamera, + "", + ""); + I_Method0(const osg::Camera *, getCamera, + Properties::NON_VIRTUAL, + __C5_osg_Camera_P1__getCamera, + "", + ""); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x, + Properties::VIRTUAL, + __bool__handle__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "Deprecated, Handle events, return true if handled, false otherwise. ", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::VIRTUAL, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this manipulator. ", + ""); + I_ProtectedMethod1(void, setUpHUDCamera, IN, osgViewer::ViewerBase *, viewer, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__setUpHUDCamera__osgViewer_ViewerBase_P1, + "", + ""); + I_ProtectedMethod1(void, setUpScene, IN, osgViewer::ViewerBase *, viewer, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__setUpScene__osgViewer_ViewerBase_P1, + "", + ""); + I_SimpleProperty(osg::ApplicationUsage *, ApplicationUsage, + __osg_ApplicationUsage_P1__getApplicationUsage, + __void__setApplicationUsage__osg_ApplicationUsage_P1); + I_SimpleProperty(osg::Camera *, Camera, + __osg_Camera_P1__getCamera, + 0); + I_SimpleProperty(int, KeyEventTogglesOnScreenHelp, + __int__getKeyEventTogglesOnScreenHelp, + __void__setKeyEventTogglesOnScreenHelp__int); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgViewer::LODScaleHandler) + I_DeclaringFile("osgViewer/ViewerEventHandlers"); + I_BaseType(osgGA::GUIEventHandler); + I_Constructor0(____LODScaleHandler, + "", + ""); + I_Method1(void, setKeyEventIncreaseLODScale, IN, int, key, + Properties::NON_VIRTUAL, + __void__setKeyEventIncreaseLODScale__int, + "", + ""); + I_Method0(int, getKeyEventIncreaseLODScale, + Properties::NON_VIRTUAL, + __int__getKeyEventIncreaseLODScale, + "", + ""); + I_Method1(void, setKeyEventDecreaseLODScale, IN, int, key, + Properties::NON_VIRTUAL, + __void__setKeyEventDecreaseLODScale__int, + "", + ""); + I_Method0(int, getKeyEventDecreaseLODScale, + Properties::NON_VIRTUAL, + __int__getKeyEventDecreaseLODScale, + "", + ""); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x, + Properties::VIRTUAL, + __bool__handle__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "Deprecated, Handle events, return true if handled, false otherwise. ", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::VIRTUAL, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this manipulator. ", + ""); + I_SimpleProperty(int, KeyEventDecreaseLODScale, + __int__getKeyEventDecreaseLODScale, + __void__setKeyEventDecreaseLODScale__int); + I_SimpleProperty(int, KeyEventIncreaseLODScale, + __int__getKeyEventIncreaseLODScale, + __void__setKeyEventIncreaseLODScale__int); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgViewer::RecordCameraPathHandler) + I_DeclaringFile("osgViewer/ViewerEventHandlers"); + I_BaseType(osgGA::GUIEventHandler); + I_ConstructorWithDefaults1(IN, const std::string &, filename, "saved_animation.path", + Properties::NON_EXPLICIT, + ____RecordCameraPathHandler__C5_std_string_R1, + "", + ""); + I_Method1(void, setKeyEventToggleRecord, IN, int, key, + Properties::NON_VIRTUAL, + __void__setKeyEventToggleRecord__int, + "", + ""); + I_Method0(int, getKeyEventToggleRecord, + Properties::NON_VIRTUAL, + __int__getKeyEventToggleRecord, + "", + ""); + I_Method1(void, setKeyEventTogglePlayback, IN, int, key, + Properties::NON_VIRTUAL, + __void__setKeyEventTogglePlayback__int, + "", + ""); + I_Method0(int, getKeyEventTogglePlayback, + Properties::NON_VIRTUAL, + __int__getKeyEventTogglePlayback, + "", + ""); + I_MethodWithDefaults1(void, setAutoIncrementFilename, IN, bool, autoinc, true, + Properties::NON_VIRTUAL, + __void__setAutoIncrementFilename__bool, + "", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, x, + Properties::VIRTUAL, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this manipulator. ", + ""); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x, + Properties::VIRTUAL, + __bool__handle__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "Deprecated, Handle events, return true if handled, false otherwise. ", + ""); + I_SimpleProperty(bool, AutoIncrementFilename, + 0, + __void__setAutoIncrementFilename__bool); + I_SimpleProperty(int, KeyEventTogglePlayback, + __int__getKeyEventTogglePlayback, + __void__setKeyEventTogglePlayback__int); + I_SimpleProperty(int, KeyEventToggleRecord, + __int__getKeyEventToggleRecord, + __void__setKeyEventToggleRecord__int); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgViewer::ScreenCaptureHandler) + I_DeclaringFile("osgViewer/ViewerEventHandlers"); + I_BaseType(osgGA::GUIEventHandler); + I_ConstructorWithDefaults1(IN, osgViewer::ScreenCaptureHandler::CaptureOperation *, defaultOperation, 0, + Properties::NON_EXPLICIT, + ____ScreenCaptureHandler__CaptureOperation_P1, + "", + ""); + I_Method1(void, setKeyEventTakeScreenShot, IN, int, key, + Properties::NON_VIRTUAL, + __void__setKeyEventTakeScreenShot__int, + "", + ""); + I_Method0(int, getKeyEventTakeScreenShot, + Properties::NON_VIRTUAL, + __int__getKeyEventTakeScreenShot, + "", + ""); + I_Method1(void, setCaptureOperation, IN, osgViewer::ScreenCaptureHandler::CaptureOperation *, operation, + Properties::NON_VIRTUAL, + __void__setCaptureOperation__CaptureOperation_P1, + "", + ""); + I_Method0(osgViewer::ScreenCaptureHandler::CaptureOperation *, getCaptureOperation, + Properties::NON_VIRTUAL, + __CaptureOperation_P1__getCaptureOperation, + "", + ""); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x, + Properties::VIRTUAL, + __bool__handle__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "Deprecated, Handle events, return true if handled, false otherwise. ", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::VIRTUAL, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this manipulator. ", + ""); + I_ProtectedMethod1(void, addCallbackToViewer, IN, osgViewer::ViewerBase &, viewer, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__addCallbackToViewer__osgViewer_ViewerBase_R1, + "", + ""); + I_SimpleProperty(osgViewer::ScreenCaptureHandler::CaptureOperation *, CaptureOperation, + __CaptureOperation_P1__getCaptureOperation, + __void__setCaptureOperation__CaptureOperation_P1); + I_SimpleProperty(int, KeyEventTakeScreenShot, + __int__getKeyEventTakeScreenShot, + __void__setKeyEventTakeScreenShot__int); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgViewer::ScreenCaptureHandler::CaptureOperation) + I_DeclaringFile("osgViewer/ViewerEventHandlers"); + I_BaseType(osg::Referenced); + I_Constructor0(____CaptureOperation, + "", + ""); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgViewer::ScreenCaptureHandler::WriteToFile::SavePolicy) + I_DeclaringFile("osgViewer/ViewerEventHandlers"); + I_EnumLabel(osgViewer::ScreenCaptureHandler::WriteToFile::OVERWRITE); + I_EnumLabel(osgViewer::ScreenCaptureHandler::WriteToFile::SEQUENTIAL_NUMBER); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgViewer::ScreenCaptureHandler::WriteToFile) + I_DeclaringFile("osgViewer/ViewerEventHandlers"); + I_BaseType(osgViewer::ScreenCaptureHandler::CaptureOperation); + I_ConstructorWithDefaults3(IN, const std::string &, filename, , IN, const std::string &, extension, , IN, osgViewer::ScreenCaptureHandler::WriteToFile::SavePolicy, savePolicy, osgViewer::ScreenCaptureHandler::WriteToFile::OVERWRITE, + ____WriteToFile__C5_std_string_R1__C5_std_string_R1__SavePolicy, + "", + ""); + I_Method1(void, setSavePolicy, IN, osgViewer::ScreenCaptureHandler::WriteToFile::SavePolicy, savePolicy, + Properties::NON_VIRTUAL, + __void__setSavePolicy__SavePolicy, + "", + ""); + I_Method0(osgViewer::ScreenCaptureHandler::WriteToFile::SavePolicy, getSavePolicy, + Properties::NON_VIRTUAL, + __SavePolicy__getSavePolicy, + "", + ""); + I_SimpleProperty(osgViewer::ScreenCaptureHandler::WriteToFile::SavePolicy, SavePolicy, + __SavePolicy__getSavePolicy, + __void__setSavePolicy__SavePolicy); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgViewer::StatsHandler::StatsType) + I_DeclaringFile("osgViewer/ViewerEventHandlers"); + I_EnumLabel(osgViewer::StatsHandler::NO_STATS); + I_EnumLabel(osgViewer::StatsHandler::FRAME_RATE); + I_EnumLabel(osgViewer::StatsHandler::VIEWER_STATS); + I_EnumLabel(osgViewer::StatsHandler::LAST); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgViewer::StatsHandler) + I_DeclaringFile("osgViewer/ViewerEventHandlers"); + I_BaseType(osgGA::GUIEventHandler); + I_Constructor0(____StatsHandler, + "", + ""); + I_Method1(void, setKeyEventTogglesOnScreenStats, IN, int, key, + Properties::NON_VIRTUAL, + __void__setKeyEventTogglesOnScreenStats__int, + "", + ""); + I_Method0(int, getKeyEventTogglesOnScreenStats, + Properties::NON_VIRTUAL, + __int__getKeyEventTogglesOnScreenStats, + "", + ""); + I_Method1(void, setKeyEventPrintsOutStats, IN, int, key, + Properties::NON_VIRTUAL, + __void__setKeyEventPrintsOutStats__int, + "", + ""); + I_Method0(int, getKeyEventPrintsOutStats, + Properties::NON_VIRTUAL, + __int__getKeyEventPrintsOutStats, + "", + ""); + I_Method0(double, getBlockMultiplier, + Properties::NON_VIRTUAL, + __double__getBlockMultiplier, + "", + ""); + I_Method0(void, reset, + Properties::NON_VIRTUAL, + __void__reset, + "", + ""); + I_Method0(osg::Camera *, getCamera, + Properties::NON_VIRTUAL, + __osg_Camera_P1__getCamera, + "", + ""); + I_Method0(const osg::Camera *, getCamera, + Properties::NON_VIRTUAL, + __C5_osg_Camera_P1__getCamera, + "", + ""); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x, + Properties::VIRTUAL, + __bool__handle__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "Deprecated, Handle events, return true if handled, false otherwise. ", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::VIRTUAL, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this manipulator. ", + ""); + I_ProtectedMethod1(void, setUpHUDCamera, IN, osgViewer::ViewerBase *, viewer, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__setUpHUDCamera__osgViewer_ViewerBase_P1, + "", + ""); + I_ProtectedMethod4(osg::Geometry *, createGeometry, IN, const osg::Vec3 &, pos, IN, float, height, IN, const osg::Vec4 &, colour, IN, unsigned int, numBlocks, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __osg_Geometry_P1__createGeometry__C5_osg_Vec3_R1__float__C5_osg_Vec4_R1__unsigned_int, + "", + ""); + I_ProtectedMethod4(osg::Geometry *, createFrameMarkers, IN, const osg::Vec3 &, pos, IN, float, height, IN, const osg::Vec4 &, colour, IN, unsigned int, numBlocks, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __osg_Geometry_P1__createFrameMarkers__C5_osg_Vec3_R1__float__C5_osg_Vec4_R1__unsigned_int, + "", + ""); + I_ProtectedMethod4(osg::Geometry *, createTick, IN, const osg::Vec3 &, pos, IN, float, height, IN, const osg::Vec4 &, colour, IN, unsigned int, numTicks, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __osg_Geometry_P1__createTick__C5_osg_Vec3_R1__float__C5_osg_Vec4_R1__unsigned_int, + "", + ""); + I_ProtectedMethod7(osg::Node *, createCameraStats, IN, const std::string &, font, IN, osg::Vec3 &, pos, IN, float, startBlocks, IN, bool, aquireGPUStats, IN, float, characterSize, IN, osg::Stats *, viewerStats, IN, osg::Camera *, camera, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __osg_Node_P1__createCameraStats__C5_std_string_R1__osg_Vec3_R1__float__bool__float__osg_Stats_P1__osg_Camera_P1, + "", + ""); + I_ProtectedMethod1(void, setUpScene, IN, osgViewer::ViewerBase *, viewer, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__setUpScene__osgViewer_ViewerBase_P1, + "", + ""); + I_ProtectedMethod0(void, updateThreadingModelText, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__updateThreadingModelText, + "", + ""); + I_SimpleProperty(double, BlockMultiplier, + __double__getBlockMultiplier, + 0); + I_SimpleProperty(osg::Camera *, Camera, + __osg_Camera_P1__getCamera, + 0); + I_SimpleProperty(int, KeyEventPrintsOutStats, + __int__getKeyEventPrintsOutStats, + __void__setKeyEventPrintsOutStats__int); + I_SimpleProperty(int, KeyEventTogglesOnScreenStats, + __int__getKeyEventTogglesOnScreenStats, + __void__setKeyEventTogglesOnScreenStats__int); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgViewer::ThreadingHandler) + I_DeclaringFile("osgViewer/ViewerEventHandlers"); + I_BaseType(osgGA::GUIEventHandler); + I_Constructor0(____ThreadingHandler, + "", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::VIRTUAL, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this manipulator. ", + ""); + I_Method1(void, setKeyEventChangeThreadingModel, IN, int, key, + Properties::NON_VIRTUAL, + __void__setKeyEventChangeThreadingModel__int, + "", + ""); + I_Method0(int, getKeyEventChangeThreadingModel, + Properties::NON_VIRTUAL, + __int__getKeyEventChangeThreadingModel, + "", + ""); + I_Method1(void, setChangeThreadingModel, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setChangeThreadingModel__bool, + "", + ""); + I_Method0(bool, getChangeThreadingModel, + Properties::NON_VIRTUAL, + __bool__getChangeThreadingModel, + "", + ""); + I_Method1(void, setKeyEventChangeEndBarrierPosition, IN, int, key, + Properties::NON_VIRTUAL, + __void__setKeyEventChangeEndBarrierPosition__int, + "", + ""); + I_Method0(int, getKeyEventChangeEndBarrierPosition, + Properties::NON_VIRTUAL, + __int__getKeyEventChangeEndBarrierPosition, + "", + ""); + I_Method1(void, setChangeEndBarrierPosition, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setChangeEndBarrierPosition__bool, + "", + ""); + I_Method0(bool, getChangeEndBarrierPosition, + Properties::NON_VIRTUAL, + __bool__getChangeEndBarrierPosition, + "", + ""); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x, + Properties::VIRTUAL, + __bool__handle__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "Deprecated, Handle events, return true if handled, false otherwise. ", + ""); + I_SimpleProperty(bool, ChangeEndBarrierPosition, + __bool__getChangeEndBarrierPosition, + __void__setChangeEndBarrierPosition__bool); + I_SimpleProperty(bool, ChangeThreadingModel, + __bool__getChangeThreadingModel, + __void__setChangeThreadingModel__bool); + I_SimpleProperty(int, KeyEventChangeEndBarrierPosition, + __int__getKeyEventChangeEndBarrierPosition, + __void__setKeyEventChangeEndBarrierPosition__int); + I_SimpleProperty(int, KeyEventChangeThreadingModel, + __int__getKeyEventChangeThreadingModel, + __void__setKeyEventChangeThreadingModel__int); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgViewer::WindowSizeHandler) + I_DeclaringFile("osgViewer/ViewerEventHandlers"); + I_BaseType(osgGA::GUIEventHandler); + I_Constructor0(____WindowSizeHandler, + "", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::VIRTUAL, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this manipulator. ", + ""); + I_Method1(void, setKeyEventToggleFullscreen, IN, int, key, + Properties::NON_VIRTUAL, + __void__setKeyEventToggleFullscreen__int, + "", + ""); + I_Method0(int, getKeyEventToggleFullscreen, + Properties::NON_VIRTUAL, + __int__getKeyEventToggleFullscreen, + "", + ""); + I_Method1(void, setToggleFullscreen, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setToggleFullscreen__bool, + "", + ""); + I_Method0(bool, getToggleFullscreen, + Properties::NON_VIRTUAL, + __bool__getToggleFullscreen, + "", + ""); + I_Method1(void, setKeyEventWindowedResolutionUp, IN, int, key, + Properties::NON_VIRTUAL, + __void__setKeyEventWindowedResolutionUp__int, + "", + ""); + I_Method0(int, getKeyEventWindowedResolutionUp, + Properties::NON_VIRTUAL, + __int__getKeyEventWindowedResolutionUp, + "", + ""); + I_Method1(void, setKeyEventWindowedResolutionDown, IN, int, key, + Properties::NON_VIRTUAL, + __void__setKeyEventWindowedResolutionDown__int, + "", + ""); + I_Method0(int, getKeyEventWindowedResolutionDown, + Properties::NON_VIRTUAL, + __int__getKeyEventWindowedResolutionDown, + "", + ""); + I_Method1(void, setChangeWindowedResolution, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setChangeWindowedResolution__bool, + "", + ""); + I_Method0(bool, getChangeWindowedResolution, + Properties::NON_VIRTUAL, + __bool__getChangeWindowedResolution, + "", + ""); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x, + Properties::VIRTUAL, + __bool__handle__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "Deprecated, Handle events, return true if handled, false otherwise. ", + ""); + I_ProtectedMethod1(void, toggleFullscreen, IN, osgViewer::GraphicsWindow *, window, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__toggleFullscreen__osgViewer_GraphicsWindow_P1, + "", + ""); + I_ProtectedMethod2(void, changeWindowedResolution, IN, osgViewer::GraphicsWindow *, window, IN, bool, increase, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__changeWindowedResolution__osgViewer_GraphicsWindow_P1__bool, + "", + ""); + I_ProtectedMethod4(unsigned int, getNearestResolution, IN, int, screenWidth, IN, int, screenHeight, IN, int, width, IN, int, height, + Properties::NON_VIRTUAL, + Properties::CONST, + __unsigned_int__getNearestResolution__int__int__int__int, + "", + ""); + I_SimpleProperty(bool, ChangeWindowedResolution, + __bool__getChangeWindowedResolution, + __void__setChangeWindowedResolution__bool); + I_SimpleProperty(int, KeyEventToggleFullscreen, + __int__getKeyEventToggleFullscreen, + __void__setKeyEventToggleFullscreen__int); + I_SimpleProperty(int, KeyEventWindowedResolutionDown, + __int__getKeyEventWindowedResolutionDown, + __void__setKeyEventWindowedResolutionDown__int); + I_SimpleProperty(int, KeyEventWindowedResolutionUp, + __int__getKeyEventWindowedResolutionUp, + __void__setKeyEventWindowedResolutionUp__int); + I_SimpleProperty(bool, ToggleFullscreen, + __bool__getToggleFullscreen, + __void__setToggleFullscreen__bool); +END_REFLECTOR + diff --git a/src/osgWrappers/osgWidget/Frame.cpp b/src/osgWrappers/osgWidget/Frame.cpp index b3cfeb428..c7a58651d 100644 --- a/src/osgWrappers/osgWidget/Frame.cpp +++ b/src/osgWrappers/osgWidget/Frame.cpp @@ -1,309 +1,309 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_ENUM_REFLECTOR(osgWidget::Frame::CORNER) - I_DeclaringFile("osgWidget/Frame"); - I_EnumLabel(osgWidget::Frame::CORNER_LOWER_LEFT); - I_EnumLabel(osgWidget::Frame::CORNER_LOWER_RIGHT); - I_EnumLabel(osgWidget::Frame::CORNER_UPPER_LEFT); - I_EnumLabel(osgWidget::Frame::CORNER_UPPER_RIGHT); -END_REFLECTOR - -BEGIN_ENUM_REFLECTOR(osgWidget::Frame::BORDER) - I_DeclaringFile("osgWidget/Frame"); - I_EnumLabel(osgWidget::Frame::BORDER_LEFT); - I_EnumLabel(osgWidget::Frame::BORDER_RIGHT); - I_EnumLabel(osgWidget::Frame::BORDER_TOP); - I_EnumLabel(osgWidget::Frame::BORDER_BOTTOM); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(osgWidget::Frame) - I_DeclaringFile("osgWidget/Frame"); - I_BaseType(osgWidget::Table); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __osg_Object_P1__cloneType, - "clone an object of the same type as the node. ", - ""); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::VIRTUAL, - __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, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "return true if this and obj are of the same kind of object. ", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "return the name of the node's library. ", - ""); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "return the name of the node's class type. ", - ""); - I_Method1(, META_UIObject, IN, osgWidget::Frame, x, - Properties::NON_VIRTUAL, - ____META_UIObject__Frame, - "", - ""); - I_ConstructorWithDefaults1(IN, const std::string &, x, "", - Properties::NON_EXPLICIT, - ____Frame__C5_std_string_R1, - "", - ""); - I_Constructor2(IN, const osgWidget::Frame &, x, IN, const osg::CopyOp &, x, - ____Frame__C5_Frame_R1__C5_osg_CopyOp_R1, - "", - ""); - I_Method1(void, managed, IN, osgWidget::WindowManager *, x, - Properties::VIRTUAL, - __void__managed__WindowManager_P1, - "", - ""); - I_Method4(void, createSimpleFrame, IN, osgWidget::point_type, cw, IN, osgWidget::point_type, ch, IN, osgWidget::point_type, w, IN, osgWidget::point_type, h, - Properties::NON_VIRTUAL, - __void__createSimpleFrame__point_type__point_type__point_type__point_type, - "", - ""); - I_Method7(void, createSimpleFrameWithSingleTexture, IN, const std::string &, tex, IN, osgWidget::point_type, tw, IN, osgWidget::point_type, th, IN, osgWidget::point_type, cw, IN, osgWidget::point_type, ch, IN, osgWidget::point_type, w, IN, osgWidget::point_type, h, - Properties::NON_VIRTUAL, - __void__createSimpleFrameWithSingleTexture__C5_std_string_R1__point_type__point_type__point_type__point_type__point_type__point_type, - "", - ""); - I_Method1(bool, setWindow, IN, osgWidget::Window *, x, - Properties::NON_VIRTUAL, - __bool__setWindow__Window_P1, - "", - ""); - I_Method0(osgWidget::Window::EmbeddedWindow *, getEmbeddedWindow, - Properties::NON_VIRTUAL, - __EmbeddedWindow_P1__getEmbeddedWindow, - "", - ""); - I_Method0(const osgWidget::Window::EmbeddedWindow *, getEmbeddedWindow, - Properties::NON_VIRTUAL, - __C5_EmbeddedWindow_P1__getEmbeddedWindow, - "", - ""); - I_Method1(osgWidget::Frame::Corner *, getCorner, IN, osgWidget::Frame::CORNER, c, - Properties::NON_VIRTUAL, - __Corner_P1__getCorner__CORNER, - "", - ""); - I_Method1(const osgWidget::Frame::Corner *, getCorner, IN, osgWidget::Frame::CORNER, c, - Properties::NON_VIRTUAL, - __C5_Corner_P1__getCorner__CORNER, - "", - ""); - I_Method1(osgWidget::Frame::Border *, getBorder, IN, osgWidget::Frame::BORDER, b, - Properties::NON_VIRTUAL, - __Border_P1__getBorder__BORDER, - "", - ""); - I_Method1(const osgWidget::Frame::Border *, getBorder, IN, osgWidget::Frame::BORDER, b, - Properties::NON_VIRTUAL, - __C5_Border_P1__getBorder__BORDER, - "", - ""); - I_StaticMethod1(std::string, cornerToString, IN, osgWidget::Frame::CORNER, x, - __std_string__cornerToString__CORNER_S, - "", - ""); - I_StaticMethod1(std::string, borderToString, IN, osgWidget::Frame::BORDER, x, - __std_string__borderToString__BORDER_S, - "", - ""); - I_StaticMethodWithDefaults6(osgWidget::Frame *, createSimpleFrame, IN, const std::string &, x, , IN, osgWidget::point_type, x, , IN, osgWidget::point_type, x, , IN, osgWidget::point_type, x, , IN, osgWidget::point_type, x, , IN, osgWidget::Frame *, x, 0, - __Frame_P1__createSimpleFrame__C5_std_string_R1__point_type__point_type__point_type__point_type__Frame_P1_S, - "", - ""); - I_StaticMethodWithDefaults9(osgWidget::Frame *, createSimpleFrameWithSingleTexture, IN, const std::string &, x, , IN, const std::string &, x, , IN, osgWidget::point_type, x, , IN, osgWidget::point_type, x, , IN, osgWidget::point_type, x, , IN, osgWidget::point_type, x, , IN, osgWidget::point_type, x, , IN, osgWidget::point_type, x, , IN, osgWidget::Frame *, x, 0, - __Frame_P1__createSimpleFrameWithSingleTexture__C5_std_string_R1__C5_std_string_R1__point_type__point_type__point_type__point_type__point_type__point_type__Frame_P1_S, - "", - ""); - I_ProtectedMethod1(osgWidget::Widget *, _getCorner, IN, osgWidget::Frame::CORNER, x, - Properties::NON_VIRTUAL, - Properties::CONST, - __Widget_P1___getCorner__CORNER, - "", - ""); - I_ProtectedMethod1(osgWidget::Widget *, _getBorder, IN, osgWidget::Frame::BORDER, x, - Properties::NON_VIRTUAL, - Properties::CONST, - __Widget_P1___getBorder__BORDER, - "", - ""); - I_SimpleProperty(osgWidget::Window::EmbeddedWindow *, EmbeddedWindow, - __EmbeddedWindow_P1__getEmbeddedWindow, - 0); - I_SimpleProperty(osgWidget::Window *, Window, - 0, - __bool__setWindow__Window_P1); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(osgWidget::Frame::Border) - I_DeclaringFile("osgWidget/Frame"); - I_BaseType(osgWidget::Widget); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __osg_Object_P1__cloneType, - "Clone the type of an object, with Object* return type. ", - "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::VIRTUAL, - __osg_Object_P1__clone__C5_osg_CopyOp_R1, - "Clone an object, with Object* return type. ", - "Must be defined by derived classes. "); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "return the name of the object's library. ", - "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "return the name of the object's class type. ", - "Must be defined by derived classes. "); - I_Method1(, META_UIObject, IN, osgWidget::Frame::Border, x, - Properties::NON_VIRTUAL, - ____META_UIObject__Border, - "", - ""); - I_ConstructorWithDefaults3(IN, osgWidget::Frame::BORDER, x, osgWidget::Frame::BORDER_LEFT, IN, osgWidget::point_type, x, 0.0f, IN, osgWidget::point_type, x, 0.0f, - ____Border__BORDER__point_type__point_type, - "", - ""); - I_Constructor2(IN, const osgWidget::Frame::Border &, x, IN, const osg::CopyOp &, x, - ____Border__C5_Border_R1__C5_osg_CopyOp_R1, - "", - ""); - I_Method3(bool, mouseDrag, IN, double, x, IN, double, x, IN, osgWidget::WindowManager *, x, - Properties::VIRTUAL, - __bool__mouseDrag__double__double__WindowManager_P1, - "", - ""); - I_Method0(osgWidget::Frame::BORDER, getBorder, - Properties::NON_VIRTUAL, - __BORDER__getBorder, - "", - ""); - I_Method1(void, setBorder, IN, osgWidget::Frame::BORDER, border, - Properties::NON_VIRTUAL, - __void__setBorder__BORDER, - "", - ""); - I_Method1(void, setBorderAndName, IN, osgWidget::Frame::BORDER, border, - Properties::NON_VIRTUAL, - __void__setBorderAndName__BORDER, - "", - ""); - I_SimpleProperty(osgWidget::Frame::BORDER, Border, - __BORDER__getBorder, - __void__setBorder__BORDER); - I_SimpleProperty(osgWidget::Frame::BORDER, BorderAndName, - 0, - __void__setBorderAndName__BORDER); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(osgWidget::Frame::Corner) - I_DeclaringFile("osgWidget/Frame"); - I_BaseType(osgWidget::Widget); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __osg_Object_P1__cloneType, - "Clone the type of an object, with Object* return type. ", - "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::VIRTUAL, - __osg_Object_P1__clone__C5_osg_CopyOp_R1, - "Clone an object, with Object* return type. ", - "Must be defined by derived classes. "); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "return the name of the object's library. ", - "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "return the name of the object's class type. ", - "Must be defined by derived classes. "); - I_Method1(, META_UIObject, IN, osgWidget::Frame::Corner, x, - Properties::NON_VIRTUAL, - ____META_UIObject__Corner, - "", - ""); - I_ConstructorWithDefaults3(IN, osgWidget::Frame::CORNER, x, osgWidget::Frame::CORNER_LOWER_LEFT, IN, osgWidget::point_type, x, 0.0f, IN, osgWidget::point_type, x, 0.0f, - ____Corner__CORNER__point_type__point_type, - "", - ""); - I_Constructor2(IN, const osgWidget::Frame::Corner &, x, IN, const osg::CopyOp &, x, - ____Corner__C5_Corner_R1__C5_osg_CopyOp_R1, - "", - ""); - I_Method3(bool, mouseDrag, IN, double, x, IN, double, x, IN, osgWidget::WindowManager *, x, - Properties::VIRTUAL, - __bool__mouseDrag__double__double__WindowManager_P1, - "", - ""); - I_Method0(osgWidget::Frame::CORNER, getCorner, - Properties::NON_VIRTUAL, - __CORNER__getCorner, - "", - ""); - I_Method1(void, setCorner, IN, osgWidget::Frame::CORNER, corner, - Properties::NON_VIRTUAL, - __void__setCorner__CORNER, - "", - ""); - I_Method1(void, setCornerAndName, IN, osgWidget::Frame::CORNER, corner, - Properties::NON_VIRTUAL, - __void__setCornerAndName__CORNER, - "", - ""); - I_SimpleProperty(osgWidget::Frame::CORNER, Corner, - __CORNER__getCorner, - __void__setCorner__CORNER); - I_SimpleProperty(osgWidget::Frame::CORNER, CornerAndName, - 0, - __void__setCornerAndName__CORNER); -END_REFLECTOR - +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgWidget::Frame::CORNER) + I_DeclaringFile("osgWidget/Frame"); + I_EnumLabel(osgWidget::Frame::CORNER_LOWER_LEFT); + I_EnumLabel(osgWidget::Frame::CORNER_LOWER_RIGHT); + I_EnumLabel(osgWidget::Frame::CORNER_UPPER_LEFT); + I_EnumLabel(osgWidget::Frame::CORNER_UPPER_RIGHT); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgWidget::Frame::BORDER) + I_DeclaringFile("osgWidget/Frame"); + I_EnumLabel(osgWidget::Frame::BORDER_LEFT); + I_EnumLabel(osgWidget::Frame::BORDER_RIGHT); + I_EnumLabel(osgWidget::Frame::BORDER_TOP); + I_EnumLabel(osgWidget::Frame::BORDER_BOTTOM); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgWidget::Frame) + I_DeclaringFile("osgWidget/Frame"); + I_BaseType(osgWidget::Table); + I_StaticMethod1(std::string, cornerToString, IN, osgWidget::Frame::CORNER, x, + __std_string__cornerToString__CORNER_S, + "", + ""); + I_StaticMethod1(std::string, borderToString, IN, osgWidget::Frame::BORDER, x, + __std_string__borderToString__BORDER_S, + "", + ""); + I_StaticMethodWithDefaults6(osgWidget::Frame *, createSimpleFrame, IN, const std::string &, x, , IN, osgWidget::point_type, x, , IN, osgWidget::point_type, x, , IN, osgWidget::point_type, x, , IN, osgWidget::point_type, x, , IN, osgWidget::Frame *, x, 0, + __Frame_P1__createSimpleFrame__C5_std_string_R1__point_type__point_type__point_type__point_type__Frame_P1_S, + "", + ""); + I_StaticMethodWithDefaults9(osgWidget::Frame *, createSimpleFrameWithSingleTexture, IN, const std::string &, x, , IN, const std::string &, x, , IN, osgWidget::point_type, x, , IN, osgWidget::point_type, x, , IN, osgWidget::point_type, x, , IN, osgWidget::point_type, x, , IN, osgWidget::point_type, x, , IN, osgWidget::point_type, x, , IN, osgWidget::Frame *, x, 0, + __Frame_P1__createSimpleFrameWithSingleTexture__C5_std_string_R1__C5_std_string_R1__point_type__point_type__point_type__point_type__point_type__point_type__Frame_P1_S, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "clone an object of the same type as the node. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __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, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "return true if this and obj are of the same kind of object. ", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "return the name of the node's library. ", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "return the name of the node's class type. ", + ""); + I_Method1(, META_UIObject, IN, osgWidget::Frame, x, + Properties::NON_VIRTUAL, + ____META_UIObject__Frame, + "", + ""); + I_ConstructorWithDefaults1(IN, const std::string &, x, "", + Properties::NON_EXPLICIT, + ____Frame__C5_std_string_R1, + "", + ""); + I_Constructor2(IN, const osgWidget::Frame &, x, IN, const osg::CopyOp &, x, + ____Frame__C5_Frame_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(void, managed, IN, osgWidget::WindowManager *, x, + Properties::VIRTUAL, + __void__managed__WindowManager_P1, + "", + ""); + I_Method4(void, createSimpleFrame, IN, osgWidget::point_type, cw, IN, osgWidget::point_type, ch, IN, osgWidget::point_type, w, IN, osgWidget::point_type, h, + Properties::NON_VIRTUAL, + __void__createSimpleFrame__point_type__point_type__point_type__point_type, + "", + ""); + I_Method7(void, createSimpleFrameWithSingleTexture, IN, const std::string &, tex, IN, osgWidget::point_type, tw, IN, osgWidget::point_type, th, IN, osgWidget::point_type, cw, IN, osgWidget::point_type, ch, IN, osgWidget::point_type, w, IN, osgWidget::point_type, h, + Properties::NON_VIRTUAL, + __void__createSimpleFrameWithSingleTexture__C5_std_string_R1__point_type__point_type__point_type__point_type__point_type__point_type, + "", + ""); + I_Method1(bool, setWindow, IN, osgWidget::Window *, x, + Properties::NON_VIRTUAL, + __bool__setWindow__Window_P1, + "", + ""); + I_Method0(osgWidget::Window::EmbeddedWindow *, getEmbeddedWindow, + Properties::NON_VIRTUAL, + __EmbeddedWindow_P1__getEmbeddedWindow, + "", + ""); + I_Method0(const osgWidget::Window::EmbeddedWindow *, getEmbeddedWindow, + Properties::NON_VIRTUAL, + __C5_EmbeddedWindow_P1__getEmbeddedWindow, + "", + ""); + I_Method1(osgWidget::Frame::Corner *, getCorner, IN, osgWidget::Frame::CORNER, c, + Properties::NON_VIRTUAL, + __Corner_P1__getCorner__CORNER, + "", + ""); + I_Method1(const osgWidget::Frame::Corner *, getCorner, IN, osgWidget::Frame::CORNER, c, + Properties::NON_VIRTUAL, + __C5_Corner_P1__getCorner__CORNER, + "", + ""); + I_Method1(osgWidget::Frame::Border *, getBorder, IN, osgWidget::Frame::BORDER, b, + Properties::NON_VIRTUAL, + __Border_P1__getBorder__BORDER, + "", + ""); + I_Method1(const osgWidget::Frame::Border *, getBorder, IN, osgWidget::Frame::BORDER, b, + Properties::NON_VIRTUAL, + __C5_Border_P1__getBorder__BORDER, + "", + ""); + I_ProtectedMethod1(osgWidget::Widget *, _getCorner, IN, osgWidget::Frame::CORNER, x, + Properties::NON_VIRTUAL, + Properties::CONST, + __Widget_P1___getCorner__CORNER, + "", + ""); + I_ProtectedMethod1(osgWidget::Widget *, _getBorder, IN, osgWidget::Frame::BORDER, x, + Properties::NON_VIRTUAL, + Properties::CONST, + __Widget_P1___getBorder__BORDER, + "", + ""); + I_SimpleProperty(osgWidget::Window::EmbeddedWindow *, EmbeddedWindow, + __EmbeddedWindow_P1__getEmbeddedWindow, + 0); + I_SimpleProperty(osgWidget::Window *, Window, + 0, + __bool__setWindow__Window_P1); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgWidget::Frame::Border) + I_DeclaringFile("osgWidget/Frame"); + I_BaseType(osgWidget::Widget); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(, META_UIObject, IN, osgWidget::Frame::Border, x, + Properties::NON_VIRTUAL, + ____META_UIObject__Border, + "", + ""); + I_ConstructorWithDefaults3(IN, osgWidget::Frame::BORDER, x, osgWidget::Frame::BORDER_LEFT, IN, osgWidget::point_type, x, 0.0f, IN, osgWidget::point_type, x, 0.0f, + ____Border__BORDER__point_type__point_type, + "", + ""); + I_Constructor2(IN, const osgWidget::Frame::Border &, x, IN, const osg::CopyOp &, x, + ____Border__C5_Border_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method3(bool, mouseDrag, IN, double, x, IN, double, x, IN, osgWidget::WindowManager *, x, + Properties::VIRTUAL, + __bool__mouseDrag__double__double__WindowManager_P1, + "", + ""); + I_Method0(osgWidget::Frame::BORDER, getBorder, + Properties::NON_VIRTUAL, + __BORDER__getBorder, + "", + ""); + I_Method1(void, setBorder, IN, osgWidget::Frame::BORDER, border, + Properties::NON_VIRTUAL, + __void__setBorder__BORDER, + "", + ""); + I_Method1(void, setBorderAndName, IN, osgWidget::Frame::BORDER, border, + Properties::NON_VIRTUAL, + __void__setBorderAndName__BORDER, + "", + ""); + I_SimpleProperty(osgWidget::Frame::BORDER, Border, + __BORDER__getBorder, + __void__setBorder__BORDER); + I_SimpleProperty(osgWidget::Frame::BORDER, BorderAndName, + 0, + __void__setBorderAndName__BORDER); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgWidget::Frame::Corner) + I_DeclaringFile("osgWidget/Frame"); + I_BaseType(osgWidget::Widget); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(, META_UIObject, IN, osgWidget::Frame::Corner, x, + Properties::NON_VIRTUAL, + ____META_UIObject__Corner, + "", + ""); + I_ConstructorWithDefaults3(IN, osgWidget::Frame::CORNER, x, osgWidget::Frame::CORNER_LOWER_LEFT, IN, osgWidget::point_type, x, 0.0f, IN, osgWidget::point_type, x, 0.0f, + ____Corner__CORNER__point_type__point_type, + "", + ""); + I_Constructor2(IN, const osgWidget::Frame::Corner &, x, IN, const osg::CopyOp &, x, + ____Corner__C5_Corner_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method3(bool, mouseDrag, IN, double, x, IN, double, x, IN, osgWidget::WindowManager *, x, + Properties::VIRTUAL, + __bool__mouseDrag__double__double__WindowManager_P1, + "", + ""); + I_Method0(osgWidget::Frame::CORNER, getCorner, + Properties::NON_VIRTUAL, + __CORNER__getCorner, + "", + ""); + I_Method1(void, setCorner, IN, osgWidget::Frame::CORNER, corner, + Properties::NON_VIRTUAL, + __void__setCorner__CORNER, + "", + ""); + I_Method1(void, setCornerAndName, IN, osgWidget::Frame::CORNER, corner, + Properties::NON_VIRTUAL, + __void__setCornerAndName__CORNER, + "", + ""); + I_SimpleProperty(osgWidget::Frame::CORNER, Corner, + __CORNER__getCorner, + __void__setCorner__CORNER); + I_SimpleProperty(osgWidget::Frame::CORNER, CornerAndName, + 0, + __void__setCornerAndName__CORNER); +END_REFLECTOR + diff --git a/src/osgWrappers/osgWidget/Label.cpp b/src/osgWrappers/osgWidget/Label.cpp index a2a25d750..89d1312d8 100644 --- a/src/osgWrappers/osgWidget/Label.cpp +++ b/src/osgWrappers/osgWidget/Label.cpp @@ -1,168 +1,168 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_OBJECT_REFLECTOR(osgWidget::Label) - I_DeclaringFile("osgWidget/Label"); - I_BaseType(osgWidget::Widget); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __osg_Object_P1__cloneType, - "Clone the type of an object, with Object* return type. ", - "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::VIRTUAL, - __osg_Object_P1__clone__C5_osg_CopyOp_R1, - "Clone an object, with Object* return type. ", - "Must be defined by derived classes. "); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "return the name of the object's library. ", - "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "return the name of the object's class type. ", - "Must be defined by derived classes. "); - I_Method1(, META_UIObject, IN, osgWidget::Label, x, - Properties::NON_VIRTUAL, - ____META_UIObject__Label, - "", - ""); - I_ConstructorWithDefaults2(IN, const std::string &, x, "", IN, const std::string &, x, "", - ____Label__C5_std_string_R1__C5_std_string_R1, - "", - ""); - I_Constructor2(IN, const osgWidget::Label &, x, IN, const osg::CopyOp &, x, - ____Label__C5_Label_R1__C5_osg_CopyOp_R1, - "", - ""); - I_Method1(void, parented, IN, osgWidget::Window *, x, - Properties::VIRTUAL, - __void__parented__Window_P1, - "", - ""); - I_Method1(void, unparented, IN, osgWidget::Window *, x, - Properties::VIRTUAL, - __void__unparented__Window_P1, - "", - ""); - I_Method1(void, managed, IN, osgWidget::WindowManager *, x, - Properties::VIRTUAL, - __void__managed__WindowManager_P1, - "", - ""); - I_Method0(void, positioned, - Properties::VIRTUAL, - __void__positioned, - "", - ""); - I_Method0(void, update, - Properties::NON_VIRTUAL, - __void__update, - "", - ""); - I_Method1(void, setLabel, IN, const std::string &, x, - Properties::NON_VIRTUAL, - __void__setLabel__C5_std_string_R1, - "", - ""); - I_Method1(void, setFont, IN, const std::string &, x, - Properties::NON_VIRTUAL, - __void__setFont__C5_std_string_R1, - "", - ""); - I_Method1(void, setFontSize, IN, unsigned, int, - Properties::NON_VIRTUAL, - __void__setFontSize__unsigned, - "", - ""); - I_Method1(void, setFontColor, IN, const osgWidget::Color &, x, - Properties::NON_VIRTUAL, - __void__setFontColor__C5_Color_R1, - "", - ""); - I_Method1(void, setShadow, IN, osgWidget::point_type, x, - Properties::NON_VIRTUAL, - __void__setShadow__point_type, - "", - ""); - I_Method0(osgWidget::XYCoord, getTextSize, - Properties::NON_VIRTUAL, - __XYCoord__getTextSize, - "", - ""); - I_Method0(std::string, getLabel, - Properties::NON_VIRTUAL, - __std_string__getLabel, - "", - ""); - I_Method4(void, setFontColor, IN, osgWidget::point_type, r, IN, osgWidget::point_type, g, IN, osgWidget::point_type, b, IN, osgWidget::point_type, a, - Properties::NON_VIRTUAL, - __void__setFontColor__point_type__point_type__point_type__point_type, - "", - ""); - I_Method0(const osgText::Text *, getText, - Properties::NON_VIRTUAL, - __C5_osgText_Text_P1__getText, - "", - ""); - I_ProtectedMethod1(void, _calculateSize, IN, const osgWidget::XYCoord &, x, - Properties::VIRTUAL, - Properties::NON_CONST, - __void___calculateSize__C5_XYCoord_R1, - "", - ""); - I_SimpleProperty(const std::string &, Font, - 0, - __void__setFont__C5_std_string_R1); - I_SimpleProperty(const osgWidget::Color &, FontColor, - 0, - __void__setFontColor__C5_Color_R1); - I_SimpleProperty(unsigned, FontSize, - 0, - __void__setFontSize__unsigned); - I_SimpleProperty(std::string, Label, - __std_string__getLabel, - __void__setLabel__C5_std_string_R1); - I_SimpleProperty(osgWidget::point_type, Shadow, - 0, - __void__setShadow__point_type); - I_SimpleProperty(const osgText::Text *, Text, - __C5_osgText_Text_P1__getText, - 0); - I_SimpleProperty(osgWidget::XYCoord, TextSize, - __XYCoord__getTextSize, - 0); -END_REFLECTOR - +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgWidget::Label) + I_DeclaringFile("osgWidget/Label"); + I_BaseType(osgWidget::Widget); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(, META_UIObject, IN, osgWidget::Label, x, + Properties::NON_VIRTUAL, + ____META_UIObject__Label, + "", + ""); + I_ConstructorWithDefaults2(IN, const std::string &, x, "", IN, const std::string &, x, "", + ____Label__C5_std_string_R1__C5_std_string_R1, + "", + ""); + I_Constructor2(IN, const osgWidget::Label &, x, IN, const osg::CopyOp &, x, + ____Label__C5_Label_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(void, parented, IN, osgWidget::Window *, x, + Properties::VIRTUAL, + __void__parented__Window_P1, + "", + ""); + I_Method1(void, unparented, IN, osgWidget::Window *, x, + Properties::VIRTUAL, + __void__unparented__Window_P1, + "", + ""); + I_Method1(void, managed, IN, osgWidget::WindowManager *, x, + Properties::VIRTUAL, + __void__managed__WindowManager_P1, + "", + ""); + I_Method0(void, positioned, + Properties::VIRTUAL, + __void__positioned, + "", + ""); + I_Method0(void, update, + Properties::NON_VIRTUAL, + __void__update, + "", + ""); + I_Method1(void, setLabel, IN, const std::string &, x, + Properties::NON_VIRTUAL, + __void__setLabel__C5_std_string_R1, + "", + ""); + I_Method1(void, setFont, IN, const std::string &, x, + Properties::NON_VIRTUAL, + __void__setFont__C5_std_string_R1, + "", + ""); + I_Method1(void, setFontSize, IN, unsigned, int, + Properties::NON_VIRTUAL, + __void__setFontSize__unsigned, + "", + ""); + I_Method1(void, setFontColor, IN, const osgWidget::Color &, x, + Properties::NON_VIRTUAL, + __void__setFontColor__C5_Color_R1, + "", + ""); + I_Method1(void, setShadow, IN, osgWidget::point_type, x, + Properties::NON_VIRTUAL, + __void__setShadow__point_type, + "", + ""); + I_Method0(osgWidget::XYCoord, getTextSize, + Properties::NON_VIRTUAL, + __XYCoord__getTextSize, + "", + ""); + I_Method0(std::string, getLabel, + Properties::NON_VIRTUAL, + __std_string__getLabel, + "", + ""); + I_Method4(void, setFontColor, IN, osgWidget::point_type, r, IN, osgWidget::point_type, g, IN, osgWidget::point_type, b, IN, osgWidget::point_type, a, + Properties::NON_VIRTUAL, + __void__setFontColor__point_type__point_type__point_type__point_type, + "", + ""); + I_Method0(const osgText::Text *, getText, + Properties::NON_VIRTUAL, + __C5_osgText_Text_P1__getText, + "", + ""); + I_ProtectedMethod1(void, _calculateSize, IN, const osgWidget::XYCoord &, x, + Properties::VIRTUAL, + Properties::NON_CONST, + __void___calculateSize__C5_XYCoord_R1, + "", + ""); + I_SimpleProperty(const std::string &, Font, + 0, + __void__setFont__C5_std_string_R1); + I_SimpleProperty(const osgWidget::Color &, FontColor, + 0, + __void__setFontColor__C5_Color_R1); + I_SimpleProperty(unsigned, FontSize, + 0, + __void__setFontSize__unsigned); + I_SimpleProperty(std::string, Label, + __std_string__getLabel, + __void__setLabel__C5_std_string_R1); + I_SimpleProperty(osgWidget::point_type, Shadow, + 0, + __void__setShadow__point_type); + I_SimpleProperty(const osgText::Text *, Text, + __C5_osgText_Text_P1__getText, + 0); + I_SimpleProperty(osgWidget::XYCoord, TextSize, + __XYCoord__getTextSize, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/osgWidget/StyleManager.cpp b/src/osgWrappers/osgWidget/StyleManager.cpp index 0afccce88..9580b5983 100644 --- a/src/osgWrappers/osgWidget/StyleManager.cpp +++ b/src/osgWrappers/osgWidget/StyleManager.cpp @@ -1,254 +1,254 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_OBJECT_REFLECTOR(osgWidget::Style) - I_DeclaringFile("osgWidget/StyleManager"); - I_BaseType(osg::Object); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __osg_Object_P1__cloneType, - "Clone the type of an object, with Object* return type. ", - "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::VIRTUAL, - __osg_Object_P1__clone__C5_osg_CopyOp_R1, - "Clone an object, with Object* return type. ", - "Must be defined by derived classes. "); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "return the name of the object's library. ", - "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "return the name of the object's class type. ", - "Must be defined by derived classes. "); - I_ConstructorWithDefaults2(IN, const std::string &, x, "", IN, const std::string &, x, "", - ____Style__C5_std_string_R1__C5_std_string_R1, - "", - ""); - I_Constructor2(IN, const osgWidget::Style &, x, IN, const osg::CopyOp &, x, - ____Style__C5_Style_R1__C5_osg_CopyOp_R1, - "", - ""); - I_Method2(bool, applyStyle, IN, osgWidget::Widget *, x, IN, osgWidget::Reader, x, - Properties::VIRTUAL, - __bool__applyStyle__Widget_P1__Reader, - "", - ""); - I_Method2(bool, applyStyle, IN, osgWidget::Label *, x, IN, osgWidget::Reader, x, - Properties::VIRTUAL, - __bool__applyStyle__Label_P1__Reader, - "", - ""); - I_Method2(bool, applyStyle, IN, osgWidget::Input *, x, IN, osgWidget::Reader, x, - Properties::VIRTUAL, - __bool__applyStyle__Input_P1__Reader, - "", - ""); - I_Method2(bool, applyStyle, IN, osgWidget::Window *, x, IN, osgWidget::Reader, x, - Properties::VIRTUAL, - __bool__applyStyle__Window_P1__Reader, - "", - ""); - I_Method2(bool, applyStyle, IN, osgWidget::Window::EmbeddedWindow *, x, IN, osgWidget::Reader, x, - Properties::VIRTUAL, - __bool__applyStyle__Window_EmbeddedWindow_P1__Reader, - "", - ""); - I_Method2(bool, applyStyle, IN, osgWidget::Box *, x, IN, osgWidget::Reader, x, - Properties::VIRTUAL, - __bool__applyStyle__Box_P1__Reader, - "", - ""); - I_Method2(bool, applyStyle, IN, osgWidget::Frame::Corner *, x, IN, osgWidget::Reader, x, - Properties::VIRTUAL, - __bool__applyStyle__Frame_Corner_P1__Reader, - "", - ""); - I_Method2(bool, applyStyle, IN, osgWidget::Frame::Border *, x, IN, osgWidget::Reader, x, - Properties::VIRTUAL, - __bool__applyStyle__Frame_Border_P1__Reader, - "", - ""); - I_Method1(void, setStyle, IN, const std::string &, style, - Properties::NON_VIRTUAL, - __void__setStyle__C5_std_string_R1, - "", - ""); - I_Method0(std::string &, getStyle, - Properties::NON_VIRTUAL, - __std_string_R1__getStyle, - "", - ""); - I_Method0(const std::string &, getStyle, - Properties::NON_VIRTUAL, - __C5_std_string_R1__getStyle, - "", - ""); - I_StaticMethod1(osgWidget::Widget::Layer, strToLayer, IN, const std::string &, x, - __Widget_Layer__strToLayer__C5_std_string_R1_S, - "", - ""); - I_StaticMethod1(osgWidget::Widget::VerticalAlignment, strToVAlign, IN, const std::string &, x, - __Widget_VerticalAlignment__strToVAlign__C5_std_string_R1_S, - "", - ""); - I_StaticMethod1(osgWidget::Widget::HorizontalAlignment, strToHAlign, IN, const std::string &, x, - __Widget_HorizontalAlignment__strToHAlign__C5_std_string_R1_S, - "", - ""); - I_StaticMethod1(osgWidget::Widget::CoordinateMode, strToCoordMode, IN, const std::string &, x, - __Widget_CoordinateMode__strToCoordMode__C5_std_string_R1_S, - "", - ""); - I_StaticMethod1(bool, strToFill, IN, const std::string &, x, - __bool__strToFill__C5_std_string_R1_S, - "", - ""); - I_ProtectedMethod2(bool, _match, IN, const char *, seq, IN, osgWidget::Reader, r, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __bool___match__C5_char_P1__Reader, - "", - ""); - I_SimpleProperty(const std::string &, Style, - __C5_std_string_R1__getStyle, - __void__setStyle__C5_std_string_R1); -END_REFLECTOR - -TYPE_NAME_ALIAS(std::map< std::string COMMA osg::ref_ptr< osgWidget::Style > >, osgWidget::StyleManager::Styles) - -TYPE_NAME_ALIAS(osgWidget::StyleManager::Styles::iterator, osgWidget::StyleManager::Iterator) - -TYPE_NAME_ALIAS(osgWidget::StyleManager::Styles::const_iterator, osgWidget::StyleManager::ConstIterator) - -BEGIN_OBJECT_REFLECTOR(osgWidget::StyleManager) - I_DeclaringFile("osgWidget/StyleManager"); - I_BaseType(osg::Object); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __osg_Object_P1__cloneType, - "Clone the type of an object, with Object* return type. ", - "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::VIRTUAL, - __osg_Object_P1__clone__C5_osg_CopyOp_R1, - "Clone an object, with Object* return type. ", - "Must be defined by derived classes. "); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "return the name of the object's library. ", - "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "return the name of the object's class type. ", - "Must be defined by derived classes. "); - I_Constructor0(____StyleManager, - "", - ""); - I_Constructor2(IN, const osgWidget::StyleManager &, x, IN, const osg::CopyOp &, x, - ____StyleManager__C5_StyleManager_R1__C5_osg_CopyOp_R1, - "", - ""); - I_Method1(bool, addStyle, IN, osgWidget::Style *, x, - Properties::NON_VIRTUAL, - __bool__addStyle__Style_P1, - "", - ""); - I_Method1(bool, applyStyles, IN, osgWidget::Widget *, widget, - Properties::NON_VIRTUAL, - __bool__applyStyles__Widget_P1, - "", - ""); - I_Method1(bool, applyStyles, IN, osgWidget::Window *, window, - Properties::NON_VIRTUAL, - __bool__applyStyles__Window_P1, - "", - ""); -END_REFLECTOR - -TYPE_NAME_ALIAS(osgDB::FieldReaderIterator &, osgWidget::Reader) - -BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgWidget::Style >) - I_DeclaringFile("osg/ref_ptr"); - I_Constructor0(____ref_ptr, - "", - ""); - I_Constructor1(IN, osgWidget::Style *, ptr, - Properties::NON_EXPLICIT, - ____ref_ptr__T_P1, - "", - ""); - I_Constructor1(IN, const osg::ref_ptr< osgWidget::Style > &, rp, - Properties::NON_EXPLICIT, - ____ref_ptr__C5_ref_ptr_R1, - "", - ""); - I_Method0(osgWidget::Style *, get, - Properties::NON_VIRTUAL, - __T_P1__get, - "", - ""); - I_Method0(bool, valid, - Properties::NON_VIRTUAL, - __bool__valid, - "", - ""); - I_Method0(osgWidget::Style *, release, - Properties::NON_VIRTUAL, - __T_P1__release, - "", - ""); - I_Method1(void, swap, IN, osg::ref_ptr< osgWidget::Style > &, rp, - Properties::NON_VIRTUAL, - __void__swap__ref_ptr_R1, - "", - ""); - I_SimpleProperty(osgWidget::Style *, , - __T_P1__get, - 0); -END_REFLECTOR - -STD_MAP_REFLECTOR(std::map< std::string COMMA osg::ref_ptr< osgWidget::Style > >) - +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgWidget::Style) + I_DeclaringFile("osgWidget/StyleManager"); + I_BaseType(osg::Object); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_ConstructorWithDefaults2(IN, const std::string &, x, "", IN, const std::string &, x, "", + ____Style__C5_std_string_R1__C5_std_string_R1, + "", + ""); + I_Constructor2(IN, const osgWidget::Style &, x, IN, const osg::CopyOp &, x, + ____Style__C5_Style_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method2(bool, applyStyle, IN, osgWidget::Widget *, x, IN, osgWidget::Reader, x, + Properties::VIRTUAL, + __bool__applyStyle__Widget_P1__Reader, + "", + ""); + I_Method2(bool, applyStyle, IN, osgWidget::Label *, x, IN, osgWidget::Reader, x, + Properties::VIRTUAL, + __bool__applyStyle__Label_P1__Reader, + "", + ""); + I_Method2(bool, applyStyle, IN, osgWidget::Input *, x, IN, osgWidget::Reader, x, + Properties::VIRTUAL, + __bool__applyStyle__Input_P1__Reader, + "", + ""); + I_Method2(bool, applyStyle, IN, osgWidget::Window *, x, IN, osgWidget::Reader, x, + Properties::VIRTUAL, + __bool__applyStyle__Window_P1__Reader, + "", + ""); + I_Method2(bool, applyStyle, IN, osgWidget::Window::EmbeddedWindow *, x, IN, osgWidget::Reader, x, + Properties::VIRTUAL, + __bool__applyStyle__Window_EmbeddedWindow_P1__Reader, + "", + ""); + I_Method2(bool, applyStyle, IN, osgWidget::Box *, x, IN, osgWidget::Reader, x, + Properties::VIRTUAL, + __bool__applyStyle__Box_P1__Reader, + "", + ""); + I_Method2(bool, applyStyle, IN, osgWidget::Frame::Corner *, x, IN, osgWidget::Reader, x, + Properties::VIRTUAL, + __bool__applyStyle__Frame_Corner_P1__Reader, + "", + ""); + I_Method2(bool, applyStyle, IN, osgWidget::Frame::Border *, x, IN, osgWidget::Reader, x, + Properties::VIRTUAL, + __bool__applyStyle__Frame_Border_P1__Reader, + "", + ""); + I_Method1(void, setStyle, IN, const std::string &, style, + Properties::NON_VIRTUAL, + __void__setStyle__C5_std_string_R1, + "", + ""); + I_Method0(std::string &, getStyle, + Properties::NON_VIRTUAL, + __std_string_R1__getStyle, + "", + ""); + I_Method0(const std::string &, getStyle, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getStyle, + "", + ""); + I_StaticMethod1(osgWidget::Widget::Layer, strToLayer, IN, const std::string &, x, + __Widget_Layer__strToLayer__C5_std_string_R1_S, + "", + ""); + I_StaticMethod1(osgWidget::Widget::VerticalAlignment, strToVAlign, IN, const std::string &, x, + __Widget_VerticalAlignment__strToVAlign__C5_std_string_R1_S, + "", + ""); + I_StaticMethod1(osgWidget::Widget::HorizontalAlignment, strToHAlign, IN, const std::string &, x, + __Widget_HorizontalAlignment__strToHAlign__C5_std_string_R1_S, + "", + ""); + I_StaticMethod1(osgWidget::Widget::CoordinateMode, strToCoordMode, IN, const std::string &, x, + __Widget_CoordinateMode__strToCoordMode__C5_std_string_R1_S, + "", + ""); + I_StaticMethod1(bool, strToFill, IN, const std::string &, x, + __bool__strToFill__C5_std_string_R1_S, + "", + ""); + I_ProtectedMethod2(bool, _match, IN, const char *, seq, IN, osgWidget::Reader, r, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __bool___match__C5_char_P1__Reader, + "", + ""); + I_SimpleProperty(const std::string &, Style, + __C5_std_string_R1__getStyle, + __void__setStyle__C5_std_string_R1); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::map< std::string COMMA osg::ref_ptr< osgWidget::Style > >, osgWidget::StyleManager::Styles) + +TYPE_NAME_ALIAS(osgWidget::StyleManager::Styles::iterator, osgWidget::StyleManager::Iterator) + +TYPE_NAME_ALIAS(osgWidget::StyleManager::Styles::const_iterator, osgWidget::StyleManager::ConstIterator) + +BEGIN_OBJECT_REFLECTOR(osgWidget::StyleManager) + I_DeclaringFile("osgWidget/StyleManager"); + I_BaseType(osg::Object); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Constructor0(____StyleManager, + "", + ""); + I_Constructor2(IN, const osgWidget::StyleManager &, x, IN, const osg::CopyOp &, x, + ____StyleManager__C5_StyleManager_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, addStyle, IN, osgWidget::Style *, x, + Properties::NON_VIRTUAL, + __bool__addStyle__Style_P1, + "", + ""); + I_Method1(bool, applyStyles, IN, osgWidget::Widget *, widget, + Properties::NON_VIRTUAL, + __bool__applyStyles__Widget_P1, + "", + ""); + I_Method1(bool, applyStyles, IN, osgWidget::Window *, window, + Properties::NON_VIRTUAL, + __bool__applyStyles__Window_P1, + "", + ""); +END_REFLECTOR + +TYPE_NAME_ALIAS(osgDB::FieldReaderIterator &, osgWidget::Reader) + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgWidget::Style >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osgWidget::Style *, ptr, + Properties::NON_EXPLICIT, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osgWidget::Style > &, rp, + Properties::NON_EXPLICIT, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osgWidget::Style *, get, + Properties::NON_VIRTUAL, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(osgWidget::Style *, release, + Properties::NON_VIRTUAL, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osgWidget::Style > &, rp, + Properties::NON_VIRTUAL, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osgWidget::Style *, , + __T_P1__get, + 0); +END_REFLECTOR + +STD_MAP_REFLECTOR(std::map< std::string COMMA osg::ref_ptr< osgWidget::Style > >) + diff --git a/src/osgWrappers/osgWidget/ViewerEventHandlers.cpp b/src/osgWrappers/osgWidget/ViewerEventHandlers.cpp index 8a1302287..c5bee312c 100644 --- a/src/osgWrappers/osgWidget/ViewerEventHandlers.cpp +++ b/src/osgWrappers/osgWidget/ViewerEventHandlers.cpp @@ -1,120 +1,120 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_OBJECT_REFLECTOR(osgWidget::KeyboardHandler) - I_DeclaringFile("osgWidget/ViewerEventHandlers"); - I_BaseType(osgGA::GUIEventHandler); - I_Constructor1(IN, osgWidget::WindowManager *, x, - Properties::NON_EXPLICIT, - ____KeyboardHandler__WindowManager_P1, - "", - ""); - I_Method4(bool, handle, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x, IN, osg::Object *, x, IN, osg::NodeVisitor *, x, - Properties::VIRTUAL, - __bool__handle__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1__osg_Object_P1__osg_NodeVisitor_P1, - "Handle events, return true if handled, false otherwise. ", - ""); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(osgWidget::MouseHandler) - I_DeclaringFile("osgWidget/ViewerEventHandlers"); - I_BaseType(osgGA::GUIEventHandler); - I_Constructor1(IN, osgWidget::WindowManager *, x, - Properties::NON_EXPLICIT, - ____MouseHandler__WindowManager_P1, - "", - ""); - I_Method4(bool, handle, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x, IN, osg::Object *, x, IN, osg::NodeVisitor *, x, - Properties::VIRTUAL, - __bool__handle__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1__osg_Object_P1__osg_NodeVisitor_P1, - "Handle events, return true if handled, false otherwise. ", - ""); - I_ProtectedMethod3(bool, _handleMousePush, IN, float, x, IN, float, x, IN, int, x, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __bool___handleMousePush__float__float__int, - "", - ""); - I_ProtectedMethod3(bool, _handleMouseRelease, IN, float, x, IN, float, x, IN, int, x, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __bool___handleMouseRelease__float__float__int, - "", - ""); - I_ProtectedMethod3(bool, _handleMouseDoubleClick, IN, float, x, IN, float, x, IN, int, x, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __bool___handleMouseDoubleClick__float__float__int, - "", - ""); - I_ProtectedMethod3(bool, _handleMouseDrag, IN, float, x, IN, float, x, IN, int, x, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __bool___handleMouseDrag__float__float__int, - "", - ""); - I_ProtectedMethod3(bool, _handleMouseMove, IN, float, x, IN, float, x, IN, int, x, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __bool___handleMouseMove__float__float__int, - "", - ""); - I_ProtectedMethod3(bool, _handleMouseScroll, IN, float, x, IN, float, x, IN, int, x, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __bool___handleMouseScroll__float__float__int, - "", - ""); - I_ProtectedMethod1(MouseAction, _isMouseEvent, IN, osgGA::GUIEventAdapter::EventType, x, - Properties::NON_VIRTUAL, - Properties::CONST, - __MouseAction___isMouseEvent__osgGA_GUIEventAdapter_EventType, - "", - ""); - I_ProtectedMethod3(bool, _doMouseEvent, IN, float, x, IN, float, x, IN, MouseEvent, x, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __bool___doMouseEvent__float__float__MouseEvent, - "", - ""); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(osgWidget::ResizeHandler) - I_DeclaringFile("osgWidget/ViewerEventHandlers"); - I_BaseType(osgGA::GUIEventHandler); - I_Constructor2(IN, osgWidget::WindowManager *, x, IN, osg::Camera *, x, - ____ResizeHandler__WindowManager_P1__osg_Camera_P1, - "", - ""); - I_Method4(bool, handle, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x, IN, osg::Object *, x, IN, osg::NodeVisitor *, x, - Properties::VIRTUAL, - __bool__handle__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1__osg_Object_P1__osg_NodeVisitor_P1, - "Handle events, return true if handled, false otherwise. ", - ""); -END_REFLECTOR - +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgWidget::KeyboardHandler) + I_DeclaringFile("osgWidget/ViewerEventHandlers"); + I_BaseType(osgGA::GUIEventHandler); + I_Constructor1(IN, osgWidget::WindowManager *, x, + Properties::NON_EXPLICIT, + ____KeyboardHandler__WindowManager_P1, + "", + ""); + I_Method4(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa, IN, osg::Object *, x, IN, osg::NodeVisitor *, x, + Properties::VIRTUAL, + __bool__handle__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1__osg_Object_P1__osg_NodeVisitor_P1, + "Handle events, return true if handled, false otherwise. ", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgWidget::MouseHandler) + I_DeclaringFile("osgWidget/ViewerEventHandlers"); + I_BaseType(osgGA::GUIEventHandler); + I_Constructor1(IN, osgWidget::WindowManager *, x, + Properties::NON_EXPLICIT, + ____MouseHandler__WindowManager_P1, + "", + ""); + I_Method4(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa, IN, osg::Object *, x, IN, osg::NodeVisitor *, x, + Properties::VIRTUAL, + __bool__handle__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1__osg_Object_P1__osg_NodeVisitor_P1, + "Handle events, return true if handled, false otherwise. ", + ""); + I_ProtectedMethod3(bool, _handleMousePush, IN, float, x, IN, float, x, IN, int, x, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __bool___handleMousePush__float__float__int, + "", + ""); + I_ProtectedMethod3(bool, _handleMouseRelease, IN, float, x, IN, float, x, IN, int, x, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __bool___handleMouseRelease__float__float__int, + "", + ""); + I_ProtectedMethod3(bool, _handleMouseDoubleClick, IN, float, x, IN, float, x, IN, int, x, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __bool___handleMouseDoubleClick__float__float__int, + "", + ""); + I_ProtectedMethod3(bool, _handleMouseDrag, IN, float, x, IN, float, x, IN, int, x, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __bool___handleMouseDrag__float__float__int, + "", + ""); + I_ProtectedMethod3(bool, _handleMouseMove, IN, float, x, IN, float, x, IN, int, x, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __bool___handleMouseMove__float__float__int, + "", + ""); + I_ProtectedMethod3(bool, _handleMouseScroll, IN, float, x, IN, float, x, IN, int, x, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __bool___handleMouseScroll__float__float__int, + "", + ""); + I_ProtectedMethod1(MouseAction, _isMouseEvent, IN, osgGA::GUIEventAdapter::EventType, x, + Properties::NON_VIRTUAL, + Properties::CONST, + __MouseAction___isMouseEvent__osgGA_GUIEventAdapter_EventType, + "", + ""); + I_ProtectedMethod3(bool, _doMouseEvent, IN, float, x, IN, float, x, IN, MouseEvent, x, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __bool___doMouseEvent__float__float__MouseEvent, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgWidget::ResizeHandler) + I_DeclaringFile("osgWidget/ViewerEventHandlers"); + I_BaseType(osgGA::GUIEventHandler); + I_Constructor2(IN, osgWidget::WindowManager *, x, IN, osg::Camera *, x, + ____ResizeHandler__WindowManager_P1__osg_Camera_P1, + "", + ""); + I_Method4(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa, IN, osg::Object *, x, IN, osg::NodeVisitor *, x, + Properties::VIRTUAL, + __bool__handle__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1__osg_Object_P1__osg_NodeVisitor_P1, + "Handle events, return true if handled, false otherwise. ", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/osgWidget/Widget.cpp b/src/osgWrappers/osgWidget/Widget.cpp index f46f8a753..b5e01c72d 100644 --- a/src/osgWrappers/osgWidget/Widget.cpp +++ b/src/osgWrappers/osgWidget/Widget.cpp @@ -1,983 +1,983 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_OBJECT_REFLECTOR(osgWidget::NotifyWidget) - I_DeclaringFile("osgWidget/Widget"); - I_BaseType(osgWidget::Widget); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __osg_Object_P1__cloneType, - "Clone the type of an object, with Object* return type. ", - "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::VIRTUAL, - __osg_Object_P1__clone__C5_osg_CopyOp_R1, - "Clone an object, with Object* return type. ", - "Must be defined by derived classes. "); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "return the name of the object's library. ", - "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "return the name of the object's class type. ", - "Must be defined by derived classes. "); - I_ConstructorWithDefaults3(IN, const std::string &, n, "", IN, osgWidget::point_type, w, 0.0f, IN, osgWidget::point_type, h, 0.0f, - ____NotifyWidget__C5_std_string_R1__point_type__point_type, - "", - ""); - I_Constructor2(IN, const osgWidget::NotifyWidget &, widget, IN, const osg::CopyOp &, co, - ____NotifyWidget__C5_NotifyWidget_R1__C5_osg_CopyOp_R1, - "", - ""); - I_Method1(bool, focus, IN, const osgWidget::WindowManager *, x, - Properties::NON_VIRTUAL, - __bool__focus__C5_WindowManager_P1, - "", - ""); - I_Method1(bool, unfocus, IN, const osgWidget::WindowManager *, x, - Properties::NON_VIRTUAL, - __bool__unfocus__C5_WindowManager_P1, - "", - ""); - I_Method3(bool, mouseEnter, IN, double, x, IN, double, x, IN, const osgWidget::WindowManager *, x, - Properties::NON_VIRTUAL, - __bool__mouseEnter__double__double__C5_WindowManager_P1, - "", - ""); - I_Method3(bool, mouseOver, IN, double, x, IN, double, x, IN, const osgWidget::WindowManager *, x, - Properties::NON_VIRTUAL, - __bool__mouseOver__double__double__C5_WindowManager_P1, - "", - ""); - I_Method3(bool, mouseLeave, IN, double, x, IN, double, x, IN, const osgWidget::WindowManager *, x, - Properties::NON_VIRTUAL, - __bool__mouseLeave__double__double__C5_WindowManager_P1, - "", - ""); - I_Method3(bool, mouseDrag, IN, double, x, IN, double, x, IN, const osgWidget::WindowManager *, x, - Properties::NON_VIRTUAL, - __bool__mouseDrag__double__double__C5_WindowManager_P1, - "", - ""); - I_Method3(bool, mousePush, IN, double, x, IN, double, x, IN, const osgWidget::WindowManager *, x, - Properties::NON_VIRTUAL, - __bool__mousePush__double__double__C5_WindowManager_P1, - "", - ""); - I_Method3(bool, mouseRelease, IN, double, x, IN, double, x, IN, const osgWidget::WindowManager *, x, - Properties::NON_VIRTUAL, - __bool__mouseRelease__double__double__C5_WindowManager_P1, - "", - ""); - I_Method3(bool, mouseScroll, IN, double, x, IN, double, x, IN, const osgWidget::WindowManager *, x, - Properties::NON_VIRTUAL, - __bool__mouseScroll__double__double__C5_WindowManager_P1, - "", - ""); - I_Method3(bool, keyPress, IN, int, x, IN, int, x, IN, const osgWidget::WindowManager *, x, - Properties::NON_VIRTUAL, - __bool__keyPress__int__int__C5_WindowManager_P1, - "", - ""); - I_Method3(bool, keyRelease, IN, int, x, IN, int, x, IN, const osgWidget::WindowManager *, x, - Properties::NON_VIRTUAL, - __bool__keyRelease__int__int__C5_WindowManager_P1, - "", - ""); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(osgWidget::NullWidget) - I_DeclaringFile("osgWidget/Widget"); - I_BaseType(osgWidget::Widget); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __osg_Object_P1__cloneType, - "Clone the type of an object, with Object* return type. ", - "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::VIRTUAL, - __osg_Object_P1__clone__C5_osg_CopyOp_R1, - "Clone an object, with Object* return type. ", - "Must be defined by derived classes. "); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "return the name of the object's library. ", - "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "return the name of the object's class type. ", - "Must be defined by derived classes. "); - I_ConstructorWithDefaults3(IN, const std::string &, n, "", IN, osgWidget::point_type, w, 0.0f, IN, osgWidget::point_type, h, 0.0f, - ____NullWidget__C5_std_string_R1__point_type__point_type, - "", - ""); - I_Constructor2(IN, const osgWidget::NullWidget &, widget, IN, const osg::CopyOp &, co, - ____NullWidget__C5_NullWidget_R1__C5_osg_CopyOp_R1, - "", - ""); - I_Method1(bool, focus, IN, const osgWidget::WindowManager *, x, - Properties::NON_VIRTUAL, - __bool__focus__C5_WindowManager_P1, - "", - ""); - I_Method1(bool, unfocus, IN, const osgWidget::WindowManager *, x, - Properties::NON_VIRTUAL, - __bool__unfocus__C5_WindowManager_P1, - "", - ""); - I_Method3(bool, mouseEnter, IN, double, x, IN, double, x, IN, const osgWidget::WindowManager *, x, - Properties::NON_VIRTUAL, - __bool__mouseEnter__double__double__C5_WindowManager_P1, - "", - ""); - I_Method3(bool, mouseOver, IN, double, x, IN, double, x, IN, const osgWidget::WindowManager *, x, - Properties::NON_VIRTUAL, - __bool__mouseOver__double__double__C5_WindowManager_P1, - "", - ""); - I_Method3(bool, mouseLeave, IN, double, x, IN, double, x, IN, const osgWidget::WindowManager *, x, - Properties::NON_VIRTUAL, - __bool__mouseLeave__double__double__C5_WindowManager_P1, - "", - ""); - I_Method3(bool, mouseDrag, IN, double, x, IN, double, x, IN, const osgWidget::WindowManager *, x, - Properties::NON_VIRTUAL, - __bool__mouseDrag__double__double__C5_WindowManager_P1, - "", - ""); - I_Method3(bool, mousePush, IN, double, x, IN, double, x, IN, const osgWidget::WindowManager *, x, - Properties::NON_VIRTUAL, - __bool__mousePush__double__double__C5_WindowManager_P1, - "", - ""); - I_Method3(bool, mouseRelease, IN, double, x, IN, double, x, IN, const osgWidget::WindowManager *, x, - Properties::NON_VIRTUAL, - __bool__mouseRelease__double__double__C5_WindowManager_P1, - "", - ""); - I_Method3(bool, mouseScroll, IN, double, x, IN, double, x, IN, const osgWidget::WindowManager *, x, - Properties::NON_VIRTUAL, - __bool__mouseScroll__double__double__C5_WindowManager_P1, - "", - ""); - I_Method3(bool, keyPress, IN, int, x, IN, int, x, IN, const osgWidget::WindowManager *, x, - Properties::NON_VIRTUAL, - __bool__keyPress__int__int__C5_WindowManager_P1, - "", - ""); - I_Method3(bool, keyRelease, IN, int, x, IN, int, x, IN, const osgWidget::WindowManager *, x, - Properties::NON_VIRTUAL, - __bool__keyRelease__int__int__C5_WindowManager_P1, - "", - ""); -END_REFLECTOR - -BEGIN_ENUM_REFLECTOR(osgWidget::Widget::Corner) - I_DeclaringFile("osgWidget/Widget"); - I_EnumLabel(osgWidget::Widget::LOWER_LEFT); - I_EnumLabel(osgWidget::Widget::LOWER_RIGHT); - I_EnumLabel(osgWidget::Widget::UPPER_RIGHT); - I_EnumLabel(osgWidget::Widget::UPPER_LEFT); - I_EnumLabel(osgWidget::Widget::LL); - I_EnumLabel(osgWidget::Widget::LR); - I_EnumLabel(osgWidget::Widget::UR); - I_EnumLabel(osgWidget::Widget::UL); - I_EnumLabel(osgWidget::Widget::ALL_CORNERS); -END_REFLECTOR - -BEGIN_ENUM_REFLECTOR(osgWidget::Widget::Layer) - I_DeclaringFile("osgWidget/Widget"); - I_EnumLabel(osgWidget::Widget::LAYER_TOP); - I_EnumLabel(osgWidget::Widget::LAYER_HIGH); - I_EnumLabel(osgWidget::Widget::LAYER_MIDDLE); - I_EnumLabel(osgWidget::Widget::LAYER_LOW); - I_EnumLabel(osgWidget::Widget::LAYER_BG); -END_REFLECTOR - -BEGIN_ENUM_REFLECTOR(osgWidget::Widget::VerticalAlignment) - I_DeclaringFile("osgWidget/Widget"); - I_EnumLabel(osgWidget::Widget::VA_CENTER); - I_EnumLabel(osgWidget::Widget::VA_TOP); - I_EnumLabel(osgWidget::Widget::VA_BOTTOM); -END_REFLECTOR - -BEGIN_ENUM_REFLECTOR(osgWidget::Widget::HorizontalAlignment) - I_DeclaringFile("osgWidget/Widget"); - I_EnumLabel(osgWidget::Widget::HA_CENTER); - I_EnumLabel(osgWidget::Widget::HA_LEFT); - I_EnumLabel(osgWidget::Widget::HA_RIGHT); -END_REFLECTOR - -BEGIN_ENUM_REFLECTOR(osgWidget::Widget::CoordinateMode) - I_DeclaringFile("osgWidget/Widget"); - I_EnumLabel(osgWidget::Widget::CM_ABSOLUTE); - I_EnumLabel(osgWidget::Widget::CM_RELATIVE); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(osgWidget::Widget) - I_DeclaringFile("osgWidget/Widget"); - I_BaseType(osg::Geometry); - I_BaseType(osgWidget::EventInterface); - I_BaseType(osgWidget::StyleInterface); - I_ConstructorWithDefaults3(IN, const std::string &, x, "", IN, osgWidget::point_type, x, 0.0f, IN, osgWidget::point_type, x, 0.0f, - ____Widget__C5_std_string_R1__point_type__point_type, - "", - ""); - I_Constructor2(IN, const osgWidget::Widget &, x, IN, const osg::CopyOp &, x, - ____Widget__C5_Widget_R1__C5_osg_CopyOp_R1, - "", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __osg_Object_P1__cloneType, - "Clone the type of an object, with Object* return type. ", - "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::VIRTUAL, - __osg_Object_P1__clone__C5_osg_CopyOp_R1, - "Clone an object, with Object* return type. ", - "Must be defined by derived classes. "); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "return the name of the object's library. ", - "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "return the name of the object's class type. ", - "Must be defined by derived classes. "); - I_Method1(, META_UIObject, IN, osgWidget::Widget, x, - Properties::NON_VIRTUAL, - ____META_UIObject__Widget, - "", - ""); - I_Method1(void, parented, IN, osgWidget::Window *, x, - Properties::VIRTUAL, - __void__parented__Window_P1, - "", - ""); - I_Method1(void, unparented, IN, osgWidget::Window *, x, - Properties::VIRTUAL, - __void__unparented__Window_P1, - "", - ""); - I_Method1(void, managed, IN, osgWidget::WindowManager *, x, - Properties::VIRTUAL, - __void__managed__WindowManager_P1, - "", - ""); - I_Method1(void, unmanaged, IN, osgWidget::WindowManager *, x, - Properties::VIRTUAL, - __void__unmanaged__WindowManager_P1, - "", - ""); - I_Method0(void, positioned, - Properties::VIRTUAL, - __void__positioned, - "", - ""); - I_MethodWithDefaults5(void, setDimensions, IN, osgWidget::point_type, x, -1.0f, IN, osgWidget::point_type, x, -1.0f, IN, osgWidget::point_type, x, -1.0f, IN, osgWidget::point_type, x, -1.0f, IN, osgWidget::point_type, x, -1.0f, - Properties::NON_VIRTUAL, - __void__setDimensions__point_type__point_type__point_type__point_type__point_type, - "", - ""); - I_Method1(void, setPadding, IN, osgWidget::point_type, x, - Properties::NON_VIRTUAL, - __void__setPadding__point_type, - "", - ""); - I_MethodWithDefaults5(void, setColor, IN, osgWidget::color_type, x, , IN, osgWidget::color_type, x, , IN, osgWidget::color_type, x, , IN, osgWidget::color_type, x, , IN, osgWidget::Widget::Corner, x, osgWidget::Widget::ALL_CORNERS, - Properties::NON_VIRTUAL, - __void__setColor__color_type__color_type__color_type__color_type__Corner, - "", - ""); - I_MethodWithDefaults5(void, addColor, IN, osgWidget::color_type, x, , IN, osgWidget::color_type, x, , IN, osgWidget::color_type, x, , IN, osgWidget::color_type, x, , IN, osgWidget::Widget::Corner, x, osgWidget::Widget::ALL_CORNERS, - Properties::NON_VIRTUAL, - __void__addColor__color_type__color_type__color_type__color_type__Corner, - "", - ""); - I_MethodWithDefaults3(void, setTexCoord, IN, osgWidget::texcoord_type, x, , IN, osgWidget::texcoord_type, x, , IN, osgWidget::Widget::Corner, x, osgWidget::Widget::ALL_CORNERS, - Properties::NON_VIRTUAL, - __void__setTexCoord__texcoord_type__texcoord_type__Corner, - "", - ""); - I_Method4(void, setTexCoordRegion, IN, osgWidget::point_type, x, IN, osgWidget::point_type, x, IN, osgWidget::point_type, x, IN, osgWidget::point_type, x, - Properties::NON_VIRTUAL, - __void__setTexCoordRegion__point_type__point_type__point_type__point_type, - "", - ""); - I_Method0(void, setTexCoordWrapHorizontal, - Properties::NON_VIRTUAL, - __void__setTexCoordWrapHorizontal, - "", - ""); - I_Method0(void, setTexCoordWrapVertical, - Properties::NON_VIRTUAL, - __void__setTexCoordWrapVertical, - "", - ""); - I_MethodWithDefaults2(bool, setImage, IN, osg::Image *, x, , IN, bool, x, false, - Properties::NON_VIRTUAL, - __bool__setImage__osg_Image_P1__bool, - "", - ""); - I_MethodWithDefaults2(bool, setImage, IN, const std::string &, x, , IN, bool, x, false, - Properties::NON_VIRTUAL, - __bool__setImage__C5_std_string_R1__bool, - "", - ""); - I_Method1(void, addX, IN, osgWidget::point_type, x, - Properties::NON_VIRTUAL, - __void__addX__point_type, - "", - ""); - I_Method1(void, addY, IN, osgWidget::point_type, x, - Properties::NON_VIRTUAL, - __void__addY__point_type, - "", - ""); - I_Method1(void, addWidth, IN, osgWidget::point_type, x, - Properties::NON_VIRTUAL, - __void__addWidth__point_type, - "", - ""); - I_Method1(void, addHeight, IN, osgWidget::point_type, x, - Properties::NON_VIRTUAL, - __void__addHeight__point_type, - "", - ""); - I_Method2(void, addOrigin, IN, osgWidget::point_type, x, IN, osgWidget::point_type, x, - Properties::NON_VIRTUAL, - __void__addOrigin__point_type__point_type, - "", - ""); - I_Method2(void, addSize, IN, osgWidget::point_type, x, IN, osgWidget::point_type, x, - Properties::NON_VIRTUAL, - __void__addSize__point_type__point_type, - "", - ""); - I_Method0(osgWidget::point_type, getWidth, - Properties::NON_VIRTUAL, - __point_type__getWidth, - "", - ""); - I_Method0(osgWidget::point_type, getHeight, - Properties::NON_VIRTUAL, - __point_type__getHeight, - "", - ""); - I_Method0(osgWidget::point_type, getX, - Properties::NON_VIRTUAL, - __point_type__getX, - "", - ""); - I_Method0(osgWidget::point_type, getY, - Properties::NON_VIRTUAL, - __point_type__getY, - "", - ""); - I_Method0(osgWidget::point_type, getZ, - Properties::NON_VIRTUAL, - __point_type__getZ, - "", - ""); - I_Method0(osgWidget::point_type, getPadHorizontal, - Properties::NON_VIRTUAL, - __point_type__getPadHorizontal, - "", - ""); - I_Method0(osgWidget::point_type, getPadVertical, - Properties::NON_VIRTUAL, - __point_type__getPadVertical, - "", - ""); - I_MethodWithDefaults1(const osgWidget::Point &, getPoint, IN, osgWidget::Widget::Corner, x, osgWidget::Widget::ALL_CORNERS, - Properties::NON_VIRTUAL, - __C5_Point_R1__getPoint__Corner, - "", - ""); - I_MethodWithDefaults1(const osgWidget::Color &, getColor, IN, osgWidget::Widget::Corner, x, osgWidget::Widget::ALL_CORNERS, - Properties::NON_VIRTUAL, - __C5_Color_R1__getColor__Corner, - "", - ""); - I_MethodWithDefaults1(const osgWidget::TexCoord &, getTexCoord, IN, osgWidget::Widget::Corner, x, osgWidget::Widget::ALL_CORNERS, - Properties::NON_VIRTUAL, - __C5_TexCoord_R1__getTexCoord__Corner, - "", - ""); - I_Method1(osgWidget::Widget::Corner, convertCorner, IN, osgWidget::Widget::Corner, x, - Properties::NON_VIRTUAL, - __Corner__convertCorner__Corner, - "", - ""); - I_Method2(osgWidget::Color, getImageColorAtXY, IN, osgWidget::point_type, x, IN, osgWidget::point_type, y, - Properties::NON_VIRTUAL, - __Color__getImageColorAtXY__point_type__point_type, - "", - ""); - I_Method2(osgWidget::XYCoord, localXY, IN, double, x, IN, double, x, - Properties::NON_VIRTUAL, - __XYCoord__localXY__double__double, - "", - ""); - I_Method0(bool, isPaddingUniform, - Properties::NON_VIRTUAL, - __bool__isPaddingUniform, - "", - ""); - I_Method0(bool, isManaged, - Properties::NON_VIRTUAL, - __bool__isManaged, - "", - ""); - I_Method0(bool, isStyled, - Properties::NON_VIRTUAL, - __bool__isStyled, - "", - ""); - I_MethodWithDefaults2(void, setDimensions, IN, const osgWidget::Quad &, q, , IN, osgWidget::point_type, z, -1.0f, - Properties::NON_VIRTUAL, - __void__setDimensions__C5_Quad_R1__point_type, - "", - ""); - I_Method1(void, setX, IN, osgWidget::point_type, x, - Properties::NON_VIRTUAL, - __void__setX__point_type, - "", - ""); - I_Method1(void, setY, IN, osgWidget::point_type, y, - Properties::NON_VIRTUAL, - __void__setY__point_type, - "", - ""); - I_Method1(void, setZ, IN, osgWidget::point_type, z, - Properties::NON_VIRTUAL, - __void__setZ__point_type, - "", - ""); - I_Method1(void, setWidth, IN, osgWidget::point_type, w, - Properties::NON_VIRTUAL, - __void__setWidth__point_type, - "", - ""); - I_Method1(void, setHeight, IN, osgWidget::point_type, h, - Properties::NON_VIRTUAL, - __void__setHeight__point_type, - "", - ""); - I_Method2(void, setOrigin, IN, osgWidget::point_type, x, IN, osgWidget::point_type, y, - Properties::NON_VIRTUAL, - __void__setOrigin__point_type__point_type, - "", - ""); - I_Method1(void, setOrigin, IN, const osgWidget::XYCoord &, xy, - Properties::NON_VIRTUAL, - __void__setOrigin__C5_XYCoord_R1, - "", - ""); - I_Method2(void, setSize, IN, osgWidget::point_type, w, IN, osgWidget::point_type, h, - Properties::NON_VIRTUAL, - __void__setSize__point_type__point_type, - "", - ""); - I_Method1(void, setSize, IN, const osgWidget::XYCoord &, xy, - Properties::NON_VIRTUAL, - __void__setSize__C5_XYCoord_R1, - "", - ""); - I_MethodWithDefaults2(void, setColor, IN, const osgWidget::Color &, col, , IN, osgWidget::Widget::Corner, p, osgWidget::Widget::ALL_CORNERS, - Properties::NON_VIRTUAL, - __void__setColor__C5_Color_R1__Corner, - "", - ""); - I_MethodWithDefaults2(void, setTexCoord, IN, const osgWidget::XYCoord &, xy, , IN, osgWidget::Widget::Corner, p, osgWidget::Widget::ALL_CORNERS, - Properties::NON_VIRTUAL, - __void__setTexCoord__C5_XYCoord_R1__Corner, - "", - ""); - I_Method3(void, setTexCoordRegion, IN, const osgWidget::XYCoord &, xy, IN, osgWidget::point_type, w, IN, osgWidget::point_type, h, - Properties::NON_VIRTUAL, - __void__setTexCoordRegion__C5_XYCoord_R1__point_type__point_type, - "", - ""); - I_MethodWithDefaults2(void, addColor, IN, const osgWidget::Color &, col, , IN, osgWidget::Widget::Corner, p, osgWidget::Widget::ALL_CORNERS, - Properties::NON_VIRTUAL, - __void__addColor__C5_Color_R1__Corner, - "", - ""); - I_Method1(void, addOrigin, IN, const osgWidget::XYCoord &, xy, - Properties::NON_VIRTUAL, - __void__addOrigin__C5_XYCoord_R1, - "", - ""); - I_Method1(void, addSize, IN, const osgWidget::XYCoord &, xy, - Properties::NON_VIRTUAL, - __void__addSize__C5_XYCoord_R1, - "", - ""); - I_Method2(void, setMinimumSize, IN, osgWidget::point_type, width, IN, osgWidget::point_type, height, - Properties::NON_VIRTUAL, - __void__setMinimumSize__point_type__point_type, - "", - ""); - I_Method1(void, setMinimumSize, IN, const osgWidget::XYCoord &, xy, - Properties::NON_VIRTUAL, - __void__setMinimumSize__C5_XYCoord_R1, - "", - ""); - I_MethodWithDefaults2(void, setLayer, IN, osgWidget::Widget::Layer, l, , IN, unsigned int, offset, 0, - Properties::NON_VIRTUAL, - __void__setLayer__Layer__unsigned_int, - "", - ""); - I_Method1(void, setPadLeft, IN, osgWidget::point_type, p, - Properties::NON_VIRTUAL, - __void__setPadLeft__point_type, - "", - ""); - I_Method1(void, setPadRight, IN, osgWidget::point_type, p, - Properties::NON_VIRTUAL, - __void__setPadRight__point_type, - "", - ""); - I_Method1(void, setPadTop, IN, osgWidget::point_type, p, - Properties::NON_VIRTUAL, - __void__setPadTop__point_type, - "", - ""); - I_Method1(void, setPadBottom, IN, osgWidget::point_type, p, - Properties::NON_VIRTUAL, - __void__setPadBottom__point_type, - "", - ""); - I_Method1(void, setAlignHorizontal, IN, osgWidget::Widget::HorizontalAlignment, h, - Properties::NON_VIRTUAL, - __void__setAlignHorizontal__HorizontalAlignment, - "", - ""); - I_Method1(void, setAlignVertical, IN, osgWidget::Widget::VerticalAlignment, v, - Properties::NON_VIRTUAL, - __void__setAlignVertical__VerticalAlignment, - "", - ""); - I_Method1(void, setCoordinateMode, IN, osgWidget::Widget::CoordinateMode, cm, - Properties::NON_VIRTUAL, - __void__setCoordinateMode__CoordinateMode, - "", - ""); - I_Method1(void, setCanFill, IN, bool, f, - Properties::NON_VIRTUAL, - __void__setCanFill__bool, - "", - ""); - I_Method1(void, setCanClone, IN, bool, c, - Properties::NON_VIRTUAL, - __void__setCanClone__bool, - "", - ""); - I_Method0(osgWidget::WindowManager *, getWindowManager, - Properties::NON_VIRTUAL, - __WindowManager_P1__getWindowManager, - "", - ""); - I_Method0(const osgWidget::WindowManager *, getWindowManager, - Properties::NON_VIRTUAL, - __C5_WindowManager_P1__getWindowManager, - "", - ""); - I_Method0(osgWidget::Window *, getParent, - Properties::NON_VIRTUAL, - __Window_P1__getParent, - "", - ""); - I_Method0(const osgWidget::Window *, getParent, - Properties::NON_VIRTUAL, - __C5_Window_P1__getParent, - "", - ""); - I_Method0(unsigned int, getIndex, - Properties::NON_VIRTUAL, - __unsigned_int__getIndex, - "", - ""); - I_Method0(osgWidget::XYCoord, getOrigin, - Properties::NON_VIRTUAL, - __XYCoord__getOrigin, - "", - ""); - I_Method1(osgWidget::Color, getImageColorAtXY, IN, const osgWidget::XYCoord &, xy, - Properties::NON_VIRTUAL, - __Color__getImageColorAtXY__C5_XYCoord_R1, - "", - ""); - I_Method2(osgWidget::Color, getImageColorAtPointerXY, IN, double, x, IN, double, y, - Properties::NON_VIRTUAL, - __Color__getImageColorAtPointerXY__double__double, - "", - ""); - I_Method0(osgWidget::Point, getPosition, - Properties::NON_VIRTUAL, - __Point__getPosition, - "", - ""); - I_Method0(osgWidget::XYCoord, getSize, - Properties::NON_VIRTUAL, - __XYCoord__getSize, - "", - ""); - I_Method0(osgWidget::Quad, getDimensions, - Properties::NON_VIRTUAL, - __Quad__getDimensions, - "", - ""); - I_Method0(osgWidget::point_type, getPadLeft, - Properties::NON_VIRTUAL, - __point_type__getPadLeft, - "", - ""); - I_Method0(osgWidget::point_type, getPadRight, - Properties::NON_VIRTUAL, - __point_type__getPadRight, - "", - ""); - I_Method0(osgWidget::point_type, getPadTop, - Properties::NON_VIRTUAL, - __point_type__getPadTop, - "", - ""); - I_Method0(osgWidget::point_type, getPadBottom, - Properties::NON_VIRTUAL, - __point_type__getPadBottom, - "", - ""); - I_Method0(osgWidget::Widget::HorizontalAlignment, getAlignHorizontal, - Properties::NON_VIRTUAL, - __HorizontalAlignment__getAlignHorizontal, - "", - ""); - I_Method0(osgWidget::Widget::VerticalAlignment, getAlignVertical, - Properties::NON_VIRTUAL, - __VerticalAlignment__getAlignVertical, - "", - ""); - I_Method0(osgWidget::Widget::CoordinateMode, getCoordinateMode, - Properties::NON_VIRTUAL, - __CoordinateMode__getCoordinateMode, - "", - ""); - I_Method0(bool, canFill, - Properties::NON_VIRTUAL, - __bool__canFill, - "", - ""); - I_Method0(bool, canClone, - Properties::NON_VIRTUAL, - __bool__canClone, - "", - ""); - I_Method0(osgWidget::point_type, getFillAsNumeric, - Properties::NON_VIRTUAL, - __point_type__getFillAsNumeric, - "", - ""); - I_Method0(osgWidget::point_type, getWidthTotal, - Properties::NON_VIRTUAL, - __point_type__getWidthTotal, - "", - ""); - I_Method0(osgWidget::point_type, getHeightTotal, - Properties::NON_VIRTUAL, - __point_type__getHeightTotal, - "", - ""); - I_Method0(osgWidget::point_type, getMinWidth, - Properties::NON_VIRTUAL, - __point_type__getMinWidth, - "", - ""); - I_Method0(osgWidget::point_type, getMinHeight, - Properties::NON_VIRTUAL, - __point_type__getMinHeight, - "", - ""); - I_Method0(osgWidget::point_type, getMinWidthTotal, - Properties::NON_VIRTUAL, - __point_type__getMinWidthTotal, - "", - ""); - I_Method0(osgWidget::point_type, getMinHeightTotal, - Properties::NON_VIRTUAL, - __point_type__getMinHeightTotal, - "", - ""); - I_Method0(unsigned int, getLayer, - Properties::NON_VIRTUAL, - __unsigned_int__getLayer, - "", - ""); - I_ProtectedMethod1(osgWidget::point_type, _calculateZ, IN, unsigned, int, - Properties::NON_VIRTUAL, - Properties::CONST, - __point_type___calculateZ__unsigned, - "", - ""); - I_ProtectedMethod0(osgWidget::PointArray *, _verts, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __PointArray_P1___verts, - "", - ""); - I_ProtectedMethod0(const osgWidget::PointArray *, _verts, - Properties::NON_VIRTUAL, - Properties::CONST, - __C5_PointArray_P1___verts, - "", - ""); - I_ProtectedMethod0(osgWidget::ColorArray *, _cols, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __ColorArray_P1___cols, - "", - ""); - I_ProtectedMethod0(const osgWidget::ColorArray *, _cols, - Properties::NON_VIRTUAL, - Properties::CONST, - __C5_ColorArray_P1___cols, - "", - ""); - I_ProtectedMethod0(osgWidget::TexCoordArray *, _texs, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __TexCoordArray_P1___texs, - "", - ""); - I_ProtectedMethod0(const osgWidget::TexCoordArray *, _texs, - Properties::NON_VIRTUAL, - Properties::CONST, - __C5_TexCoordArray_P1___texs, - "", - ""); - I_ProtectedMethod0(osg::Texture2D *, _texture, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __osg_Texture2D_P1___texture, - "", - ""); - I_ProtectedMethod0(const osg::Texture2D *, _texture, - Properties::NON_VIRTUAL, - Properties::CONST, - __C5_osg_Texture2D_P1___texture, - "", - ""); - I_ProtectedMethod0(osg::Image *, _image, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __osg_Image_P1___image, - "", - ""); - I_ProtectedMethod0(const osg::Image *, _image, - Properties::NON_VIRTUAL, - Properties::CONST, - __C5_osg_Image_P1___image, - "", - ""); - I_ProtectedMethod0(osgWidget::WindowManager *, _getWindowManager, - Properties::NON_VIRTUAL, - Properties::CONST, - __WindowManager_P1___getWindowManager, - "", - ""); - I_ProtectedMethod0(osg::Image *, _getImage, - Properties::NON_VIRTUAL, - Properties::CONST, - __osg_Image_P1___getImage, - "", - ""); - I_SimpleProperty(osgWidget::Widget::HorizontalAlignment, AlignHorizontal, - __HorizontalAlignment__getAlignHorizontal, - __void__setAlignHorizontal__HorizontalAlignment); - I_SimpleProperty(osgWidget::Widget::VerticalAlignment, AlignVertical, - __VerticalAlignment__getAlignVertical, - __void__setAlignVertical__VerticalAlignment); - I_SimpleProperty(bool, CanClone, - 0, - __void__setCanClone__bool); - I_SimpleProperty(bool, CanFill, - 0, - __void__setCanFill__bool); - I_SimpleProperty(osgWidget::Widget::CoordinateMode, CoordinateMode, - __CoordinateMode__getCoordinateMode, - __void__setCoordinateMode__CoordinateMode); - I_SimpleProperty(osgWidget::Quad, Dimensions, - __Quad__getDimensions, - 0); - I_SimpleProperty(osgWidget::point_type, FillAsNumeric, - __point_type__getFillAsNumeric, - 0); - I_SimpleProperty(osgWidget::point_type, Height, - __point_type__getHeight, - __void__setHeight__point_type); - I_SimpleProperty(osgWidget::point_type, HeightTotal, - __point_type__getHeightTotal, - 0); - I_SimpleProperty(unsigned int, Index, - __unsigned_int__getIndex, - 0); - I_SimpleProperty(unsigned int, Layer, - __unsigned_int__getLayer, - 0); - I_SimpleProperty(osgWidget::point_type, MinHeight, - __point_type__getMinHeight, - 0); - I_SimpleProperty(osgWidget::point_type, MinHeightTotal, - __point_type__getMinHeightTotal, - 0); - I_SimpleProperty(osgWidget::point_type, MinWidth, - __point_type__getMinWidth, - 0); - I_SimpleProperty(osgWidget::point_type, MinWidthTotal, - __point_type__getMinWidthTotal, - 0); - I_SimpleProperty(const osgWidget::XYCoord &, MinimumSize, - 0, - __void__setMinimumSize__C5_XYCoord_R1); - I_SimpleProperty(osgWidget::XYCoord, Origin, - __XYCoord__getOrigin, - __void__setOrigin__C5_XYCoord_R1); - I_SimpleProperty(osgWidget::point_type, PadBottom, - __point_type__getPadBottom, - __void__setPadBottom__point_type); - I_SimpleProperty(osgWidget::point_type, PadHorizontal, - __point_type__getPadHorizontal, - 0); - I_SimpleProperty(osgWidget::point_type, PadLeft, - __point_type__getPadLeft, - __void__setPadLeft__point_type); - I_SimpleProperty(osgWidget::point_type, PadRight, - __point_type__getPadRight, - __void__setPadRight__point_type); - I_SimpleProperty(osgWidget::point_type, PadTop, - __point_type__getPadTop, - __void__setPadTop__point_type); - I_SimpleProperty(osgWidget::point_type, PadVertical, - __point_type__getPadVertical, - 0); - I_SimpleProperty(osgWidget::point_type, Padding, - 0, - __void__setPadding__point_type); - I_SimpleProperty(osgWidget::Window *, Parent, - __Window_P1__getParent, - 0); - I_SimpleProperty(osgWidget::Point, Position, - __Point__getPosition, - 0); - I_SimpleProperty(osgWidget::XYCoord, Size, - __XYCoord__getSize, - __void__setSize__C5_XYCoord_R1); - I_SimpleProperty(osgWidget::point_type, Width, - __point_type__getWidth, - __void__setWidth__point_type); - I_SimpleProperty(osgWidget::point_type, WidthTotal, - __point_type__getWidthTotal, - 0); - I_SimpleProperty(osgWidget::WindowManager *, WindowManager, - __WindowManager_P1__getWindowManager, - 0); - I_SimpleProperty(osgWidget::point_type, X, - __point_type__getX, - __void__setX__point_type); - I_SimpleProperty(osgWidget::point_type, Y, - __point_type__getY, - __void__setY__point_type); - I_SimpleProperty(osgWidget::point_type, Z, - __point_type__getZ, - __void__setZ__point_type); -END_REFLECTOR - -TYPE_NAME_ALIAS(std::list< osg::observer_ptr< osgWidget::Widget > >, osgWidget::WidgetList) - -BEGIN_OBJECT_REFLECTOR(osg::observer_ptr< osgWidget::Widget >) - I_DeclaringFile("osg/observer_ptr"); - I_BaseType(osg::Observer); - I_Constructor0(____observer_ptr, - "", - ""); - I_Constructor1(IN, osgWidget::Widget *, t, - Properties::NON_EXPLICIT, - ____observer_ptr__T_P1, - "", - ""); - I_Constructor1(IN, const osg::observer_ptr< osgWidget::Widget > &, rp, - Properties::NON_EXPLICIT, - ____observer_ptr__C5_observer_ptr_R1, - "", - ""); - I_Method1(void, objectDeleted, IN, void *, x, - Properties::VIRTUAL, - __void__objectDeleted__void_P1, - "", - ""); - I_Method0(osgWidget::Widget *, get, - Properties::NON_VIRTUAL, - __T_P1__get, - "", - ""); - I_Method0(bool, valid, - Properties::NON_VIRTUAL, - __bool__valid, - "", - ""); - I_SimpleProperty(osgWidget::Widget *, , - __T_P1__get, - 0); -END_REFLECTOR - -STD_LIST_REFLECTOR(std::list< osg::observer_ptr< osgWidget::Widget > >) - +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgWidget::NotifyWidget) + I_DeclaringFile("osgWidget/Widget"); + I_BaseType(osgWidget::Widget); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_ConstructorWithDefaults3(IN, const std::string &, n, "", IN, osgWidget::point_type, w, 0.0f, IN, osgWidget::point_type, h, 0.0f, + ____NotifyWidget__C5_std_string_R1__point_type__point_type, + "", + ""); + I_Constructor2(IN, const osgWidget::NotifyWidget &, widget, IN, const osg::CopyOp &, co, + ____NotifyWidget__C5_NotifyWidget_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, focus, IN, const osgWidget::WindowManager *, x, + Properties::NON_VIRTUAL, + __bool__focus__C5_WindowManager_P1, + "", + ""); + I_Method1(bool, unfocus, IN, const osgWidget::WindowManager *, x, + Properties::NON_VIRTUAL, + __bool__unfocus__C5_WindowManager_P1, + "", + ""); + I_Method3(bool, mouseEnter, IN, double, x, IN, double, x, IN, const osgWidget::WindowManager *, x, + Properties::NON_VIRTUAL, + __bool__mouseEnter__double__double__C5_WindowManager_P1, + "", + ""); + I_Method3(bool, mouseOver, IN, double, x, IN, double, x, IN, const osgWidget::WindowManager *, x, + Properties::NON_VIRTUAL, + __bool__mouseOver__double__double__C5_WindowManager_P1, + "", + ""); + I_Method3(bool, mouseLeave, IN, double, x, IN, double, x, IN, const osgWidget::WindowManager *, x, + Properties::NON_VIRTUAL, + __bool__mouseLeave__double__double__C5_WindowManager_P1, + "", + ""); + I_Method3(bool, mouseDrag, IN, double, x, IN, double, x, IN, const osgWidget::WindowManager *, x, + Properties::NON_VIRTUAL, + __bool__mouseDrag__double__double__C5_WindowManager_P1, + "", + ""); + I_Method3(bool, mousePush, IN, double, x, IN, double, x, IN, const osgWidget::WindowManager *, x, + Properties::NON_VIRTUAL, + __bool__mousePush__double__double__C5_WindowManager_P1, + "", + ""); + I_Method3(bool, mouseRelease, IN, double, x, IN, double, x, IN, const osgWidget::WindowManager *, x, + Properties::NON_VIRTUAL, + __bool__mouseRelease__double__double__C5_WindowManager_P1, + "", + ""); + I_Method3(bool, mouseScroll, IN, double, x, IN, double, x, IN, const osgWidget::WindowManager *, x, + Properties::NON_VIRTUAL, + __bool__mouseScroll__double__double__C5_WindowManager_P1, + "", + ""); + I_Method3(bool, keyPress, IN, int, x, IN, int, x, IN, const osgWidget::WindowManager *, x, + Properties::NON_VIRTUAL, + __bool__keyPress__int__int__C5_WindowManager_P1, + "", + ""); + I_Method3(bool, keyRelease, IN, int, x, IN, int, x, IN, const osgWidget::WindowManager *, x, + Properties::NON_VIRTUAL, + __bool__keyRelease__int__int__C5_WindowManager_P1, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgWidget::NullWidget) + I_DeclaringFile("osgWidget/Widget"); + I_BaseType(osgWidget::Widget); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_ConstructorWithDefaults3(IN, const std::string &, n, "", IN, osgWidget::point_type, w, 0.0f, IN, osgWidget::point_type, h, 0.0f, + ____NullWidget__C5_std_string_R1__point_type__point_type, + "", + ""); + I_Constructor2(IN, const osgWidget::NullWidget &, widget, IN, const osg::CopyOp &, co, + ____NullWidget__C5_NullWidget_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, focus, IN, const osgWidget::WindowManager *, x, + Properties::NON_VIRTUAL, + __bool__focus__C5_WindowManager_P1, + "", + ""); + I_Method1(bool, unfocus, IN, const osgWidget::WindowManager *, x, + Properties::NON_VIRTUAL, + __bool__unfocus__C5_WindowManager_P1, + "", + ""); + I_Method3(bool, mouseEnter, IN, double, x, IN, double, x, IN, const osgWidget::WindowManager *, x, + Properties::NON_VIRTUAL, + __bool__mouseEnter__double__double__C5_WindowManager_P1, + "", + ""); + I_Method3(bool, mouseOver, IN, double, x, IN, double, x, IN, const osgWidget::WindowManager *, x, + Properties::NON_VIRTUAL, + __bool__mouseOver__double__double__C5_WindowManager_P1, + "", + ""); + I_Method3(bool, mouseLeave, IN, double, x, IN, double, x, IN, const osgWidget::WindowManager *, x, + Properties::NON_VIRTUAL, + __bool__mouseLeave__double__double__C5_WindowManager_P1, + "", + ""); + I_Method3(bool, mouseDrag, IN, double, x, IN, double, x, IN, const osgWidget::WindowManager *, x, + Properties::NON_VIRTUAL, + __bool__mouseDrag__double__double__C5_WindowManager_P1, + "", + ""); + I_Method3(bool, mousePush, IN, double, x, IN, double, x, IN, const osgWidget::WindowManager *, x, + Properties::NON_VIRTUAL, + __bool__mousePush__double__double__C5_WindowManager_P1, + "", + ""); + I_Method3(bool, mouseRelease, IN, double, x, IN, double, x, IN, const osgWidget::WindowManager *, x, + Properties::NON_VIRTUAL, + __bool__mouseRelease__double__double__C5_WindowManager_P1, + "", + ""); + I_Method3(bool, mouseScroll, IN, double, x, IN, double, x, IN, const osgWidget::WindowManager *, x, + Properties::NON_VIRTUAL, + __bool__mouseScroll__double__double__C5_WindowManager_P1, + "", + ""); + I_Method3(bool, keyPress, IN, int, x, IN, int, x, IN, const osgWidget::WindowManager *, x, + Properties::NON_VIRTUAL, + __bool__keyPress__int__int__C5_WindowManager_P1, + "", + ""); + I_Method3(bool, keyRelease, IN, int, x, IN, int, x, IN, const osgWidget::WindowManager *, x, + Properties::NON_VIRTUAL, + __bool__keyRelease__int__int__C5_WindowManager_P1, + "", + ""); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgWidget::Widget::Corner) + I_DeclaringFile("osgWidget/Widget"); + I_EnumLabel(osgWidget::Widget::LOWER_LEFT); + I_EnumLabel(osgWidget::Widget::LOWER_RIGHT); + I_EnumLabel(osgWidget::Widget::UPPER_RIGHT); + I_EnumLabel(osgWidget::Widget::UPPER_LEFT); + I_EnumLabel(osgWidget::Widget::LL); + I_EnumLabel(osgWidget::Widget::LR); + I_EnumLabel(osgWidget::Widget::UR); + I_EnumLabel(osgWidget::Widget::UL); + I_EnumLabel(osgWidget::Widget::ALL_CORNERS); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgWidget::Widget::Layer) + I_DeclaringFile("osgWidget/Widget"); + I_EnumLabel(osgWidget::Widget::LAYER_TOP); + I_EnumLabel(osgWidget::Widget::LAYER_HIGH); + I_EnumLabel(osgWidget::Widget::LAYER_MIDDLE); + I_EnumLabel(osgWidget::Widget::LAYER_LOW); + I_EnumLabel(osgWidget::Widget::LAYER_BG); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgWidget::Widget::VerticalAlignment) + I_DeclaringFile("osgWidget/Widget"); + I_EnumLabel(osgWidget::Widget::VA_CENTER); + I_EnumLabel(osgWidget::Widget::VA_TOP); + I_EnumLabel(osgWidget::Widget::VA_BOTTOM); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgWidget::Widget::HorizontalAlignment) + I_DeclaringFile("osgWidget/Widget"); + I_EnumLabel(osgWidget::Widget::HA_CENTER); + I_EnumLabel(osgWidget::Widget::HA_LEFT); + I_EnumLabel(osgWidget::Widget::HA_RIGHT); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgWidget::Widget::CoordinateMode) + I_DeclaringFile("osgWidget/Widget"); + I_EnumLabel(osgWidget::Widget::CM_ABSOLUTE); + I_EnumLabel(osgWidget::Widget::CM_RELATIVE); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgWidget::Widget) + I_DeclaringFile("osgWidget/Widget"); + I_BaseType(osg::Geometry); + I_BaseType(osgWidget::EventInterface); + I_BaseType(osgWidget::StyleInterface); + I_ConstructorWithDefaults3(IN, const std::string &, x, "", IN, osgWidget::point_type, x, 0.0f, IN, osgWidget::point_type, x, 0.0f, + ____Widget__C5_std_string_R1__point_type__point_type, + "", + ""); + I_Constructor2(IN, const osgWidget::Widget &, x, IN, const osg::CopyOp &, x, + ____Widget__C5_Widget_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(, META_UIObject, IN, osgWidget::Widget, x, + Properties::NON_VIRTUAL, + ____META_UIObject__Widget, + "", + ""); + I_Method1(void, parented, IN, osgWidget::Window *, x, + Properties::VIRTUAL, + __void__parented__Window_P1, + "", + ""); + I_Method1(void, unparented, IN, osgWidget::Window *, x, + Properties::VIRTUAL, + __void__unparented__Window_P1, + "", + ""); + I_Method1(void, managed, IN, osgWidget::WindowManager *, x, + Properties::VIRTUAL, + __void__managed__WindowManager_P1, + "", + ""); + I_Method1(void, unmanaged, IN, osgWidget::WindowManager *, x, + Properties::VIRTUAL, + __void__unmanaged__WindowManager_P1, + "", + ""); + I_Method0(void, positioned, + Properties::VIRTUAL, + __void__positioned, + "", + ""); + I_MethodWithDefaults5(void, setDimensions, IN, osgWidget::point_type, x, -1.0f, IN, osgWidget::point_type, x, -1.0f, IN, osgWidget::point_type, x, -1.0f, IN, osgWidget::point_type, x, -1.0f, IN, osgWidget::point_type, x, -1.0f, + Properties::NON_VIRTUAL, + __void__setDimensions__point_type__point_type__point_type__point_type__point_type, + "", + ""); + I_Method1(void, setPadding, IN, osgWidget::point_type, x, + Properties::NON_VIRTUAL, + __void__setPadding__point_type, + "", + ""); + I_MethodWithDefaults5(void, setColor, IN, osgWidget::color_type, x, , IN, osgWidget::color_type, x, , IN, osgWidget::color_type, x, , IN, osgWidget::color_type, x, , IN, osgWidget::Widget::Corner, x, osgWidget::Widget::ALL_CORNERS, + Properties::NON_VIRTUAL, + __void__setColor__color_type__color_type__color_type__color_type__Corner, + "", + ""); + I_MethodWithDefaults5(void, addColor, IN, osgWidget::color_type, x, , IN, osgWidget::color_type, x, , IN, osgWidget::color_type, x, , IN, osgWidget::color_type, x, , IN, osgWidget::Widget::Corner, x, osgWidget::Widget::ALL_CORNERS, + Properties::NON_VIRTUAL, + __void__addColor__color_type__color_type__color_type__color_type__Corner, + "", + ""); + I_MethodWithDefaults3(void, setTexCoord, IN, osgWidget::texcoord_type, x, , IN, osgWidget::texcoord_type, x, , IN, osgWidget::Widget::Corner, x, osgWidget::Widget::ALL_CORNERS, + Properties::NON_VIRTUAL, + __void__setTexCoord__texcoord_type__texcoord_type__Corner, + "", + ""); + I_Method4(void, setTexCoordRegion, IN, osgWidget::point_type, x, IN, osgWidget::point_type, x, IN, osgWidget::point_type, x, IN, osgWidget::point_type, x, + Properties::NON_VIRTUAL, + __void__setTexCoordRegion__point_type__point_type__point_type__point_type, + "", + ""); + I_Method0(void, setTexCoordWrapHorizontal, + Properties::NON_VIRTUAL, + __void__setTexCoordWrapHorizontal, + "", + ""); + I_Method0(void, setTexCoordWrapVertical, + Properties::NON_VIRTUAL, + __void__setTexCoordWrapVertical, + "", + ""); + I_MethodWithDefaults2(bool, setImage, IN, osg::Image *, x, , IN, bool, x, false, + Properties::NON_VIRTUAL, + __bool__setImage__osg_Image_P1__bool, + "", + ""); + I_MethodWithDefaults2(bool, setImage, IN, const std::string &, x, , IN, bool, x, false, + Properties::NON_VIRTUAL, + __bool__setImage__C5_std_string_R1__bool, + "", + ""); + I_Method1(void, addX, IN, osgWidget::point_type, x, + Properties::NON_VIRTUAL, + __void__addX__point_type, + "", + ""); + I_Method1(void, addY, IN, osgWidget::point_type, x, + Properties::NON_VIRTUAL, + __void__addY__point_type, + "", + ""); + I_Method1(void, addWidth, IN, osgWidget::point_type, x, + Properties::NON_VIRTUAL, + __void__addWidth__point_type, + "", + ""); + I_Method1(void, addHeight, IN, osgWidget::point_type, x, + Properties::NON_VIRTUAL, + __void__addHeight__point_type, + "", + ""); + I_Method2(void, addOrigin, IN, osgWidget::point_type, x, IN, osgWidget::point_type, x, + Properties::NON_VIRTUAL, + __void__addOrigin__point_type__point_type, + "", + ""); + I_Method2(void, addSize, IN, osgWidget::point_type, x, IN, osgWidget::point_type, x, + Properties::NON_VIRTUAL, + __void__addSize__point_type__point_type, + "", + ""); + I_Method0(osgWidget::point_type, getWidth, + Properties::NON_VIRTUAL, + __point_type__getWidth, + "", + ""); + I_Method0(osgWidget::point_type, getHeight, + Properties::NON_VIRTUAL, + __point_type__getHeight, + "", + ""); + I_Method0(osgWidget::point_type, getX, + Properties::NON_VIRTUAL, + __point_type__getX, + "", + ""); + I_Method0(osgWidget::point_type, getY, + Properties::NON_VIRTUAL, + __point_type__getY, + "", + ""); + I_Method0(osgWidget::point_type, getZ, + Properties::NON_VIRTUAL, + __point_type__getZ, + "", + ""); + I_Method0(osgWidget::point_type, getPadHorizontal, + Properties::NON_VIRTUAL, + __point_type__getPadHorizontal, + "", + ""); + I_Method0(osgWidget::point_type, getPadVertical, + Properties::NON_VIRTUAL, + __point_type__getPadVertical, + "", + ""); + I_MethodWithDefaults1(const osgWidget::Point &, getPoint, IN, osgWidget::Widget::Corner, x, osgWidget::Widget::ALL_CORNERS, + Properties::NON_VIRTUAL, + __C5_Point_R1__getPoint__Corner, + "", + ""); + I_MethodWithDefaults1(const osgWidget::Color &, getColor, IN, osgWidget::Widget::Corner, x, osgWidget::Widget::ALL_CORNERS, + Properties::NON_VIRTUAL, + __C5_Color_R1__getColor__Corner, + "", + ""); + I_MethodWithDefaults1(const osgWidget::TexCoord &, getTexCoord, IN, osgWidget::Widget::Corner, x, osgWidget::Widget::ALL_CORNERS, + Properties::NON_VIRTUAL, + __C5_TexCoord_R1__getTexCoord__Corner, + "", + ""); + I_Method1(osgWidget::Widget::Corner, convertCorner, IN, osgWidget::Widget::Corner, x, + Properties::NON_VIRTUAL, + __Corner__convertCorner__Corner, + "", + ""); + I_Method2(osgWidget::Color, getImageColorAtXY, IN, osgWidget::point_type, x, IN, osgWidget::point_type, y, + Properties::NON_VIRTUAL, + __Color__getImageColorAtXY__point_type__point_type, + "", + ""); + I_Method2(osgWidget::XYCoord, localXY, IN, double, x, IN, double, x, + Properties::NON_VIRTUAL, + __XYCoord__localXY__double__double, + "", + ""); + I_Method0(bool, isPaddingUniform, + Properties::NON_VIRTUAL, + __bool__isPaddingUniform, + "", + ""); + I_Method0(bool, isManaged, + Properties::NON_VIRTUAL, + __bool__isManaged, + "", + ""); + I_Method0(bool, isStyled, + Properties::NON_VIRTUAL, + __bool__isStyled, + "", + ""); + I_MethodWithDefaults2(void, setDimensions, IN, const osgWidget::Quad &, q, , IN, osgWidget::point_type, z, -1.0f, + Properties::NON_VIRTUAL, + __void__setDimensions__C5_Quad_R1__point_type, + "", + ""); + I_Method1(void, setX, IN, osgWidget::point_type, x, + Properties::NON_VIRTUAL, + __void__setX__point_type, + "", + ""); + I_Method1(void, setY, IN, osgWidget::point_type, y, + Properties::NON_VIRTUAL, + __void__setY__point_type, + "", + ""); + I_Method1(void, setZ, IN, osgWidget::point_type, z, + Properties::NON_VIRTUAL, + __void__setZ__point_type, + "", + ""); + I_Method1(void, setWidth, IN, osgWidget::point_type, w, + Properties::NON_VIRTUAL, + __void__setWidth__point_type, + "", + ""); + I_Method1(void, setHeight, IN, osgWidget::point_type, h, + Properties::NON_VIRTUAL, + __void__setHeight__point_type, + "", + ""); + I_Method2(void, setOrigin, IN, osgWidget::point_type, x, IN, osgWidget::point_type, y, + Properties::NON_VIRTUAL, + __void__setOrigin__point_type__point_type, + "", + ""); + I_Method1(void, setOrigin, IN, const osgWidget::XYCoord &, xy, + Properties::NON_VIRTUAL, + __void__setOrigin__C5_XYCoord_R1, + "", + ""); + I_Method2(void, setSize, IN, osgWidget::point_type, w, IN, osgWidget::point_type, h, + Properties::NON_VIRTUAL, + __void__setSize__point_type__point_type, + "", + ""); + I_Method1(void, setSize, IN, const osgWidget::XYCoord &, xy, + Properties::NON_VIRTUAL, + __void__setSize__C5_XYCoord_R1, + "", + ""); + I_MethodWithDefaults2(void, setColor, IN, const osgWidget::Color &, col, , IN, osgWidget::Widget::Corner, p, osgWidget::Widget::ALL_CORNERS, + Properties::NON_VIRTUAL, + __void__setColor__C5_Color_R1__Corner, + "", + ""); + I_MethodWithDefaults2(void, setTexCoord, IN, const osgWidget::XYCoord &, xy, , IN, osgWidget::Widget::Corner, p, osgWidget::Widget::ALL_CORNERS, + Properties::NON_VIRTUAL, + __void__setTexCoord__C5_XYCoord_R1__Corner, + "", + ""); + I_Method3(void, setTexCoordRegion, IN, const osgWidget::XYCoord &, xy, IN, osgWidget::point_type, w, IN, osgWidget::point_type, h, + Properties::NON_VIRTUAL, + __void__setTexCoordRegion__C5_XYCoord_R1__point_type__point_type, + "", + ""); + I_MethodWithDefaults2(void, addColor, IN, const osgWidget::Color &, col, , IN, osgWidget::Widget::Corner, p, osgWidget::Widget::ALL_CORNERS, + Properties::NON_VIRTUAL, + __void__addColor__C5_Color_R1__Corner, + "", + ""); + I_Method1(void, addOrigin, IN, const osgWidget::XYCoord &, xy, + Properties::NON_VIRTUAL, + __void__addOrigin__C5_XYCoord_R1, + "", + ""); + I_Method1(void, addSize, IN, const osgWidget::XYCoord &, xy, + Properties::NON_VIRTUAL, + __void__addSize__C5_XYCoord_R1, + "", + ""); + I_Method2(void, setMinimumSize, IN, osgWidget::point_type, width, IN, osgWidget::point_type, height, + Properties::NON_VIRTUAL, + __void__setMinimumSize__point_type__point_type, + "", + ""); + I_Method1(void, setMinimumSize, IN, const osgWidget::XYCoord &, xy, + Properties::NON_VIRTUAL, + __void__setMinimumSize__C5_XYCoord_R1, + "", + ""); + I_MethodWithDefaults2(void, setLayer, IN, osgWidget::Widget::Layer, l, , IN, unsigned int, offset, 0, + Properties::NON_VIRTUAL, + __void__setLayer__Layer__unsigned_int, + "", + ""); + I_Method1(void, setPadLeft, IN, osgWidget::point_type, p, + Properties::NON_VIRTUAL, + __void__setPadLeft__point_type, + "", + ""); + I_Method1(void, setPadRight, IN, osgWidget::point_type, p, + Properties::NON_VIRTUAL, + __void__setPadRight__point_type, + "", + ""); + I_Method1(void, setPadTop, IN, osgWidget::point_type, p, + Properties::NON_VIRTUAL, + __void__setPadTop__point_type, + "", + ""); + I_Method1(void, setPadBottom, IN, osgWidget::point_type, p, + Properties::NON_VIRTUAL, + __void__setPadBottom__point_type, + "", + ""); + I_Method1(void, setAlignHorizontal, IN, osgWidget::Widget::HorizontalAlignment, h, + Properties::NON_VIRTUAL, + __void__setAlignHorizontal__HorizontalAlignment, + "", + ""); + I_Method1(void, setAlignVertical, IN, osgWidget::Widget::VerticalAlignment, v, + Properties::NON_VIRTUAL, + __void__setAlignVertical__VerticalAlignment, + "", + ""); + I_Method1(void, setCoordinateMode, IN, osgWidget::Widget::CoordinateMode, cm, + Properties::NON_VIRTUAL, + __void__setCoordinateMode__CoordinateMode, + "", + ""); + I_Method1(void, setCanFill, IN, bool, f, + Properties::NON_VIRTUAL, + __void__setCanFill__bool, + "", + ""); + I_Method1(void, setCanClone, IN, bool, c, + Properties::NON_VIRTUAL, + __void__setCanClone__bool, + "", + ""); + I_Method0(osgWidget::WindowManager *, getWindowManager, + Properties::NON_VIRTUAL, + __WindowManager_P1__getWindowManager, + "", + ""); + I_Method0(const osgWidget::WindowManager *, getWindowManager, + Properties::NON_VIRTUAL, + __C5_WindowManager_P1__getWindowManager, + "", + ""); + I_Method0(osgWidget::Window *, getParent, + Properties::NON_VIRTUAL, + __Window_P1__getParent, + "", + ""); + I_Method0(const osgWidget::Window *, getParent, + Properties::NON_VIRTUAL, + __C5_Window_P1__getParent, + "", + ""); + I_Method0(unsigned int, getIndex, + Properties::NON_VIRTUAL, + __unsigned_int__getIndex, + "", + ""); + I_Method0(osgWidget::XYCoord, getOrigin, + Properties::NON_VIRTUAL, + __XYCoord__getOrigin, + "", + ""); + I_Method1(osgWidget::Color, getImageColorAtXY, IN, const osgWidget::XYCoord &, xy, + Properties::NON_VIRTUAL, + __Color__getImageColorAtXY__C5_XYCoord_R1, + "", + ""); + I_Method2(osgWidget::Color, getImageColorAtPointerXY, IN, double, x, IN, double, y, + Properties::NON_VIRTUAL, + __Color__getImageColorAtPointerXY__double__double, + "", + ""); + I_Method0(osgWidget::Point, getPosition, + Properties::NON_VIRTUAL, + __Point__getPosition, + "", + ""); + I_Method0(osgWidget::XYCoord, getSize, + Properties::NON_VIRTUAL, + __XYCoord__getSize, + "", + ""); + I_Method0(osgWidget::Quad, getDimensions, + Properties::NON_VIRTUAL, + __Quad__getDimensions, + "", + ""); + I_Method0(osgWidget::point_type, getPadLeft, + Properties::NON_VIRTUAL, + __point_type__getPadLeft, + "", + ""); + I_Method0(osgWidget::point_type, getPadRight, + Properties::NON_VIRTUAL, + __point_type__getPadRight, + "", + ""); + I_Method0(osgWidget::point_type, getPadTop, + Properties::NON_VIRTUAL, + __point_type__getPadTop, + "", + ""); + I_Method0(osgWidget::point_type, getPadBottom, + Properties::NON_VIRTUAL, + __point_type__getPadBottom, + "", + ""); + I_Method0(osgWidget::Widget::HorizontalAlignment, getAlignHorizontal, + Properties::NON_VIRTUAL, + __HorizontalAlignment__getAlignHorizontal, + "", + ""); + I_Method0(osgWidget::Widget::VerticalAlignment, getAlignVertical, + Properties::NON_VIRTUAL, + __VerticalAlignment__getAlignVertical, + "", + ""); + I_Method0(osgWidget::Widget::CoordinateMode, getCoordinateMode, + Properties::NON_VIRTUAL, + __CoordinateMode__getCoordinateMode, + "", + ""); + I_Method0(bool, canFill, + Properties::NON_VIRTUAL, + __bool__canFill, + "", + ""); + I_Method0(bool, canClone, + Properties::NON_VIRTUAL, + __bool__canClone, + "", + ""); + I_Method0(osgWidget::point_type, getFillAsNumeric, + Properties::NON_VIRTUAL, + __point_type__getFillAsNumeric, + "", + ""); + I_Method0(osgWidget::point_type, getWidthTotal, + Properties::NON_VIRTUAL, + __point_type__getWidthTotal, + "", + ""); + I_Method0(osgWidget::point_type, getHeightTotal, + Properties::NON_VIRTUAL, + __point_type__getHeightTotal, + "", + ""); + I_Method0(osgWidget::point_type, getMinWidth, + Properties::NON_VIRTUAL, + __point_type__getMinWidth, + "", + ""); + I_Method0(osgWidget::point_type, getMinHeight, + Properties::NON_VIRTUAL, + __point_type__getMinHeight, + "", + ""); + I_Method0(osgWidget::point_type, getMinWidthTotal, + Properties::NON_VIRTUAL, + __point_type__getMinWidthTotal, + "", + ""); + I_Method0(osgWidget::point_type, getMinHeightTotal, + Properties::NON_VIRTUAL, + __point_type__getMinHeightTotal, + "", + ""); + I_Method0(unsigned int, getLayer, + Properties::NON_VIRTUAL, + __unsigned_int__getLayer, + "", + ""); + I_ProtectedMethod1(osgWidget::point_type, _calculateZ, IN, unsigned, int, + Properties::NON_VIRTUAL, + Properties::CONST, + __point_type___calculateZ__unsigned, + "", + ""); + I_ProtectedMethod0(osgWidget::PointArray *, _verts, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __PointArray_P1___verts, + "", + ""); + I_ProtectedMethod0(const osgWidget::PointArray *, _verts, + Properties::NON_VIRTUAL, + Properties::CONST, + __C5_PointArray_P1___verts, + "", + ""); + I_ProtectedMethod0(osgWidget::ColorArray *, _cols, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __ColorArray_P1___cols, + "", + ""); + I_ProtectedMethod0(const osgWidget::ColorArray *, _cols, + Properties::NON_VIRTUAL, + Properties::CONST, + __C5_ColorArray_P1___cols, + "", + ""); + I_ProtectedMethod0(osgWidget::TexCoordArray *, _texs, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __TexCoordArray_P1___texs, + "", + ""); + I_ProtectedMethod0(const osgWidget::TexCoordArray *, _texs, + Properties::NON_VIRTUAL, + Properties::CONST, + __C5_TexCoordArray_P1___texs, + "", + ""); + I_ProtectedMethod0(osg::Texture2D *, _texture, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __osg_Texture2D_P1___texture, + "", + ""); + I_ProtectedMethod0(const osg::Texture2D *, _texture, + Properties::NON_VIRTUAL, + Properties::CONST, + __C5_osg_Texture2D_P1___texture, + "", + ""); + I_ProtectedMethod0(osg::Image *, _image, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __osg_Image_P1___image, + "", + ""); + I_ProtectedMethod0(const osg::Image *, _image, + Properties::NON_VIRTUAL, + Properties::CONST, + __C5_osg_Image_P1___image, + "", + ""); + I_ProtectedMethod0(osgWidget::WindowManager *, _getWindowManager, + Properties::NON_VIRTUAL, + Properties::CONST, + __WindowManager_P1___getWindowManager, + "", + ""); + I_ProtectedMethod0(osg::Image *, _getImage, + Properties::NON_VIRTUAL, + Properties::CONST, + __osg_Image_P1___getImage, + "", + ""); + I_SimpleProperty(osgWidget::Widget::HorizontalAlignment, AlignHorizontal, + __HorizontalAlignment__getAlignHorizontal, + __void__setAlignHorizontal__HorizontalAlignment); + I_SimpleProperty(osgWidget::Widget::VerticalAlignment, AlignVertical, + __VerticalAlignment__getAlignVertical, + __void__setAlignVertical__VerticalAlignment); + I_SimpleProperty(bool, CanClone, + 0, + __void__setCanClone__bool); + I_SimpleProperty(bool, CanFill, + 0, + __void__setCanFill__bool); + I_SimpleProperty(osgWidget::Widget::CoordinateMode, CoordinateMode, + __CoordinateMode__getCoordinateMode, + __void__setCoordinateMode__CoordinateMode); + I_SimpleProperty(osgWidget::Quad, Dimensions, + __Quad__getDimensions, + 0); + I_SimpleProperty(osgWidget::point_type, FillAsNumeric, + __point_type__getFillAsNumeric, + 0); + I_SimpleProperty(osgWidget::point_type, Height, + __point_type__getHeight, + __void__setHeight__point_type); + I_SimpleProperty(osgWidget::point_type, HeightTotal, + __point_type__getHeightTotal, + 0); + I_SimpleProperty(unsigned int, Index, + __unsigned_int__getIndex, + 0); + I_SimpleProperty(unsigned int, Layer, + __unsigned_int__getLayer, + 0); + I_SimpleProperty(osgWidget::point_type, MinHeight, + __point_type__getMinHeight, + 0); + I_SimpleProperty(osgWidget::point_type, MinHeightTotal, + __point_type__getMinHeightTotal, + 0); + I_SimpleProperty(osgWidget::point_type, MinWidth, + __point_type__getMinWidth, + 0); + I_SimpleProperty(osgWidget::point_type, MinWidthTotal, + __point_type__getMinWidthTotal, + 0); + I_SimpleProperty(const osgWidget::XYCoord &, MinimumSize, + 0, + __void__setMinimumSize__C5_XYCoord_R1); + I_SimpleProperty(osgWidget::XYCoord, Origin, + __XYCoord__getOrigin, + __void__setOrigin__C5_XYCoord_R1); + I_SimpleProperty(osgWidget::point_type, PadBottom, + __point_type__getPadBottom, + __void__setPadBottom__point_type); + I_SimpleProperty(osgWidget::point_type, PadHorizontal, + __point_type__getPadHorizontal, + 0); + I_SimpleProperty(osgWidget::point_type, PadLeft, + __point_type__getPadLeft, + __void__setPadLeft__point_type); + I_SimpleProperty(osgWidget::point_type, PadRight, + __point_type__getPadRight, + __void__setPadRight__point_type); + I_SimpleProperty(osgWidget::point_type, PadTop, + __point_type__getPadTop, + __void__setPadTop__point_type); + I_SimpleProperty(osgWidget::point_type, PadVertical, + __point_type__getPadVertical, + 0); + I_SimpleProperty(osgWidget::point_type, Padding, + 0, + __void__setPadding__point_type); + I_SimpleProperty(osgWidget::Window *, Parent, + __Window_P1__getParent, + 0); + I_SimpleProperty(osgWidget::Point, Position, + __Point__getPosition, + 0); + I_SimpleProperty(osgWidget::XYCoord, Size, + __XYCoord__getSize, + __void__setSize__C5_XYCoord_R1); + I_SimpleProperty(osgWidget::point_type, Width, + __point_type__getWidth, + __void__setWidth__point_type); + I_SimpleProperty(osgWidget::point_type, WidthTotal, + __point_type__getWidthTotal, + 0); + I_SimpleProperty(osgWidget::WindowManager *, WindowManager, + __WindowManager_P1__getWindowManager, + 0); + I_SimpleProperty(osgWidget::point_type, X, + __point_type__getX, + __void__setX__point_type); + I_SimpleProperty(osgWidget::point_type, Y, + __point_type__getY, + __void__setY__point_type); + I_SimpleProperty(osgWidget::point_type, Z, + __point_type__getZ, + __void__setZ__point_type); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::list< osg::observer_ptr< osgWidget::Widget > >, osgWidget::WidgetList) + +BEGIN_OBJECT_REFLECTOR(osg::observer_ptr< osgWidget::Widget >) + I_DeclaringFile("osg/observer_ptr"); + I_BaseType(osg::Observer); + I_Constructor0(____observer_ptr, + "", + ""); + I_Constructor1(IN, osgWidget::Widget *, t, + Properties::NON_EXPLICIT, + ____observer_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::observer_ptr< osgWidget::Widget > &, rp, + Properties::NON_EXPLICIT, + ____observer_ptr__C5_observer_ptr_R1, + "", + ""); + I_Method1(void, objectDeleted, IN, void *, x, + Properties::VIRTUAL, + __void__objectDeleted__void_P1, + "", + ""); + I_Method0(osgWidget::Widget *, get, + Properties::NON_VIRTUAL, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_SimpleProperty(osgWidget::Widget *, , + __T_P1__get, + 0); +END_REFLECTOR + +STD_LIST_REFLECTOR(std::list< osg::observer_ptr< osgWidget::Widget > >) + diff --git a/src/osgWrappers/osgWidget/Window.cpp b/src/osgWrappers/osgWidget/Window.cpp index 16ee72b4a..78eb63a67 100644 --- a/src/osgWrappers/osgWidget/Window.cpp +++ b/src/osgWrappers/osgWidget/Window.cpp @@ -1,970 +1,970 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -TYPE_NAME_ALIAS(std::list< osg::observer_ptr< osgWidget::Window > >, osgWidget::Window::WindowList) - -BEGIN_ENUM_REFLECTOR(osgWidget::Window::Strata) - I_DeclaringFile("osgWidget/Window"); - I_EnumLabel(osgWidget::Window::STRATA_NONE); - I_EnumLabel(osgWidget::Window::STRATA_BACKGROUND); - I_EnumLabel(osgWidget::Window::STRATA_FOREGROUND); -END_REFLECTOR - -BEGIN_ENUM_REFLECTOR(osgWidget::Window::VisibilityMode) - I_DeclaringFile("osgWidget/Window"); - I_EnumLabel(osgWidget::Window::VM_FULL); - I_EnumLabel(osgWidget::Window::VM_PARTIAL); - I_EnumLabel(osgWidget::Window::VM_ENTIRE); -END_REFLECTOR - -BEGIN_ENUM_REFLECTOR(osgWidget::Window::VerticalAnchor) - I_DeclaringFile("osgWidget/Window"); - I_EnumLabel(osgWidget::Window::VA_NONE); - I_EnumLabel(osgWidget::Window::VA_CENTER); - I_EnumLabel(osgWidget::Window::VA_TOP); - I_EnumLabel(osgWidget::Window::VA_BOTTOM); -END_REFLECTOR - -BEGIN_ENUM_REFLECTOR(osgWidget::Window::HorizontalAnchor) - I_DeclaringFile("osgWidget/Window"); - I_EnumLabel(osgWidget::Window::HA_NONE); - I_EnumLabel(osgWidget::Window::HA_CENTER); - I_EnumLabel(osgWidget::Window::HA_LEFT); - I_EnumLabel(osgWidget::Window::HA_RIGHT); -END_REFLECTOR - -BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgWidget::Window) - I_DeclaringFile("osgWidget/Window"); - I_BaseType(osg::MatrixTransform); - I_BaseType(osgWidget::UIObjectParent); - I_BaseType(osgWidget::EventInterface); - I_BaseType(osgWidget::StyleInterface); - I_Method1(, META_UIObject, IN, osgWidget::Window, x, - Properties::NON_VIRTUAL, - ____META_UIObject__Window, - "", - ""); - I_ConstructorWithDefaults1(IN, const std::string &, x, "", - Properties::NON_EXPLICIT, - ____Window__C5_std_string_R1, - "", - ""); - I_Constructor2(IN, const osgWidget::Window &, x, IN, const osg::CopyOp &, x, - ____Window__C5_Window_R1__C5_osg_CopyOp_R1, - "", - ""); - I_MethodWithDefaults2(bool, resize, IN, osgWidget::point_type, x, 0.0f, IN, osgWidget::point_type, x, 0.0f, - Properties::NON_VIRTUAL, - __bool__resize__point_type__point_type, - "", - ""); - I_MethodWithDefaults2(bool, resizeAdd, IN, osgWidget::point_type, x, 0.0f, IN, osgWidget::point_type, x, 0.0f, - Properties::NON_VIRTUAL, - __bool__resizeAdd__point_type__point_type, - "", - ""); - I_MethodWithDefaults2(bool, resizePercent, IN, osgWidget::point_type, x, 0.0f, IN, osgWidget::point_type, x, 0.0f, - Properties::NON_VIRTUAL, - __bool__resizePercent__point_type__point_type, - "", - ""); - I_Method0(void, update, - Properties::VIRTUAL, - __void__update, - "", - ""); - I_Method1(void, managed, IN, osgWidget::WindowManager *, x, - Properties::VIRTUAL, - __void__managed__WindowManager_P1, - "", - ""); - I_Method1(void, unmanaged, IN, osgWidget::WindowManager *, x, - Properties::VIRTUAL, - __void__unmanaged__WindowManager_P1, - "", - ""); - I_Method1(bool, addWidget, IN, osgWidget::Widget *, x, - Properties::VIRTUAL, - __bool__addWidget__Widget_P1, - "", - ""); - I_Method2(bool, insertWidget, IN, osgWidget::Widget *, x, IN, unsigned, int, - Properties::VIRTUAL, - __bool__insertWidget__Widget_P1__unsigned, - "", - ""); - I_Method1(bool, removeWidget, IN, osgWidget::Widget *, x, - Properties::VIRTUAL, - __bool__removeWidget__Widget_P1, - "", - ""); - I_Method2(bool, replaceWidget, IN, osgWidget::Widget *, x, IN, osgWidget::Widget *, x, - Properties::VIRTUAL, - __bool__replaceWidget__Widget_P1__Widget_P1, - "", - ""); - I_Method1(unsigned int, addDrawableAndGetIndex, IN, osg::Drawable *, x, - Properties::NON_VIRTUAL, - __unsigned_int__addDrawableAndGetIndex__osg_Drawable_P1, - "", - ""); - I_Method0(bool, isVisible, - Properties::NON_VIRTUAL, - __bool__isVisible, - "", - ""); - I_Method2(bool, isXYWithinVisible, IN, float, x, IN, float, x, - Properties::NON_VIRTUAL, - __bool__isXYWithinVisible__float__float, - "", - ""); - I_MethodWithDefaults4(void, setVisibleArea, IN, int, x, 0, IN, int, x, 0, IN, int, x, 0, IN, int, x, 0, - Properties::NON_VIRTUAL, - __void__setVisibleArea__int__int__int__int, - "", - ""); - I_MethodWithDefaults4(void, addVisibleArea, IN, int, x, 0, IN, int, x, 0, IN, int, x, 0, IN, int, x, 0, - Properties::NON_VIRTUAL, - __void__addVisibleArea__int__int__int__int, - "", - ""); - I_Method1(bool, setFocused, IN, const osgWidget::Widget *, x, - Properties::NON_VIRTUAL, - __bool__setFocused__C5_Widget_P1, - "", - ""); - I_Method1(bool, setFocused, IN, const std::string &, x, - Properties::NON_VIRTUAL, - __bool__setFocused__C5_std_string_R1, - "", - ""); - I_Method0(bool, setFirstFocusable, - Properties::NON_VIRTUAL, - __bool__setFirstFocusable, - "", - ""); - I_Method0(bool, setNextFocusable, - Properties::NON_VIRTUAL, - __bool__setNextFocusable, - "", - ""); - I_Method1(bool, getFocusList, IN, osgWidget::WidgetList &, x, - Properties::NON_VIRTUAL, - __bool__getFocusList__WidgetList_R1, - "", - ""); - I_Method1(bool, getEmbeddedList, IN, osgWidget::Window::WindowList &, x, - Properties::NON_VIRTUAL, - __bool__getEmbeddedList__WindowList_R1, - "", - ""); - I_Method1(void, getParentList, IN, osgWidget::Window::WindowList &, x, - Properties::NON_VIRTUAL, - __void__getParentList__WindowList_R1, - "", - ""); - I_Method2(osgWidget::XYCoord, localXY, IN, double, x, IN, double, x, - Properties::NON_VIRTUAL, - __XYCoord__localXY__double__double, - "", - ""); - I_Method0(osgWidget::XYCoord, getAbsoluteOrigin, - Properties::NON_VIRTUAL, - __XYCoord__getAbsoluteOrigin, - "", - ""); - I_Method0(osgWidget::Window::EmbeddedWindow *, embed, - Properties::NON_VIRTUAL, - __EmbeddedWindow_P1__embed, - "", - ""); - I_Method0(osgWidget::Widget *, getFocused, - Properties::NON_VIRTUAL, - __Widget_P1__getFocused, - "", - ""); - I_Method0(const osgWidget::Widget *, getFocused, - Properties::NON_VIRTUAL, - __C5_Widget_P1__getFocused, - "", - ""); - I_Method0(bool, show, - Properties::NON_VIRTUAL, - __bool__show, - "", - ""); - I_Method0(bool, hide, - Properties::NON_VIRTUAL, - __bool__hide, - "", - ""); - I_Method2(bool, isPointerXYWithinVisible, IN, float, x, IN, float, y, - Properties::NON_VIRTUAL, - __bool__isPointerXYWithinVisible__float__float, - "", - ""); - I_Method0(osg::Geode *, getGeode, - Properties::NON_VIRTUAL, - __osg_Geode_P1__getGeode, - "", - ""); - I_Method0(const osg::Geode *, getGeode, - Properties::NON_VIRTUAL, - __C5_osg_Geode_P1__getGeode, - "", - ""); - I_Method0(osgWidget::Widget *, getBackground, - Properties::NON_VIRTUAL, - __Widget_P1__getBackground, - "", - ""); - I_Method0(const osgWidget::Widget *, getBackground, - Properties::NON_VIRTUAL, - __C5_Widget_P1__getBackground, - "", - ""); - I_Method0(osgWidget::WindowManager *, getWindowManager, - Properties::NON_VIRTUAL, - __WindowManager_P1__getWindowManager, - "", - ""); - I_Method0(const osgWidget::WindowManager *, getWindowManager, - Properties::NON_VIRTUAL, - __C5_WindowManager_P1__getWindowManager, - "", - ""); - I_Method0(osgWidget::Window *, getParent, - Properties::NON_VIRTUAL, - __Window_P1__getParent, - "", - ""); - I_Method0(const osgWidget::Window *, getParent, - Properties::NON_VIRTUAL, - __C5_Window_P1__getParent, - "", - ""); - I_Method0(osgWidget::Window *, getTopmostParent, - Properties::NON_VIRTUAL, - __Window_P1__getTopmostParent, - "", - ""); - I_Method0(const osgWidget::Window *, getTopmostParent, - Properties::NON_VIRTUAL, - __C5_Window_P1__getTopmostParent, - "", - ""); - I_Method0(unsigned int, getIndex, - Properties::NON_VIRTUAL, - __unsigned_int__getIndex, - "", - ""); - I_Method0(osgWidget::matrix_type, getX, - Properties::NON_VIRTUAL, - __matrix_type__getX, - "", - ""); - I_Method0(osgWidget::matrix_type, getY, - Properties::NON_VIRTUAL, - __matrix_type__getY, - "", - ""); - I_Method0(osgWidget::matrix_type, getZ, - Properties::NON_VIRTUAL, - __matrix_type__getZ, - "", - ""); - I_Method0(osgWidget::point_type, getWidth, - Properties::NON_VIRTUAL, - __point_type__getWidth, - "", - ""); - I_Method0(osgWidget::point_type, getHeight, - Properties::NON_VIRTUAL, - __point_type__getHeight, - "", - ""); - I_Method0(osgWidget::point_type, getMinWidth, - Properties::NON_VIRTUAL, - __point_type__getMinWidth, - "", - ""); - I_Method0(osgWidget::point_type, getMinHeight, - Properties::NON_VIRTUAL, - __point_type__getMinHeight, - "", - ""); - I_Method0(osgWidget::Window::VerticalAnchor, getAnchorVertical, - Properties::NON_VIRTUAL, - __VerticalAnchor__getAnchorVertical, - "", - ""); - I_Method0(osgWidget::Window::HorizontalAnchor, getAnchorHorizontal, - Properties::NON_VIRTUAL, - __HorizontalAnchor__getAnchorHorizontal, - "", - ""); - I_Method0(osgWidget::XYCoord, getOrigin, - Properties::NON_VIRTUAL, - __XYCoord__getOrigin, - "", - ""); - I_Method0(osgWidget::XYCoord, getSize, - Properties::NON_VIRTUAL, - __XYCoord__getSize, - "", - ""); - I_Method0(osgWidget::XYCoord, getMinSize, - Properties::NON_VIRTUAL, - __XYCoord__getMinSize, - "", - ""); - I_Method0(osgWidget::matrix_type, getZRange, - Properties::NON_VIRTUAL, - __matrix_type__getZRange, - "", - ""); - I_Method0(osgWidget::Window::Strata, getStrata, - Properties::NON_VIRTUAL, - __Strata__getStrata, - "", - ""); - I_Method0(const osgWidget::Quad &, getVisibleArea, - Properties::NON_VIRTUAL, - __C5_Quad_R1__getVisibleArea, - "", - ""); - I_Method0(osgWidget::Window::VisibilityMode, getVisibilityMode, - Properties::NON_VIRTUAL, - __VisibilityMode__getVisibilityMode, - "", - ""); - I_Method0(osgWidget::Point, getPosition, - Properties::NON_VIRTUAL, - __Point__getPosition, - "", - ""); - I_Method0(osgWidget::matrix_type, getRotate, - Properties::NON_VIRTUAL, - __matrix_type__getRotate, - "", - ""); - I_Method0(osgWidget::matrix_type, getScale, - Properties::NON_VIRTUAL, - __matrix_type__getScale, - "", - ""); - I_Method0(osgWidget::matrix_type, getScaleDenominator, - Properties::NON_VIRTUAL, - __matrix_type__getScaleDenominator, - "", - ""); - I_Method1(void, setX, IN, osgWidget::matrix_type, x, - Properties::NON_VIRTUAL, - __void__setX__matrix_type, - "", - ""); - I_Method1(void, setY, IN, osgWidget::matrix_type, y, - Properties::NON_VIRTUAL, - __void__setY__matrix_type, - "", - ""); - I_Method3(void, setPosition, IN, osgWidget::matrix_type, x, IN, osgWidget::matrix_type, y, IN, osgWidget::matrix_type, z, - Properties::NON_VIRTUAL, - __void__setPosition__matrix_type__matrix_type__matrix_type, - "", - ""); - I_Method1(void, setPosition, IN, const osgWidget::Point &, p, - Properties::NON_VIRTUAL, - __void__setPosition__C5_Point_R1, - "", - ""); - I_Method2(void, setOrigin, IN, osgWidget::matrix_type, x, IN, osgWidget::matrix_type, y, - Properties::NON_VIRTUAL, - __void__setOrigin__matrix_type__matrix_type, - "", - ""); - I_Method1(void, setRotate, IN, osgWidget::matrix_type, r, - Properties::NON_VIRTUAL, - __void__setRotate__matrix_type, - "", - ""); - I_Method1(void, setScale, IN, osgWidget::matrix_type, s, - Properties::NON_VIRTUAL, - __void__setScale__matrix_type, - "", - ""); - I_Method1(void, setScaleDenominator, IN, osgWidget::matrix_type, sd, - Properties::NON_VIRTUAL, - __void__setScaleDenominator__matrix_type, - "", - ""); - I_Method1(void, setAnchorVertical, IN, osgWidget::Window::VerticalAnchor, va, - Properties::NON_VIRTUAL, - __void__setAnchorVertical__VerticalAnchor, - "", - ""); - I_Method1(void, setAnchorHorizontal, IN, osgWidget::Window::HorizontalAnchor, ha, - Properties::NON_VIRTUAL, - __void__setAnchorHorizontal__HorizontalAnchor, - "", - ""); - I_Method1(void, setStrata, IN, osgWidget::Window::Strata, s, - Properties::NON_VIRTUAL, - __void__setStrata__Strata, - "", - ""); - I_Method1(void, setVisibilityMode, IN, osgWidget::Window::VisibilityMode, v, - Properties::NON_VIRTUAL, - __void__setVisibilityMode__VisibilityMode, - "", - ""); - I_Method1(void, addX, IN, osgWidget::matrix_type, x, - Properties::NON_VIRTUAL, - __void__addX__matrix_type, - "", - ""); - I_Method1(void, addY, IN, osgWidget::matrix_type, y, - Properties::NON_VIRTUAL, - __void__addY__matrix_type, - "", - ""); - I_Method1(void, addZ, IN, osgWidget::matrix_type, z, - Properties::NON_VIRTUAL, - __void__addZ__matrix_type, - "", - ""); - I_Method1(void, addRotate, IN, osgWidget::matrix_type, r, - Properties::NON_VIRTUAL, - __void__addRotate__matrix_type, - "", - ""); - I_Method1(void, addScale, IN, osgWidget::matrix_type, s, - Properties::NON_VIRTUAL, - __void__addScale__matrix_type, - "", - ""); - I_Method2(void, addOrigin, IN, osgWidget::matrix_type, x, IN, osgWidget::matrix_type, y, - Properties::NON_VIRTUAL, - __void__addOrigin__matrix_type__matrix_type, - "", - ""); - I_Method0(void, attachMoveCallback, - Properties::NON_VIRTUAL, - __void__attachMoveCallback, - "", - ""); - I_Method0(void, attachRotateCallback, - Properties::NON_VIRTUAL, - __void__attachRotateCallback, - "", - ""); - I_Method0(void, attachScaleCallback, - Properties::NON_VIRTUAL, - __void__attachScaleCallback, - "", - ""); - I_Method0(void, attachTabFocusCallback, - Properties::NON_VIRTUAL, - __void__attachTabFocusCallback, - "", - ""); - I_ProtectedMethod2(void, _setWidthAndHeightUnknownSizeError, IN, const std::string &, x, IN, osgWidget::point_type, x, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __void___setWidthAndHeightUnknownSizeError__C5_std_string_R1__point_type, - "", - ""); - I_ProtectedMethod2(void, _setWidthAndHeightNotPAError, IN, const std::string &, x, IN, osgWidget::point_type, x, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __void___setWidthAndHeightNotPAError__C5_std_string_R1__point_type, - "", - ""); - I_ProtectedMethod0(void, _setWidthAndHeight, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __void___setWidthAndHeight, - "", - ""); - I_ProtectedMethod1(void, _removeFromGeode, IN, osgWidget::Widget *, x, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __void___removeFromGeode__Widget_P1, - "", - ""); - I_ProtectedMethod0(osgWidget::Widget *, _getBackground, - Properties::NON_VIRTUAL, - Properties::CONST, - __Widget_P1___getBackground, - "", - ""); - I_ProtectedMethod0(osgWidget::Window *, _getTopmostParent, - Properties::NON_VIRTUAL, - Properties::CONST, - __Window_P1___getTopmostParent, - "", - ""); - I_ProtectedMethod0(osg::Geode *, _geode, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __osg_Geode_P1___geode, - "", - ""); - I_ProtectedMethod0(const osg::Geode *, _geode, - Properties::NON_VIRTUAL, - Properties::CONST, - __C5_osg_Geode_P1___geode, - "", - ""); - I_ProtectedMethod0(osgWidget::Widget *, _bg, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __Widget_P1___bg, - "", - ""); - I_ProtectedMethod0(const osgWidget::Widget *, _bg, - Properties::NON_VIRTUAL, - Properties::CONST, - __C5_Widget_P1___bg, - "", - ""); - I_ProtectedMethod0(osg::Scissor *, _scissor, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __osg_Scissor_P1___scissor, - "", - ""); - I_ProtectedMethodWithDefaults2(bool, _setWidget, IN, osgWidget::Widget *, x, , IN, int, x, -1, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __bool___setWidget__Widget_P1__int, - "", - ""); - I_ProtectedMethod1(bool, _setVisible, IN, bool, x, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __bool___setVisible__bool, - "", - ""); - I_ProtectedMethod1(void, _setFocused, IN, osgWidget::Widget *, x, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __void___setFocused__Widget_P1, - "", - ""); - I_ProtectedMethod1(void, _setStyled, IN, osgWidget::Widget *, x, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __void___setStyled__Widget_P1, - "", - ""); - I_ProtectedMethodWithDefaults2(void, _setParented, IN, osgWidget::Widget *, x, , IN, bool, x, false, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __void___setParented__Widget_P1__bool, - "", - ""); - I_ProtectedMethodWithDefaults2(void, _setManaged, IN, osgWidget::Widget *, x, , IN, bool, x, false, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __void___setManaged__Widget_P1__bool, - "", - ""); - I_ProtectedMethod3(void, _positionWidget, IN, osgWidget::Widget *, x, IN, osgWidget::point_type, x, IN, osgWidget::point_type, x, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __void___positionWidget__Widget_P1__point_type__point_type, - "", - ""); - I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMinWidgetWidth, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, - Properties::NON_VIRTUAL, - Properties::CONST, - __point_type___getMinWidgetWidth__int__int__int, - "", - ""); - I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMinWidgetHeight, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, - Properties::NON_VIRTUAL, - Properties::CONST, - __point_type___getMinWidgetHeight__int__int__int, - "", - ""); - I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMaxWidgetWidth, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, - Properties::NON_VIRTUAL, - Properties::CONST, - __point_type___getMaxWidgetWidth__int__int__int, - "", - ""); - I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMaxWidgetHeight, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, - Properties::NON_VIRTUAL, - Properties::CONST, - __point_type___getMaxWidgetHeight__int__int__int, - "", - ""); - I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMinWidgetMinWidth, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, - Properties::NON_VIRTUAL, - Properties::CONST, - __point_type___getMinWidgetMinWidth__int__int__int, - "", - ""); - I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMinWidgetMinHeight, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, - Properties::NON_VIRTUAL, - Properties::CONST, - __point_type___getMinWidgetMinHeight__int__int__int, - "", - ""); - I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMaxWidgetMinWidth, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, - Properties::NON_VIRTUAL, - Properties::CONST, - __point_type___getMaxWidgetMinWidth__int__int__int, - "", - ""); - I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMaxWidgetMinHeight, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, - Properties::NON_VIRTUAL, - Properties::CONST, - __point_type___getMaxWidgetMinHeight__int__int__int, - "", - ""); - I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMinWidgetWidthTotal, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, - Properties::NON_VIRTUAL, - Properties::CONST, - __point_type___getMinWidgetWidthTotal__int__int__int, - "", - ""); - I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMinWidgetHeightTotal, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, - Properties::NON_VIRTUAL, - Properties::CONST, - __point_type___getMinWidgetHeightTotal__int__int__int, - "", - ""); - I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMaxWidgetWidthTotal, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, - Properties::NON_VIRTUAL, - Properties::CONST, - __point_type___getMaxWidgetWidthTotal__int__int__int, - "", - ""); - I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMaxWidgetHeightTotal, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, - Properties::NON_VIRTUAL, - Properties::CONST, - __point_type___getMaxWidgetHeightTotal__int__int__int, - "", - ""); - I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMinWidgetMinWidthTotal, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, - Properties::NON_VIRTUAL, - Properties::CONST, - __point_type___getMinWidgetMinWidthTotal__int__int__int, - "", - ""); - I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMinWidgetMinHeightTotal, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, - Properties::NON_VIRTUAL, - Properties::CONST, - __point_type___getMinWidgetMinHeightTotal__int__int__int, - "", - ""); - I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMaxWidgetMinWidthTotal, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, - Properties::NON_VIRTUAL, - Properties::CONST, - __point_type___getMaxWidgetMinWidthTotal__int__int__int, - "", - ""); - I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMaxWidgetMinHeightTotal, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, - Properties::NON_VIRTUAL, - Properties::CONST, - __point_type___getMaxWidgetMinHeightTotal__int__int__int, - "", - ""); - I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMinWidgetPadHorizontal, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, - Properties::NON_VIRTUAL, - Properties::CONST, - __point_type___getMinWidgetPadHorizontal__int__int__int, - "", - ""); - I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMinWidgetPadVertical, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, - Properties::NON_VIRTUAL, - Properties::CONST, - __point_type___getMinWidgetPadVertical__int__int__int, - "", - ""); - I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMaxWidgetPadHorizontal, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, - Properties::NON_VIRTUAL, - Properties::CONST, - __point_type___getMaxWidgetPadHorizontal__int__int__int, - "", - ""); - I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMaxWidgetPadVertical, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, - Properties::NON_VIRTUAL, - Properties::CONST, - __point_type___getMaxWidgetPadVertical__int__int__int, - "", - ""); - I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getNumFill, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, - Properties::NON_VIRTUAL, - Properties::CONST, - __point_type___getNumFill__int__int__int, - "", - ""); - I_ProtectedMethod2(void, _resizeImplementation, IN, osgWidget::point_type, x, IN, osgWidget::point_type, x, - Properties::PURE_VIRTUAL, - Properties::NON_CONST, - __void___resizeImplementation__point_type__point_type, - "", - ""); - I_ProtectedMethod0(osgWidget::Window::Sizes, _getWidthImplementation, - Properties::VIRTUAL, - Properties::CONST, - __Sizes___getWidthImplementation, - "", - ""); - I_ProtectedMethod0(osgWidget::Window::Sizes, _getHeightImplementation, - Properties::VIRTUAL, - Properties::CONST, - __Sizes___getHeightImplementation, - "", - ""); - I_SimpleProperty(osgWidget::XYCoord, AbsoluteOrigin, - __XYCoord__getAbsoluteOrigin, - 0); - I_SimpleProperty(osgWidget::Window::HorizontalAnchor, AnchorHorizontal, - __HorizontalAnchor__getAnchorHorizontal, - __void__setAnchorHorizontal__HorizontalAnchor); - I_SimpleProperty(osgWidget::Window::VerticalAnchor, AnchorVertical, - __VerticalAnchor__getAnchorVertical, - __void__setAnchorVertical__VerticalAnchor); - I_SimpleProperty(osgWidget::Widget *, Background, - __Widget_P1__getBackground, - 0); - I_SimpleProperty(const osgWidget::Widget *, Focused, - __C5_Widget_P1__getFocused, - __bool__setFocused__C5_Widget_P1); - I_SimpleProperty(osg::Geode *, Geode, - __osg_Geode_P1__getGeode, - 0); - I_SimpleProperty(osgWidget::point_type, Height, - __point_type__getHeight, - 0); - I_SimpleProperty(unsigned int, Index, - __unsigned_int__getIndex, - 0); - I_SimpleProperty(osgWidget::point_type, MinHeight, - __point_type__getMinHeight, - 0); - I_SimpleProperty(osgWidget::XYCoord, MinSize, - __XYCoord__getMinSize, - 0); - I_SimpleProperty(osgWidget::point_type, MinWidth, - __point_type__getMinWidth, - 0); - I_SimpleProperty(osgWidget::XYCoord, Origin, - __XYCoord__getOrigin, - 0); - I_SimpleProperty(osgWidget::Window *, Parent, - __Window_P1__getParent, - 0); - I_SimpleProperty(osgWidget::Point, Position, - __Point__getPosition, - __void__setPosition__C5_Point_R1); - I_SimpleProperty(osgWidget::matrix_type, Rotate, - __matrix_type__getRotate, - __void__setRotate__matrix_type); - I_SimpleProperty(osgWidget::matrix_type, Scale, - __matrix_type__getScale, - __void__setScale__matrix_type); - I_SimpleProperty(osgWidget::matrix_type, ScaleDenominator, - __matrix_type__getScaleDenominator, - __void__setScaleDenominator__matrix_type); - I_SimpleProperty(osgWidget::XYCoord, Size, - __XYCoord__getSize, - 0); - I_SimpleProperty(osgWidget::Window::Strata, Strata, - __Strata__getStrata, - __void__setStrata__Strata); - I_SimpleProperty(osgWidget::Window *, TopmostParent, - __Window_P1__getTopmostParent, - 0); - I_SimpleProperty(osgWidget::Window::VisibilityMode, VisibilityMode, - __VisibilityMode__getVisibilityMode, - __void__setVisibilityMode__VisibilityMode); - I_SimpleProperty(const osgWidget::Quad &, VisibleArea, - __C5_Quad_R1__getVisibleArea, - 0); - I_SimpleProperty(osgWidget::point_type, Width, - __point_type__getWidth, - 0); - I_SimpleProperty(osgWidget::WindowManager *, WindowManager, - __WindowManager_P1__getWindowManager, - 0); - I_SimpleProperty(osgWidget::matrix_type, X, - __matrix_type__getX, - __void__setX__matrix_type); - I_SimpleProperty(osgWidget::matrix_type, Y, - __matrix_type__getY, - __void__setY__matrix_type); - I_SimpleProperty(osgWidget::matrix_type, Z, - __matrix_type__getZ, - 0); - I_SimpleProperty(osgWidget::matrix_type, ZRange, - __matrix_type__getZRange, - 0); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(osgWidget::Window::EmbeddedWindow) - I_DeclaringFile("osgWidget/Window"); - I_BaseType(osgWidget::Widget); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __osg_Object_P1__cloneType, - "Clone the type of an object, with Object* return type. ", - "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::VIRTUAL, - __osg_Object_P1__clone__C5_osg_CopyOp_R1, - "Clone an object, with Object* return type. ", - "Must be defined by derived classes. "); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "return the name of the object's library. ", - "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "return the name of the object's class type. ", - "Must be defined by derived classes. "); - I_Method1(, META_UIObject, IN, osgWidget::Window::EmbeddedWindow, x, - Properties::NON_VIRTUAL, - ____META_UIObject__EmbeddedWindow, - "", - ""); - I_ConstructorWithDefaults3(IN, const std::string &, x, "", IN, osgWidget::point_type, x, 0.0f, IN, osgWidget::point_type, x, 0.0f, - ____EmbeddedWindow__C5_std_string_R1__point_type__point_type, - "", - ""); - I_Constructor2(IN, const osgWidget::Window::EmbeddedWindow &, x, IN, const osg::CopyOp &, x, - ____EmbeddedWindow__C5_EmbeddedWindow_R1__C5_osg_CopyOp_R1, - "", - ""); - I_Method1(void, parented, IN, osgWidget::Window *, x, - Properties::VIRTUAL, - __void__parented__Window_P1, - "", - ""); - I_Method1(void, unparented, IN, osgWidget::Window *, x, - Properties::VIRTUAL, - __void__unparented__Window_P1, - "", - ""); - I_Method1(void, managed, IN, osgWidget::WindowManager *, x, - Properties::VIRTUAL, - __void__managed__WindowManager_P1, - "", - ""); - I_Method1(void, unmanaged, IN, osgWidget::WindowManager *, x, - Properties::VIRTUAL, - __void__unmanaged__WindowManager_P1, - "", - ""); - I_Method0(void, positioned, - Properties::VIRTUAL, - __void__positioned, - "", - ""); - I_Method1(bool, setWindow, IN, osgWidget::Window *, x, - Properties::NON_VIRTUAL, - __bool__setWindow__Window_P1, - "", - ""); - I_Method0(osgWidget::Window *, getWindow, - Properties::NON_VIRTUAL, - __Window_P1__getWindow, - "", - ""); - I_Method0(const osgWidget::Window *, getWindow, - Properties::NON_VIRTUAL, - __C5_Window_P1__getWindow, - "", - ""); - I_SimpleProperty(osgWidget::Window *, Window, - __Window_P1__getWindow, - __bool__setWindow__Window_P1); -END_REFLECTOR - -BEGIN_VALUE_REFLECTOR(osgWidget::Window::Sizes) - I_DeclaringFile("osgWidget/Window"); - I_ConstructorWithDefaults2(IN, osgWidget::point_type, c, -1.0f, IN, osgWidget::point_type, m, -1.0f, - ____Sizes__point_type__point_type, - "", - ""); - I_PublicMemberProperty(osgWidget::point_type, cur); - I_PublicMemberProperty(osgWidget::point_type, min); -END_REFLECTOR - -TYPE_NAME_ALIAS(osgWidget::Window::WindowList, osgWidget::WindowList) - -BEGIN_OBJECT_REFLECTOR(osg::observer_ptr< osgWidget::Window >) - I_DeclaringFile("osg/observer_ptr"); - I_BaseType(osg::Observer); - I_Constructor0(____observer_ptr, - "", - ""); - I_Constructor1(IN, osgWidget::Window *, t, - Properties::NON_EXPLICIT, - ____observer_ptr__T_P1, - "", - ""); - I_Constructor1(IN, const osg::observer_ptr< osgWidget::Window > &, rp, - Properties::NON_EXPLICIT, - ____observer_ptr__C5_observer_ptr_R1, - "", - ""); - I_Method1(void, objectDeleted, IN, void *, x, - Properties::VIRTUAL, - __void__objectDeleted__void_P1, - "", - ""); - I_Method0(osgWidget::Window *, get, - Properties::NON_VIRTUAL, - __T_P1__get, - "", - ""); - I_Method0(bool, valid, - Properties::NON_VIRTUAL, - __bool__valid, - "", - ""); - I_SimpleProperty(osgWidget::Window *, , - __T_P1__get, - 0); -END_REFLECTOR - -STD_LIST_REFLECTOR(std::list< osg::observer_ptr< osgWidget::Window > >) - +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgWidget::Window::Strata) + I_DeclaringFile("osgWidget/Window"); + I_EnumLabel(osgWidget::Window::STRATA_NONE); + I_EnumLabel(osgWidget::Window::STRATA_BACKGROUND); + I_EnumLabel(osgWidget::Window::STRATA_FOREGROUND); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgWidget::Window::VisibilityMode) + I_DeclaringFile("osgWidget/Window"); + I_EnumLabel(osgWidget::Window::VM_FULL); + I_EnumLabel(osgWidget::Window::VM_PARTIAL); + I_EnumLabel(osgWidget::Window::VM_ENTIRE); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgWidget::Window::VerticalAnchor) + I_DeclaringFile("osgWidget/Window"); + I_EnumLabel(osgWidget::Window::VA_NONE); + I_EnumLabel(osgWidget::Window::VA_CENTER); + I_EnumLabel(osgWidget::Window::VA_TOP); + I_EnumLabel(osgWidget::Window::VA_BOTTOM); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgWidget::Window::HorizontalAnchor) + I_DeclaringFile("osgWidget/Window"); + I_EnumLabel(osgWidget::Window::HA_NONE); + I_EnumLabel(osgWidget::Window::HA_CENTER); + I_EnumLabel(osgWidget::Window::HA_LEFT); + I_EnumLabel(osgWidget::Window::HA_RIGHT); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::list< osg::observer_ptr< osgWidget::Window > >, osgWidget::Window::WindowList) + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgWidget::Window) + I_DeclaringFile("osgWidget/Window"); + I_BaseType(osg::MatrixTransform); + I_BaseType(osgWidget::UIObjectParent); + I_BaseType(osgWidget::EventInterface); + I_BaseType(osgWidget::StyleInterface); + I_Method1(, META_UIObject, IN, osgWidget::Window, x, + Properties::NON_VIRTUAL, + ____META_UIObject__Window, + "", + ""); + I_ConstructorWithDefaults1(IN, const std::string &, x, "", + Properties::NON_EXPLICIT, + ____Window__C5_std_string_R1, + "", + ""); + I_Constructor2(IN, const osgWidget::Window &, x, IN, const osg::CopyOp &, x, + ____Window__C5_Window_R1__C5_osg_CopyOp_R1, + "", + ""); + I_MethodWithDefaults2(bool, resize, IN, osgWidget::point_type, x, 0.0f, IN, osgWidget::point_type, x, 0.0f, + Properties::NON_VIRTUAL, + __bool__resize__point_type__point_type, + "", + ""); + I_MethodWithDefaults2(bool, resizeAdd, IN, osgWidget::point_type, x, 0.0f, IN, osgWidget::point_type, x, 0.0f, + Properties::NON_VIRTUAL, + __bool__resizeAdd__point_type__point_type, + "", + ""); + I_MethodWithDefaults2(bool, resizePercent, IN, osgWidget::point_type, x, 0.0f, IN, osgWidget::point_type, x, 0.0f, + Properties::NON_VIRTUAL, + __bool__resizePercent__point_type__point_type, + "", + ""); + I_Method0(void, update, + Properties::VIRTUAL, + __void__update, + "", + ""); + I_Method1(void, managed, IN, osgWidget::WindowManager *, x, + Properties::VIRTUAL, + __void__managed__WindowManager_P1, + "", + ""); + I_Method1(void, unmanaged, IN, osgWidget::WindowManager *, x, + Properties::VIRTUAL, + __void__unmanaged__WindowManager_P1, + "", + ""); + I_Method1(bool, addWidget, IN, osgWidget::Widget *, x, + Properties::VIRTUAL, + __bool__addWidget__Widget_P1, + "", + ""); + I_Method2(bool, insertWidget, IN, osgWidget::Widget *, x, IN, unsigned, int, + Properties::VIRTUAL, + __bool__insertWidget__Widget_P1__unsigned, + "", + ""); + I_Method1(bool, removeWidget, IN, osgWidget::Widget *, x, + Properties::VIRTUAL, + __bool__removeWidget__Widget_P1, + "", + ""); + I_Method2(bool, replaceWidget, IN, osgWidget::Widget *, x, IN, osgWidget::Widget *, x, + Properties::VIRTUAL, + __bool__replaceWidget__Widget_P1__Widget_P1, + "", + ""); + I_Method1(unsigned int, addDrawableAndGetIndex, IN, osg::Drawable *, x, + Properties::NON_VIRTUAL, + __unsigned_int__addDrawableAndGetIndex__osg_Drawable_P1, + "", + ""); + I_Method0(bool, isVisible, + Properties::NON_VIRTUAL, + __bool__isVisible, + "", + ""); + I_Method2(bool, isXYWithinVisible, IN, float, x, IN, float, x, + Properties::NON_VIRTUAL, + __bool__isXYWithinVisible__float__float, + "", + ""); + I_MethodWithDefaults4(void, setVisibleArea, IN, int, x, 0, IN, int, x, 0, IN, int, x, 0, IN, int, x, 0, + Properties::NON_VIRTUAL, + __void__setVisibleArea__int__int__int__int, + "", + ""); + I_MethodWithDefaults4(void, addVisibleArea, IN, int, x, 0, IN, int, x, 0, IN, int, x, 0, IN, int, x, 0, + Properties::NON_VIRTUAL, + __void__addVisibleArea__int__int__int__int, + "", + ""); + I_Method1(bool, setFocused, IN, const osgWidget::Widget *, x, + Properties::NON_VIRTUAL, + __bool__setFocused__C5_Widget_P1, + "", + ""); + I_Method1(bool, setFocused, IN, const std::string &, x, + Properties::NON_VIRTUAL, + __bool__setFocused__C5_std_string_R1, + "", + ""); + I_Method0(bool, setFirstFocusable, + Properties::NON_VIRTUAL, + __bool__setFirstFocusable, + "", + ""); + I_Method0(bool, setNextFocusable, + Properties::NON_VIRTUAL, + __bool__setNextFocusable, + "", + ""); + I_Method1(bool, getFocusList, IN, osgWidget::WidgetList &, x, + Properties::NON_VIRTUAL, + __bool__getFocusList__WidgetList_R1, + "", + ""); + I_Method1(bool, getEmbeddedList, IN, osgWidget::Window::WindowList &, x, + Properties::NON_VIRTUAL, + __bool__getEmbeddedList__WindowList_R1, + "", + ""); + I_Method1(void, getParentList, IN, osgWidget::Window::WindowList &, x, + Properties::NON_VIRTUAL, + __void__getParentList__WindowList_R1, + "", + ""); + I_Method2(osgWidget::XYCoord, localXY, IN, double, x, IN, double, x, + Properties::NON_VIRTUAL, + __XYCoord__localXY__double__double, + "", + ""); + I_Method0(osgWidget::XYCoord, getAbsoluteOrigin, + Properties::NON_VIRTUAL, + __XYCoord__getAbsoluteOrigin, + "", + ""); + I_Method0(osgWidget::Window::EmbeddedWindow *, embed, + Properties::NON_VIRTUAL, + __EmbeddedWindow_P1__embed, + "", + ""); + I_Method0(osgWidget::Widget *, getFocused, + Properties::NON_VIRTUAL, + __Widget_P1__getFocused, + "", + ""); + I_Method0(const osgWidget::Widget *, getFocused, + Properties::NON_VIRTUAL, + __C5_Widget_P1__getFocused, + "", + ""); + I_Method0(bool, show, + Properties::NON_VIRTUAL, + __bool__show, + "", + ""); + I_Method0(bool, hide, + Properties::NON_VIRTUAL, + __bool__hide, + "", + ""); + I_Method2(bool, isPointerXYWithinVisible, IN, float, x, IN, float, y, + Properties::NON_VIRTUAL, + __bool__isPointerXYWithinVisible__float__float, + "", + ""); + I_Method0(osg::Geode *, getGeode, + Properties::NON_VIRTUAL, + __osg_Geode_P1__getGeode, + "", + ""); + I_Method0(const osg::Geode *, getGeode, + Properties::NON_VIRTUAL, + __C5_osg_Geode_P1__getGeode, + "", + ""); + I_Method0(osgWidget::Widget *, getBackground, + Properties::NON_VIRTUAL, + __Widget_P1__getBackground, + "", + ""); + I_Method0(const osgWidget::Widget *, getBackground, + Properties::NON_VIRTUAL, + __C5_Widget_P1__getBackground, + "", + ""); + I_Method0(osgWidget::WindowManager *, getWindowManager, + Properties::NON_VIRTUAL, + __WindowManager_P1__getWindowManager, + "", + ""); + I_Method0(const osgWidget::WindowManager *, getWindowManager, + Properties::NON_VIRTUAL, + __C5_WindowManager_P1__getWindowManager, + "", + ""); + I_Method0(osgWidget::Window *, getParent, + Properties::NON_VIRTUAL, + __Window_P1__getParent, + "", + ""); + I_Method0(const osgWidget::Window *, getParent, + Properties::NON_VIRTUAL, + __C5_Window_P1__getParent, + "", + ""); + I_Method0(osgWidget::Window *, getTopmostParent, + Properties::NON_VIRTUAL, + __Window_P1__getTopmostParent, + "", + ""); + I_Method0(const osgWidget::Window *, getTopmostParent, + Properties::NON_VIRTUAL, + __C5_Window_P1__getTopmostParent, + "", + ""); + I_Method0(unsigned int, getIndex, + Properties::NON_VIRTUAL, + __unsigned_int__getIndex, + "", + ""); + I_Method0(osgWidget::matrix_type, getX, + Properties::NON_VIRTUAL, + __matrix_type__getX, + "", + ""); + I_Method0(osgWidget::matrix_type, getY, + Properties::NON_VIRTUAL, + __matrix_type__getY, + "", + ""); + I_Method0(osgWidget::matrix_type, getZ, + Properties::NON_VIRTUAL, + __matrix_type__getZ, + "", + ""); + I_Method0(osgWidget::point_type, getWidth, + Properties::NON_VIRTUAL, + __point_type__getWidth, + "", + ""); + I_Method0(osgWidget::point_type, getHeight, + Properties::NON_VIRTUAL, + __point_type__getHeight, + "", + ""); + I_Method0(osgWidget::point_type, getMinWidth, + Properties::NON_VIRTUAL, + __point_type__getMinWidth, + "", + ""); + I_Method0(osgWidget::point_type, getMinHeight, + Properties::NON_VIRTUAL, + __point_type__getMinHeight, + "", + ""); + I_Method0(osgWidget::Window::VerticalAnchor, getAnchorVertical, + Properties::NON_VIRTUAL, + __VerticalAnchor__getAnchorVertical, + "", + ""); + I_Method0(osgWidget::Window::HorizontalAnchor, getAnchorHorizontal, + Properties::NON_VIRTUAL, + __HorizontalAnchor__getAnchorHorizontal, + "", + ""); + I_Method0(osgWidget::XYCoord, getOrigin, + Properties::NON_VIRTUAL, + __XYCoord__getOrigin, + "", + ""); + I_Method0(osgWidget::XYCoord, getSize, + Properties::NON_VIRTUAL, + __XYCoord__getSize, + "", + ""); + I_Method0(osgWidget::XYCoord, getMinSize, + Properties::NON_VIRTUAL, + __XYCoord__getMinSize, + "", + ""); + I_Method0(osgWidget::matrix_type, getZRange, + Properties::NON_VIRTUAL, + __matrix_type__getZRange, + "", + ""); + I_Method0(osgWidget::Window::Strata, getStrata, + Properties::NON_VIRTUAL, + __Strata__getStrata, + "", + ""); + I_Method0(const osgWidget::Quad &, getVisibleArea, + Properties::NON_VIRTUAL, + __C5_Quad_R1__getVisibleArea, + "", + ""); + I_Method0(osgWidget::Window::VisibilityMode, getVisibilityMode, + Properties::NON_VIRTUAL, + __VisibilityMode__getVisibilityMode, + "", + ""); + I_Method0(osgWidget::Point, getPosition, + Properties::NON_VIRTUAL, + __Point__getPosition, + "", + ""); + I_Method0(osgWidget::matrix_type, getRotate, + Properties::NON_VIRTUAL, + __matrix_type__getRotate, + "", + ""); + I_Method0(osgWidget::matrix_type, getScale, + Properties::NON_VIRTUAL, + __matrix_type__getScale, + "", + ""); + I_Method0(osgWidget::matrix_type, getScaleDenominator, + Properties::NON_VIRTUAL, + __matrix_type__getScaleDenominator, + "", + ""); + I_Method1(void, setX, IN, osgWidget::matrix_type, x, + Properties::NON_VIRTUAL, + __void__setX__matrix_type, + "", + ""); + I_Method1(void, setY, IN, osgWidget::matrix_type, y, + Properties::NON_VIRTUAL, + __void__setY__matrix_type, + "", + ""); + I_Method3(void, setPosition, IN, osgWidget::matrix_type, x, IN, osgWidget::matrix_type, y, IN, osgWidget::matrix_type, z, + Properties::NON_VIRTUAL, + __void__setPosition__matrix_type__matrix_type__matrix_type, + "", + ""); + I_Method1(void, setPosition, IN, const osgWidget::Point &, p, + Properties::NON_VIRTUAL, + __void__setPosition__C5_Point_R1, + "", + ""); + I_Method2(void, setOrigin, IN, osgWidget::matrix_type, x, IN, osgWidget::matrix_type, y, + Properties::NON_VIRTUAL, + __void__setOrigin__matrix_type__matrix_type, + "", + ""); + I_Method1(void, setRotate, IN, osgWidget::matrix_type, r, + Properties::NON_VIRTUAL, + __void__setRotate__matrix_type, + "", + ""); + I_Method1(void, setScale, IN, osgWidget::matrix_type, s, + Properties::NON_VIRTUAL, + __void__setScale__matrix_type, + "", + ""); + I_Method1(void, setScaleDenominator, IN, osgWidget::matrix_type, sd, + Properties::NON_VIRTUAL, + __void__setScaleDenominator__matrix_type, + "", + ""); + I_Method1(void, setAnchorVertical, IN, osgWidget::Window::VerticalAnchor, va, + Properties::NON_VIRTUAL, + __void__setAnchorVertical__VerticalAnchor, + "", + ""); + I_Method1(void, setAnchorHorizontal, IN, osgWidget::Window::HorizontalAnchor, ha, + Properties::NON_VIRTUAL, + __void__setAnchorHorizontal__HorizontalAnchor, + "", + ""); + I_Method1(void, setStrata, IN, osgWidget::Window::Strata, s, + Properties::NON_VIRTUAL, + __void__setStrata__Strata, + "", + ""); + I_Method1(void, setVisibilityMode, IN, osgWidget::Window::VisibilityMode, v, + Properties::NON_VIRTUAL, + __void__setVisibilityMode__VisibilityMode, + "", + ""); + I_Method1(void, addX, IN, osgWidget::matrix_type, x, + Properties::NON_VIRTUAL, + __void__addX__matrix_type, + "", + ""); + I_Method1(void, addY, IN, osgWidget::matrix_type, y, + Properties::NON_VIRTUAL, + __void__addY__matrix_type, + "", + ""); + I_Method1(void, addZ, IN, osgWidget::matrix_type, z, + Properties::NON_VIRTUAL, + __void__addZ__matrix_type, + "", + ""); + I_Method1(void, addRotate, IN, osgWidget::matrix_type, r, + Properties::NON_VIRTUAL, + __void__addRotate__matrix_type, + "", + ""); + I_Method1(void, addScale, IN, osgWidget::matrix_type, s, + Properties::NON_VIRTUAL, + __void__addScale__matrix_type, + "", + ""); + I_Method2(void, addOrigin, IN, osgWidget::matrix_type, x, IN, osgWidget::matrix_type, y, + Properties::NON_VIRTUAL, + __void__addOrigin__matrix_type__matrix_type, + "", + ""); + I_Method0(void, attachMoveCallback, + Properties::NON_VIRTUAL, + __void__attachMoveCallback, + "", + ""); + I_Method0(void, attachRotateCallback, + Properties::NON_VIRTUAL, + __void__attachRotateCallback, + "", + ""); + I_Method0(void, attachScaleCallback, + Properties::NON_VIRTUAL, + __void__attachScaleCallback, + "", + ""); + I_Method0(void, attachTabFocusCallback, + Properties::NON_VIRTUAL, + __void__attachTabFocusCallback, + "", + ""); + I_ProtectedMethod2(void, _setWidthAndHeightUnknownSizeError, IN, const std::string &, x, IN, osgWidget::point_type, x, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void___setWidthAndHeightUnknownSizeError__C5_std_string_R1__point_type, + "", + ""); + I_ProtectedMethod2(void, _setWidthAndHeightNotPAError, IN, const std::string &, x, IN, osgWidget::point_type, x, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void___setWidthAndHeightNotPAError__C5_std_string_R1__point_type, + "", + ""); + I_ProtectedMethod0(void, _setWidthAndHeight, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void___setWidthAndHeight, + "", + ""); + I_ProtectedMethod1(void, _removeFromGeode, IN, osgWidget::Widget *, x, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void___removeFromGeode__Widget_P1, + "", + ""); + I_ProtectedMethod0(osgWidget::Widget *, _getBackground, + Properties::NON_VIRTUAL, + Properties::CONST, + __Widget_P1___getBackground, + "", + ""); + I_ProtectedMethod0(osgWidget::Window *, _getTopmostParent, + Properties::NON_VIRTUAL, + Properties::CONST, + __Window_P1___getTopmostParent, + "", + ""); + I_ProtectedMethod0(osg::Geode *, _geode, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __osg_Geode_P1___geode, + "", + ""); + I_ProtectedMethod0(const osg::Geode *, _geode, + Properties::NON_VIRTUAL, + Properties::CONST, + __C5_osg_Geode_P1___geode, + "", + ""); + I_ProtectedMethod0(osgWidget::Widget *, _bg, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __Widget_P1___bg, + "", + ""); + I_ProtectedMethod0(const osgWidget::Widget *, _bg, + Properties::NON_VIRTUAL, + Properties::CONST, + __C5_Widget_P1___bg, + "", + ""); + I_ProtectedMethod0(osg::Scissor *, _scissor, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __osg_Scissor_P1___scissor, + "", + ""); + I_ProtectedMethodWithDefaults2(bool, _setWidget, IN, osgWidget::Widget *, x, , IN, int, x, -1, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __bool___setWidget__Widget_P1__int, + "", + ""); + I_ProtectedMethod1(bool, _setVisible, IN, bool, x, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __bool___setVisible__bool, + "", + ""); + I_ProtectedMethod1(void, _setFocused, IN, osgWidget::Widget *, x, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void___setFocused__Widget_P1, + "", + ""); + I_ProtectedMethod1(void, _setStyled, IN, osgWidget::Widget *, x, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void___setStyled__Widget_P1, + "", + ""); + I_ProtectedMethodWithDefaults2(void, _setParented, IN, osgWidget::Widget *, x, , IN, bool, x, false, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void___setParented__Widget_P1__bool, + "", + ""); + I_ProtectedMethodWithDefaults2(void, _setManaged, IN, osgWidget::Widget *, x, , IN, bool, x, false, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void___setManaged__Widget_P1__bool, + "", + ""); + I_ProtectedMethod3(void, _positionWidget, IN, osgWidget::Widget *, x, IN, osgWidget::point_type, x, IN, osgWidget::point_type, x, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void___positionWidget__Widget_P1__point_type__point_type, + "", + ""); + I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMinWidgetWidth, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, + Properties::NON_VIRTUAL, + Properties::CONST, + __point_type___getMinWidgetWidth__int__int__int, + "", + ""); + I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMinWidgetHeight, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, + Properties::NON_VIRTUAL, + Properties::CONST, + __point_type___getMinWidgetHeight__int__int__int, + "", + ""); + I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMaxWidgetWidth, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, + Properties::NON_VIRTUAL, + Properties::CONST, + __point_type___getMaxWidgetWidth__int__int__int, + "", + ""); + I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMaxWidgetHeight, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, + Properties::NON_VIRTUAL, + Properties::CONST, + __point_type___getMaxWidgetHeight__int__int__int, + "", + ""); + I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMinWidgetMinWidth, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, + Properties::NON_VIRTUAL, + Properties::CONST, + __point_type___getMinWidgetMinWidth__int__int__int, + "", + ""); + I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMinWidgetMinHeight, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, + Properties::NON_VIRTUAL, + Properties::CONST, + __point_type___getMinWidgetMinHeight__int__int__int, + "", + ""); + I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMaxWidgetMinWidth, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, + Properties::NON_VIRTUAL, + Properties::CONST, + __point_type___getMaxWidgetMinWidth__int__int__int, + "", + ""); + I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMaxWidgetMinHeight, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, + Properties::NON_VIRTUAL, + Properties::CONST, + __point_type___getMaxWidgetMinHeight__int__int__int, + "", + ""); + I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMinWidgetWidthTotal, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, + Properties::NON_VIRTUAL, + Properties::CONST, + __point_type___getMinWidgetWidthTotal__int__int__int, + "", + ""); + I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMinWidgetHeightTotal, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, + Properties::NON_VIRTUAL, + Properties::CONST, + __point_type___getMinWidgetHeightTotal__int__int__int, + "", + ""); + I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMaxWidgetWidthTotal, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, + Properties::NON_VIRTUAL, + Properties::CONST, + __point_type___getMaxWidgetWidthTotal__int__int__int, + "", + ""); + I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMaxWidgetHeightTotal, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, + Properties::NON_VIRTUAL, + Properties::CONST, + __point_type___getMaxWidgetHeightTotal__int__int__int, + "", + ""); + I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMinWidgetMinWidthTotal, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, + Properties::NON_VIRTUAL, + Properties::CONST, + __point_type___getMinWidgetMinWidthTotal__int__int__int, + "", + ""); + I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMinWidgetMinHeightTotal, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, + Properties::NON_VIRTUAL, + Properties::CONST, + __point_type___getMinWidgetMinHeightTotal__int__int__int, + "", + ""); + I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMaxWidgetMinWidthTotal, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, + Properties::NON_VIRTUAL, + Properties::CONST, + __point_type___getMaxWidgetMinWidthTotal__int__int__int, + "", + ""); + I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMaxWidgetMinHeightTotal, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, + Properties::NON_VIRTUAL, + Properties::CONST, + __point_type___getMaxWidgetMinHeightTotal__int__int__int, + "", + ""); + I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMinWidgetPadHorizontal, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, + Properties::NON_VIRTUAL, + Properties::CONST, + __point_type___getMinWidgetPadHorizontal__int__int__int, + "", + ""); + I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMinWidgetPadVertical, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, + Properties::NON_VIRTUAL, + Properties::CONST, + __point_type___getMinWidgetPadVertical__int__int__int, + "", + ""); + I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMaxWidgetPadHorizontal, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, + Properties::NON_VIRTUAL, + Properties::CONST, + __point_type___getMaxWidgetPadHorizontal__int__int__int, + "", + ""); + I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMaxWidgetPadVertical, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, + Properties::NON_VIRTUAL, + Properties::CONST, + __point_type___getMaxWidgetPadVertical__int__int__int, + "", + ""); + I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getNumFill, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, + Properties::NON_VIRTUAL, + Properties::CONST, + __point_type___getNumFill__int__int__int, + "", + ""); + I_ProtectedMethod2(void, _resizeImplementation, IN, osgWidget::point_type, x, IN, osgWidget::point_type, x, + Properties::PURE_VIRTUAL, + Properties::NON_CONST, + __void___resizeImplementation__point_type__point_type, + "", + ""); + I_ProtectedMethod0(osgWidget::Window::Sizes, _getWidthImplementation, + Properties::VIRTUAL, + Properties::CONST, + __Sizes___getWidthImplementation, + "", + ""); + I_ProtectedMethod0(osgWidget::Window::Sizes, _getHeightImplementation, + Properties::VIRTUAL, + Properties::CONST, + __Sizes___getHeightImplementation, + "", + ""); + I_SimpleProperty(osgWidget::XYCoord, AbsoluteOrigin, + __XYCoord__getAbsoluteOrigin, + 0); + I_SimpleProperty(osgWidget::Window::HorizontalAnchor, AnchorHorizontal, + __HorizontalAnchor__getAnchorHorizontal, + __void__setAnchorHorizontal__HorizontalAnchor); + I_SimpleProperty(osgWidget::Window::VerticalAnchor, AnchorVertical, + __VerticalAnchor__getAnchorVertical, + __void__setAnchorVertical__VerticalAnchor); + I_SimpleProperty(osgWidget::Widget *, Background, + __Widget_P1__getBackground, + 0); + I_SimpleProperty(const osgWidget::Widget *, Focused, + __C5_Widget_P1__getFocused, + __bool__setFocused__C5_Widget_P1); + I_SimpleProperty(osg::Geode *, Geode, + __osg_Geode_P1__getGeode, + 0); + I_SimpleProperty(osgWidget::point_type, Height, + __point_type__getHeight, + 0); + I_SimpleProperty(unsigned int, Index, + __unsigned_int__getIndex, + 0); + I_SimpleProperty(osgWidget::point_type, MinHeight, + __point_type__getMinHeight, + 0); + I_SimpleProperty(osgWidget::XYCoord, MinSize, + __XYCoord__getMinSize, + 0); + I_SimpleProperty(osgWidget::point_type, MinWidth, + __point_type__getMinWidth, + 0); + I_SimpleProperty(osgWidget::XYCoord, Origin, + __XYCoord__getOrigin, + 0); + I_SimpleProperty(osgWidget::Window *, Parent, + __Window_P1__getParent, + 0); + I_SimpleProperty(osgWidget::Point, Position, + __Point__getPosition, + __void__setPosition__C5_Point_R1); + I_SimpleProperty(osgWidget::matrix_type, Rotate, + __matrix_type__getRotate, + __void__setRotate__matrix_type); + I_SimpleProperty(osgWidget::matrix_type, Scale, + __matrix_type__getScale, + __void__setScale__matrix_type); + I_SimpleProperty(osgWidget::matrix_type, ScaleDenominator, + __matrix_type__getScaleDenominator, + __void__setScaleDenominator__matrix_type); + I_SimpleProperty(osgWidget::XYCoord, Size, + __XYCoord__getSize, + 0); + I_SimpleProperty(osgWidget::Window::Strata, Strata, + __Strata__getStrata, + __void__setStrata__Strata); + I_SimpleProperty(osgWidget::Window *, TopmostParent, + __Window_P1__getTopmostParent, + 0); + I_SimpleProperty(osgWidget::Window::VisibilityMode, VisibilityMode, + __VisibilityMode__getVisibilityMode, + __void__setVisibilityMode__VisibilityMode); + I_SimpleProperty(const osgWidget::Quad &, VisibleArea, + __C5_Quad_R1__getVisibleArea, + 0); + I_SimpleProperty(osgWidget::point_type, Width, + __point_type__getWidth, + 0); + I_SimpleProperty(osgWidget::WindowManager *, WindowManager, + __WindowManager_P1__getWindowManager, + 0); + I_SimpleProperty(osgWidget::matrix_type, X, + __matrix_type__getX, + __void__setX__matrix_type); + I_SimpleProperty(osgWidget::matrix_type, Y, + __matrix_type__getY, + __void__setY__matrix_type); + I_SimpleProperty(osgWidget::matrix_type, Z, + __matrix_type__getZ, + 0); + I_SimpleProperty(osgWidget::matrix_type, ZRange, + __matrix_type__getZRange, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgWidget::Window::EmbeddedWindow) + I_DeclaringFile("osgWidget/Window"); + I_BaseType(osgWidget::Widget); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(, META_UIObject, IN, osgWidget::Window::EmbeddedWindow, x, + Properties::NON_VIRTUAL, + ____META_UIObject__EmbeddedWindow, + "", + ""); + I_ConstructorWithDefaults3(IN, const std::string &, x, "", IN, osgWidget::point_type, x, 0.0f, IN, osgWidget::point_type, x, 0.0f, + ____EmbeddedWindow__C5_std_string_R1__point_type__point_type, + "", + ""); + I_Constructor2(IN, const osgWidget::Window::EmbeddedWindow &, x, IN, const osg::CopyOp &, x, + ____EmbeddedWindow__C5_EmbeddedWindow_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(void, parented, IN, osgWidget::Window *, x, + Properties::VIRTUAL, + __void__parented__Window_P1, + "", + ""); + I_Method1(void, unparented, IN, osgWidget::Window *, x, + Properties::VIRTUAL, + __void__unparented__Window_P1, + "", + ""); + I_Method1(void, managed, IN, osgWidget::WindowManager *, x, + Properties::VIRTUAL, + __void__managed__WindowManager_P1, + "", + ""); + I_Method1(void, unmanaged, IN, osgWidget::WindowManager *, x, + Properties::VIRTUAL, + __void__unmanaged__WindowManager_P1, + "", + ""); + I_Method0(void, positioned, + Properties::VIRTUAL, + __void__positioned, + "", + ""); + I_Method1(bool, setWindow, IN, osgWidget::Window *, x, + Properties::NON_VIRTUAL, + __bool__setWindow__Window_P1, + "", + ""); + I_Method0(osgWidget::Window *, getWindow, + Properties::NON_VIRTUAL, + __Window_P1__getWindow, + "", + ""); + I_Method0(const osgWidget::Window *, getWindow, + Properties::NON_VIRTUAL, + __C5_Window_P1__getWindow, + "", + ""); + I_SimpleProperty(osgWidget::Window *, Window, + __Window_P1__getWindow, + __bool__setWindow__Window_P1); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgWidget::Window::Sizes) + I_DeclaringFile("osgWidget/Window"); + I_ConstructorWithDefaults2(IN, osgWidget::point_type, c, -1.0f, IN, osgWidget::point_type, m, -1.0f, + ____Sizes__point_type__point_type, + "", + ""); + I_PublicMemberProperty(osgWidget::point_type, cur); + I_PublicMemberProperty(osgWidget::point_type, min); +END_REFLECTOR + +TYPE_NAME_ALIAS(osgWidget::Window::WindowList, osgWidget::WindowList) + +BEGIN_OBJECT_REFLECTOR(osg::observer_ptr< osgWidget::Window >) + I_DeclaringFile("osg/observer_ptr"); + I_BaseType(osg::Observer); + I_Constructor0(____observer_ptr, + "", + ""); + I_Constructor1(IN, osgWidget::Window *, t, + Properties::NON_EXPLICIT, + ____observer_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::observer_ptr< osgWidget::Window > &, rp, + Properties::NON_EXPLICIT, + ____observer_ptr__C5_observer_ptr_R1, + "", + ""); + I_Method1(void, objectDeleted, IN, void *, x, + Properties::VIRTUAL, + __void__objectDeleted__void_P1, + "", + ""); + I_Method0(osgWidget::Window *, get, + Properties::NON_VIRTUAL, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_SimpleProperty(osgWidget::Window *, , + __T_P1__get, + 0); +END_REFLECTOR + +STD_LIST_REFLECTOR(std::list< osg::observer_ptr< osgWidget::Window > >) +