NEURON
ShapeSection Class Reference

#include <shape.h>

Inheritance diagram for ShapeSection:
FastShape

Public Member Functions

 ShapeSection (Section *)
 
virtual ~ShapeSection ()
 
virtual void request (Requisition &) const
 
virtual void allocate (Canvas *, const Allocation &, Extension &)
 
virtual void draw (Canvas *, const Allocation &) const
 
virtual void fast_draw (Canvas *, Coord x, Coord y, bool) const
 
virtual void pick (Canvas *, const Allocation &, int depth, Hit &)
 
virtual void setColor (const Color *, ShapeScene *)
 
virtual void setColorseg (const Color *, double, ShapeScene *)
 
const Colorcolor ()
 
virtual void set_range_variable (Symbol *)
 
virtual void clear_variable ()
 
virtual void selectMenu ()
 
virtual bool near_section (Coord, Coord, Coord mineps) const
 
float how_near (Coord, Coord) const
 
float arc_position (Coord, Coord) const
 
int get_coord (double arc, Coord &, Coord &) const
 
Sectionsection () const
 
bool good () const
 
virtual void damage (ShapeScene *)
 
virtual void draw_seg (Canvas *, const Color *, int iseg) const
 
virtual void draw_points (Canvas *, const Color *, int, int) const
 
virtual void transform3d (Rotation3d *)
 
virtual void size (Coord &l, Coord &b, Coord &r, Coord &t) const
 
void scale (Coord x)
 
Coord scale ()
 
- Public Member Functions inherited from FastShape
 FastShape ()
 
virtual ~FastShape ()
 

Private Member Functions

void trapezoid (Canvas *, const Color *, int i) const
 
void trapezoid (Canvas *, const Color *, float, float, float, float, float, float) const
 
void loc (double, Coord &, Coord &)
 
void bevel_join (Canvas *, const Color *, int, float) const
 
void fastidious_draw (Canvas *, const Color *, int, float, float) const
 

Private Attributes

std::vector< neuron::container::data_handle< double > > pvar_
 
Sectionsec_
 
Coord len_scale_
 
const Colorcolor_
 
std::vector< Color const * > old_
 
const Color ** colorseg_
 
int colorseg_size_
 
Coord xmin_
 
Coord xmax_
 
Coord ymin_
 
Coord ymax_
 
Coordx_
 
Coordy_
 
int n_
 

Detailed Description

Definition at line 101 of file shape.h.

Constructor & Destructor Documentation

◆ ShapeSection()

ShapeSection::ShapeSection ( Section )

◆ ~ShapeSection()

virtual ShapeSection::~ShapeSection ( )
virtual

Member Function Documentation

◆ allocate()

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

◆ arc_position()

float ShapeSection::arc_position ( Coord  ,
Coord   
) const

◆ bevel_join()

void ShapeSection::bevel_join ( Canvas ,
const Color ,
int  ,
float   
) const
private

◆ clear_variable()

virtual void ShapeSection::clear_variable ( )
virtual

◆ color()

const Color* ShapeSection::color ( )
inline

Definition at line 112 of file shape.h.

◆ damage()

virtual void ShapeSection::damage ( ShapeScene )
virtual

◆ draw()

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

◆ draw_points()

virtual void ShapeSection::draw_points ( Canvas ,
const Color ,
int  ,
int   
) const
virtual

◆ draw_seg()

virtual void ShapeSection::draw_seg ( Canvas ,
const Color ,
int  iseg 
) const
virtual

◆ fast_draw()

virtual void ShapeSection::fast_draw ( Canvas ,
Coord  x,
Coord  y,
bool   
) const
virtual

Implements FastShape.

◆ fastidious_draw()

void ShapeSection::fastidious_draw ( Canvas ,
const Color ,
int  ,
float  ,
float   
) const
private

◆ get_coord()

int ShapeSection::get_coord ( double  arc,
Coord ,
Coord  
) const

◆ good()

bool ShapeSection::good ( ) const

◆ how_near()

float ShapeSection::how_near ( Coord  ,
Coord   
) const

◆ loc()

void ShapeSection::loc ( double  ,
Coord ,
Coord  
)
private

◆ near_section()

virtual bool ShapeSection::near_section ( Coord  ,
Coord  ,
Coord  mineps 
) const
virtual

◆ pick()

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

◆ request()

virtual void ShapeSection::request ( Requisition ) const
virtual

◆ scale() [1/2]

Coord ShapeSection::scale ( )
inline

Definition at line 133 of file shape.h.

◆ scale() [2/2]

void ShapeSection::scale ( Coord  x)
inline

Definition at line 130 of file shape.h.

◆ section()

Section* ShapeSection::section ( ) const

◆ selectMenu()

virtual void ShapeSection::selectMenu ( )
virtual

◆ set_range_variable()

virtual void ShapeSection::set_range_variable ( Symbol )
virtual

◆ setColor()

virtual void ShapeSection::setColor ( const Color ,
ShapeScene  
)
virtual

◆ setColorseg()

virtual void ShapeSection::setColorseg ( const Color ,
double  ,
ShapeScene  
)
virtual

◆ size()

virtual void ShapeSection::size ( Coord l,
Coord b,
Coord r,
Coord t 
) const
virtual

◆ transform3d()

virtual void ShapeSection::transform3d ( Rotation3d )
virtual

◆ trapezoid() [1/2]

void ShapeSection::trapezoid ( Canvas ,
const Color ,
float  ,
float  ,
float  ,
float  ,
float  ,
float   
) const
private

◆ trapezoid() [2/2]

void ShapeSection::trapezoid ( Canvas ,
const Color ,
int  i 
) const
private

Member Data Documentation

◆ color_

const Color* ShapeSection::color_
private

Definition at line 150 of file shape.h.

◆ colorseg_

const Color** ShapeSection::colorseg_
private

Definition at line 152 of file shape.h.

◆ colorseg_size_

int ShapeSection::colorseg_size_
private

Definition at line 153 of file shape.h.

◆ len_scale_

Coord ShapeSection::len_scale_
private

Definition at line 149 of file shape.h.

◆ n_

int ShapeSection::n_
private

Definition at line 156 of file shape.h.

◆ old_

std::vector<Color const*> ShapeSection::old_
private

Definition at line 151 of file shape.h.

◆ pvar_

std::vector<neuron::container::data_handle<double> > ShapeSection::pvar_
private

Definition at line 147 of file shape.h.

◆ sec_

Section* ShapeSection::sec_
private

Definition at line 148 of file shape.h.

◆ x_

Coord* ShapeSection::x_
private

Definition at line 155 of file shape.h.

◆ xmax_

Coord ShapeSection::xmax_
private

Definition at line 154 of file shape.h.

◆ xmin_

Coord ShapeSection::xmin_
private

Definition at line 154 of file shape.h.

◆ y_

Coord * ShapeSection::y_
private

Definition at line 155 of file shape.h.

◆ ymax_

Coord ShapeSection::ymax_
private

Definition at line 154 of file shape.h.

◆ ymin_

Coord ShapeSection::ymin_
private

Definition at line 154 of file shape.h.


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