NEURON
View Class Reference

#include <scenevie.h>

Inheritance diagram for View:
XYView Observable ShapeView

Public Member Functions

 View (Scene *)
 
 View (Coord x, Coord y, Coord span, Scene *, Coord xsize=200, Coord ysize=200)
 
 View (Coord left, Coord bottom, Coord x_span, Coord y_span, Scene *, Coord xsize=200, Coord ysize=200)
 
virtual ~View ()
 
virtual Coord x () const
 
virtual Coord y () const
 
virtual Coord view_width () const
 
virtual Coord view_height () const
 
void origin (Coord x, Coord y)
 
virtual void box_size (Coord x1, Coord y1, Coord x2, Coord y2)
 
virtual void move_view (Coord dx, Coord dy)
 
virtual void scale_view (Coord xorg, Coord yorg, float dxscale, float dyscale)
 
virtual XYViewnew_view (Coord x1, Coord y1, Coord x2, Coord y2)
 
- Public Member Functions inherited from XYView
 XYView (Scene *, Coord xsize=200, Coord ysize=200)
 
 XYView (Coord x1, Coord y1, Coord x_span, Coord y_span, Scene *, Coord xsize=200, Coord ysize=200)
 
virtual ~XYView ()
 
virtual Scenescene () const
 
virtual Coord left () const
 
virtual Coord right () const
 
virtual Coord top () const
 
virtual Coord bottom () const
 
virtual Coord width () const
 
virtual Coord height () const
 
virtual void damage (Glyph *, const Allocation &, bool fixed=false, bool viewfixed=false)
 
virtual void damage (Coord x1, Coord y1, Coord x2, Coord y2)
 
virtual void damage_all ()
 
virtual void damage_area (Coord &x1, Coord &y1, Coord &x2, Coord &y2) const
 
virtual void set_damage_area (Canvas *)
 
virtual void request (Requisition &) const
 
virtual void allocate (Canvas *, const Allocation &, Extension &)
 
virtual void pick (Canvas *, const Allocation &, int depth, Hit &)
 
virtual void undraw ()
 
Canvascanvas ()
 
const Transformers2o () const
 
void canvas (Canvas *)
 
void size (Coord x1, Coord y1, Coord x2, Coord y2)
 
void origin (Coord x1, Coord y1)
 
void x_span (Coord)
 
void y_span (Coord)
 
Coord x_pick_epsilon ()
 
Coord y_pick_epsilon ()
 
void rebind ()
 
virtual void save (std::ostream &)
 
OcViewGlyphparent ()
 
virtual void printfile (const char *)
 
virtual void zout (Coord &x1, Coord &y1, Coord &x2, Coord &y2) const
 
virtual void zin (Coord &x1, Coord &y1, Coord &x2, Coord &y2) const
 
Coord view_margin () const
 
virtual void view_ratio (float xratio, float yratio, Coord &x, Coord &y) const
 
virtual void ratio_view (Coord x, Coord y, float &xratio, float &yratio) const
 
virtual void stroke (Canvas *, const Color *, const Brush *)
 
- Public Member Functions inherited from Observable
 Observable ()=default
 
virtual ~Observable ()
 
virtual void attach (Observer *)
 
virtual void detach (Observer *)
 
virtual void notify ()
 

Protected Member Functions

virtual void transform (Transformer &, const Allocation &, const Allocation &natural) const
 
- Protected Member Functions inherited from XYView
void scene2view (const Allocation &parent) const
 
void csize (Coord x0, Coord xsize, Coord y0, Coord ysize) const
 

Private Attributes

Coord x_span_
 
Coord y_span_
 

Additional Inherited Members

- Static Public Member Functions inherited from XYView
static XYViewcurrent_pick_view ()
 
static void current_pick_view (XYView *)
 
static XYViewcurrent_draw_view ()
 
- Protected Attributes inherited from XYView
Coord x_pick_epsilon_
 
Coord y_pick_epsilon_
 

Detailed Description

Definition at line 201 of file scenevie.h.

Constructor & Destructor Documentation

◆ View() [1/3]

View::View ( Scene )

◆ View() [2/3]

View::View ( Coord  x,
Coord  y,
Coord  span,
Scene ,
Coord  xsize = 200,
Coord  ysize = 200 
)

◆ View() [3/3]

View::View ( Coord  left,
Coord  bottom,
Coord  x_span,
Coord  y_span,
Scene ,
Coord  xsize = 200,
Coord  ysize = 200 
)

◆ ~View()

virtual View::~View ( )
virtual

Member Function Documentation

◆ box_size()

virtual void View::box_size ( Coord  x1,
Coord  y1,
Coord  x2,
Coord  y2 
)
virtual

Reimplemented from XYView.

◆ move_view()

virtual void View::move_view ( Coord  dx,
Coord  dy 
)
virtual

Reimplemented from XYView.

◆ new_view()

virtual XYView* View::new_view ( Coord  x1,
Coord  y1,
Coord  x2,
Coord  y2 
)
virtual

Reimplemented from XYView.

◆ origin()

void View::origin ( Coord  x,
Coord  y 
)

◆ scale_view()

virtual void View::scale_view ( Coord  xorg,
Coord  yorg,
float  dxscale,
float  dyscale 
)
virtual

Reimplemented from XYView.

◆ transform()

virtual void View::transform ( Transformer ,
const Allocation ,
const Allocation natural 
) const
protectedvirtual

Reimplemented from XYView.

◆ view_height()

virtual Coord View::view_height ( ) const

◆ view_width()

virtual Coord View::view_width ( ) const
virtual

◆ x()

virtual Coord View::x ( ) const
virtual

◆ y()

virtual Coord View::y ( ) const

Member Data Documentation

◆ x_span_

Coord View::x_span_
private

Definition at line 230 of file scenevie.h.

◆ y_span_

Coord View::y_span_
private

Definition at line 230 of file scenevie.h.


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