NEURON
GraphLine Class Reference

#include <graph.h>

Inheritance diagram for GraphLine:
GPolyLine Observer

Public Member Functions

 GraphLine (const char *, DataVec *x, Symlist **, const Color *=NULL, const Brush *=NULL, bool usepointer=0, neuron::container::data_handle< double > pd={}, Object *obj=NULL)
 
virtual ~GraphLine ()
 
virtual void pick (Canvas *, const Allocation &, int depth, Hit &)
 
virtual void save (std::ostream &)
 
void plot ()
 
const char * name () const
 
LineExtension * extension ()
 
void extension_start ()
 
void extension_continue ()
 
const Colorsave_color () const
 
const Brushsave_brush () const
 
void save_color (const Color *)
 
void save_brush (const Brush *)
 
bool change_expr (const char *, Symlist **)
 
virtual void update (Observable *)
 
bool valid (bool check=false)
 
virtual void erase_line (Scene *, GlyphIndex)
 
void simgraph_activate (bool)
 
void simgraph_init ()
 
void simgraph_continuous (double)
 
- Public Member Functions inherited from GPolyLine
 GPolyLine (DataVec *x, const Color *=NULL, const Brush *=NULL)
 
 GPolyLine (DataVec *x, DataVec *y, const Color *=NULL, const Brush *=NULL)
 
 GPolyLine (GPolyLine *)
 
virtual ~GPolyLine ()
 
virtual void request (Requisition &) const
 
virtual void allocate (Canvas *, const Allocation &, Extension &)
 
virtual void draw (Canvas *, const Allocation &) const
 
virtual void draw_specific (Canvas *, const Allocation &, int, int) const
 
virtual void print (Printer *, const Allocation &) const
 
virtual void pick_vector ()
 
void plot (Coord x, Coord y)
 
void erase ()
 
void color (const Color *)
 
void brush (const Brush *)
 
const Colorcolor () const
 
const Brushbrush () const
 
Coord x (int index) const
 
Coord y (int index) const
 
const DataVecx_data () const
 
const DataVecy_data () const
 
GLabellabel () const
 
void label (GLabel *)
 
void label_loc (Coord &x, Coord &y) const
 
bool near (Coord, Coord, float, const Transformer &) const
 
int nearest (Coord, Coord, const Transformer &, int index=-1) const
 
bool keepable ()
 
- Public Member Functions inherited from Observer
virtual ~Observer ()=default
 
virtual void disconnect (Observable *)
 

Public Attributes

Symbolexpr_
 
neuron::container::data_handle< double > pval_
 
Objectobj_
 

Private Attributes

LineExtension * extension_
 
const Colorsave_color_
 
const Brushsave_brush_
 
bool valid_
 
DataVecsimgraph_x_sav_
 

Additional Inherited Members

- Protected Member Functions inherited from Observer
 Observer ()=default
 
- Protected Attributes inherited from GPolyLine
DataVecy_
 
DataVecx_
 
const Colorcolor_
 
const Brushbrush_
 
GLabelglabel_
 
bool keepable_
 

Detailed Description

Definition at line 324 of file graph.h.

Constructor & Destructor Documentation

◆ GraphLine()

GraphLine::GraphLine ( const char *  ,
DataVec x,
Symlist **  ,
const Color = NULL,
const Brush = NULL,
bool  usepointer = 0,
neuron::container::data_handle< double >  pd = {},
Object obj = NULL 
)

◆ ~GraphLine()

virtual GraphLine::~GraphLine ( )
virtual

Member Function Documentation

◆ change_expr()

bool GraphLine::change_expr ( const char *  ,
Symlist **   
)

◆ erase_line()

virtual void GraphLine::erase_line ( Scene ,
GlyphIndex   
)
inlinevirtual

Reimplemented from GPolyLine.

Definition at line 358 of file graph.h.

◆ extension()

LineExtension* GraphLine::extension ( )
inline

Definition at line 342 of file graph.h.

◆ extension_continue()

void GraphLine::extension_continue ( )

◆ extension_start()

void GraphLine::extension_start ( )

◆ name()

const char* GraphLine::name ( ) const

◆ pick()

virtual void GraphLine::pick ( Canvas ,
const Allocation ,
int  depth,
Hit  
)
virtual

Reimplemented from GPolyLine.

◆ plot()

void GraphLine::plot ( )

◆ save()

virtual void GraphLine::save ( std::ostream &  )
virtual

Reimplemented from GPolyLine.

◆ save_brush() [1/2]

const Brush* GraphLine::save_brush ( ) const
inline

Definition at line 350 of file graph.h.

◆ save_brush() [2/2]

void GraphLine::save_brush ( const Brush )

◆ save_color() [1/2]

const Color* GraphLine::save_color ( ) const
inline

Definition at line 347 of file graph.h.

◆ save_color() [2/2]

void GraphLine::save_color ( const Color )

◆ simgraph_activate()

void GraphLine::simgraph_activate ( bool  )

◆ simgraph_continuous()

void GraphLine::simgraph_continuous ( double  )

◆ simgraph_init()

void GraphLine::simgraph_init ( )

◆ update()

virtual void GraphLine::update ( Observable )
virtual

Reimplemented from Observer.

◆ valid()

bool GraphLine::valid ( bool  check = false)

Member Data Documentation

◆ expr_

Symbol* GraphLine::expr_

Definition at line 365 of file graph.h.

◆ extension_

LineExtension* GraphLine::extension_
private

Definition at line 370 of file graph.h.

◆ obj_

Object* GraphLine::obj_

Definition at line 367 of file graph.h.

◆ pval_

neuron::container::data_handle<double> GraphLine::pval_

Definition at line 366 of file graph.h.

◆ save_brush_

const Brush* GraphLine::save_brush_
private

Definition at line 372 of file graph.h.

◆ save_color_

const Color* GraphLine::save_color_
private

Definition at line 371 of file graph.h.

◆ simgraph_x_sav_

DataVec* GraphLine::simgraph_x_sav_
private

Definition at line 374 of file graph.h.

◆ valid_

bool GraphLine::valid_
private

Definition at line 373 of file graph.h.


The documentation for this class was generated from the following file: