NEURON
ShapeScene Class Reference

#include <shape.h>

Inheritance diagram for ShapeScene:
Graph Scene Observable PPShape

Public Types

enum  { SECTION = Graph::EXTRAGRAPHTOOL , ROTATE , EXTRASHAPETOOL }
 
enum  { show_diam , show_centroid , show_schematic }
 
- Public Types inherited from Graph
enum  { CROSSHAIR = Scene::EXTRATOOL , CHANGELABEL , PICK , EXTRAGRAPHTOOL }
 
- Public Types inherited from Scene
enum  {
  NOTOOL = 0 , MOVE , DELETE , CHANGECOLOR ,
  EXTRATOOL
}
 

Public Member Functions

 ShapeScene (SectionList *=NULL)
 
virtual ~ShapeScene ()
 
virtual void erase_all ()
 
virtual void observe (SectionList *=NULL)
 
virtual void flush ()
 
virtual ShapeSectionselected ()
 
virtual float arc_selected ()
 
virtual void selected (ShapeSection *, Coord x=fil, Coord y=fil)
 
virtual float nearest (Coord, Coord)
 
virtual void wholeplot (Coord &x1, Coord &y1, Coord &x2, Coord &y2) const
 
void color (Section *sec1, Section *sec2, const Color *)
 
void color (Section *sec, const Color *)
 
void colorseg (Section *, double, const Color *)
 
void color (const Color *)
 
void color (SectionList *, const Color *)
 
ColorValue * color_value ()
 
virtual void view (Coord)
 
virtual void view (Coord *)
 
virtual void view (Rubberband *)
 
void shape_type (int)
 
int shape_type ()
 
virtual void section_handler (SectionHandler *)
 
virtual SectionHandlersection_handler ()
 
virtual SectionHandlersection_handler (ShapeSection *)
 
PolyGlyphshape_section_list ()
 
virtual void transform3d (Rubberband *rb=NULL)
 
virtual ShapeSectionshape_section (Section *)
 
virtual void name (const char *)
 
virtual void save_phase2 (std::ostream &)
 
virtual void help ()
 
void force ()
 
bool view_all ()
 
void rotate ()
 
void rotate (Coord xorg, Coord yorg, Coord zorg, float xrad, float yrad, float zrad)
 
- Public Member Functions inherited from Graph
 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)
 
GraphLineadd_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 ()
 
void erase_lines ()
 
virtual void delete_label (GLabel *)
 
virtual bool change_label (GLabel *, const char *, GLabel *gl=NULL)
 
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 Colorcolor () const
 
const Brushbrush () 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)
 
GLabellabel (float x, float y, const char *s, int fixtype, float scale, float x_align, float y_align, const Color *)
 
GLabellabel (float x, float y, const char *s, float n=0, int fixtype=-1)
 
GLabellabel (const char *s, int fixtype=-1)
 
GLabelnew_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 &)
 
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 XYViewsceneview (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 Glyphcomponent (GlyphIndex) const
 
virtual void allotment (GlyphIndex, DimensionName, Allotment &) const
 
bool drawing_fixed_item () const
 
bool mark ()
 
void mark (bool m)
 
virtual Coord mbs () const
 
ScenePickerpicker ()
 
Objecthoc_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 ShapeScenecurrent_pick_scene ()
 
static ShapeScenecurrent_draw_scene ()
 
- Static Public Member Functions inherited from Graph
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 Colordefault_background ()
 
static const Colordefault_foreground ()
 

Private Attributes

bool view_all_
 
ShapeSectionselected_
 
Coord x_sel_
 
Coord y_sel_
 
ColorValue * color_value_
 
int shape_type_
 
SectionHandlersection_handler_
 
PolyGlyphsg_
 
Rotate3Bandr3b_
 
std::string var_name_
 
ShapeChangeObserver * shape_changed_
 

Additional Inherited Members

- Protected Member Functions inherited from Scene
virtual void save_class (std::ostream &, const char *)
 

Detailed Description

Definition at line 24 of file shape.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
SECTION 
ROTATE 
EXTRASHAPETOOL 

Definition at line 26 of file shape.h.

◆ anonymous enum

anonymous enum
Enumerator
show_diam 
show_centroid 
show_schematic 

Definition at line 48 of file shape.h.

Constructor & Destructor Documentation

◆ ShapeScene()

ShapeScene::ShapeScene ( SectionList = NULL)

◆ ~ShapeScene()

virtual ShapeScene::~ShapeScene ( )
virtual

Member Function Documentation

◆ arc_selected()

virtual float ShapeScene::arc_selected ( )
virtual

◆ color() [1/4]

void ShapeScene::color ( const Color )

◆ color() [2/4]

void ShapeScene::color ( Section sec,
const Color  
)

◆ color() [3/4]

void ShapeScene::color ( Section sec1,
Section sec2,
const Color  
)

◆ color() [4/4]

void ShapeScene::color ( SectionList ,
const Color  
)

◆ color_value()

ColorValue* ShapeScene::color_value ( )

◆ colorseg()

void ShapeScene::colorseg ( Section ,
double  ,
const Color  
)

◆ current_draw_scene()

static ShapeScene* ShapeScene::current_draw_scene ( )
static

◆ current_pick_scene()

static ShapeScene* ShapeScene::current_pick_scene ( )
static

◆ erase_all()

virtual void ShapeScene::erase_all ( )
virtual

Reimplemented from Graph.

◆ flush()

virtual void ShapeScene::flush ( )
virtual

◆ force()

void ShapeScene::force ( )

◆ help()

virtual void ShapeScene::help ( )
virtual

Reimplemented from Graph.

◆ name()

virtual void ShapeScene::name ( const char *  )
virtual

◆ nearest()

virtual float ShapeScene::nearest ( Coord  ,
Coord   
)
virtual

◆ observe()

virtual void ShapeScene::observe ( SectionList = NULL)
virtual

◆ rotate() [1/2]

void ShapeScene::rotate ( )

◆ rotate() [2/2]

void ShapeScene::rotate ( Coord  xorg,
Coord  yorg,
Coord  zorg,
float  xrad,
float  yrad,
float  zrad 
)

◆ save_phase2()

virtual void ShapeScene::save_phase2 ( std::ostream &  )
virtual

Reimplemented from Graph.

◆ section_handler() [1/3]

virtual SectionHandler* ShapeScene::section_handler ( )
virtual

◆ section_handler() [2/3]

virtual void ShapeScene::section_handler ( SectionHandler )
virtual

◆ section_handler() [3/3]

virtual SectionHandler* ShapeScene::section_handler ( ShapeSection )
virtual

◆ selected() [1/2]

virtual ShapeSection* ShapeScene::selected ( )
virtual

◆ selected() [2/2]

virtual void ShapeScene::selected ( ShapeSection ,
Coord  x = fil,
Coord  y = fil 
)
virtual

◆ shape_section()

virtual ShapeSection* ShapeScene::shape_section ( Section )
virtual

◆ shape_section_list()

PolyGlyph* ShapeScene::shape_section_list ( )

◆ shape_type() [1/2]

int ShapeScene::shape_type ( )
inline

Definition at line 50 of file shape.h.

◆ shape_type() [2/2]

void ShapeScene::shape_type ( int  )

◆ transform3d()

virtual void ShapeScene::transform3d ( Rubberband rb = NULL)
virtual

◆ view() [1/3]

virtual void ShapeScene::view ( Coord )
virtual

◆ view() [2/3]

virtual void ShapeScene::view ( Coord  )
virtual

◆ view() [3/3]

virtual void ShapeScene::view ( Rubberband )
virtual

◆ view_all()

bool ShapeScene::view_all ( )
inline

Definition at line 63 of file shape.h.

◆ wholeplot()

virtual void ShapeScene::wholeplot ( Coord x1,
Coord y1,
Coord x2,
Coord y2 
) const
virtual

Reimplemented from Graph.

Member Data Documentation

◆ color_value_

ColorValue* ShapeScene::color_value_
private

Definition at line 77 of file shape.h.

◆ r3b_

Rotate3Band* ShapeScene::r3b_
private

Definition at line 81 of file shape.h.

◆ section_handler_

SectionHandler* ShapeScene::section_handler_
private

Definition at line 79 of file shape.h.

◆ selected_

ShapeSection* ShapeScene::selected_
private

Definition at line 75 of file shape.h.

◆ sg_

PolyGlyph* ShapeScene::sg_
private

Definition at line 80 of file shape.h.

◆ shape_changed_

ShapeChangeObserver* ShapeScene::shape_changed_
private

Definition at line 83 of file shape.h.

◆ shape_type_

int ShapeScene::shape_type_
private

Definition at line 78 of file shape.h.

◆ var_name_

std::string ShapeScene::var_name_
private

Definition at line 82 of file shape.h.

◆ view_all_

bool ShapeScene::view_all_
private

Definition at line 74 of file shape.h.

◆ x_sel_

Coord ShapeScene::x_sel_
private

Definition at line 76 of file shape.h.

◆ y_sel_

Coord ShapeScene::y_sel_
private

Definition at line 76 of file shape.h.


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