📄 particle.cpp
字号:
// ***************************************************************************//// Generated automatically by genwrapper.// Please DO NOT EDIT this file!//// ***************************************************************************#include <osgIntrospection/ReflectionMacros>#include <osgIntrospection/TypedMethodInfo>#include <osgIntrospection/StaticMethodInfo>#include <osgIntrospection/Attributes>#include <osg/Matrix>#include <osg/Vec3>#include <osg/Vec4>#include <osgParticle/Interpolator>#include <osgParticle/Particle>#include <osgParticle/ParticleSystem>#include <osgParticle/range>// Must undefine IN and OUT macros defined in Windows headers#ifdef IN#undef IN#endif#ifdef OUT#undef OUT#endifBEGIN_ENUM_REFLECTOR(osgParticle::Particle::Shape) I_DeclaringFile("osgParticle/Particle"); I_EnumLabel(osgParticle::Particle::POINT); I_EnumLabel(osgParticle::Particle::QUAD); I_EnumLabel(osgParticle::Particle::QUAD_TRIANGLESTRIP); I_EnumLabel(osgParticle::Particle::HEXAGON); I_EnumLabel(osgParticle::Particle::LINE);END_REFLECTORBEGIN_VALUE_REFLECTOR(osgParticle::Particle) I_DeclaringFile("osgParticle/Particle"); I_Constructor0(____Particle, "", ""); I_Method0(osgParticle::Particle::Shape, getShape, Properties::NON_VIRTUAL, __Shape__getShape, "Get the shape of the particle. ", ""); I_Method1(void, setShape, IN, osgParticle::Particle::Shape, s, Properties::NON_VIRTUAL, __void__setShape__Shape, "Set the shape of the particle. ", ""); I_Method0(bool, isAlive, Properties::NON_VIRTUAL, __bool__isAlive, "Get whether the particle is still alive. ", ""); I_Method0(double, getLifeTime, Properties::NON_VIRTUAL, __double__getLifeTime, "Get the life time of the particle (in seconds). ", ""); I_Method0(double, getAge, Properties::NON_VIRTUAL, __double__getAge, "Get the age of the particle (in seconds). ", ""); I_Method0(const osgParticle::rangef &, getSizeRange, Properties::NON_VIRTUAL, __C5_rangef_R1__getSizeRange, "Get the minimum and maximum values for polygon size. ", ""); I_Method0(const osgParticle::rangef &, getAlphaRange, Properties::NON_VIRTUAL, __C5_rangef_R1__getAlphaRange, "Get the minimum and maximum values for alpha. ", ""); I_Method0(const osgParticle::rangev4 &, getColorRange, Properties::NON_VIRTUAL, __C5_rangev4_R1__getColorRange, "Get the minimum and maximum values for color. ", ""); I_Method0(const osgParticle::Interpolator *, getSizeInterpolator, Properties::NON_VIRTUAL, __C5_Interpolator_P1__getSizeInterpolator, "Get the interpolator for computing the size of polygons. ", ""); I_Method0(const osgParticle::Interpolator *, getAlphaInterpolator, Properties::NON_VIRTUAL, __C5_Interpolator_P1__getAlphaInterpolator, "Get the interpolator for computing alpha values. ", ""); I_Method0(const osgParticle::Interpolator *, getColorInterpolator, Properties::NON_VIRTUAL, __C5_Interpolator_P1__getColorInterpolator, "Get the interpolator for computing color values. ", ""); I_Method0(float, getRadius, Properties::NON_VIRTUAL, __float__getRadius, "Get the physical radius of the particle. ", "For built-in operators to work correctly, lengths must be expressed in meters. "); I_Method0(float, getMass, Properties::NON_VIRTUAL, __float__getMass, "Get the mass of the particle. ", "For built-in operators to work correctly, remember that the mass is expressed in kg. "); I_Method0(float, getMassInv, Properties::NON_VIRTUAL, __float__getMassInv, "Get 1 / getMass(). ", ""); I_Method0(const osg::Vec3 &, getPosition, Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getPosition, "Get the position vector. ", ""); I_Method0(const osg::Vec3 &, getVelocity, Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getVelocity, "Get the velocity vector. ", "For built-in operators to work correctly, remember that velocity components are expressed in meters per second. "); I_Method0(const osg::Vec3 &, getPreviousPosition, Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getPreviousPosition, "Get the previous position (the position before last update). ", ""); I_Method0(const osg::Vec3 &, getAngle, Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getAngle, "Get the angle vector. ", ""); I_Method0(const osg::Vec3 &, getAngularVelocity, Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getAngularVelocity, "Get the rotational velocity vector. ", ""); I_Method0(const osg::Vec3 &, getPreviousAngle, Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getPreviousAngle, "Get the previous angle vector. ", ""); I_Method0(const osg::Vec4 &, getCurrentColor, Properties::NON_VIRTUAL, __C5_osg_Vec4_R1__getCurrentColor, "Get the current color. ", ""); I_Method0(float, getCurrentAlpha, Properties::NON_VIRTUAL, __float__getCurrentAlpha, "Get the current alpha. ", ""); I_Method0(const float, getSTexCoord, Properties::NON_VIRTUAL, __C5_float__getSTexCoord, "Get the s texture coordinate of the bottom left of the particle. ", ""); I_Method0(float, getTCoord, Properties::NON_VIRTUAL, __float__getTCoord, "Get the t texture coordinate of the bottom left of the particle. ", ""); I_Method0(int, getTileS, Properties::NON_VIRTUAL, __int__getTileS, "Get width of texture tile. ", ""); I_Method0(int, getTileT, Properties::NON_VIRTUAL, __int__getTileT, "Get height of texture tile. ", ""); I_Method0(int, getNumTiles, Properties::NON_VIRTUAL, __int__getNumTiles, "Get number of texture tiles. ", ""); I_Method0(void, kill, Properties::NON_VIRTUAL, __void__kill, "Kill the particle on next update NOTE: after calling this function, the isAlive() method will still return true until the particle is updated again. ", ""); I_Method1(void, setLifeTime, IN, double, t, Properties::NON_VIRTUAL, __void__setLifeTime__double, "Set the life time of the particle. ", ""); I_Method1(void, setSizeRange, IN, const osgParticle::rangef &, r, Properties::NON_VIRTUAL, __void__setSizeRange__C5_rangef_R1, "Set the minimum and maximum values for polygon size. ", ""); I_Method1(void, setAlphaRange, IN, const osgParticle::rangef &, r, Properties::NON_VIRTUAL, __void__setAlphaRange__C5_rangef_R1, "Set the minimum and maximum values for alpha. ", ""); I_Method1(void, setColorRange, IN, const osgParticle::rangev4 &, r, Properties::NON_VIRTUAL, __void__setColorRange__C5_rangev4_R1, "Set the minimum and maximum values for color. ", ""); I_Method1(void, setSizeInterpolator, IN, osgParticle::Interpolator *, ri, Properties::NON_VIRTUAL, __void__setSizeInterpolator__Interpolator_P1, "Set the interpolator for computing size values. ", "");
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -