![]() |
NEURON
|
#include <graph.h>
Public Types | |
| enum | { CROSSHAIR = Scene::EXTRATOOL , CHANGELABEL , PICK , EXTRAGRAPHTOOL } |
Public Types inherited from Scene | |
| enum | { NOTOOL = 0 , MOVE , DELETE , CHANGECOLOR , EXTRATOOL } |
Public Member Functions | |
| Graph (bool=true) | |
| virtual | ~Graph () |
| void | axis (DimensionName, float min, float max, float pos=0., int ntics=-1, int nminor=0, int invert=0, bool number=true) |
| GraphLine * | add_var (const char *, const Color *, const Brush *, bool usepointer, int fixtype=1, neuron::container::data_handle< double > p={}, const char *lab=NULL, Object *obj=NULL) |
| void | x_expr (const char *, bool 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=NULL) |
| void | begin_line (const Color *, const Brush *, const char *s=NULL) |
| void | line (Coord x, Coord y) |
| void | mark (Coord x, Coord y, char style='+', float size=12, const Color *=NULL, const Brush *=NULL) |
| void | erase () |
| virtual void | erase_all () |
| void | erase_lines () |
| virtual void | delete_label (GLabel *) |
| virtual bool | change_label (GLabel *, const char *, GLabel *gl=NULL) |
| virtual void | help () |
| void | keep_lines () |
| void | keep_lines_toggle () |
| void | family (bool) |
| 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 *, Object *, bool 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 *) |
| virtual void | save_phase1 (std::ostream &) |
| virtual void | save_phase2 (std::ostream &) |
| int | labeltype () const |
| virtual void | see_range_plot (GraphVector *) |
Public Member Functions inherited from Scene | |
| Scene (Coord x1, Coord y1, Coord x2, Coord y2, Glyph *background=NULL) | |
| virtual | ~Scene () |
| virtual void | background (Glyph *bg=NULL) |
| virtual Coord | x1 () const |
| virtual Coord | y1 () const |
| virtual Coord | x2 () const |
| virtual Coord | y2 () const |
| virtual int | view_count () const |
| virtual XYView * | sceneview (int) const |
| virtual void | dismiss () |
| virtual void | printfile (const char *) |
| virtual void | modified (GlyphIndex) |
| void | move (GlyphIndex, Coord x, Coord y) |
| void | location (GlyphIndex, Coord &x, Coord &y) const |
| void | show (GlyphIndex, bool) |
| bool | showing (GlyphIndex) const |
| virtual void | damage (GlyphIndex) |
| virtual void | damage (Coord x1, Coord y1, Coord x2, Coord y2) |
| virtual void | damage_all () |
| virtual void | tool (int) |
| virtual int | tool () |
| virtual void | request (Requisition &) const |
| virtual void | allocate (Canvas *, const Allocation &, Extension &) |
| virtual void | print (Printer *, const Allocation &) const |
| virtual void | append (Glyph *) |
| virtual void | append_fixed (Glyph *) |
| virtual void | append_viewfixed (Glyph *) |
| virtual void | prepend (Glyph *) |
| virtual void | insert (GlyphIndex, Glyph *) |
| virtual void | remove (GlyphIndex) |
| virtual void | replace (GlyphIndex, Glyph *) |
| virtual void | change (GlyphIndex) |
| virtual void | change_to_fixed (GlyphIndex, XYView *) |
| virtual void | change_to_vfixed (GlyphIndex, XYView *) |
| virtual GlyphIndex | count () const |
| virtual Glyph * | component (GlyphIndex) const |
| virtual void | allotment (GlyphIndex, DimensionName, Allotment &) const |
| bool | drawing_fixed_item () const |
| bool | mark () |
| void | mark (bool m) |
| virtual Coord | mbs () const |
| ScenePicker * | picker () |
| Object * | hoc_obj_ptr () |
| void | hoc_obj_ptr (Object *o) |
| bool | menu_picked () |
Public Member Functions inherited from Observable | |
| Observable ()=default | |
| virtual | ~Observable () |
| virtual void | attach (Observer *) |
| virtual void | detach (Observer *) |
| virtual void | notify () |
Static Public Member Functions | |
| static bool | label_chooser (const char *, char *, GLabel *, Coord x=400., Coord y=400.) |
| static void | ascii (std::ostream *) |
| static std::ostream * | ascii () |
Static Public Member Functions inherited from Scene | |
| static void | save_all (std::ostream &) |
| static long | scene_list_index (Scene *) |
| static const Color * | default_background () |
| static const Color * | default_foreground () |
Private Member Functions | |
| void | extension_start () |
| void | extension_continue () |
| void | ascii_save (std::ostream &o) const |
| void | family_value () |
Private Attributes | |
| Symlist * | symlist_ |
| std::vector< GraphLine * > | line_list_ |
| int | loc_ |
| DataVec * | x_ |
| bool | extension_flushed_ |
| SymChooser * | sc_ |
| std::string | 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_ |
| bool | family_on_ |
| GLabel * | family_label_ |
| double | family_val_ |
| int | family_cnt_ |
| HocCommand * | cross_action_ |
| bool | vector_copy_ |
| Symbol * | x_expr_ |
| neuron::container::data_handle< double > | x_pval_ |
| GraphVector * | rvp_ |
Static Private Attributes | |
| static SymChooser * | fsc_ |
| static std::ostream * | ascii_ |
Additional Inherited Members | |
Protected Member Functions inherited from Scene | |
| virtual void | save_class (std::ostream &, const char *) |
| anonymous enum |
| Graph::Graph | ( | bool | = true | ) |
|
virtual |
| void Graph::add_graphVector | ( | GraphVector * | ) |
| void Graph::add_polyline | ( | GPolyLine * | ) |
| GraphLine* Graph::add_var | ( | const char * | , |
| const Color * | , | ||
| const Brush * | , | ||
| bool | usepointer, | ||
| int | fixtype = 1, |
||
| neuron::container::data_handle< double > | p = {}, |
||
| const char * | lab = NULL, |
||
| Object * | obj = NULL |
||
| ) |
| void Graph::align | ( | float | x, |
| float | y | ||
| ) |
|
static |
|
static |
|
private |
| void Graph::axis | ( | DimensionName | , |
| float | min, | ||
| float | max, | ||
| float | pos = 0., |
||
| int | ntics = -1, |
||
| int | nminor = 0, |
||
| int | invert = 0, |
||
| bool | number = true |
||
| ) |
| void Graph::begin | ( | ) |
| void Graph::begin_line | ( | const char * | s = NULL | ) |
| void Graph::brush | ( | int | ) |
| void Graph::change_prop | ( | ) |
| void Graph::choose_sym | ( | ) |
| void Graph::color | ( | int | ) |
| void Graph::cross_action | ( | char | , |
| GPolyLine * | , | ||
| int | |||
| ) |
|
virtual |
Reimplemented from Scene.
| void Graph::erase | ( | ) |
|
virtual |
Reimplemented in ShapeScene.
| void Graph::erase_axis | ( | ) |
| void Graph::erase_lines | ( | ) |
|
private |
|
private |
| void Graph::family | ( | bool | ) |
| void Graph::family | ( | const char * | ) |
| void Graph::family_label_chooser | ( | ) |
|
private |
| void Graph::fast_flush | ( | ) |
| void Graph::fixed | ( | float | scale | ) |
| void Graph::flush | ( | ) |
|
virtual |
Reimplemented from Scene.
|
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 |
| void Graph::mark | ( | Coord | x, |
| Coord | y, | ||
| char | style = '+', |
||
| float | size = 12, |
||
| const Color * | = NULL, |
||
| const Brush * | = NULL |
||
| ) |
| void Graph::name | ( | char * | ) |
| void Graph::new_axis | ( | ) |
| GLabel* Graph::new_proto_label | ( | ) | const |
Reimplemented from Scene.
|
virtual |
Reimplemented from Scene.
| void Graph::plot | ( | float | ) |
| void Graph::relative | ( | float | scale | ) |
|
virtual |
Reimplemented from Scene.
|
virtual |
Reimplemented from Scene.
Reimplemented in ShapeScene.
|
virtual |
| void Graph::set_cross_action | ( | const char * | , |
| Object * | , | ||
| bool | vectorcopy = false |
||
| ) |
| void Graph::simgraph | ( | ) |
| void Graph::vfixed | ( | float | scale | ) |
| void Graph::view_axis | ( | ) |
| void Graph::view_box | ( | ) |
Reimplemented from Scene.
Reimplemented in ShapeScene.
| void Graph::x_expr | ( | const char * | , |
| bool | usepointer | ||
| ) |
|
private |
|
staticprivate |
|
private |
|
private |
|
private |
|
private |