0ad/source/tools/sced/SmoothElevationCommand.h
Ykkrosh ec3452679c Restructuring
This was SVN commit r1453.
2004-12-05 17:59:29 +00:00

25 lines
607 B
C++
Executable File

#ifndef _SMOOTHELEVATIONCOMMAND_H
#define _SMOOTHELEVATIONCOMMAND_H
#include "AlterElevationCommand.h"
class CSmoothElevationCommand : public CAlterElevationCommand
{
public:
// constructor, destructor
CSmoothElevationCommand(float smoothpower,int brushSize,int selectionCentre[2]);
~CSmoothElevationCommand();
// return the texture name of this command
const char* GetName() const { return "Smooth Elevation"; }
// calculate output data
void CalcDataOut(int x0,int x1,int z0,int z1);
private:
// smoothing power - higher powers have greater smoothing effect
float m_SmoothPower;
};
#endif