65 lines
1.2 KiB
C
Raw Normal View History

2014-01-14 15:12:43 +00:00
#pragma once
#include "ofMain.h"
#include "DataManager.h"
#include "ofxFTGL.h"
2014-01-14 15:12:43 +00:00
class testApp;
class Graph
{
public:
Graph(int _graphID);
void update(ofVec3f ativeCamPos);
void draw();
void drawGraphBody();
void drawGraphText();
2014-01-14 15:12:43 +00:00
void addNewData(DataObject newData);
void setFboSettings();
void drawInfoToFbo();
2014-01-14 15:12:43 +00:00
void clear();
vector<string> explode(const string &delimiter, const string &str);
2014-01-14 15:12:43 +00:00
testApp *app;
int graphID;
int maxData; // calculated from graphWidth and graphItemXGap
2014-01-14 19:44:05 +00:00
ofFbo infoTextFbo;
ofFbo::Settings settings;
ofxFTGLSimpleLayout* text;
bool isInfoTextSet;
2014-01-14 19:44:05 +00:00
2014-01-14 15:12:43 +00:00
static float maxGraphWidth;
static bool isDrawBody;
2014-01-14 15:12:43 +00:00
static bool isDrawLines;
static bool isClampYValues;
2014-01-14 15:12:43 +00:00
static float graphItemXGap;
static float lineThickness;
2014-01-14 15:12:43 +00:00
static float graphHeightMax;
static float graphEndPercent;
static float zRange;
static float graphTextZOffset;
2014-01-14 15:12:43 +00:00
static float lineLength;
static float lineSpacing;
static float textSize;
static float fboW;
static float fboH;
static float textY;
static ofPoint textPnt;
2014-01-14 15:12:43 +00:00
float col0[4];
float distToCam;
ofVec3f centre;
string info;
2014-01-17 01:11:16 +00:00
ofMesh graphMesh;
2014-01-17 02:05:10 +00:00
float currentValue;
float currentMin;
float currentMax;
2014-01-14 15:12:43 +00:00
};