GuiMaterialPreview
Engine/source/T3D/guiMaterialPreview.h
Protected Types
enum
MouseState { None Rotating Zooming Panning MovingLight }
Private Types
Parent
Protected Attributes
Private Attributes
Public Functions
DECLARE_CATEGORY("Gui Editor" )
onMiddleMouseDown(const GuiEvent & event)
onMiddleMouseDragged(const GuiEvent & event)
onMiddleMouseUp(const GuiEvent & event)
onMouseDown(const GuiEvent & event)
onMouseDragged(const GuiEvent & event)
onMouseEnter(const GuiEvent & event)
onMouseLeave(const GuiEvent & event)
bool
onMouseWheelDown(const GuiEvent & event)
bool
onMouseWheelUp(const GuiEvent & event)
onRightMouseDown(const GuiEvent & event)
onRightMouseDragged(const GuiEvent & event)
onRightMouseUp(const GuiEvent & event)
bool
onWake()
Called when this object is asked to wake up returns true if it's actually awake at the end.
bool
processCameraQuery(CameraQuery * query)
renderWorld(const RectI & updateRect)
Subclasses can override this to perform 3D rendering.
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)
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)