Graph Class Reference

#include <graph.h>

Inheritance diagram for Graph:
Inheritance graph
[legend]
Collaboration diagram for Graph:
Collaboration graph
[legend]

List of all members.

Public Types

enum  { CROSSHAIR = Scene::EXTRATOOL, CHANGELABEL, PICK, EXTRAGRAPHTOOL }

Public Member Functions

 Graph (boolean=true)
virtual ~Graph ()
void axis (DimensionName, float min, float max, float pos=0., int ntics=-1, int nminor=0, int invert=0, boolean number=true)
GraphLineadd_var (const char *, const Color *, const Brush *, boolean usepointer, int fixtype=1, double *p=nil, const char *lab=nil, Object *obj=nil)
void x_expr (const char *, boolean usepointer)
void add_polyline (GPolyLine *)
void add_graphVector (GraphVector *)
void begin ()
void plot (float)
void flush ()
void fast_flush ()
void begin_line (const char *s=nil)
void begin_line (const Color *, const Brush *, const char *s=nil)
void line (Coord x, Coord y)
void mark (Coord x, Coord y, char style='+', float size=12, const Color *=nil, const Brush *=nil)
void erase ()
virtual void erase_all ()
void erase_lines ()
virtual void delete_label (GLabel *)
virtual boolean change_label (GLabel *, const char *, GLabel *gl=nil)
virtual void help ()
void keep_lines ()
void keep_lines_toggle ()
void family (boolean)
void family (const char *)
void family_label_chooser ()
void new_axis ()
void erase_axis ()
void view_axis ()
void view_box ()
void change_prop ()
void color (int)
void brush (int)
const Color * color () const
const Brush * brush () const
void set_cross_action (const char *, boolean vectorcopy=false)
void cross_action (char, GPolyLine *, int)
void cross_action (char, Coord, Coord)
void simgraph ()
virtual void draw (Canvas *, const Allocation &) const
virtual void pick (Canvas *, const Allocation &, int depth, Hit &)
virtual GlyphIndex glyph_index (const Glyph *)
virtual void new_size (Coord x1, Coord y1, Coord x2, Coord y2)
virtual void wholeplot (Coord &x1, Coord &y1, Coord &x2, Coord &y2) const
GLabellabel (float x, float y, const char *s, int fixtype, float scale, float x_align, float y_align, const Color *)
GLabellabel (float x, float y, const char *s, float n=0, int fixtype=-1)
GLabellabel (const char *s, int fixtype=-1)
GLabelnew_proto_label () const
void fixed (float scale)
void vfixed (float scale)
void relative (float scale)
void align (float x, float y)
void choose_sym ()
void name (char *)
void change_label_color (GLabel *)
void change_line_color (GPolyLine *)
void update_ptrs ()
virtual void save_phase1 (ostream &)
virtual void save_phase2 (ostream &)
int labeltype () const
virtual void see_range_plot (GraphVector *)

Static Public Member Functions

static boolean label_chooser (const char *, char *, GLabel *, Coord x=400., Coord y=400.)
static void ascii (ostream *)
static ostream * ascii ()

Private Member Functions

void extension_start ()
void extension_continue ()
void ascii_save (ostream &o) const
void family_value ()

Private Attributes

Symlistsymlist_
LineList line_list_
int loc_
DataVecx_
boolean extension_flushed_
SymChoosersc_
CopyString * var_name_
GPolyLinecurrent_polyline_
const Color * color_
const Brush * brush_
int label_fixtype_
float label_scale_
float label_x_align_
float label_y_align_
float label_x_
float label_y_
float label_n_
TelltaleState * keep_lines_toggle_
boolean family_on_
GLabelfamily_label_
double family_val_
int family_cnt_
HocCommandcross_action_
boolean vector_copy_
Symbolx_expr_
double * x_pval_
GraphVectorrvp_

Static Private Attributes

static SymChooserfsc_
static ostream * ascii_

Member Enumeration Documentation

anonymous enum
Enumerator:
CROSSHAIR 
CHANGELABEL 
PICK 
EXTRAGRAPHTOOL 

Constructor & Destructor Documentation

Graph::Graph ( boolean  = true  ) 
virtual Graph::~Graph (  )  [virtual]

Member Function Documentation

void Graph::add_graphVector ( GraphVector  ) 
void Graph::add_polyline ( GPolyLine  ) 
GraphLine* Graph::add_var ( const char *  ,
const Color *  ,
const Brush *  ,
boolean  usepointer,
int  fixtype = 1,
double *  p = nil,
const char *  lab = nil,
Object *  obj = nil 
)
void Graph::align ( float  x,
float  y 
)
static ostream* Graph::ascii (  )  [static]
static void Graph::ascii ( ostream *   )  [static]
void Graph::ascii_save ( ostream &  o  )  const [private]
void Graph::axis ( DimensionName  ,
float  min,
float  max,
float  pos = 0.,
int  ntics = -1,
int  nminor = 0,
int  invert = 0,
boolean  number = true 
)
void Graph::begin (  ) 
void Graph::begin_line ( const Color *  ,
const Brush *  ,
const char *  s = nil 
)
void Graph::begin_line ( const char *  s = nil  ) 
const Brush* Graph::brush (  )  const [inline]

References brush_.

void Graph::brush ( int   ) 
virtual boolean Graph::change_label ( GLabel ,
const char *  ,
GLabel gl = nil 
) [virtual]
void Graph::change_label_color ( GLabel  )  [virtual]

Reimplemented from Scene.

void Graph::change_line_color ( GPolyLine  )  [virtual]

Reimplemented from Scene.

void Graph::change_prop (  ) 
void Graph::choose_sym (  ) 
const Color* Graph::color (  )  const [inline]

References color_.

void Graph::color ( int   ) 
void Graph::cross_action ( char  ,
Coord  ,
Coord   
)
void Graph::cross_action ( char  ,
GPolyLine ,
int   
)
virtual void Graph::delete_label ( GLabel  )  [virtual]

Reimplemented from Scene.

virtual void Graph::draw ( Canvas *  ,
const Allocation &   
) const [virtual]

Reimplemented from Scene.

Reimplemented in ShapePlot.

void Graph::erase (  ) 
virtual void Graph::erase_all (  )  [virtual]

Reimplemented in ShapeScene, and ShapePlot.

void Graph::erase_axis (  ) 
void Graph::erase_lines (  ) 
void Graph::extension_continue (  )  [private]
void Graph::extension_start (  )  [private]
void Graph::family ( const char *   ) 
void Graph::family ( boolean   ) 
void Graph::family_label_chooser (  ) 
void Graph::family_value (  )  [private]
void Graph::fast_flush (  ) 

Reimplemented in ShapePlot.

void Graph::fixed ( float  scale  ) 
void Graph::flush (  ) 

Reimplemented in ShapeScene, and ShapePlot.

virtual GlyphIndex Graph::glyph_index ( const Glyph *   )  [virtual]

Reimplemented from Scene.

virtual void Graph::help (  )  [virtual]

Reimplemented from Scene.

Reimplemented in ShapeScene.

void Graph::keep_lines (  ) 
void Graph::keep_lines_toggle (  ) 
GLabel* Graph::label ( const char *  s,
int  fixtype = -1 
)
GLabel* Graph::label ( float  x,
float  y,
const char *  s,
float  n = 0,
int  fixtype = -1 
)
GLabel* Graph::label ( float  x,
float  y,
const char *  s,
int  fixtype,
float  scale,
float  x_align,
float  y_align,
const Color *   
)
static boolean Graph::label_chooser ( const char *  ,
char *  ,
GLabel ,
Coord  x = 400.,
Coord  y = 400. 
) [static]
int Graph::labeltype (  )  const [inline]

References label_fixtype_.

void Graph::line ( Coord  x,
Coord  y 
)
void Graph::mark ( Coord  x,
Coord  y,
char  style = '+',
float  size = 12,
const Color *  = nil,
const Brush *  = nil 
)
void Graph::name ( char *   ) 
void Graph::new_axis (  ) 
GLabel* Graph::new_proto_label (  )  const
virtual void Graph::new_size ( Coord  x1,
Coord  y1,
Coord  x2,
Coord  y2 
) [virtual]

Reimplemented from Scene.

Referenced by ivoc_gr_size().

virtual void Graph::pick ( Canvas *  ,
const Allocation &  ,
int  depth,
Hit &   
) [virtual]

Reimplemented from Scene.

void Graph::plot ( float   ) 
void Graph::relative ( float  scale  ) 
virtual void Graph::save_phase1 ( ostream &   )  [virtual]

Reimplemented from Scene.

Reimplemented in ShapePlot.

virtual void Graph::save_phase2 ( ostream &   )  [virtual]

Reimplemented from Scene.

Reimplemented in ShapeScene.

virtual void Graph::see_range_plot ( GraphVector  )  [virtual]
void Graph::set_cross_action ( const char *  ,
boolean  vectorcopy = false 
)
void Graph::simgraph (  ) 
void Graph::update_ptrs (  ) 

Reimplemented in ShapePlot.

Referenced by nrniv_recalc_ptrs().

void Graph::vfixed ( float  scale  ) 
void Graph::view_axis (  ) 
void Graph::view_box (  ) 
virtual void Graph::wholeplot ( Coord &  x1,
Coord &  y1,
Coord &  x2,
Coord &  y2 
) const [virtual]

Reimplemented from Scene.

Reimplemented in ShapeScene.

Referenced by ivoc_gr_size().

void Graph::x_expr ( const char *  ,
boolean  usepointer 
)

Member Data Documentation

ostream* Graph::ascii_ [static, private]
const Brush* Graph::brush_ [private]

Referenced by brush().

const Color* Graph::color_ [private]

Referenced by color().

double Graph::family_val_ [private]
SymChooser* Graph::fsc_ [static, private]
TelltaleState* Graph::keep_lines_toggle_ [private]

Referenced by labeltype().

float Graph::label_n_ [private]
float Graph::label_scale_ [private]
float Graph::label_x_ [private]
float Graph::label_x_align_ [private]
float Graph::label_y_ [private]
float Graph::label_y_align_ [private]
LineList Graph::line_list_ [private]
int Graph::loc_ [private]
SymChooser* Graph::sc_ [private]
CopyString* Graph::var_name_ [private]

Reimplemented in ShapeScene.

DataVec* Graph::x_ [private]
Symbol* Graph::x_expr_ [private]
double* Graph::x_pval_ [private]

The documentation for this class was generated from the following file:
Generated on Mon Jun 13 08:10:31 2011 for NEURON by  doxygen 1.6.3