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
473 B

#include "SelVertexCmd.h"
namespace ofx {
namespace piMapper {
SelVertexCmd::SelVertexCmd(SurfaceManager * sm, int i){
_surfaceManager = sm;
_newVertexIndex = i;
}
void SelVertexCmd::exec(){
_prevVertexIndex = _surfaceManager->getSelectedVertexIndex();
_surfaceManager->selectVertex(_newVertexIndex);
}
void SelVertexCmd::undo(){
ofLogNotice("SelVertexCmd", "undo");
_surfaceManager->selectVertex(_prevVertexIndex);
}
} // namespace piMapper
} // namespace ofx