torque Torque Game Engine Documentation
TGE Version 1.5.2

GuiTerrPreviewCtrl Class Reference

#include <guiTerrPreviewCtrl.h>

Inheritance diagram for GuiTerrPreviewCtrl:

Inheritance graph
[legend]

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.
void setBitmap (const TextureHandle &handle)
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 proecessing.
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

TextureHandle mTextureHandle
Point2F mRoot
Point2F mOrigin
Point2F mWorldScreenCenter
Point2F mCamera
F32 mTerrainSize

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(), addDepricatedField(), 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.

void GuiTerrPreviewCtrl::setBitmap ( const TextureHandle &  handle  ) 

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 proecessing.

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.


Field Documentation

TextureHandle GuiTerrPreviewCtrl::mTextureHandle [private]




All Rights Reserved GarageGames.com, Inc. 1999-2005
Auto-magically Generated with Doxygen