Torque3D Documentation / _generateds / GuiMaterialPreview

GuiMaterialPreview

Engine/source/T3D/guiMaterialPreview.h

More...

Protected Types

enum
MouseState {
  None 
  Rotating 
  Zooming 
  Panning 
  MovingLight 
}

Private Types

Parent 

Public Functions

DECLARE_CATEGORY("Gui Editor" )
bool

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

renderWorld(const RectI & updateRect)

Subclasses can override this to perform 3D rendering.

setLightTranslate(S32 modifier, F32 xstep, F32 ystep)
setObjectModel(const char * modelName)
setTranslate(S32 modifier, F32 xstep, F32 ystep)

Detailed Description

Protected Types

MouseState

Enumerator

None
Rotating
Zooming
Panning
MovingLight

Private Types

typedef GuiTSCtrl Parent 

Protected Attributes

S32 lastRenderTime 
MatrixF mCameraMatrix 
Point3F mCameraPos 
EulerF mCameraRot 
Point3F mCameraTransform 
LightInfo * mFakeSun 
Point2I mLastMousePoint 
F32 mLightTranMult 
F32 mLightTransStep 
TSShapeInstance * mModel 
TSShapeInstance * mMountedModel 
MouseState mMouseState 
Point3F mOrbitPos 
Point3F mOrbitRelPos 
U32 mSkinTag 
F32 mTranMult 
F32 mTransStep 
TSThread * runThread 

Private Attributes

F32 mMaxOrbitDist 
F32 mMinOrbitDist 
F32 mOrbitDist 

Public Functions

GuiMaterialPreview()

~GuiMaterialPreview()

DECLARE_CATEGORY("Gui Editor" )

DECLARE_CONOBJECT(GuiMaterialPreview )

deleteModel()

onMiddleMouseDown(const GuiEvent & event)

Reimplemented from: GuiControl

onMiddleMouseDragged(const GuiEvent & event)

Reimplemented from: GuiControl

onMiddleMouseUp(const GuiEvent & event)

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

onMouseUp(const GuiEvent & event)

Reimplemented from: GuiControl

onMouseWheelDown(const GuiEvent & event)

Reimplemented from: GuiControl

onMouseWheelUp(const GuiEvent & event)

Reimplemented from: GuiControl

onRightMouseDown(const GuiEvent & event)

Reimplemented from: GuiControl

onRightMouseDragged(const GuiEvent & event)

Reimplemented from: GuiControl

onRightMouseUp(const GuiEvent & event)

Reimplemented from: GuiControl

onWake()

Reimplemented from: GuiTSCtrl

processCameraQuery(CameraQuery * query)

Reimplemented from: GuiTSCtrl

renderWorld(const RectI & updateRect)

Reimplemented from: GuiTSCtrl

resetViewport()

setAmbientLightColor(F32 r, F32 g, F32 b)

setLightColor(F32 r, F32 g, F32 b)

setLightTranslate(S32 modifier, F32 xstep, F32 ystep)

setObjectModel(const char * modelName)

setOrbitDistance(F32 distance)

setTranslate(S32 modifier, F32 xstep, F32 ystep)