GlistEngine
Loading...
Searching...
No Matches
gGUILineGraph Class Reference

#include <gGUILineGraph.h>

Inheritance diagram for gGUILineGraph:
Collaboration diagram for gGUILineGraph:

Public Member Functions

 gGUILineGraph ()
 
virtual ~gGUILineGraph ()
 
void set (gBaseApp *root, gBaseGUIObject *topParentGUIObject, gBaseGUIObject *parentGUIObject, int parentSlotLineNo, int parentSlotColumnNo, int x, int y, int w, int h) override
 
void setMaxX (int maxX) override
 
void setMinX (int minX) override
 
void setMaxY (int maxY) override
 
void setMinY (int minY) override
 
void setLabelCountX (int labelCount) override
 
void setLabelCountY (int labelCount) override
 
void enablePoints (bool arePointsEnabled)
 
void setLineColor (int lineIndex, gColor lineColor)
 
gColor getLineColor (int lineIndex)
 
void addLine ()
 
void addData (int lineIndex, std::deque< std::array< float, 2 > > dataToAdd)
 
void addPointToLine (int lineIndex, float x, float y)
 
void setPointValues (int lineIndex, int pointIndex, float newX, float newY)
 
void setPointValues (int lineIndex, float oldX, float oldY, float newX, float newY)
 
void removeFirstPointsFromLine (int lineIndex, int pointNumLimit)
 
int getPointNum (int lineIndex)
 
float getPointXValue (int lineIndex, int pointIndex)
 
float getPointYValue (int lineIndex, int pointIndex)
 
void clear () override
 
- Public Member Functions inherited from gGUIGraph
 gGUIGraph ()
 
virtual ~gGUIGraph ()
 
int getMaxX ()
 
int getMinX ()
 
int getMaxY ()
 
int getMinY ()
 
void enableGridlinesX (bool isEnabled)
 
void enableGridlinesY (bool isEnabled)
 
void setTitleX (std::string titleX)
 
std::string getTitleX ()
 
void setTitleY (std::string titleY)
 
std::string getTitleY ()
 
int getLabelCountX ()
 
int getLabelCountY ()
 
virtual void enableRange (bool isRangeEnabled)
 
virtual void setRange (float rangeStart, float rangeEnd)
 
int getRangeStart ()
 
int getRangeEnd ()
 
void draw ()
 
- Public Member Functions inherited from gGUIControl
 gGUIControl ()
 
virtual ~gGUIControl ()
 
virtual int getCursor (int x, int y)
 
virtual void update ()
 
virtual int calculateContentHeight ()
 
virtual bool countAsSpace ()
 
void setCountAsSpace (bool isSpace)
 
- Public Member Functions inherited from gBaseGUIObject
 gBaseGUIObject ()
 
virtual ~gBaseGUIObject ()
 
int getId ()
 
int getType ()
 
void setEnabled (bool isEnabled)
 
bool isEnabled ()
 
void setTitleOn (bool isTitleOn)
 
bool isTitleOn ()
 
virtual void setTopParent (gBaseGUIObject *parentGUIObject)
 
gBaseGUIObjectgetTopParent ()
 
virtual void setParent (gBaseGUIObject *parentGUIObject)
 
gBaseGUIObjectgetParent ()
 
void setParentSlotNo (int parentSlotLineNo, int parentSlotColumnNo)
 
int getParentSlotLineNo ()
 
int getParentSlotColumnNo ()
 
void setTitle (std::string title)
 
std::string getTitle ()
 
virtual void keyPressed (int key)
 
virtual void keyReleased (int key)
 
virtual void charPressed (unsigned int codepoint)
 
virtual void mouseMoved (int x, int y)
 
virtual void mousePressed (int x, int y, int button)
 
virtual void mouseDragged (int x, int y, int button)
 
virtual void mouseReleased (int x, int y, int button)
 
virtual void mouseScrolled (int x, int y)
 
virtual void mouseEntered ()
 
virtual void mouseExited ()
 
virtual void windowResized (int w, int h)
 
virtual void onGUIEvent (int guiObjectId, int eventType, int sourceEventType, std::string value1="", std::string value2="")
 
void setRootApp (gBaseApp *root)
 
virtual void setCursorOn (bool isOn)
 
- Public Member Functions inherited from gRenderObject
 gRenderObject ()
 
int getScreenWidth ()
 
int getScreenHeight ()
 
void pushMatrix ()
 
void popMatrix ()
 
- Public Member Functions inherited from gObject
 gObject ()
 
void logi (std::string message)
 
void logd (std::string message)
 
void logw (std::string message)
 
void loge (std::string message)
 
void logi (std::string tag, std::string message)
 
void logd (std::string tag, std::string message)
 
void logw (std::string tag, std::string message)
 
void loge (std::string tag, std::string message)
 

Additional Inherited Members

- Public Types inherited from gBaseGUIObject
enum  { TEXTALIGNMENT_LEFT , TEXTALIGNMENT_MIDDLE , TEXTALIGNMENT_RIGHT }
 
- Static Public Member Functions inherited from gBaseGUIObject
static void setBackgroundColor (gColor *backgroundColor)
 
static gColorgetBackgroundColor ()
 
static void setMiddlegroundColor (gColor *middlegroundColor)
 
static gColorgetMiddlegroundColor ()
 
static void setForegroundColor (gColor *foregroundColor)
 
static gColorgetForegroundColor ()
 
static void setTextBackgroundColor (gColor *textBackgroundColor)
 
static gColorgetTextBackgroundColor ()
 
static void setNavigationBackgroundColor (gColor *navigationBackgroundColor)
 
static gColorgetNavigationBackgroundColor ()
 
static void setFont (gFont *font)
 
static gFontgetFont ()
 
static void setFontColor (gColor *fontColor)
 
static gColorgetFontColor ()
 
static void setNavigationFontColor (gColor *navigationFontColor)
 
static gColorgetNavigationFontColor ()
 
static void setButtonColor (gColor *color)
 
static gColorgetButtonColor ()
 
static void setPressedButtonColor (gColor *color)
 
static gColorgetPressedButtonColor ()
 
static void setDisabledButtonColor (gColor *color)
 
static gColorgetDisabledButtonColor ()
 
static void setButtonFontColor (gColor *color)
 
static gColorgetButtonFontColor ()
 
static void setPressedButtonFontColor (gColor *color)
 
static gColorgetPressedButtonFontColor ()
 
static void setDisabledButtonFontColor (gColor *color)
 
static gColorgetDisabledButtonFontColor ()
 
- Static Public Member Functions inherited from gRenderObject
static void setScreenSize (int screenWidth, int screenHeight)
 
static void setUnitScreenSize (int unitWidth, int unitHeight)
 
static void setScreenScaling (int screenScaling)
 
static void enableShadowMapping ()
 
static void disableShadowMapping ()
 
static bool isShadowMappingEnabled ()
 
static gRenderergetRenderer ()
 
static void destroyRenderer ()
 
static void createRenderer ()
 
- Static Public Member Functions inherited from gObject
static std::string gGetAppDir ()
 
static std::string gGetAssetsDir ()
 
static void gSetAssetsDir (std::string assetsDir)
 
static std::string gGetFilesDir ()
 
static std::string gGetImagesDir ()
 
static std::string gGetFontsDir ()
 
static std::string gGetModelsDir ()
 
static std::string gGetTexturesDir ()
 
static std::string gGetShadersDir ()
 
static std::string gGetSoundsDir ()
 
static std::string gGetDatabasesDir ()
 
static std::string gGetVideosDir ()
 
static void setCurrentResolution (int scalingNo, int currentResolutionNo)
 
- Public Attributes inherited from gBaseGUIObject
int id
 
int type
 
int left
 
int top
 
int right
 
int bottom
 
int width
 
int height
 
int titlex
 
int titley
 
int titleheight
 
bool isfocused
 
bool iscursoron
 
bool issizer
 
bool iscontainer
 
bool isresizable
 
- Static Public Attributes inherited from gBaseGUIObject
static const int GUIEVENT_FOCUSED = -1
 
static const int GUIEVENT_UNFOCUSED = -2
 
static const int CURSOR_ARROW = 0
 
static const int CURSOR_IBEAM = 1
 
static const int CURSOR_CROSSHAIR = 2
 
static const int CURSOR_HAND = 3
 
static const int CURSOR_HRESIZE = 4
 
static const int CURSOR_VRESIZE = 5
 
static int focusid
 
static int previousfocusid
 
- Static Public Attributes inherited from gObject
static const int LOGLEVEL_SILENT
 
static const int LOGLEVEL_DEBUG
 
static const int LOGLEVEL_INFO
 
static const int LOGLEVEL_WARNING
 
static const int LOGLEVEL_ERROR
 
- Protected Attributes inherited from gGUIGraph
float axisx1
 
float axisy1
 
float axisx2
 
float axisy2
 
float axisxstart
 
float axisystart
 
float axisxw
 
float axisyh
 
float maxy
 
float miny
 
float maxx
 
float minx
 
float largestvaluex
 
float largestvaluey
 
float smallestvaluex
 
float smallestvaluey
 
bool gridlinesxenabled
 
bool gridlinesyenabled
 
bool floatlabelsenabled
 
int labelcountx
 
int labelcounty
 
int rangestart
 
int rangeend
 
bool rangeenabled
 
- Protected Attributes inherited from gGUIControl
bool countasspace
 
int oldwidth
 
int oldheight
 
- Protected Attributes inherited from gBaseGUIObject
std::string title
 
gBaseApproot
 
gBaseGUIObjecttopparent
 
gBaseGUIObjectparent
 
bool isenabled
 
bool istitleon
 
int parentslotlineno
 
int parentslotcolumnno
 
- Static Protected Attributes inherited from gBaseGUIObject
static gColorbackgroundcolor
 
static gColormiddlegroundcolor
 
static gColorforegroundcolor
 
static gColortextbackgroundcolor
 
static gColornavigationbackgroundcolor
 
static gFontfont
 
static gColorfontcolor
 
static gColornavigationfontcolor
 
static gColorbuttoncolor
 
static gColorpressedbuttoncolor
 
static gColordisabledbuttoncolor
 
static gColorbuttonfontcolor
 
static gColorpressedbuttonfontcolor
 
static gColordisabledbuttonfontcolor
 
static gGUIActionManager actionmanager
 
static gGUIResources res
 
- Static Protected Attributes inherited from gRenderObject
static bool isshadowmappingenabled
 
- Static Protected Attributes inherited from gObject
static int renderpassnum
 
static int renderpassno
 
static int releasescaling
 
static int releaseresolution
 

Constructor & Destructor Documentation

◆ gGUILineGraph()

gGUILineGraph::gGUILineGraph ( )

◆ ~gGUILineGraph()

virtual gGUILineGraph::~gGUILineGraph ( )
virtual

Member Function Documentation

◆ addData()

void gGUILineGraph::addData ( int  lineIndex,
std::deque< std::array< float, 2 > >  dataToAdd 
)

◆ addLine()

void gGUILineGraph::addLine ( )

◆ addPointToLine()

void gGUILineGraph::addPointToLine ( int  lineIndex,
float  x,
float  y 
)

◆ clear()

void gGUILineGraph::clear ( )
overridevirtual

Reimplemented from gGUIGraph.

◆ enablePoints()

void gGUILineGraph::enablePoints ( bool  arePointsEnabled)

◆ getLineColor()

gColor gGUILineGraph::getLineColor ( int  lineIndex)

◆ getPointNum()

int gGUILineGraph::getPointNum ( int  lineIndex)

◆ getPointXValue()

float gGUILineGraph::getPointXValue ( int  lineIndex,
int  pointIndex 
)

◆ getPointYValue()

float gGUILineGraph::getPointYValue ( int  lineIndex,
int  pointIndex 
)

◆ removeFirstPointsFromLine()

void gGUILineGraph::removeFirstPointsFromLine ( int  lineIndex,
int  pointNumLimit 
)

◆ set()

void gGUILineGraph::set ( gBaseApp root,
gBaseGUIObject topParentGUIObject,
gBaseGUIObject parentGUIObject,
int  parentSlotLineNo,
int  parentSlotColumnNo,
int  x,
int  y,
int  w,
int  h 
)
overridevirtual

Reimplemented from gGUIGraph.

◆ setLabelCountX()

void gGUILineGraph::setLabelCountX ( int  labelCount)
overridevirtual

Reimplemented from gGUIGraph.

◆ setLabelCountY()

void gGUILineGraph::setLabelCountY ( int  labelCount)
overridevirtual

Reimplemented from gGUIGraph.

◆ setLineColor()

void gGUILineGraph::setLineColor ( int  lineIndex,
gColor  lineColor 
)

◆ setMaxX()

void gGUILineGraph::setMaxX ( int  maxX)
overridevirtual

Reimplemented from gGUIGraph.

◆ setMaxY()

void gGUILineGraph::setMaxY ( int  maxY)
overridevirtual

Reimplemented from gGUIGraph.

◆ setMinX()

void gGUILineGraph::setMinX ( int  minX)
overridevirtual

Reimplemented from gGUIGraph.

◆ setMinY()

void gGUILineGraph::setMinY ( int  minY)
overridevirtual

Reimplemented from gGUIGraph.

◆ setPointValues() [1/2]

void gGUILineGraph::setPointValues ( int  lineIndex,
float  oldX,
float  oldY,
float  newX,
float  newY 
)

◆ setPointValues() [2/2]

void gGUILineGraph::setPointValues ( int  lineIndex,
int  pointIndex,
float  newX,
float  newY 
)

The documentation for this class was generated from the following file: