#include <area.h>
Inheritance diagram for Area:
Public Types | |
enum | TILINGMODE |
Tiling modes for area UV coords. | |
enum | HITTESTRESULT { OUTSIDE, INSIDE, EDGE } |
Identifiers for hit test result. More... | |
Public Member Functions | |
Area (Object *pkParent, Area *pkObject=0) | |
virtual | ~Area () |
virtual const Coord & | SetSize (const Coord &rkSize) |
unsigned int | ProcessMsg (Msg *pkMsg) |
virtual bool | Render (NeoEngine::Frustum *pkFrustum=0, bool bForce=false) |
virtual void | SetBackground (const NeoEngine::MaterialPtr &pkMat) |
virtual void | SetTilingMode (TILINGMODE eMode, int iX=1, int iY=1) |
virtual void | SetUVs (const Coord &rkOrigin, const Coord &rkRight, const Coord &rkBottom) |
virtual NeoEngine::MaterialPtr & | GetBackground () |
virtual Object * | Duplicate (Object *pkParent=0, Object *pkObject=0) |
virtual const Coord & | SetPosition (const Coord &rkPos) |
const Coord & | GetPosition () const |
const Coord & | GetWorldPosition () |
const Coord & | GetSize () const |
virtual void | SetName (const NeoEngine::HashString &rstrName) |
virtual const NeoEngine::HashString & | GetName () const |
virtual void | SetAttribute (const AttributeBase &rkAttribute) |
unsigned int | GetID () const |
virtual Object * | GetParent () |
virtual Object * | GetRoot () |
virtual Object * | GetObject (const std::string &rstrName) |
virtual const std::vector< Object * > & | GetChildObjects () const |
virtual void | AttachObject (Object *pkObject) |
virtual void | DetachObject (Object *pkObject) |
virtual void | AttachToObject (Object *pkParent) |
virtual void | AddHook (MsgHook *pkMsgHook) |
virtual void | RemoveHook (MsgHook *pkMsgHook) |
virtual void | Input (const NeoEngine::InputEvent *pkEvent) |
HITTESTRESULT | HitTest (const Coord &rkCoord) |
virtual void | Update (float fDeltaTime) |
Protected Member Functions | |
void | SetVertexBuffer () |
void | SetPolygonBuffer () |
void | UpdateWorldCache (bool bRecurse=true) |
Protected Attributes | |
NeoEngine::MaterialPtr | m_pkBackground |
NeoEngine::VertexBufferPtr | m_pkVertexBuffer |
NeoEngine::PolygonBufferPtr | m_pkPolygonBuffer |
NeoEngine::RenderPrimitive * | m_pkRenderPrim |
TILINGMODE | m_eTilingMode |
int | m_aiNumTiles [2] |
Coord | m_akUV [3] |
unsigned int | m_uiID |
Object * | m_pkParent |
std::vector< Object * > | m_vpkChildren |
Coord | m_kPos |
Coord | m_kWorldPos |
Coord | m_kSize |
NeoEngine::HashString | m_strName |
std::vector< MsgHook * > | m_vpkMsgHook |
HITTESTRESULT | m_eLastMouse |
|
Identifiers for hit test result.
|
|
|
|
|
|
Setup vertex buffer |
|
Setup polygon buffer |
|
Set size
Reimplemented from Object. |
|
Process message
Reimplemented from Object. |
|
Render object, recurses on children
Reimplemented from Object. Reimplemented in TextArea. |
|
Set background material
|
|
Set tiling parameters
|
|
Set UV coordinates for area corners, forming rectangle (possibly skewed) in texture space
|
|
|
|
Duplicate and/or copy this object
Reimplemented from Object. Reimplemented in TextArea. |
|
Update world cache position and recurse on children if flag set
|
|
Set position relative parent
|
|
|
|
|
|
|
|
|
|
|
|
Set an attribute
Reimplemented in TextArea. |
|
|
|
|
|
|
|
Search for a child object by name ("parent" for parent object, "root" for root object)
|
|
Get all child objects (no recursion)
|
|
Attach window object
|
|
Detach window object
|
|
Attach this object to new parent
|
|
Add a message hook object (hook object will be freed in dtor)
|
|
Remove a message hook object (you must now free the hook object yourself)
|
|
Process input
|
|
Test if coordinate is inside, on edge or outside object area
|
|
Update object
Reimplemented in EditBox. |
|
Background |
|
Vertex buffer |
|
Polygon buffer |
|
Render op object |
|
Tiling mode |
|
Number of tiles in each direction |
|
UV coord vectors |
|
Unique ID |
|
Parent object |
|
Children |
|
Position relative parent |
|
World position |
|
Size |
|
Name |
|
Hooked message actions |
|
Result of last mouse hit test |