Torque3D Documentation / _generateds / Gui3DProjectionCtrl

Gui3DProjectionCtrl

Engine/source/gui/controls/gui3DProjectionCtrl.h

More...

Public Types

enum
alignment {
  min = 0
  center = 1
  max = 2
}

screen-space offset applied to mPtProj. note we still have centering, etc.

Parent 

Public Attributes

must be a child of one of these.

optional object we're attached to.

bool

horizontal alignment

world-space offset applied second to the attached point to obtain mPtWorld.

object-space offset applied first to the attached point to obtain mPtWorld.

the worldspace point which we're projecting

the screenspace projected point. - note there are further modifiers before

same pointer as mAttachedTo, but conveniently casted to player.

optionally self-delete when mAttachedTo is deleted.

horizontal alignment

Public Functions

Called when the mProfile or mToolTipProfile is deleted.

onRender(Point2I offset, const RectI & updateRect)

optionally use the eye point. x != 0 -> horiz. y != 0 -> vert.

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

Public Types

alignment

Enumerator

min = 0
center = 1
max = 2

screen-space offset applied to mPtProj. note we still have centering, etc.

typedef GuiControl Parent 

Public Attributes

SimObjectPtr< SceneObject > mAttachedTo 

must be a child of one of these.

SimObjectPtr< Player > mAttachedToPlayer 

optional object we're attached to.

bool mAutoDelete 

horizontal alignment

alignment mHAlign 
Point3F mOffsetObject 
Point2I mOffsetScreen 

world-space offset applied second to the attached point to obtain mPtWorld.

Point3F mOffsetWorld 

object-space offset applied first to the attached point to obtain mPtWorld.

Point2I mPtProj 

the worldspace point which we're projecting

Point2I mPtScreen 

the screenspace projected point. - note there are further modifiers before

Point3F mPtWorld 

same pointer as mAttachedTo, but conveniently casted to player.

GuiTSCtrl * mTSCtrl 
Point2I mUseEyePoint 

optionally self-delete when mAttachedTo is deleted.

alignment mVAlign 

horizontal alignment

Public Functions

Gui3DProjectionCtrl()

DECLARE_CONOBJECT(Gui3DProjectionCtrl )

doAlignment()

doPositioning()

doProjection()

getAttachedTo()

getWorldPt()

onDeleteNotify(SimObject * object)

Reimplemented from: GuiControl

onRender(Point2I offset, const RectI & updateRect)

Reimplemented from: GuiControl

onSleep()

Reimplemented from: GuiControl

onWake()

Reimplemented from: GuiControl

resizeDuringRender()

setAttachedTo(SceneObject * obj)

setWorldPt(Point3F & pt)

Public Static Functions

initPersistFields()