You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
528 B
23 lines
528 B
#include "ScaleSurfaceUpCmd.h"
|
|
|
|
namespace ofx {
|
|
namespace piMapper {
|
|
|
|
ScaleSurfaceUpCmd::ScaleSurfaceUpCmd(BaseSurface * selectedSurface, float by){
|
|
_selectedSurface = selectedSurface;
|
|
_by = by;
|
|
}
|
|
|
|
void ScaleSurfaceUpCmd::exec(){
|
|
ofLogNotice("ScaleSurfaceUpCmd", "exec");
|
|
_selectedSurface->scaleTo(_selectedSurface->getScale() + _by);
|
|
}
|
|
|
|
void ScaleSurfaceUpCmd::undo(){
|
|
ofLogNotice("ScaleSurfaceUpCmd", "undo");
|
|
_selectedSurface->scaleTo(_selectedSurface->getScale() - _by);
|
|
}
|
|
|
|
} // namespace piMapper
|
|
} // namespace ofx
|
|
|
|
|