99 lines
1.7 KiB
C
Raw Normal View History

2014-01-06 02:40:24 +00:00
//
// GUI.h
// emptyExample
//
// Created by James Alliban on 25/06/2013.
//
//
#pragma once
#include "ofMain.h"
#include "BarGraph.h"
#include "BodyGraph.h"
#include "SeparateBodyGraph.h"
2014-01-10 00:10:06 +00:00
#include "DataManager.h"
#include "ofxFTGL.h"
2014-01-06 02:40:24 +00:00
class testApp;
class Scene
{
public:
void setup();
void update();
void draw();
2014-01-07 17:11:46 +00:00
void drawVideo();
void drawGraphValues();
void drawCrosshairs();
void drawHUDBG();
void drawHUDCopy();
void drawHUDColourBars();
void drawTextBox(string copy, string align);
2014-01-10 00:10:06 +00:00
void addNewData(vector<DataObject> newData);
void clearGraphData();
void keyPressed(int key);
2014-01-06 02:40:24 +00:00
BarGraph barGraph;
BodyGraph bodyGraph;
SeparateBodyGraph separateBodyGraph;
ofShader rgbShader;
ofVideoGrabber vidGrabber;
ofImage bgImg;
ofxFTGLSimpleLayout text;
AbstractGraph* activeGraph;
// video image vars
float brightness;
float contrast;
float saturation;
float red;
float green;
float blue;
float alpha;
float videoWidthPercentage;
float videoHeightPercentage;
bool isVideoVisible;
bool isImageVisible;
// graph text
float graphTextColour[4];
float graphTextSize;
// crosshairs
float crosshairLineWidth;
float crosshairAlpha;
float crosshairCircleSize;
float crosshairVertScale;
float crosshairHorizScale;
// HUD background vars
2014-01-07 17:11:46 +00:00
float hudColour[4];
float circlePointSize;
float hudHoleWidthPercentage;
float hudHoleHeightPercentage;
// text vars
float xMargin;
float yMargin;
float yMarginBottomOffset;
float lineLength;
float lineSpacing;
float textSize;
float textColour[4];
string tlStr;
string trStr;
string blStr;
string brStr;
float averageAmount;
// text colour boxes
float topColourBoxXOffset;
float bottomColourBoxXOffset;
float colourBoxThickness;
2014-01-06 02:40:24 +00:00
};