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.
25 lines
668 B
25 lines
668 B
#include "SelSurfaceCmd.h"
|
|
|
|
namespace ofx {
|
|
namespace piMapper {
|
|
|
|
SelSurfaceCmd::SelSurfaceCmd(SurfaceManager * surfaceManager, BaseSurface * surfaceToSelect){
|
|
_surfaceManager = surfaceManager;
|
|
_surfaceToSelect = surfaceToSelect;
|
|
}
|
|
|
|
void SelSurfaceCmd::exec(){
|
|
_prevSelectedSurface = _surfaceManager->getSelectedSurface();
|
|
_prevSelectedVertex = _surfaceManager->getSelectedVertexIndex();
|
|
_surfaceManager->selectSurface(_surfaceToSelect);
|
|
}
|
|
|
|
void SelSurfaceCmd::undo(){
|
|
ofLogNotice("SelSurfaceCmd", "undo");
|
|
_surfaceManager->selectSurface(_prevSelectedSurface);
|
|
_surfaceManager->selectVertex(_prevSelectedVertex);
|
|
}
|
|
|
|
} // namespace piMapper
|
|
} // namespace ofx
|
|
|
|
|