GuiTerrPreviewCtrl Class Reference

#include <guiTerrPreviewCtrl.h>

Inheritance diagram for GuiTerrPreviewCtrl:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 DECLARE_CONOBJECT (GuiTerrPreviewCtrl)
 GuiTerrPreviewCtrl ()
bool onWake ()
 Called when this object is asked to wake up returns true if it's actually awake at the end.
void onSleep ()
 Called when this object is asked to sleep.
bool onAdd ()
 Called when this object is added to the scene.
void setBitmap (const GFXTexHandle &)
void reset ()
void setRoot ()
void setRoot (const Point2F &root)
void setOrigin (const Point2F &origin)
const Point2FgetRoot ()
 Returns the root canvas of this control.
const Point2FgetOrigin ()
void onPreRender ()
 Do special pre-render processing.
void onRender (Point2I offset, const RectI &updateRect)
 Called when this control is to render itself.

Static Public Member Functions

static void initPersistFields ()
 Register dynamic fields in a subclass of ConsoleObject.

Private Types

typedef GuiControl Parent

Private Member Functions

Point2Fwrap (const Point2F &p)
Point2FworldToTexture (const Point2F &p)
Point2FworldToCtrl (const Point2F &p)

Private Attributes

GFXTexHandle mTextureHandle
GFXStateBlockRef mTerrainBitmapStateBlock
GFXStateBlockRef mControlsStateBlock
Point2F mRoot
Point2F mOrigin
Point2F mWorldScreenCenter
Point2F mCamera
F32 mTerrainSize
TerrainEditormTerrainEditor

Member Typedef Documentation

Reimplemented from GuiControl.


Constructor & Destructor Documentation

GuiTerrPreviewCtrl::GuiTerrPreviewCtrl (  ) 


Member Function Documentation

Point2F& GuiTerrPreviewCtrl::wrap ( const Point2F p  )  [private]

Point2F& GuiTerrPreviewCtrl::worldToTexture ( const Point2F p  )  [private]

Point2F& GuiTerrPreviewCtrl::worldToCtrl ( const Point2F p  )  [private]

GuiTerrPreviewCtrl::DECLARE_CONOBJECT ( GuiTerrPreviewCtrl   ) 

static void GuiTerrPreviewCtrl::initPersistFields (  )  [static]

Register dynamic fields in a subclass of ConsoleObject.

See also:
addField(), addFieldV(), addDeprecatedField(), addGroup(), endGroup()

Reimplemented from GuiControl.

bool GuiTerrPreviewCtrl::onWake (  )  [virtual]

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

Reimplemented from GuiControl.

void GuiTerrPreviewCtrl::onSleep (  )  [virtual]

Called when this object is asked to sleep.

Reimplemented from GuiControl.

bool GuiTerrPreviewCtrl::onAdd (  )  [virtual]

Called when this object is added to the scene.

Reimplemented from GuiControl.

void GuiTerrPreviewCtrl::setBitmap ( const GFXTexHandle  ) 

void GuiTerrPreviewCtrl::reset (  ) 

void GuiTerrPreviewCtrl::setRoot (  ) 

void GuiTerrPreviewCtrl::setRoot ( const Point2F root  ) 

void GuiTerrPreviewCtrl::setOrigin ( const Point2F origin  ) 

const Point2F& GuiTerrPreviewCtrl::getRoot (  )  [inline]

Returns the root canvas of this control.

Reimplemented from GuiControl.

const Point2F& GuiTerrPreviewCtrl::getOrigin (  )  [inline]

void GuiTerrPreviewCtrl::onPreRender (  )  [virtual]

Do special pre-render processing.

Reimplemented from GuiControl.

void GuiTerrPreviewCtrl::onRender ( Point2I  offset,
const RectI updateRect 
) [virtual]

Called when this control is to render itself.

Parameters:
offset The location this control is to begin rendering
updateRect The screen area this control has drawing access to

Reimplemented from GuiControl.


Member Data Documentation