bullet3/examples/RenderingExamples/TimeSeriesCanvas.h
erwincoumans ab8f16961e Code-style consistency improvement:
Apply clang-format-all.sh using the _clang-format file through all the cpp/.h files.
make sure not to apply it to certain serialization structures, since some parser expects the * as part of the name, instead of type.
This commit contains no other changes aside from adding and applying clang-format-all.sh
2018-09-23 14:17:31 -07:00

23 lines
882 B
C++

#ifndef TIME_SERIES_CANVAS_H
#define TIME_SERIES_CANVAS_H
class TimeSeriesCanvas
{
protected:
struct TimeSeriesInternalData* m_internalData;
void shift1PixelToLeft();
public:
TimeSeriesCanvas(struct Common2dCanvasInterface* canvasInterface, int width, int height, const char* windowTitle);
virtual ~TimeSeriesCanvas();
void setupTimeSeries(float yScale, int ticksPerSecond, int startTime, bool clearCanvas = true);
void addDataSource(const char* dataSourceLabel, unsigned char red, unsigned char green, unsigned char blue);
void insertDataAtCurrentTime(float value, int dataSourceIndex, bool connectToPrevious);
float getCurrentTime() const;
void grapicalPrintf(const char* str, void* fontData, int rasterposx, int rasterposy, unsigned char red, unsigned char green, unsigned char blue, unsigned char alpha);
virtual void nextTick();
};
#endif //TIME_SERIES_CANVAS_H