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.
 
 

39 lines
727 B

#pragma once
#include "ofMain.h"
#include "BaseSurface.h"
namespace ofx {
namespace piMapper {
class SurfaceStack {
public:
void push_back(BaseSurface * s);
void pop_back();
void erase(int i);
void swap(int a, int b);
void draw();
void clear();
int size();
BaseSurface * operator[](int i);
BaseSurface * at(int i);
BaseSurface * back();
ofEvent <vector<ofVec3f>> verticesChangedEvent;
ofEvent <int> vertexChangedEvent;
void onVerticesChanged(vector<ofVec3f> & vertices);
void onVertexChanged(int & i);
vector<BaseSurface *> & getSurfaces(){ return _surfaces; };
SurfaceStack * clone();
private:
vector<BaseSurface *> _surfaces;
};
} // namespace piMapper
} // namespace ofx