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.
41 lines
869 B
41 lines
869 B
#pragma once
|
|
|
|
#include "ofGraphics.h"
|
|
#include "ofEvents.h"
|
|
#include "SurfaceManager.h"
|
|
#include "RadioList.h"
|
|
|
|
#define DEFAULT_IMAGES_DIR "sources/images/";
|
|
|
|
namespace ofx{
|
|
namespace piMapper{
|
|
class SourcesEditor
|
|
{
|
|
public:
|
|
SourcesEditor();
|
|
~SourcesEditor();
|
|
|
|
void registerAppEvents();
|
|
void unregisterAppEvents();
|
|
|
|
void setup(ofEventArgs& args);
|
|
void draw();
|
|
void loadImage( string name, string path );
|
|
void disable();
|
|
void enable();
|
|
void setSurfaceManager(SurfaceManager* newSurfaceManager);
|
|
void selectImageSourceRadioButton(string name);
|
|
|
|
int getLoadedTexCount();
|
|
ofTexture* getTexture(int index);
|
|
|
|
private:
|
|
SurfaceManager* surfaceManager;
|
|
RadioList* gui;
|
|
string defImgDir;
|
|
void guiEvent(string &imageName);
|
|
vector<ofImage*> images;
|
|
vector<string> imageNames;
|
|
};
|
|
|
|
}}
|