📄 particle.cpp
字号:
I_Method1(void, setAlphaInterpolator, IN, osgParticle::Interpolator *, ai, Properties::NON_VIRTUAL, __void__setAlphaInterpolator__Interpolator_P1, "Set the interpolator for computing alpha values. ", ""); I_Method1(void, setColorInterpolator, IN, osgParticle::Interpolator *, ci, Properties::NON_VIRTUAL, __void__setColorInterpolator__Interpolator_P1, "Set the interpolator for computing color values. ", ""); I_Method1(void, setRadius, IN, float, r, Properties::NON_VIRTUAL, __void__setRadius__float, "Set the physical radius of the particle. ", "For built-in operators to work correctly, lengths must be expressed in meters. "); I_Method1(void, setMass, IN, float, m, Properties::NON_VIRTUAL, __void__setMass__float, "Set the mass of the particle. ", "For built-in operators to work correctly, remember that the mass is expressed in kg. "); I_Method1(void, setPosition, IN, const osg::Vec3 &, p, Properties::NON_VIRTUAL, __void__setPosition__C5_osg_Vec3_R1, "Set the position vector. ", ""); I_Method1(void, setVelocity, IN, const osg::Vec3 &, v, Properties::NON_VIRTUAL, __void__setVelocity__C5_osg_Vec3_R1, "Set the velocity vector. ", "For built-in operators to work correctly, remember that velocity components are expressed in meters per second. "); I_Method1(void, addVelocity, IN, const osg::Vec3 &, dv, Properties::NON_VIRTUAL, __void__addVelocity__C5_osg_Vec3_R1, "Add a vector to the velocity vector. ", ""); I_Method1(void, transformPositionVelocity, IN, const osg::Matrix &, xform, Properties::NON_VIRTUAL, __void__transformPositionVelocity__C5_osg_Matrix_R1, "Transform position and velocity vectors by a matrix. ", ""); I_Method3(void, transformPositionVelocity, IN, const osg::Matrix &, xform1, IN, const osg::Matrix &, xform2, IN, float, r, Properties::NON_VIRTUAL, __void__transformPositionVelocity__C5_osg_Matrix_R1__C5_osg_Matrix_R1__float, "Transform position and velocity vectors by a combination of two matrices. ", ""); I_Method1(void, setAngle, IN, const osg::Vec3 &, a, Properties::NON_VIRTUAL, __void__setAngle__C5_osg_Vec3_R1, "Set the angle vector. ", ""); I_Method1(void, setAngularVelocity, IN, const osg::Vec3 &, v, Properties::NON_VIRTUAL, __void__setAngularVelocity__C5_osg_Vec3_R1, "Set the angular velocity vector. ", "Components x, y and z are angles of rotation around the respective axis (in radians). "); I_Method1(void, addAngularVelocity, IN, const osg::Vec3 &, dv, Properties::NON_VIRTUAL, __void__addAngularVelocity__C5_osg_Vec3_R1, "Add a vector to the angular velocity vector. ", ""); I_Method1(void, transformAngleVelocity, IN, const osg::Matrix &, xform, Properties::NON_VIRTUAL, __void__transformAngleVelocity__C5_osg_Matrix_R1, "Transform angle and angularVelocity vectors by a matrix. ", ""); I_Method1(bool, update, IN, double, dt, Properties::NON_VIRTUAL, __bool__update__double, "Update the particle (don't call this method manually). ", "This method is called automatically by ParticleSystem::update(); it updates the graphical properties of the particle for the current time, checks whether the particle is still alive, and then updates its position by computing P = P + V * dt (where P is the position and V is the velocity). "); I_Method0(void, beginRender, Properties::NON_VIRTUAL, __void__beginRender, "Perform some pre-rendering tasks. Called automatically by particle systems. ", ""); I_MethodWithDefaults4(void, render, IN, const osg::Vec3 &, xpos, , IN, const osg::Vec3 &, px, , IN, const osg::Vec3 &, py, , IN, float, scale, 1.0f, Properties::NON_VIRTUAL, __void__render__C5_osg_Vec3_R1__C5_osg_Vec3_R1__C5_osg_Vec3_R1__float, "Render the particle. Called automatically by particle systems. ", ""); I_Method0(void, endRender, Properties::NON_VIRTUAL, __void__endRender, "Perform some post-rendering tasks. Called automatically by particle systems. ", ""); I_Method0(float, getCurrentSize, Properties::NON_VIRTUAL, __float__getCurrentSize, "Get the current (interpolated) polygon size. Valid only after the first call to update(). ", ""); I_MethodWithDefaults3(void, setTextureTile, IN, int, sTile, , IN, int, tTile, , IN, int, numTiles, 0, Properties::NON_VIRTUAL, __void__setTextureTile__int__int__int, "Specify how the particle texture is tiled. ", ""); I_Method1(void, setPreviousParticle, IN, int, previous, Properties::NON_VIRTUAL, __void__setPreviousParticle__int, "Set the previous particle. ", ""); I_Method0(int, getPreviousParticle, Properties::NON_VIRTUAL, __int__getPreviousParticle, "Get the previous particle. ", ""); I_Method1(void, setNextParticle, IN, int, next, Properties::NON_VIRTUAL, __void__setNextParticle__int, "Set the next particle. ", ""); I_Method0(int, getNextParticle, Properties::NON_VIRTUAL, __int__getNextParticle, "Get the const next particle. ", ""); I_Method1(void, setUpTexCoordsAsPartOfConnectedParticleSystem, IN, osgParticle::ParticleSystem *, ps, Properties::NON_VIRTUAL, __void__setUpTexCoordsAsPartOfConnectedParticleSystem__ParticleSystem_P1, "Method for initializing a particles texture coords as part of a connected particle system. ", ""); I_SimpleProperty(double, Age, __double__getAge, 0); I_SimpleProperty(osgParticle::Interpolator *, AlphaInterpolator, 0, __void__setAlphaInterpolator__Interpolator_P1); I_SimpleProperty(const osgParticle::rangef &, AlphaRange, __C5_rangef_R1__getAlphaRange, __void__setAlphaRange__C5_rangef_R1); I_SimpleProperty(const osg::Vec3 &, Angle, __C5_osg_Vec3_R1__getAngle, __void__setAngle__C5_osg_Vec3_R1); I_SimpleProperty(const osg::Vec3 &, AngularVelocity, __C5_osg_Vec3_R1__getAngularVelocity, __void__setAngularVelocity__C5_osg_Vec3_R1); I_SimpleProperty(osgParticle::Interpolator *, ColorInterpolator, 0, __void__setColorInterpolator__Interpolator_P1); I_SimpleProperty(const osgParticle::rangev4 &, ColorRange, __C5_rangev4_R1__getColorRange, __void__setColorRange__C5_rangev4_R1); I_SimpleProperty(float, CurrentAlpha, __float__getCurrentAlpha, 0); I_SimpleProperty(const osg::Vec4 &, CurrentColor, __C5_osg_Vec4_R1__getCurrentColor, 0); I_SimpleProperty(float, CurrentSize, __float__getCurrentSize, 0); I_SimpleProperty(double, LifeTime, __double__getLifeTime, __void__setLifeTime__double); I_SimpleProperty(float, Mass, __float__getMass, __void__setMass__float); I_SimpleProperty(float, MassInv, __float__getMassInv, 0); I_SimpleProperty(int, NextParticle, __int__getNextParticle, __void__setNextParticle__int); I_SimpleProperty(const osg::Vec3 &, Position, __C5_osg_Vec3_R1__getPosition, __void__setPosition__C5_osg_Vec3_R1); I_SimpleProperty(const osg::Vec3 &, PreviousAngle, __C5_osg_Vec3_R1__getPreviousAngle, 0); I_SimpleProperty(int, PreviousParticle, __int__getPreviousParticle, __void__setPreviousParticle__int); I_SimpleProperty(const osg::Vec3 &, PreviousPosition, __C5_osg_Vec3_R1__getPreviousPosition, 0); I_SimpleProperty(float, Radius, __float__getRadius, __void__setRadius__float); I_SimpleProperty(const float, STexCoord, __C5_float__getSTexCoord, 0); I_SimpleProperty(osgParticle::Particle::Shape, Shape, __Shape__getShape, __void__setShape__Shape); I_SimpleProperty(osgParticle::Interpolator *, SizeInterpolator, 0, __void__setSizeInterpolator__Interpolator_P1); I_SimpleProperty(const osgParticle::rangef &, SizeRange, __C5_rangef_R1__getSizeRange, __void__setSizeRange__C5_rangef_R1); I_SimpleProperty(float, TCoord, __float__getTCoord, 0); I_SimpleProperty(int, TileS, __int__getTileS, 0); I_SimpleProperty(int, TileT, __int__getTileT, 0); I_SimpleProperty(osgParticle::ParticleSystem *, UpTexCoordsAsPartOfConnectedParticleSystem, 0, __void__setUpTexCoordsAsPartOfConnectedParticleSystem__ParticleSystem_P1); I_SimpleProperty(const osg::Vec3 &, Velocity, __C5_osg_Vec3_R1__getVelocity, __void__setVelocity__C5_osg_Vec3_R1);END_REFLECTOR
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -