|
0.45.0
|
#include <iWidgetGraph.h>
Inherits igor::iWidget.
Additional Inherited Members | |
Static Public Member Functions inherited from igor::iWidget | |
| static iWidgetPtr | getKeyboardFocusWidget () |
| static IGOR_INLINE float32 | getScale () |
Static Public Attributes inherited from igor::iWidget | |
| static const iWidgetID | INVALID_WIDGET_ID = 0 |
Protected Member Functions inherited from igor::iWidget | |
| void | clearChildren () |
| void | updateMinSize (int32 width, int32 height) |
| void | setParent (iWidgetPtr parent) |
| void | setKeyboardFocus () |
| void | resetKeyboardFocus () |
| void | setClientArea (int32 left, int32 right, int32 top, int32 bottom) |
| const iaVector2f & | getLastMousePos () const |
| iWidget (iWidgetType type, iWidgetKind kind, const iWidgetPtr parent=nullptr) | |
| virtual | ~iWidget () |
| virtual bool | onEvent (iEvent &event) |
| virtual bool | onMouseWheel (const iEventMouseWheel &event) |
| virtual bool | onMouseKeyDown (const iEventMouseKeyDown &event) |
| virtual bool | onMouseDoubleClick (const iEventMouseKeyDoubleClick &event) |
| virtual bool | onMouseKeyUp (const iEventMouseKeyUp &event) |
| virtual void | onMouseMove (const iEventMouseMove &event) |
| virtual bool | onASCII (const iEventKeyASCII &event) |
| virtual bool | onKeyDown (const iEventKeyDown &event) |
| virtual bool | onKeyUp (const iEventKeyUp &event) |
| virtual void | onLostKeyboardFocus () |
| virtual void | onGainedKeyboardFocus () |
| virtual void | calcMinSize () |
| virtual void | updateAlignment (int32 clientWidth, int32 clientHeight) |
| virtual void | calcChildOffsets (std::vector< iaRectanglef > &offsets) |
| virtual void | onDragEnter (iDrag &drag) |
| virtual void | onDragMove (iDrag &drag, const iaVector2f &mousePos) |
| virtual void | onDragLeave (iDrag &drag) |
| virtual void | onDrop (const iDrag &drag, const iaVector2f &mousePos) |
| virtual void | onDrag () |
| virtual void | onRefresh () |
Protected Attributes inherited from igor::iWidget | |
| bool | _selected = false |
| bool | _isSelectable = false |
| bool | _isMultiSelectionEnabled = false |
| std::vector< iWidgetPtr > | _children |
| int32 | _configuredMinWidth = 0 |
| int32 | _configuredMinHeight = 0 |
| iClickEvent | _click |
| iMouseOffClickEvent | _mouseOffClick |
| iContextMenuEvent | _contextMenu |
| iDoubleClickEvent | _doubleClick |
| iMouseOverEvent | _mouseOver |
| iMouseOffEvent | _mouseOff |
| iChangeEvent | _change |
| iFocusEvent | _focus |
| iWheelUpEvent | _wheelUp |
| iWheelDownEvent | _wheelDown |
| iSelectionChangedEvent | _selectionChanged |
| iaString | _tooltip |
| iaVector2f | _tooltipPos |
| iaTime | _tooltipTime = iaTime(0) |
| bool | _initTooltip = false |
| uint32 | _zValue = 0 |
| bool | _reactOnMouseWheel = true |
| bool | _blockedEvents = false |
| bool | _acceptOutOfBoundsClicks = false |
| bool | _acceptDrop = false |
| bool | _acceptDrag = false |
| bool | _isMouseOver = false |
| bool | _ignoreChildEventConsumption = false |
| iaVector2f | _lastMousePos |
| iaVector2f | _lastMousePressPos |
| bool | _needRefresh = true |
graph widget. to display graphs
| igor::iWidgetGraph::iWidgetGraph | ( | const iWidgetPtr | parent = nullptr | ) |
ctor initializes member variables
| parent | optional parent |
|
virtualdefault |
does nothing
| void igor::iWidgetGraph::clearPoints | ( | ) |
clears all point data
| iaRectanglef igor::iWidgetGraph::getBoundings | ( | ) |
| bool igor::iWidgetGraph::getExtrapolateData | ( | ) |
| int32 igor::iWidgetGraph::getGraphCount | ( | ) | const |
| uint32 igor::iWidgetGraph::getGridXResolution | ( | ) | const |
| uint32 igor::iWidgetGraph::getGridYResolution | ( | ) | const |
| name | name of graph |
| id | graph id |
| name | name of graph |
| std::vector< iaVector2f > igor::iWidgetGraph::getPoints | ( | uint64 | id | ) |
| id | the graphs id |
| id | graph id |
| int32 igor::iWidgetGraph::getSelectedIndex | ( | ) | const |
| bool igor::iWidgetGraph::getViewGrid | ( | ) | const |
| bool igor::iWidgetGraph::getViewLabels | ( | ) | const |
| bool igor::iWidgetGraph::isInteractive | ( | ) |
| bool igor::iWidgetGraph::isUsingBoundings | ( | ) |
| void igor::iWidgetGraph::setBoundings | ( | const iaRectanglef & | boundings | ) |
set user specified boudings / range of graph coordinate system
| boundings | the boundings |
| void igor::iWidgetGraph::setExtrapolateData | ( | bool | extendData = true | ) |
set data extend flag
if true and a graph does not reach the bounding it will be extended up to the boundings
| extendData | if true wrap data will be activated |
configures the resolution of the grid
| x | amount of vertical grid lines (2 minimum) |
| y | amount of horizontal grid lines (2 minimum) |
| void igor::iWidgetGraph::setInteractive | ( | bool | interactive = true | ) |
sets the interactive feature
| interactive | if true graph will be interactive |
sets line color for specified graph
| id | identifier of graph |
| color | color of graph |
sets line width of specified graph
| id | graph id |
| lineWidth | the new line width |
sets points color for specified graph
| id | identifier of graph |
| color | color of graph |
| void igor::iWidgetGraph::setPoints | ( | uint64 | id, |
| std::vector< iaVector2f > | points | ||
| ) |
sets points of graph
| id | the graphs id |
| points | list of points for the graph |
sets points size for specified graph
| id | id of graph |
| pointSize | the point size to set |
| void igor::iWidgetGraph::setUseBoundings | ( | bool | useBoundings = true | ) |
activated user defined boundings / range of graph
| useBoundings | if true user specified boundings will be used |
| void igor::iWidgetGraph::setViewGrid | ( | bool | viewGrid = true | ) |
sets the grid visibility
| viewGrid | if true the grid is visible |
| void igor::iWidgetGraph::setViewLabels | ( | bool | viewLabels = true | ) |
sets if labels are visible
| viewLabels | if true labels are visible |