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

#include <jem/gl/GraphViewer.h>

Inheritance diagram for jem::gl::GraphViewer:
Inheritance graph

Classes

class  DataSet
 

Public Types

typedef Tuple< double, 2 > Range
 

Public Member Functions

 GraphViewer (const Ref< Viewer > &viewer)
 
void freeze ()
 
void resume ()
 
void replot ()
 
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
 
void setQuality (int level)
 
int getQuality () const
 
void setOption (int options, bool choice=true)
 
void setOptions (int options)
 
int getOptions () const
 
void setTitle (const String &title)
 
String getTitle () const
 
void setLabels (const String &xLabel, const String &yLabel)
 
String getXLabel () const
 
String getYLabel () const
 
void setKeyPos (GLfloat xpos, GLfloat ypos)
 
GLfloat getKeyXPos () const
 
GLfloat getKeyYPos () const
 
void setBgColor (const Color &color)
 
Color getBgColor () const
 
void setXRange (const Range &range)
 
void setXRange (double lo, double hi)
 
void setYRange (const Range &range)
 
void setYRange (double lo, double hi)
 
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
 
String saveSnapshot (const String &fname) const
 
void saveSnapshot (OutputStream &output, FrameGrabber &grabber) const
 
- Public Member Functions inherited from jem::Object
virtual ClassgetClass () const
 Returns the Class instance representing the runtime class of this object. More...
 
virtual String toString () const
 Returns a short textual description 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...
 

Static Public Member Functions

static Ref< Self > open (const String &name)
 
static Ref< Self > open (const String &name, int &argc, char **argv)
 
- Static Public Member Functions inherited from jem::Object
static ClassgetType ()
 Returns the Class instance representing the Object class. More...
 

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 ANTI_ALIASING
 
static const int DEFAULT_OPTIONS
 
static const int LINES
 
static const int POINTS
 
static const int LINES_POINTS
 

Protected Member Functions

virtual ~GraphViewer ()
 
- Protected Member Functions inherited from jem::Collectable
 Collectable ()
 Creates an empty Collectable. More...
 
 ~Collectable ()
 Frees resources. More...
 

Friends

class ReadLock_
 
class WriteLock_
 
class DataSet_
 

Member Typedef Documentation

Constructor & Destructor Documentation

jem::gl::GraphViewer::GraphViewer ( const Ref< Viewer > &  viewer)
explicit
virtual jem::gl::GraphViewer::~GraphViewer ( )
protectedvirtual

Member Function Documentation

static Ref<Self> jem::gl::GraphViewer::open ( const String name)
static
static Ref<Self> jem::gl::GraphViewer::open ( const String name,
int &  argc,
char **  argv 
)
static
void jem::gl::GraphViewer::freeze ( )
void jem::gl::GraphViewer::resume ( )
void jem::gl::GraphViewer::replot ( )
void jem::gl::GraphViewer::clear ( )
DataSet* jem::gl::GraphViewer::newDataSet ( const String key = "",
int  style = LINES 
)
DataSet* jem::gl::GraphViewer::newDataSet ( const String key,
const Array< double > &  xData,
const Array< double > &  yData,
int  style = LINES 
)
bool jem::gl::GraphViewer::eraseDataSet ( DataSet dset)
DataSet* jem::gl::GraphViewer::findDataSet ( const String key) const
Array<DataSet*> jem::gl::GraphViewer::getDataSets ( ) const
void jem::gl::GraphViewer::setQuality ( int  level)
int jem::gl::GraphViewer::getQuality ( ) const
void jem::gl::GraphViewer::setOption ( int  options,
bool  choice = true 
)
void jem::gl::GraphViewer::setOptions ( int  options)
int jem::gl::GraphViewer::getOptions ( ) const
void jem::gl::GraphViewer::setTitle ( const String title)
String jem::gl::GraphViewer::getTitle ( ) const
void jem::gl::GraphViewer::setLabels ( const String xLabel,
const String yLabel 
)
String jem::gl::GraphViewer::getXLabel ( ) const
String jem::gl::GraphViewer::getYLabel ( ) const
void jem::gl::GraphViewer::setKeyPos ( GLfloat  xpos,
GLfloat  ypos 
)
GLfloat jem::gl::GraphViewer::getKeyXPos ( ) const
GLfloat jem::gl::GraphViewer::getKeyYPos ( ) const
void jem::gl::GraphViewer::setBgColor ( const Color color)
Color jem::gl::GraphViewer::getBgColor ( ) const
void jem::gl::GraphViewer::setXRange ( const Range range)
void jem::gl::GraphViewer::setXRange ( double  lo,
double  hi 
)
void jem::gl::GraphViewer::setYRange ( const Range range)
void jem::gl::GraphViewer::setYRange ( double  lo,
double  hi 
)
Range jem::gl::GraphViewer::getXRange ( ) const
Range jem::gl::GraphViewer::getYRange ( ) const
void jem::gl::GraphViewer::setAutoScale ( )
void jem::gl::GraphViewer::setXAutoScale ( )
void jem::gl::GraphViewer::setYAutoScale ( )
bool jem::gl::GraphViewer::getXAutoScale ( ) const
bool jem::gl::GraphViewer::getYAutoScale ( ) const
void jem::gl::GraphViewer::setScaleStep ( double  step)
double jem::gl::GraphViewer::getScaleStep ( ) const
String jem::gl::GraphViewer::saveSnapshot ( const String fname) const
void jem::gl::GraphViewer::saveSnapshot ( OutputStream output,
FrameGrabber grabber 
) const

Friends And Related Function Documentation

friend class ReadLock_
friend
friend class WriteLock_
friend
friend class DataSet_
friend

Member Data Documentation

const int jem::gl::GraphViewer::SHOW_KEY
static
const int jem::gl::GraphViewer::SHOW_XTICKS
static
const int jem::gl::GraphViewer::SHOW_YTICKS
static
const int jem::gl::GraphViewer::SHOW_TICKS
static
const int jem::gl::GraphViewer::ANTI_ALIASING
static
const int jem::gl::GraphViewer::DEFAULT_OPTIONS
static
const int jem::gl::GraphViewer::LINES
static
const int jem::gl::GraphViewer::POINTS
static
const int jem::gl::GraphViewer::LINES_POINTS
static