TerrainSmoothAction
Engine/source/gui/worldEditor/terrainActions.h
An undo action used to perform terrain wide smoothing.
Private Types
Parent
Protected Attributes
Public Functions
smooth(TerrainBlock * terrain, F32 factor, U32 steps)
Performs the initial smoothing and stores the heighfield state for later undo.
Public Static Functions
Detailed Description
An undo action used to perform terrain wide smoothing.
Private Types
typedef UndoAction Parent
Protected Attributes
F32 mFactor
U32 mSteps
SimObjectId mTerrainId
Vector< U16 > mUnsmoothedHeights
Public Functions
TerrainSmoothAction()
DECLARE_CONOBJECT(TerrainSmoothAction )
redo()
Reimplemented from: UndoAction
smooth(TerrainBlock * terrain, F32 factor, U32 steps)
Performs the initial smoothing and stores the heighfield state for later undo.
undo()
Reimplemented from: UndoAction