Torque3D Documentation / _generateds / GuiMissionAreaCtrl

GuiMissionAreaCtrl

Engine/source/gui/worldEditor/guiMissionArea.h

More...

Protected Types

enum
HandleInfo {
  Handle_None = 0
  Handle_Left = BIT(0)
  Handle_Right = BIT(1)
  Handle_Top = BIT(2)
  Handle_Bottom = BIT(3)
  Handle_Middle = BIT(4)
  Handle_Pixel_Size = 3
}

Private Types

Public Functions

bool

Called when this object is added to the scene.

onRender(Point2I offset, const RectI & updateRect)

Called when this control is to render itself.

Called when this object is asked to sleep.

bool

Called when this object is asked to wake up returns true if it's actually awake at the end.

Public Static Functions

Detailed Description

Protected Types

HandleInfo

Enumerator

Handle_None = 0
Handle_Left = BIT(0)
Handle_Right = BIT(1)
Handle_Top = BIT(2)
Handle_Bottom = BIT(3)
Handle_Middle = BIT(4)
Handle_Pixel_Size = 3

Private Types

typedef GuiBitmapCtrl Parent 

Protected Attributes

GFXStateBlockRef mBlendStateBlock 
ColorI mCameraColor 
Point2F mCenterPos 
StringTableEntry mHandleBitmap 
GFXTexHandle mHandleTexture 
Point2F mHandleTextureHalfSize 
Point2I mHandleTextureSize 
S32 mLastHitMode 
Point2I mLastMousePoint 
SimObjectPtr< MissionArea > mMissionArea 
ColorI mMissionBoundsColor 
bool mSavedDrag 
VectorF mScale 
GFXStateBlockRef mSolidStateBlock 
bool mSquareBitmap 
SimObjectPtr< TerrainBlock > mTerrainBlock 

Protected Functions

convertOrigin(const Point2I & )

createTerrainBitmap()

drawHandle(const Point2F & pos)

drawHandles(RectI & box)

getHitHandles(const Point2I & mousePnt, const RectI & box)

getScreenMissionArea(RectF & rect)

getScreenMissionArea(RectI & rect)

getTerrainObj()

screenDeltaToWorldDelta(const Point2I & screenPoint)

screenToWorld(const Point2F & )

screenToWorld(const Point2I & )

setupScreenTransform(const Point2I & offset)

submitUndo(const UTF8 * name)

testWithinHandle(const Point2I & testPoint, S32 handleX, S32 handleY)

updateTerrainBitmap()

worldToScreen(const Point2F & )

worldToScreen(const Point2I & )

Public Functions

GuiMissionAreaCtrl()

~GuiMissionAreaCtrl()

DECLARE_CONOBJECT(GuiMissionAreaCtrl )

getArea()

onAdd()

Reimplemented from: GuiControl

onMouseDown(const GuiEvent & event)

Reimplemented from: GuiControl

onMouseDragged(const GuiEvent & event)

Reimplemented from: GuiControl

onMouseEnter(const GuiEvent & event)

Reimplemented from: GuiControl

onMouseLeave(const GuiEvent & event)

Reimplemented from: GuiControl

onMouseMove(const GuiEvent & event)

Reimplemented from: GuiControl

onMouseUp(const GuiEvent & event)

Reimplemented from: GuiControl

onRender(Point2I offset, const RectI & updateRect)

Reimplemented from: GuiBitmapCtrl

onSleep()

Reimplemented from: GuiBitmapCtrl

onWake()

Reimplemented from: GuiBitmapCtrl

setArea(const RectI & area)

setMissionArea(MissionArea * area)

updateTerrain()

Public Static Functions

initPersistFields()