Jive reference manual
List of all members | Classes | Public Types | Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Friends
jem::gl::XYPlot Class Reference

#include <jem/gl/XYPlot.h>

Inheritance diagram for jem::gl::XYPlot:
Inheritance graph

Classes

class  DataSet
 

Public Types

typedef Tuple< double, 2 > Range
 

Public Member Functions

 XYPlot (const String &name)
 
 XYPlot (const String &name, const Size2f &size)
 
virtual void getBBox (Box &box) const
 
virtual void configure (const Properties &props)
 
virtual void getConfig (const Properties &props) const
 
virtual void listProps (const Properties &props) const
 
virtual void redraw (GfxContext &gtx)
 
virtual void redrawFast (GfxContext &gtx, double lod)
 
virtual bool exeCommand (GfxContext &gtx, const String &cmd, const Properties &params)
 
virtual void listOptions (Menu &menu) const
 
virtual bool setFont ()
 
void clear ()
 
DataSetnewDataSet (const String &key="", int style=LINES)
 
DataSetnewDataSet (const String &key, const Array< double > &xData, const Array< double > &yData, int style=LINES)
 
bool eraseDataSet (DataSet *dset)
 
DataSetfindDataSet (const String &key) const
 
Array< DataSet * > getDataSets () const
 
Size2f size () const
 
void resize (const Size2f &sz)
 
void setOption (int option, bool choice=true)
 
void setOptions (int options)
 
void toggleOption (int option)
 
int getOptions () const
 
void setKeyPos (GLfloat xpos, GLfloat ypos)
 
GLfloat getKeyXPos () const
 
GLfloat getKeyYPos () const
 
void setXRange (const Range &range)
 
void setYRange (const Range &range)
 
Range getXRange () const
 
Range getYRange () const
 
void setAutoScale ()
 
void setXAutoScale ()
 
void setYAutoScale ()
 
bool getXAutoScale () const
 
bool getYAutoScale () const
 
void setScaleStep (double step)
 
double getScaleStep () const
 
Vertex2d mapPoint (const Vertex2d &p) const
 
void adjustRange (Range &r) const
 
- Public Member Functions inherited from jem::gl::LeafNode
 LeafNode (const String &name="")
 
virtual bool takeAction (const String &action, const Properties &params)
 
virtual bool takeGLAction (GfxContext &gtx, int action, const Properties &params)
 
virtual void getVisibility (bool &viz, Box &vbox, const Transform &proj) const
 
- Public Member Functions inherited from jem::gl::GfxNode
 GfxNode (const String &name="")
 
virtual String getContext () const
 
virtual GfxNodefindNode (const String &name) const
 
virtual bool takeNRAction (const String &action, const Properties &params)
 
GfxNodegetParent () const
 
void setParent (GfxNode *parent)
 
void clearParent ()
 
- Public Member Functions inherited from jem::NamedObject
 NamedObject (const String &name="")
 
virtual String toString () const
 Returns a short textual description of this object. More...
 
String getName () const
 
- Public Member Functions inherited from jem::Object
virtual ClassgetClass () const
 Returns the Class instance representing the runtime class of this object. More...
 
virtual long hashValue () const
 Returns a hash value for this object. More...
 
virtual bool equals (const Ref< Object > &obj) const
 Tests whether two objects are equal. More...
 
Ref< Objectclone () const
 Returns a copy of this object. More...
 

Public Attributes

String title
 
String xLabel
 
String yLabel
 
- Public Attributes inherited from jem::gl::LeafNode
bool hidden
 

Static Public Attributes

static const int SHOW_KEY
 
static const int SHOW_XTICKS
 
static const int SHOW_YTICKS
 
static const int SHOW_TICKS
 
static const int DEFAULT_OPTIONS
 
static const int LINES
 
static const int POINTS
 
static const int LINES_POINTS
 

Protected Member Functions

virtual ~XYPlot ()
 
- Protected Member Functions inherited from jem::gl::LeafNode
virtual ~LeafNode ()
 
- Protected Member Functions inherited from jem::gl::GfxNode
virtual ~GfxNode ()
 
- Protected Member Functions inherited from jem::NamedObject
virtual ~NamedObject ()
 
- Protected Member Functions inherited from jem::Collectable
 Collectable ()
 Creates an empty Collectable. More...
 
 ~Collectable ()
 Frees resources. More...
 

Friends

class DataSet_
 

Additional Inherited Members

- Static Public Member Functions inherited from jem::NamedObject
static String makeContext (const String &kind, const String &name)
 
- Static Public Member Functions inherited from jem::Object
static ClassgetType ()
 Returns the Class instance representing the Object class. More...
 
- Protected Attributes inherited from jem::NamedObject
String myName_
 

Member Typedef Documentation

typedef Tuple<double,2> jem::gl::XYPlot::Range

Constructor & Destructor Documentation

jem::gl::XYPlot::XYPlot ( const String name)
explicit
jem::gl::XYPlot::XYPlot ( const String name,
const Size2f size 
)
virtual jem::gl::XYPlot::~XYPlot ( )
protectedvirtual

Member Function Documentation

virtual void jem::gl::XYPlot::getBBox ( Box box) const
virtual

Reimplemented from jem::gl::GfxNode.

virtual void jem::gl::XYPlot::configure ( const Properties props)
virtual

Reimplemented from jem::gl::LeafNode.

virtual void jem::gl::XYPlot::getConfig ( const Properties props) const
virtual

Reimplemented from jem::gl::LeafNode.

virtual void jem::gl::XYPlot::listProps ( const Properties props) const
virtual

Reimplemented from jem::gl::LeafNode.

virtual void jem::gl::XYPlot::redraw ( GfxContext gtx)
virtual

Implements jem::gl::LeafNode.

virtual void jem::gl::XYPlot::redrawFast ( GfxContext gtx,
double  lod 
)
virtual

Implements jem::gl::LeafNode.

virtual bool jem::gl::XYPlot::exeCommand ( GfxContext gtx,
const String cmd,
const Properties params 
)
virtual

Reimplemented from jem::gl::LeafNode.

virtual void jem::gl::XYPlot::listOptions ( Menu menu) const
virtual

Reimplemented from jem::gl::LeafNode.

virtual bool jem::gl::XYPlot::setFont ( )
virtual

Reimplemented from jem::gl::LeafNode.

void jem::gl::XYPlot::clear ( )
DataSet* jem::gl::XYPlot::newDataSet ( const String key = "",
int  style = LINES 
)
DataSet* jem::gl::XYPlot::newDataSet ( const String key,
const Array< double > &  xData,
const Array< double > &  yData,
int  style = LINES 
)
bool jem::gl::XYPlot::eraseDataSet ( DataSet dset)
DataSet* jem::gl::XYPlot::findDataSet ( const String key) const
Array<DataSet*> jem::gl::XYPlot::getDataSets ( ) const
Size2f jem::gl::XYPlot::size ( ) const
void jem::gl::XYPlot::resize ( const Size2f sz)
void jem::gl::XYPlot::setOption ( int  option,
bool  choice = true 
)
void jem::gl::XYPlot::setOptions ( int  options)
void jem::gl::XYPlot::toggleOption ( int  option)
int jem::gl::XYPlot::getOptions ( ) const
void jem::gl::XYPlot::setKeyPos ( GLfloat  xpos,
GLfloat  ypos 
)
GLfloat jem::gl::XYPlot::getKeyXPos ( ) const
GLfloat jem::gl::XYPlot::getKeyYPos ( ) const
void jem::gl::XYPlot::setXRange ( const Range range)
void jem::gl::XYPlot::setYRange ( const Range range)
Range jem::gl::XYPlot::getXRange ( ) const
Range jem::gl::XYPlot::getYRange ( ) const
void jem::gl::XYPlot::setAutoScale ( )
void jem::gl::XYPlot::setXAutoScale ( )
void jem::gl::XYPlot::setYAutoScale ( )
bool jem::gl::XYPlot::getXAutoScale ( ) const
bool jem::gl::XYPlot::getYAutoScale ( ) const
void jem::gl::XYPlot::setScaleStep ( double  step)
double jem::gl::XYPlot::getScaleStep ( ) const
Vertex2d jem::gl::XYPlot::mapPoint ( const Vertex2d p) const
void jem::gl::XYPlot::adjustRange ( Range r) const

Friends And Related Function Documentation

friend class DataSet_
friend

Member Data Documentation

const int jem::gl::XYPlot::SHOW_KEY
static
const int jem::gl::XYPlot::SHOW_XTICKS
static
const int jem::gl::XYPlot::SHOW_YTICKS
static
const int jem::gl::XYPlot::SHOW_TICKS
static
const int jem::gl::XYPlot::DEFAULT_OPTIONS
static
const int jem::gl::XYPlot::LINES
static
const int jem::gl::XYPlot::POINTS
static
const int jem::gl::XYPlot::LINES_POINTS
static
String jem::gl::XYPlot::title
String jem::gl::XYPlot::xLabel
String jem::gl::XYPlot::yLabel