#include <scenevie.h>
Public Member Functions | |
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 Scene * | scene () 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 &, boolean fixed=false, boolean 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 () |
Canvas * | canvas () |
const Transformer & | s2o () 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) |
virtual void | box_size (Coord x1, Coord y1, Coord x2, Coord y2) |
Coord | x_pick_epsilon () |
Coord | y_pick_epsilon () |
virtual void | move_view (Coord dx, Coord dy) |
virtual void | scale_view (Coord xorg, Coord yorg, float dxscale, float dyscale) |
virtual XYView * | new_view (Coord x1, Coord y1, Coord x2, Coord y2) |
void | rebind () |
virtual void | save (ostream &) |
OcViewGlyph * | parent () |
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 *) |
Static Public Member Functions | |
static XYView * | current_pick_view () |
static void | current_pick_view (XYView *) |
static XYView * | current_draw_view () |
Protected Member Functions | |
virtual void | transform (Transformer &, const Allocation &, const Allocation &natural) const |
void | scene2view (const Allocation &parent) const |
void | csize (Coord x0, Coord xsize, Coord y0, Coord ysize) const |
Protected Attributes | |
Coord | x_pick_epsilon_ |
Coord | y_pick_epsilon_ |
Private Member Functions | |
void | init (Coord x1, Coord y1, Coord x_span, Coord y_span, Scene *, Coord xsize, Coord ysize) |
void | append_view (Scene *) |
Private Attributes | |
Coord | x1_ |
Coord | y1_ |
Coord | x_span_ |
Coord | y_span_ |
Canvas * | canvas_ |
Transformer | scene2viewparent_ |
Coord | xsize_ |
Coord | ysize_ |
Coord | xsize_orig_ |
Coord | ysize_orig_ |
Coord | xc0_ |
Coord | yc0_ |
OcViewGlyph * | parent_ |
Coord | xd1_ |
Coord | xd2_ |
Coord | yd1_ |
Coord | yd2_ |
Static Private Attributes | |
static Coord | view_margin_ |
Friends | |
class | OcViewGlyph |
XYView::XYView | ( | Scene * | , | |
Coord | xsize = 200 , |
|||
Coord | ysize = 200 | |||
) |
XYView::XYView | ( | Coord | x1, | |
Coord | y1, | |||
Coord | x_span, | |||
Coord | y_span, | |||
Scene * | , | |||
Coord | xsize = 200 , |
|||
Coord | ysize = 200 | |||
) |
virtual XYView::~XYView | ( | ) | [virtual] |
virtual void XYView::allocate | ( | Canvas * | , | |
const Allocation & | , | |||
Extension & | ||||
) | [virtual] |
virtual Coord XYView::bottom | ( | ) | const |
Referenced by ivoc_view_info().
virtual void XYView::box_size | ( | Coord | x1, | |
Coord | y1, | |||
Coord | x2, | |||
Coord | y2 | |||
) | [virtual] |
Reimplemented in View.
void XYView::canvas | ( | Canvas * | ) |
Canvas* XYView::canvas | ( | ) |
void XYView::csize | ( | Coord | x0, | |
Coord | xsize, | |||
Coord | y0, | |||
Coord | ysize | |||
) | const [protected] |
static XYView* XYView::current_draw_view | ( | ) | [static] |
static XYView* XYView::current_pick_view | ( | ) | [static] |
Referenced by ivoc_view_info().
virtual void XYView::damage | ( | Coord | x1, | |
Coord | y1, | |||
Coord | x2, | |||
Coord | y2 | |||
) | [virtual] |
virtual void XYView::damage | ( | Glyph * | , | |
const Allocation & | , | |||
boolean | fixed = false , |
|||
boolean | viewfixed = false | |||
) | [virtual] |
virtual void XYView::damage_all | ( | ) | [virtual] |
Referenced by ivoc_view_size().
virtual void XYView::damage_area | ( | Coord & | x1, | |
Coord & | y1, | |||
Coord & | x2, | |||
Coord & | y2 | |||
) | const [virtual] |
virtual Coord XYView::height | ( | ) | const |
Referenced by ivoc_view_info().
void XYView::init | ( | Coord | x1, | |
Coord | y1, | |||
Coord | x_span, | |||
Coord | y_span, | |||
Scene * | , | |||
Coord | xsize, | |||
Coord | ysize | |||
) | [private] |
virtual Coord XYView::left | ( | ) | const [virtual] |
Referenced by ivoc_view_info().
virtual XYView* XYView::new_view | ( | Coord | x1, | |
Coord | y1, | |||
Coord | x2, | |||
Coord | y2 | |||
) | [virtual] |
Reimplemented in View.
OcViewGlyph* XYView::parent | ( | ) | [inline] |
References parent_.
virtual void XYView::printfile | ( | const char * | ) | [virtual] |
virtual void XYView::ratio_view | ( | Coord | x, | |
Coord | y, | |||
float & | xratio, | |||
float & | yratio | |||
) | const [virtual] |
void XYView::rebind | ( | ) |
virtual void XYView::request | ( | Requisition & | ) | const [virtual] |
virtual Coord XYView::right | ( | ) | const |
Referenced by ivoc_view_info().
const Transformer& XYView::s2o | ( | ) | const [inline] |
References scene2viewparent_.
virtual void XYView::save | ( | ostream & | ) | [virtual] |
virtual void XYView::scale_view | ( | Coord | xorg, | |
Coord | yorg, | |||
float | dxscale, | |||
float | dyscale | |||
) | [virtual] |
Reimplemented in View.
virtual Scene* XYView::scene | ( | ) | const [virtual] |
void XYView::scene2view | ( | const Allocation & | parent | ) | const [protected] |
virtual void XYView::set_damage_area | ( | Canvas * | ) | [virtual] |
void XYView::size | ( | Coord | x1, | |
Coord | y1, | |||
Coord | x2, | |||
Coord | y2 | |||
) |
Referenced by ivoc_gr_size(), and ivoc_view_size().
virtual void XYView::stroke | ( | Canvas * | , | |
const Color * | , | |||
const Brush * | ||||
) | [virtual] |
virtual Coord XYView::top | ( | ) | const |
Referenced by ivoc_view_info().
virtual void XYView::transform | ( | Transformer & | , | |
const Allocation & | , | |||
const Allocation & | natural | |||
) | const [protected, virtual] |
Reimplemented in View.
virtual void XYView::undraw | ( | ) | [virtual] |
Coord XYView::view_margin | ( | ) | const [inline] |
References view_margin_.
virtual void XYView::view_ratio | ( | float | xratio, | |
float | yratio, | |||
Coord & | x, | |||
Coord & | y | |||
) | const [virtual] |
Referenced by ivoc_view_info().
virtual Coord XYView::width | ( | ) | const [virtual] |
Referenced by ivoc_view_info().
Coord XYView::x_pick_epsilon | ( | ) | [inline] |
References x_pick_epsilon_.
void XYView::x_span | ( | Coord | ) |
Coord XYView::y_pick_epsilon | ( | ) | [inline] |
References y_pick_epsilon_.
void XYView::y_span | ( | Coord | ) |
virtual void XYView::zin | ( | Coord & | x1, | |
Coord & | y1, | |||
Coord & | x2, | |||
Coord & | y2 | |||
) | const [virtual] |
Referenced by ivoc_gr_size().
virtual void XYView::zout | ( | Coord & | x1, | |
Coord & | y1, | |||
Coord & | x2, | |||
Coord & | y2 | |||
) | const [virtual] |
Referenced by ivoc_gr_size().
friend class OcViewGlyph [friend] |
Canvas* XYView::canvas_ [private] |
OcViewGlyph* XYView::parent_ [private] |
Referenced by parent().
Transformer XYView::scene2viewparent_ [private] |
Referenced by s2o().
Coord XYView::view_margin_ [static, private] |
Referenced by view_margin().
Coord XYView::x1_ [private] |
Coord XYView::x_pick_epsilon_ [protected] |
Referenced by x_pick_epsilon().
Coord XYView::x_span_ [private] |
Reimplemented in View.
Coord XYView::xc0_ [private] |
Coord XYView::xd1_ [private] |
Coord XYView::xd2_ [private] |
Coord XYView::xsize_ [private] |
Coord XYView::xsize_orig_ [private] |
Coord XYView::y1_ [private] |
Coord XYView::y_pick_epsilon_ [protected] |
Referenced by y_pick_epsilon().
Coord XYView::y_span_ [private] |
Reimplemented in View.
Coord XYView::yc0_ [private] |
Coord XYView::yd1_ [private] |
Coord XYView::yd2_ [private] |
Coord XYView::ysize_ [private] |
Coord XYView::ysize_orig_ [private] |