Project

General

Profile

SO3Engine

#include <SO3Shape.h>

Inheritance diagram for SO3::SShape:
SO3::SData SO3::SShapeBox SO3::SShapeCapsule SO3::SShapeChamferCylinder SO3::SShapeConcaveHull SO3::SShapeCone SO3::SShapeConvexHull SO3::SShapeCylinder SO3::SShapeEllipsoid SO3::SShapePyramid SO3::SShapeTree

Public Types

enum  ShapeType {
  SO3_NULL_COLLISION , SO3_BOX_COLLISION , SO3_CONE_COLLISION , SO3_ELLIPSOID_COLLISION ,
  SO3_CAPSULE_COLLISION , SO3_CYLINDER_COLLISION , SO3_COMPOUND_COLLISION , SO3_CHAMFERCYLINDRE_COLLISION ,
  SO3_PYRAMID_COLLISION , SO3_SHAPE_COLLISION , SO3_CONCAVE_COLLISION , SO3_TREE_COLLISION
}
 

Public Member Functions

 SShape (const std::string &shapeName, const ShapeType &shapeType)
 
virtual ~SShape ()
 
ShapeType GetType ()
 
Ogre::Vector3 GetBaseOffset ()
 
Ogre::Vector3 GetComputedOffset ()
 
Ogre::Quaternion GetBaseRotation ()
 
Ogre::Vector3 GetBaseScale ()
 
OgreNewt::CollisionPtr GetOgreNewtCollisionPtr ()
 
- Public Member Functions inherited from SO3::SData
 SData (const std::string &dataName)
 
virtual ~SData ()
 
std::string GetName () const
 
SUserObjectBindingsGetUserObjectBindings ()
 
const SUserObjectBindingsGetUserObjectBindings () const
 

Protected Attributes

OgreNewt::CollisionPtr mCollisionPtr
 
Ogre::Quaternion mBaseRotation
 
Ogre::Vector3 mBaseOffset
 
Ogre::Vector3 mBaseScale
 
Ogre::Vector3 mComputedOffset
 
- Protected Attributes inherited from SO3::SData
std::string name
 

Detailed Description

Definition at line 46 of file SO3Shape.h.

Member Enumeration Documentation

◆ ShapeType

Enumerator
SO3_NULL_COLLISION 
SO3_BOX_COLLISION 
SO3_CONE_COLLISION 
SO3_ELLIPSOID_COLLISION 
SO3_CAPSULE_COLLISION 
SO3_CYLINDER_COLLISION 
SO3_COMPOUND_COLLISION 
SO3_CHAMFERCYLINDRE_COLLISION 
SO3_PYRAMID_COLLISION 
SO3_SHAPE_COLLISION 
SO3_CONCAVE_COLLISION 
SO3_TREE_COLLISION 

Definition at line 49 of file SO3Shape.h.

Constructor & Destructor Documentation

◆ SShape()

SShape::SShape ( const std::string &  shapeName,
const ShapeType shapeType 
)

Definition at line 18 of file SO3Shape.cpp.

◆ ~SShape()

SShape::~SShape ( )
virtual

Definition at line 30 of file SO3Shape.cpp.

Member Function Documentation

◆ GetBaseOffset()

Ogre::Vector3 SShape::GetBaseOffset ( )

Definition at line 39 of file SO3Shape.cpp.

◆ GetBaseRotation()

Ogre::Quaternion SShape::GetBaseRotation ( )

Definition at line 49 of file SO3Shape.cpp.

◆ GetBaseScale()

Ogre::Vector3 SShape::GetBaseScale ( )

Definition at line 54 of file SO3Shape.cpp.

◆ GetComputedOffset()

Ogre::Vector3 SShape::GetComputedOffset ( )

Definition at line 44 of file SO3Shape.cpp.

◆ GetOgreNewtCollisionPtr()

OgreNewt::CollisionPtr SShape::GetOgreNewtCollisionPtr ( )

Definition at line 59 of file SO3Shape.cpp.

◆ GetType()

SShape::ShapeType SShape::GetType ( )

Definition at line 34 of file SO3Shape.cpp.

Member Data Documentation

◆ mBaseOffset

Ogre::Vector3 SO3::SShape::mBaseOffset
protected

Definition at line 68 of file SO3Shape.h.

◆ mBaseRotation

Ogre::Quaternion SO3::SShape::mBaseRotation
protected

Definition at line 67 of file SO3Shape.h.

◆ mBaseScale

Ogre::Vector3 SO3::SShape::mBaseScale
protected

Definition at line 69 of file SO3Shape.h.

◆ mCollisionPtr

OgreNewt::CollisionPtr SO3::SShape::mCollisionPtr
protected

Definition at line 66 of file SO3Shape.h.

◆ mComputedOffset

Ogre::Vector3 SO3::SShape::mComputedOffset
protected

Definition at line 70 of file SO3Shape.h.


The documentation for this class was generated from the following files: