Stg::StgCanvas Class Reference
#include <stage.hh>
Detailed Description
Implements a FLTK / OpenGL graphical user interfae.Public Member Functions | |
void | CanvasToWorld (int px, int py, double *wx, double *wy, double *wz) |
virtual void | draw () |
void | FixViewport (int W, int H) |
uint32_t | GetShowFlags () |
virtual int | handle (int event) |
void | InvertView (uint32_t invertflags) |
void | PopColor () |
void | PushColor (double r, double g, double b, double a) |
void | PushColor (stg_color_t col) |
void | resize (int X, int Y, int W, int H) |
StgModel * | Select (int x, int y) |
void | SetShowFlags (uint32_t flags) |
StgCanvas (StgWorld *world, int x, int y, int W, int H) | |
~StgCanvas () | |
Static Public Member Functions | |
static void | TimerCallback (StgCanvas *canvas) |
Public Attributes | |
bool | graphics |
StgWorld * | world |
Friends | |
class | StgWorldGui |
Constructor & Destructor Documentation
StgCanvas::StgCanvas | ( | StgWorld * | world, | |
int | x, | |||
int | y, | |||
int | W, | |||
int | H | |||
) |
References graphics, Stg::STG_SHOW_BLOCKS, Stg::STG_SHOW_CLOCK, Stg::STG_SHOW_DATA, Stg::STG_SHOW_GRID, and TimerCallback().
StgCanvas::~StgCanvas | ( | ) |
Member Function Documentation
void StgCanvas::CanvasToWorld | ( | int | px, | |
int | py, | |||
double * | wx, | |||
double * | wy, | |||
double * | wz | |||
) |
Referenced by handle().
void StgCanvas::draw | ( | ) | [virtual] |
References Stg::StgAncestor::children, Stg::StgWorld::ClearRays(), Stg::StgWorld::ClockString(), FixViewport(), Stg::StgWorld::GetExtent(), Stg::StgModel::GetGlobalPose(), Stg::StgWorld::GetRayList(), Stg::gl_draw_string(), Stg::stg_bounds_t::max, Stg::stg_bounds_t::min, Stg::GlColorStack::Pop(), PopColor(), Stg::GlColorStack::Push(), PushColor(), Stg::StgWorld::Resolution(), Stg::rtod(), Stg::STG_SHOW_ARROWS, Stg::STG_SHOW_BLOCKS, Stg::STG_SHOW_CLOCK, Stg::STG_SHOW_FOLLOW, Stg::STG_SHOW_FOOTPRINT, Stg::STG_SHOW_GRID, Stg::STG_SHOW_OCCUPANCY, Stg::STG_SHOW_QUADTREE, Stg::STG_SHOW_TRAILS, world, Stg::stg_pose_t::x, Stg::stg_pose_t::y, and Stg::stg_bounds3d_t::y.
uint32_t Stg::StgCanvas::GetShowFlags | ( | ) | [inline] |
Referenced by Stg::StgWorldGui::Load(), and Stg::StgWorldGui::Save().
int StgCanvas::handle | ( | int | event | ) | [virtual] |
... shortcut, key is in Fl::event_key(), ascii in Fl::event_text()
References Stg::StgModel::AddToPose(), CanvasToWorld(), Stg::constrain(), redraw(), Select(), Stg::StgWorld::TogglePause(), and world.
void StgCanvas::InvertView | ( | uint32_t | invertflags | ) |
Referenced by view_toggle_cb().
void Stg::StgCanvas::PopColor | ( | ) | [inline] |
void Stg::StgCanvas::PushColor | ( | double | r, | |
double | g, | |||
double | b, | |||
double | a | |||
) | [inline] |
References Stg::GlColorStack::Push().
void Stg::StgCanvas::PushColor | ( | stg_color_t | col | ) | [inline] |
void StgCanvas::resize | ( | int | X, | |
int | Y, | |||
int | W, | |||
int | H | |||
) |
References FixViewport().
StgModel * StgCanvas::Select | ( | int | x, | |
int | y | |||
) |
void Stg::StgCanvas::SetShowFlags | ( | uint32_t | flags | ) | [inline] |
Referenced by Stg::StgWorldGui::Load().
void StgCanvas::TimerCallback | ( | StgCanvas * | c | ) | [static] |
canvas.cc Implement the main world viewing area in FLTK and OpenGL. Author: Richard Vaughan (vaughan@sfu.ca)
- Id
- canvas.cc,v 1.12 2008-03-03 07:01:12 rtv Exp
References interval.
Referenced by StgCanvas().
Friends And Related Function Documentation
friend class StgWorldGui [friend] |
Member Data Documentation
Referenced by StgCanvas().
The documentation for this class was generated from the following files:
Generated on Thu Jan 7 17:42:17 2010 for Stage by 1.5.5