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