Classes | Public Types | Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
XGraph Class Reference

#include <graph.h>

Inheritance diagram for XGraph:
Inheritance graph
[legend]

Classes

struct  Payload
 

Public Types

typedef float SFloat
 
typedef float GFloat
 
typedef double VFloat
 
typedef Vector4< SFloat > ScrPoint
 
typedef Vector4< GFloat > GPoint
 
typedef Vector4< VFloat > ValPoint
 

Public Member Functions

 XGraph (const char *name, bool runtime)
 
virtual XString getLabel () const
 
void setupRedraw (Transaction &tr, float resolution)
 
void zoomAxes (Transaction &tr, float resolution, XGraph::SFloat zoomscale, const XGraph::ScrPoint &zoomcenter)
 
const shared_ptr< XAxisList > & axes () const
 
const shared_ptr< XPlotList > & plots () const
 
const shared_ptr< XStringNode > & label () const
 
const shared_ptr< XHexNode > & backGround () const
 
const shared_ptr< XHexNode > & titleColor () const
 
const shared_ptr< XBoolNode > & drawLegends () const
 
const shared_ptr< XDoubleNode > & persistence () const
 
const shared_ptr< XListener > & lsnPropertyChanged () const
 
- Public Member Functions inherited from XNode
 XNode (const char *name, bool runtime=false)
 
template<class T >
shared_ptr< T > create (const char *name)
 
template<class T , typename... Args>
shared_ptr< T > create (const char *name, bool runtime, Args &&...args)
 
template<class T >
shared_ptr< T > create (Transaction &tr, const char *name)
 
template<class T , typename... Args>
shared_ptr< T > create (Transaction &tr, const char *name, bool runtime, Args &&...args)
 
XString getName () const
 
XString getTypename () const
 
shared_ptr< XNodegetChild (const XString &var) const
 
shared_ptr< XNodegetParent () const
 
void setUIEnabled (bool v)
 Enables/disables controls over scripting/GUI.
 
void disable ()
 Disables all scripting/GUI operations on this node hereafter.
 
- Public Member Functions inherited from Transactional::Node< XNode >
bool insert (Transaction< XNode > &tr, const shared_ptr< XNode > &var, bool online_after_insertion=false)
 
void insert (const shared_ptr< XNode > &var)
 
bool release (Transaction< XNode > &tr, const shared_ptr< XNode > &var)
 
void release (const shared_ptr< XNode > &var)
 
void releaseAll ()
 
bool swap (Transaction< XNode > &tr, const shared_ptr< XNode > &x, const shared_ptr< XNode > &y)
 
void swap (const shared_ptr< XNode > &x, const shared_ptr< XNode > &y)
 
XNodeupperNode (Snapshot< XNode > &shot)
 Finds the parent node in shot.
 
Snapshot< XNodeiterate_commit (Closure)
 
Snapshot< XNodeiterate_commit_if (Closure)
 
void iterate_commit_while (Closure)
 
void print_ () const
 
 Node (const Node &)=delete
 
Nodeoperator= (const Node &)=delete
 

Static Public Attributes

static const SFloat SFLOAT_MAX = FLT_MAX
 
static const GFloat GFLOAT_MAX = FLT_MAX
 
static const VFloat VFLOAT_MAX = DBL_MAX
 

Private Member Functions

void onPropertyChanged (const Snapshot &shot, XValueNodeBase *)
 

Private Attributes

const shared_ptr< XStringNodem_label
 
const shared_ptr< XAxisListm_axes
 
const shared_ptr< XPlotListm_plots
 
const shared_ptr< XHexNodem_backGround
 
const shared_ptr< XHexNodem_titleColor
 
const shared_ptr< XBoolNodem_drawLegends
 
const shared_ptr< XDoubleNodem_persistence
 
shared_ptr< XListenerm_lsnPropertyChanged
 

Additional Inherited Members

- Static Public Member Functions inherited from XNode
template<class T__ >
static shared_ptr< T__ > createOrphan (const char *name)
 
template<class T__ , typename... Args_>
static shared_ptr< T__ > createOrphan (const char *name, bool runtime, Args_ &&...args)
 
- Protected Member Functions inherited from Transactional::Node< XNode >
 Node ()
 Use create().
 

Detailed Description

XGraph object can have one or more plots and two or more axes.

See Also
XPlot, XAxis, XQGraphPainter

Definition at line 101 of file graph.h.

Member Function Documentation

virtual XString XGraph::getLabel ( ) const
inlinevirtual
Returns
i18n name for UI.

Reimplemented from XNode.

Definition at line 104 of file graph.h.

void XGraph::setupRedraw ( Transaction tr,
float  resolution 
)

Fixes axes and performs autoscaling of the axes. Call this function before redrawal of the graph.

Definition at line 102 of file graph.cpp.

References XPlot::snapshot(), and XAxis::startAutoscale().


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

Generated for KAME4 by  doxygen 1.8.3