Browse Source

added Test case. Compiles. shows right number of images

master
Felix Dubrownik 11 years ago
parent
commit
7c5fa74c60
  1. 2
      example/src/ofApp.cpp
  2. 3
      example/src/ofApp.h
  3. 2
      src/MediaServer/DirectoryWatcher.h
  4. 4
      src/ofxPiMapper.h

2
example/src/ofApp.cpp

@ -26,6 +26,8 @@ void ofApp::setup() {
ofRandom(20)));
rectSpeeds.push_back((1.0f + ofRandom(5)));
}
ofLog() << "Number of Images: " << mediaServer.getNumImages();
ofLog() << "Number of Videos: " << mediaServer.getNumVideos();
}
void ofApp::update() {

3
example/src/ofApp.h

@ -24,4 +24,7 @@ class ofApp : public ofBaseApp {
ofFbo* fbo;
vector<ofRectangle> rects;
vector<float> rectSpeeds;
// Debug
ofx::piMapper::MediaServer mediaServer;
};

2
src/MediaServer/DirectoryWatcher.h

@ -18,7 +18,7 @@ class CustomPathFilter : public ofx::IO::AbstractPathFilter {
public:
CustomPathFilter() {};
virtual ~CustomPathFilter() {};
virtual bool accept(const Poco::Path& path) const;
virtual bool accept(const Poco::Path& path) const {};
};
class CustomVideoPathFilter : public CustomPathFilter {
public:

4
src/ofxPiMapper.h

@ -1,4 +1,6 @@
#pragma once
#include "SurfaceManager.h"
#include "SurfaceManagerGui.h"
#include "SurfaceManagerGui.h"
#include "MediaServer.h"
Loading…
Cancel
Save