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.
34 lines
643 B
34 lines
643 B
// MvSurfaceVertCmd
|
|
// Provides with option to undo move surface vertex operation.
|
|
// Created by Krisjanis Rijnieks 2015-05-15
|
|
|
|
#pragma once
|
|
|
|
#include "BaseCmd.h"
|
|
#include "BaseSurface.h"
|
|
#include "ProjectionEditor.h"
|
|
#include "BaseJoint.h"
|
|
|
|
namespace ofx {
|
|
namespace piMapper {
|
|
|
|
class MvSurfaceVertCmd : public BaseUndoCmd {
|
|
|
|
public:
|
|
MvSurfaceVertCmd(int vertIndex,
|
|
BaseSurface * surface,
|
|
ProjectionEditor * projectionEditor);
|
|
void exec();
|
|
void undo();
|
|
|
|
private:
|
|
int _vertIndex;
|
|
ofVec2f _prevVertPos;
|
|
BaseSurface * _surface;
|
|
ProjectionEditor * _projectionEditor;
|
|
|
|
};
|
|
|
|
} // namespace piMapper
|
|
} // namespace ofx
|
|
|
|
|