NEURON
GPolyLine Class Reference

#include <graph.h>

Inheritance diagram for GPolyLine:
GraphLine GraphVector

Public Member Functions

 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 (Canvas *, const Allocation &, int depth, Hit &)
 
virtual void save (std::ostream &)
 
virtual void pick_vector ()
 
void plot (Coord x, Coord y)
 
void erase ()
 
virtual void erase_line (Scene *, GlyphIndex)
 
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 ()
 

Protected Attributes

DataVecy_
 
DataVecx_
 
const Colorcolor_
 
const Brushbrush_
 
GLabelglabel_
 
bool keepable_
 

Private Member Functions

void init (DataVec *, DataVec *, const Color *, const Brush *)
 

Detailed Description

Definition at line 254 of file graph.h.

Constructor & Destructor Documentation

◆ GPolyLine() [1/3]

GPolyLine::GPolyLine ( DataVec x,
const Color = NULL,
const Brush = NULL 
)

◆ GPolyLine() [2/3]

GPolyLine::GPolyLine ( DataVec x,
DataVec y,
const Color = NULL,
const Brush = NULL 
)

◆ GPolyLine() [3/3]

GPolyLine::GPolyLine ( GPolyLine )

◆ ~GPolyLine()

virtual GPolyLine::~GPolyLine ( )
virtual

Member Function Documentation

◆ allocate()

virtual void GPolyLine::allocate ( Canvas ,
const Allocation ,
Extension  
)
virtual

◆ brush() [1/2]

const Brush* GPolyLine::brush ( ) const
inline

Definition at line 281 of file graph.h.

◆ brush() [2/2]

void GPolyLine::brush ( const Brush )

◆ color() [1/2]

const Color* GPolyLine::color ( ) const
inline

Definition at line 278 of file graph.h.

◆ color() [2/2]

void GPolyLine::color ( const Color )

◆ draw()

virtual void GPolyLine::draw ( Canvas ,
const Allocation  
) const
virtual

◆ draw_specific()

virtual void GPolyLine::draw_specific ( Canvas ,
const Allocation ,
int  ,
int   
) const
virtual

◆ erase()

void GPolyLine::erase ( )
inline

Definition at line 271 of file graph.h.

◆ erase_line()

virtual void GPolyLine::erase_line ( Scene ,
GlyphIndex   
)
virtual

Reimplemented in GraphLine.

◆ init()

void GPolyLine::init ( DataVec ,
DataVec ,
const Color ,
const Brush  
)
private

◆ keepable()

bool GPolyLine::keepable ( )
inline

Definition at line 308 of file graph.h.

◆ label() [1/2]

GLabel* GPolyLine::label ( ) const
inline

Definition at line 298 of file graph.h.

◆ label() [2/2]

void GPolyLine::label ( GLabel )

◆ label_loc()

void GPolyLine::label_loc ( Coord x,
Coord y 
) const

◆ near()

bool GPolyLine::near ( Coord  ,
Coord  ,
float  ,
const Transformer  
) const

◆ nearest()

int GPolyLine::nearest ( Coord  ,
Coord  ,
const Transformer ,
int  index = -1 
) const

◆ pick()

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

Reimplemented in GraphLine.

◆ pick_vector()

virtual void GPolyLine::pick_vector ( )
virtual

◆ plot()

void GPolyLine::plot ( Coord  x,
Coord  y 
)

◆ print()

virtual void GPolyLine::print ( Printer ,
const Allocation  
) const
virtual

◆ request()

virtual void GPolyLine::request ( Requisition ) const
virtual

Reimplemented in GraphVector.

◆ save()

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

Reimplemented in GraphVector, and GraphLine.

◆ x()

Coord GPolyLine::x ( int  index) const
inline

Definition at line 285 of file graph.h.

◆ x_data()

const DataVec* GPolyLine::x_data ( ) const
inline

Definition at line 291 of file graph.h.

◆ y()

Coord GPolyLine::y ( int  index) const
inline

Definition at line 288 of file graph.h.

◆ y_data()

const DataVec* GPolyLine::y_data ( ) const
inline

Definition at line 294 of file graph.h.

Member Data Documentation

◆ brush_

const Brush* GPolyLine::brush_
protected

Definition at line 319 of file graph.h.

◆ color_

const Color* GPolyLine::color_
protected

Definition at line 318 of file graph.h.

◆ glabel_

GLabel* GPolyLine::glabel_
protected

Definition at line 320 of file graph.h.

◆ keepable_

bool GPolyLine::keepable_
protected

Definition at line 321 of file graph.h.

◆ x_

DataVec* GPolyLine::x_
protected

Definition at line 317 of file graph.h.

◆ y_

DataVec* GPolyLine::y_
protected

Definition at line 316 of file graph.h.


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