Stg::StgCanvas Class Reference

#include <stage.hh>

List of all members.


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)
StgModelSelect (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
StgWorldworld

Friends

class StgWorldGui

Constructor & Destructor Documentation

StgCanvas::StgCanvas ( StgWorld world,
int  x,
int  y,
int  W,
int  H 
)

StgCanvas::~StgCanvas (  ) 


Member Function Documentation

void StgCanvas::CanvasToWorld ( int  px,
int  py,
double *  wx,
double *  wy,
double *  wz 
)

Referenced by handle().

void StgCanvas::FixViewport ( int  W,
int  H 
)

Referenced by draw(), and resize().

uint32_t Stg::StgCanvas::GetShowFlags (  )  [inline]

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]

void Stg::StgCanvas::PushColor ( stg_color_t  col  )  [inline]

void StgCanvas::resize ( int  X,
int  Y,
int  W,
int  H 
)

References FixViewport().

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


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

Generated on Thu Jan 7 17:42:17 2010 for Stage by  doxygen 1.5.5