ofxPiMapper fixed for C++17 & oF 12.0
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
461 B

#include "MvSelectionCmd.h"
namespace ofx {
namespace piMapper {
MvSelectionCmd::MvSelectionCmd(SurfaceManager * sm, ofVec2f moveBy){
_surfaceManager = sm;
_movedBy = moveBy;
}
void MvSelectionCmd::exec(){
ofLogNotice("MvSelectionCmd", "exec");
_surfaceManager->moveSelectionBy(_movedBy);
}
void MvSelectionCmd::undo(){
ofLogNotice("MvSelectionCmd", "undo");
_surfaceManager->moveSelectionBy(-_movedBy);
}
} // namespace piMapper
} // namespace ofx