SO3Engine
|
OgreNewt_Tools.cpp
Go to the documentation of this file.
75 matrix_out = Ogre::Matrix4(Ogre::Real(matrix_in[0]), Ogre::Real(matrix_in[4]), Ogre::Real(matrix_in[8]), Ogre::Real(matrix_in[12]),
76 Ogre::Real(matrix_in[1]), Ogre::Real(matrix_in[5]), Ogre::Real(matrix_in[9]), Ogre::Real(matrix_in[13]),
77 Ogre::Real(matrix_in[2]), Ogre::Real(matrix_in[6]), Ogre::Real(matrix_in[10]), Ogre::Real(matrix_in[14]),
134 const OgreNewt::CollisionPtr& col, const Ogre::Quaternion& colorient, const Ogre::Vector3& colpos,
147 int ret = NewtonCollisionPointDistance(world->getNewtonWorld(), &gPt.m_x, col->getNewtonCollision(), matrix, &fretPt.m_x, &fretNorm.m_x, threadIndex);
163 int CollisionClosestPoint(const OgreNewt::World* world, const OgreNewt::CollisionPtr& colA, const Ogre::Quaternion& colOrientA, const Ogre::Vector3& colPosA,
164 const OgreNewt::CollisionPtr& colB, const Ogre::Quaternion& colOrientB, const Ogre::Vector3& colPosB,
176 int ret = NewtonCollisionClosestPoint(world->getNewtonWorld(), colA->getNewtonCollision(), matrixA, colB->getNewtonCollision(), matrixB, &fretPosA.m_x, &fretPosB.m_x, &fretNorm.m_x, threadIndex);
192 Ogre::AxisAlignedBox CollisionCalculateFittingAABB(const OgreNewt::CollisionPtr& col, const Ogre::Quaternion& orient, const Ogre::Vector3& pos)
214 Ogre::Vector3 CollisionSupportVertex(const OgreNewt::CollisionPtr& col, const Ogre::Vector3& dir)
262 MovableText::MovableText(const String &name, const String &caption, const String &fontName, Real charHeight, const ColourValue &color)
281 throw Exception(Exception::ERR_INVALIDPARAMS, "Trying to create MovableText without name", "MovableText::MovableText");
378 void MovableText::setTextAlignment(const HorizontalAlignment& horizontalAlignment, const VerticalAlignment& verticalAlignment)
457 HardwareVertexBufferSharedPtr ptbuf = HardwareBufferManager::getSingleton().createVertexBuffer(decl->getVertexSize(POS_TEX_BINDING),
466 HardwareVertexBufferSharedPtr cbuf = HardwareBufferManager::getSingleton().createVertexBuffer(decl->getVertexSize(COLOUR_BINDING),
717 HardwareVertexBufferSharedPtr vbuf = mRenderOp.vertexData->vertexBufferBinding->getBuffer(COLOUR_BINDING);
NewtonCollision *const getNewtonCollision() const
retrieve the Newton pointer
Definition OgreNewt_Collision.h:70
Ogre::MaterialPtr mpMaterial
Definition OgreNewt_Tools.h:169
MovableText(const Ogre::String &name, const Ogre::String &caption, const Ogre::String &fontName, Ogre::Real charHeight, const Ogre::ColourValue &color=Ogre::ColourValue::White)
Definition OgreNewt_Tools.cpp:262
const Ogre::Vector3 & getWorldPosition(void) const
Definition OgreNewt_Tools.cpp:735
void _setupGeometry()
Definition OgreNewt_Tools.cpp:413
void getRenderOperation(Ogre::RenderOperation &op)
Definition OgreNewt_Tools.cpp:765
void setColor(const Ogre::ColourValue &color)
Definition OgreNewt_Tools.cpp:351
virtual ~MovableText()
Definition OgreNewt_Tools.cpp:291
HorizontalAlignment mHorizontalAlignment
Definition OgreNewt_Tools.h:145
VerticalAlignment
Definition OgreNewt_Tools.h:138
void setGlobalTranslation(Ogre::Vector3 trans)
Definition OgreNewt_Tools.cpp:392
void _updateRenderQueue(Ogre::RenderQueue *queue)
Definition OgreNewt_Tools.cpp:782
void setCaption(const Ogre::String &caption)
Definition OgreNewt_Tools.cpp:342
void showOnTop(bool show=true)
Definition OgreNewt_Tools.cpp:402
Ogre::Vector3 mGlobalTranslation
Definition OgreNewt_Tools.h:163
void setSpaceWidth(Ogre::Real width)
Definition OgreNewt_Tools.cpp:369
void _updateColors()
Definition OgreNewt_Tools.cpp:709
const Ogre::Quaternion & getWorldOrientation(void) const
Definition OgreNewt_Tools.cpp:729
void _notifyCurrentCamera(Ogre::Camera *cam)
Definition OgreNewt_Tools.cpp:777
void setLocalTranslation(Ogre::Vector3 trans)
Definition OgreNewt_Tools.cpp:397
void visitRenderables(Ogre::Renderable::Visitor *visitor, bool debugRenderables=false)
Definition OgreNewt_Tools.cpp:796
void setTextAlignment(const HorizontalAlignment &horizontalAlignment, const VerticalAlignment &verticalAlignment)
Definition OgreNewt_Tools.cpp:378
VerticalAlignment mVerticalAlignment
Definition OgreNewt_Tools.h:146
Ogre::RenderOperation mRenderOp
Definition OgreNewt_Tools.h:149
void setFontName(const Ogre::String &fontName)
Definition OgreNewt_Tools.cpp:300
void getWorldTransforms(Ogre::Matrix4 *xform) const
Definition OgreNewt_Tools.cpp:741
Ogre::Vector3 mLocalTranslation
Definition OgreNewt_Tools.h:164
void setCharacterHeight(Ogre::Real height)
Definition OgreNewt_Tools.cpp:360
HorizontalAlignment
Definition OgreNewt_Tools.h:137
NewtonWorld * getNewtonWorld() const
retrieves a pointer to the NewtonWorld
Definition OgreNewt_World.h:284
Definition OgreNewt_Debugger.h:21
_OgreNewtExport Ogre::Vector3 CollisionSupportVertex(const OgreNewt::CollisionPtr &col, const Ogre::Vector3 &dir)
Get a vertex of the collision in the given direction.
Definition OgreNewt_Tools.cpp:214
_OgreNewtExport Ogre::AxisAlignedBox CollisionCalculateFittingAABB(const OgreNewt::CollisionPtr &col, const Ogre::Quaternion &orient=Ogre::Quaternion::IDENTITY, const Ogre::Vector3 &pos=Ogre::Vector3::ZERO)
calculate the AABB of a collision primitive in an arbitrary orientation
Definition OgreNewt_Tools.cpp:192
_OgreNewtExport int CollisionClosestPoint(const OgreNewt::World *world, const OgreNewt::CollisionPtr &colA, const Ogre::Quaternion &colOrientA, const Ogre::Vector3 &colPosA, const OgreNewt::CollisionPtr &colB, const Ogre::Quaternion &colOrientB, const Ogre::Vector3 &colPosB, Ogre::Vector3 &retPosA, Ogre::Vector3 &retPosB, Ogre::Vector3 &retNorm, int threadIndex)
find the nearest 2 points between 2 collision shapes.
Definition OgreNewt_Tools.cpp:163
_OgreNewtExport int CollisionPointDistance(const OgreNewt::World *world, const Ogre::Vector3 &globalpt, const OgreNewt::CollisionPtr &col, const Ogre::Quaternion &colorient, const Ogre::Vector3 &colpos, Ogre::Vector3 &retpt, Ogre::Vector3 &retnormal, int threadIndex)
find the point on a collision primitive closest to a global point.
Definition OgreNewt_Tools.cpp:133
_OgreNewtExport void MatrixToMatrix4(const dFloat *matrix_in, Ogre::Matrix4 &matrix_out)
Take a Newton matrix and make it into an Ogre::Matrix4.
Definition OgreNewt_Tools.cpp:72
_OgreNewtExport void MatrixToQuatPos(const dFloat *matrix, Ogre::Quaternion &quat, Ogre::Vector3 &pos)
Take a Newton matrix and create a Quaternion + Position_vector.
_OgreNewtExport Ogre::Quaternion grammSchmidt(const Ogre::Vector3 &pin)
Definition OgreNewt_Tools.cpp:105
_OgreNewtExport void Matrix4ToMatrix(const Ogre::Matrix4 &matrix_in, dFloat *matrix_out)
Take an Ogre::Matrix4 and make it into a Newton-happy matrix.
Definition OgreNewt_Tools.cpp:81
_OgreNewtExport void QuatPosToMatrix(const Ogre::Quaternion &quat, const Ogre::Vector3 &pos, dFloat *matrix)
Take a Quaternion and Position Matrix and create a Newton-happy float matrix!
Definition OgreNewt_Tools.cpp:33
const unsigned short POS_TEX_BINDING
Definition OgreNewt_Tools.cpp:259
const unsigned short COLOUR_BINDING
Definition OgreNewt_Tools.cpp:260
_OgreNewtExport Ogre::Real calculateSpringDamperAcceleration(Ogre::Real deltaTime, Ogre::Real spingK, Ogre::Real stretchDistance, Ogre::Real springDamping, Ogre::Real dampVelocity)
Definition OgreNewt_Tools.cpp:237
Generated by 1.9.8