Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | Friends | List of all members
Stg::Canvas Class Reference

#include <canvas.hh>

Inheritance diagram for Stg::Canvas:
Inheritance graph
[legend]

Classes

class  GlColorStack
 

Public Member Functions

 Canvas (WorldGui *world, int x, int y, int width, int height)
 
void CanvasToWorld (int px, int py, double *wx, double *wy, double *wz)
 
void createMenuItems (Fl_Menu_Bar *menu, std::string path)
 
bool dirtyBuffer (void) const
 
virtual void draw ()
 
void DrawBlocks ()
 
void DrawBoundingBoxes ()
 
void DrawFloor ()
 
void EnterScreenCS ()
 
void FixViewport (int W, int H)
 
ModelgetModel (int x, int y)
 
virtual int handle (int event)
 
void InitGl ()
 
void InitTextures ()
 
void InvertView (uint32_t invertflags)
 
bool IsTopView ()
 
void LeaveScreenCS ()
 
void Load (Worldfile *wf, int section)
 
void PopColor ()
 
void PushColor (Color col)
 
void PushColor (double r, double g, double b, double a)
 
virtual void renderFrame ()
 
void resetCamera ()
 
void resize (int X, int Y, int W, int H)
 
void Save (Worldfile *wf, int section)
 
void Screenshot ()
 
void select (Model *mod)
 
bool selected (Model *mod)
 
void setDirtyBuffer (void)
 
void unSelect (Model *mod)
 
void unSelectAll ()
 
bool VisualizeAll ()
 
 ~Canvas ()
 

Static Public Member Functions

static void perspectiveCb (Fl_Widget *w, void *p)
 
static void TimerCallback (Canvas *canvas)
 

Public Attributes

std::map< std::string, Option * > _custom_options
 
unsigned long frames_rendered_count
 
bool graphics
 
int screenshot_frame_skip
 
WorldGuiworld
 

Private Member Functions

void AddModel (Model *mod)
 
void ClearRays ()
 
void DrawGlobalGrid ()
 
void DrawRays ()
 
void RecordRay (double x1, double y1, double x2, double y2)
 
void RemoveModel (Model *mod)
 

Private Attributes

OrthoCamera camera
 
bool clicked_empty_space
 
class Stg::Canvas::GlColorStack colorstack
 
Cameracurrent_camera
 
bool dirty_buffer
 
int empty_space_startx
 
int empty_space_starty
 
msec_t interval
 (even if it is now unselected). More...
 
Modellast_selection
 
std::list< Model * > models_sorted
 
Option pCamOn
 
PerspectiveCamera perspective_camera
 
std::list< Model * > selected_models
 
bool selectedModel
 
Option showBBoxes
 
Option showBlocks
 
Option showBlur
 
Option showClock
 
Option showData
 
Option showFlags
 
Option showFollow
 
Option showFootprints
 
Option showGrid
 
Option showOccupancy
 
Option showScreenshots
 
Option showStatus
 
Option showTrailArrows
 
Option showTrailRise
 
Option showTrails
 
Option showVoxels
 
int startx
 
int starty
 
Option visualizeAll
 
Worldfilewf
 

Friends

class Model
 
class WorldGui
 

Detailed Description

Definition at line 10 of file canvas.hh.

Constructor & Destructor Documentation

Canvas::Canvas ( WorldGui world,
int  x,
int  y,
int  width,
int  height 
)

Definition at line 56 of file canvas.cc.

Canvas::~Canvas ( )

Definition at line 218 of file canvas.cc.

Member Function Documentation

void Canvas::AddModel ( Model mod)
private

Definition at line 606 of file canvas.cc.

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

Definition at line 327 of file canvas.cc.

void Stg::Canvas::ClearRays ( )
private
void Canvas::createMenuItems ( Fl_Menu_Bar *  menu,
std::string  path 
)

Definition at line 1188 of file canvas.cc.

bool Stg::Canvas::dirtyBuffer ( void  ) const
inline

Definition at line 136 of file canvas.hh.

void Canvas::draw ( )
virtual

Definition at line 1276 of file canvas.cc.

void Canvas::DrawBlocks ( )

Definition at line 714 of file canvas.cc.

void Canvas::DrawBoundingBoxes ( )

Definition at line 720 of file canvas.cc.

void Canvas::DrawFloor ( )

Definition at line 697 of file canvas.cc.

void Canvas::DrawGlobalGrid ( )
private

Definition at line 618 of file canvas.cc.

void Stg::Canvas::DrawRays ( )
private
void Canvas::EnterScreenCS ( )

Definition at line 1087 of file canvas.cc.

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

Definition at line 600 of file canvas.cc.

Model * Canvas::getModel ( int  x,
int  y 
)

Definition at line 223 of file canvas.cc.

int Canvas::handle ( int  event)
virtual

Definition at line 364 of file canvas.cc.

void Canvas::InitGl ( )

Definition at line 111 of file canvas.cc.

void Canvas::InitTextures ( )

Definition at line 144 of file canvas.cc.

void Stg::Canvas::InvertView ( uint32_t  invertflags)
bool Stg::Canvas::IsTopView ( )
inline

Definition at line 159 of file canvas.hh.

void Canvas::LeaveScreenCS ( )

Definition at line 1101 of file canvas.cc.

void Canvas::Load ( Worldfile wf,
int  section 
)

Definition at line 1212 of file canvas.cc.

void Canvas::perspectiveCb ( Fl_Widget *  w,
void *  p 
)
static

Definition at line 1173 of file canvas.cc.

void Stg::Canvas::PopColor ( )
inline

Definition at line 144 of file canvas.hh.

void Stg::Canvas::PushColor ( Color  col)
inline

Definition at line 138 of file canvas.hh.

void Stg::Canvas::PushColor ( double  r,
double  g,
double  b,
double  a 
)
inline

Definition at line 141 of file canvas.hh.

void Stg::Canvas::RecordRay ( double  x1,
double  y1,
double  x2,
double  y2 
)
private
void Canvas::RemoveModel ( Model mod)
private

Definition at line 612 of file canvas.cc.

void Canvas::renderFrame ( )
virtual

Definition at line 787 of file canvas.cc.

void Canvas::resetCamera ( )

Definition at line 734 of file canvas.cc.

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

Definition at line 1324 of file canvas.cc.

void Canvas::Save ( Worldfile wf,
int  section 
)

Definition at line 1250 of file canvas.cc.

void Canvas::Screenshot ( )

Definition at line 1111 of file canvas.cc.

void Canvas::select ( Model mod)

Definition at line 301 of file canvas.cc.

bool Canvas::selected ( Model mod)

Definition at line 296 of file canvas.cc.

void Stg::Canvas::setDirtyBuffer ( void  )
inline

Definition at line 135 of file canvas.hh.

void Canvas::TimerCallback ( Canvas canvas)
static

Definition at line 42 of file canvas.cc.

void Canvas::unSelect ( Model mod)

Definition at line 312 of file canvas.cc.

void Canvas::unSelectAll ( )

Definition at line 321 of file canvas.cc.

bool Stg::Canvas::VisualizeAll ( )
inline

Definition at line 148 of file canvas.hh.

Friends And Related Function Documentation

friend class Model
friend

Definition at line 13 of file canvas.hh.

friend class WorldGui
friend

Definition at line 12 of file canvas.hh.

Member Data Documentation

std::map< std::string, Option* > Stg::Canvas::_custom_options

Definition at line 109 of file canvas.hh.

OrthoCamera Stg::Canvas::camera
private

Definition at line 57 of file canvas.hh.

bool Stg::Canvas::clicked_empty_space
private

Definition at line 64 of file canvas.hh.

class Stg::Canvas::GlColorStack Stg::Canvas::colorstack
private
Camera* Stg::Canvas::current_camera
private

Definition at line 56 of file canvas.hh.

bool Stg::Canvas::dirty_buffer
private

Definition at line 59 of file canvas.hh.

int Stg::Canvas::empty_space_startx
private

Definition at line 65 of file canvas.hh.

int Stg::Canvas::empty_space_starty
private

Definition at line 65 of file canvas.hh.

unsigned long Stg::Canvas::frames_rendered_count

Definition at line 106 of file canvas.hh.

bool Stg::Canvas::graphics

Definition at line 104 of file canvas.hh.

msec_t Stg::Canvas::interval
private

(even if it is now unselected).

Definition at line 70 of file canvas.hh.

Model* Stg::Canvas::last_selection
private

the most recently selected model

Definition at line 67 of file canvas.hh.

std::list<Model*> Stg::Canvas::models_sorted
private

Definition at line 54 of file canvas.hh.

Option Stg::Canvas::pCamOn
private

Definition at line 81 of file canvas.hh.

PerspectiveCamera Stg::Canvas::perspective_camera
private

Definition at line 58 of file canvas.hh.

int Stg::Canvas::screenshot_frame_skip

Definition at line 107 of file canvas.hh.

std::list<Model*> Stg::Canvas::selected_models
private

Definition at line 66 of file canvas.hh.

bool Stg::Canvas::selectedModel
private

Definition at line 63 of file canvas.hh.

Option Stg::Canvas::showBBoxes
private

Definition at line 81 of file canvas.hh.

Option Stg::Canvas::showBlocks
private

Definition at line 81 of file canvas.hh.

Option Stg::Canvas::showBlur
private

Definition at line 81 of file canvas.hh.

Option Stg::Canvas::showClock
private

Definition at line 81 of file canvas.hh.

Option Stg::Canvas::showData
private

Definition at line 81 of file canvas.hh.

Option Stg::Canvas::showFlags
private

Definition at line 81 of file canvas.hh.

Option Stg::Canvas::showFollow
private

Definition at line 81 of file canvas.hh.

Option Stg::Canvas::showFootprints
private

Definition at line 81 of file canvas.hh.

Option Stg::Canvas::showGrid
private

Definition at line 81 of file canvas.hh.

Option Stg::Canvas::showOccupancy
private

Definition at line 81 of file canvas.hh.

Option Stg::Canvas::showScreenshots
private

Definition at line 81 of file canvas.hh.

Option Stg::Canvas::showStatus
private

Definition at line 81 of file canvas.hh.

Option Stg::Canvas::showTrailArrows
private

Definition at line 81 of file canvas.hh.

Option Stg::Canvas::showTrailRise
private

Definition at line 81 of file canvas.hh.

Option Stg::Canvas::showTrails
private

Definition at line 81 of file canvas.hh.

Option Stg::Canvas::showVoxels
private

Definition at line 81 of file canvas.hh.

int Stg::Canvas::startx
private

Definition at line 62 of file canvas.hh.

int Stg::Canvas::starty
private

Definition at line 62 of file canvas.hh.

Option Stg::Canvas::visualizeAll
private

Definition at line 81 of file canvas.hh.

Worldfile* Stg::Canvas::wf
private

Definition at line 60 of file canvas.hh.

WorldGui* Stg::Canvas::world

Definition at line 105 of file canvas.hh.


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


stage
Author(s): Richard Vaughan , Brian Gerkey , Reed Hedges , Andrew Howard , Toby Collett , Pooya Karimian , Jeremy Asher , Alex Couture-Beil , Geoff Biggs , Rich Mattes , Abbas Sadat
autogenerated on Mon Jun 10 2019 15:06:11