Torque3D Documentation / _generateds / TerrainSmoothAction

TerrainSmoothAction

Engine/source/gui/worldEditor/terrainActions.h

An undo action used to perform terrain wide smoothing.

More...

Private Types

Parent 

Public Functions

smooth(TerrainBlock * terrain, F32 factor, U32 steps)

Performs the initial smoothing and stores the heighfield state for later undo.

undo()

Implement these methods to perform your specific undo & redo tasks.

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

Public Static Functions

initPersistFields()