#include <graph.h>
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) |
GraphLine * | add_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 |
GLabel * | label (float x, float y, const char *s, int fixtype, float scale, float x_align, float y_align, const Color *) |
GLabel * | label (float x, float y, const char *s, float n=0, int fixtype=-1) |
GLabel * | label (const char *s, int fixtype=-1) |
GLabel * | new_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 | |
Symlist * | symlist_ |
LineList | line_list_ |
int | loc_ |
DataVec * | x_ |
boolean | extension_flushed_ |
SymChooser * | sc_ |
CopyString * | var_name_ |
GPolyLine * | current_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_ |
GLabel * | family_label_ |
double | family_val_ |
int | family_cnt_ |
HocCommand * | cross_action_ |
boolean | vector_copy_ |
Symbol * | x_expr_ |
double * | x_pval_ |
GraphVector * | rvp_ |
Static Private Attributes | |
static SymChooser * | fsc_ |
static ostream * | ascii_ |
virtual Graph::~Graph | ( | ) | [virtual] |
void Graph::add_graphVector | ( | GraphVector * | ) |
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::change_prop | ( | ) |
void Graph::choose_sym | ( | ) |
const Color* Graph::color | ( | ) | const [inline] |
References color_.
void Graph::cross_action | ( | char | , | |
Coord | , | |||
Coord | ||||
) |
virtual void Graph::draw | ( | Canvas * | , | |
const Allocation & | ||||
) | const [virtual] |
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_label_chooser | ( | ) |
void Graph::family_value | ( | ) | [private] |
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 | ( | 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().
Reimplemented from Scene.
void Graph::plot | ( | float | ) |
void Graph::relative | ( | float | scale | ) |
virtual void Graph::save_phase1 | ( | ostream & | ) | [virtual] |
virtual void Graph::save_phase2 | ( | ostream & | ) | [virtual] |
Reimplemented from Scene.
Reimplemented in ShapeScene.
virtual void Graph::see_range_plot | ( | GraphVector * | ) | [virtual] |
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] |
ostream* Graph::ascii_ [static, private] |
const Brush* Graph::brush_ [private] |
Referenced by brush().
const Color* Graph::color_ [private] |
Referenced by color().
HocCommand* Graph::cross_action_ [private] |
GPolyLine* Graph::current_polyline_ [private] |
boolean Graph::extension_flushed_ [private] |
int Graph::family_cnt_ [private] |
GLabel* Graph::family_label_ [private] |
boolean Graph::family_on_ [private] |
double Graph::family_val_ [private] |
SymChooser* Graph::fsc_ [static, private] |
TelltaleState* Graph::keep_lines_toggle_ [private] |
int Graph::label_fixtype_ [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] |
GraphVector* Graph::rvp_ [private] |
SymChooser* Graph::sc_ [private] |
Symlist* Graph::symlist_ [private] |
CopyString* Graph::var_name_ [private] |
Reimplemented in ShapeScene.
boolean Graph::vector_copy_ [private] |
Symbol* Graph::x_expr_ [private] |
double* Graph::x_pval_ [private] |