40#ifndef UI_GGUIGRAPH_H_
41#define UI_GGUIGRAPH_H_
83 virtual void setRange(
float rangeStart,
float rangeEnd);
153 void drawBackground();
155 virtual void drawGraph();
156 void updateLabelsX();
157 void updateLabelsY();
158 int countDigits(
int number);
159 float labelwidthx, labelwidthy;
160 std::string axisytitle, axisxtitle;
161 std::vector<int> labelsx;
162 std::vector<int> labelsy;
163 std::vector<float> floatlabelsx;
164 std::vector<float> floatlabelsy;
165 std::vector<int> labelsteps;
gBaseApp * root
Definition gBaseGUIObject.h:151
Definition gGUIGraph.h:115
PolylineMesh(const PolylineMesh &other)
Definition gGUIGraph.h:122
void setRibbonVertices(std::shared_ptr< std::vector< gVertex > > vertices, std::shared_ptr< std::vector< gIndex > > indices)
Definition gGUIGraph.h:127
PolylineMesh()
Definition gGUIGraph.h:117
void setTitleX(std::string titleX)
void enableBackground(bool isEnabled)
float axisxw
Definition gGUIGraph.h:97
virtual void setLabelCountY(int labelCount)
float largestvaluex
Definition gGUIGraph.h:99
int labelcounty
Definition gGUIGraph.h:104
bool isBackgroundEnabled()
int rangestart
Definition gGUIGraph.h:105
bool yaxislenable
Definition gGUIGraph.h:101
static void buildPolylineStroke(PolylineStroke &stroke, const std::vector< std::vector< std::array< float, 2 > > > &runs, float thickness, bool roundedCorners)
float axisystart
Definition gGUIGraph.h:96
virtual void setRange(float rangeStart, float rangeEnd)
float axisxstart
Definition gGUIGraph.h:96
float largestvaluey
Definition gGUIGraph.h:99
virtual ~gGUIGraph() override
float smallestvaluex
Definition gGUIGraph.h:99
float axisx2
Definition gGUIGraph.h:96
float axisx1
Definition gGUIGraph.h:96
void setAxislinesEnable(bool xaxis, bool yaxis)
int labelcountx
Definition gGUIGraph.h:104
void enableGridlinesX(bool isEnabled)
void setLabelsYForRange(float rangeMinY, float rangeMaxY)
float minx
Definition gGUIGraph.h:98
bool rangeenabled
Definition gGUIGraph.h:106
float smallestvaluey
Definition gGUIGraph.h:99
virtual void enableRange(bool isRangeEnabled)
float maxx
Definition gGUIGraph.h:98
virtual void setMaxY(float maxY)
bool gridlinesxenabled
Definition gGUIGraph.h:100
float axisyh
Definition gGUIGraph.h:97
bool isbackgroundenabled
Definition gGUIGraph.h:95
bool floatlabelsxenabled
Definition gGUIGraph.h:102
bool isxaxislinenable
Definition gGUIGraph.h:101
float miny
Definition gGUIGraph.h:98
virtual void setMaxX(float maxX)
virtual void setMinX(float minX)
float maxy
Definition gGUIGraph.h:98
bool floatlabelsyenabled
Definition gGUIGraph.h:103
void setTitleY(std::string titleY)
bool gridlinesyenabled
Definition gGUIGraph.h:100
float axisy1
Definition gGUIGraph.h:96
int rangeend
Definition gGUIGraph.h:105
static bool buildPolylineRibbon(PolylineMesh &mesh, const std::vector< std::vector< std::array< float, 2 > > > &runs, float halfWidth, bool roundedCorners)
virtual void setMinY(float minY)
virtual void setLabelCountX(int labelCount)
void enableGridlinesY(bool isEnabled)
void set(gBaseApp *root, gBaseGUIObject *topParentGUIObject, gBaseGUIObject *parentGUIObject, int parentSlotLineNo, int parentSlotColumnNo, int x, int y, int w, int h) override
void drawPolylineStroke(PolylineStroke &stroke, const gColor &color)
float axisy2
Definition gGUIGraph.h:96
static const int DRAWMODE_TRIANGLES
Definition gMesh.h:24
bool isprojection2d
Definition gMesh.h:136
void setDrawMode(int drawMode)
void setVertices(const std::vector< gVertex > &vertices, const std::vector< gIndex > &indices)
std::shared_ptr< std::vector< gVertex > > vertices
Definition gMesh.h:135
Definition gGUIGraph.h:134
bool hascore
Definition gGUIGraph.h:137
PolylineMesh coremesh
Definition gGUIGraph.h:135
void clear()
Definition gGUIGraph.h:140
bool hasfringe
Definition gGUIGraph.h:138
PolylineMesh fringemesh
Definition gGUIGraph.h:136