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 9 of file canvas.hh.

Constructor & Destructor Documentation

◆ Canvas()

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

Definition at line 53 of file canvas.cc.

◆ ~Canvas()

Canvas::~Canvas ( )

Definition at line 198 of file canvas.cc.

Member Function Documentation

◆ AddModel()

void Canvas::AddModel ( Model mod)
private

Definition at line 583 of file canvas.cc.

◆ CanvasToWorld()

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

Definition at line 306 of file canvas.cc.

◆ ClearRays()

void Stg::Canvas::ClearRays ( )
private

◆ createMenuItems()

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

Definition at line 1130 of file canvas.cc.

◆ dirtyBuffer()

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

Definition at line 109 of file canvas.hh.

◆ draw()

void Canvas::draw ( )
virtual

Definition at line 1214 of file canvas.cc.

◆ DrawBlocks()

void Canvas::DrawBlocks ( )

Definition at line 685 of file canvas.cc.

◆ DrawBoundingBoxes()

void Canvas::DrawBoundingBoxes ( )

Definition at line 691 of file canvas.cc.

◆ DrawFloor()

void Canvas::DrawFloor ( )

Definition at line 668 of file canvas.cc.

◆ DrawGlobalGrid()

void Canvas::DrawGlobalGrid ( )
private

Definition at line 595 of file canvas.cc.

◆ DrawRays()

void Stg::Canvas::DrawRays ( )
private

◆ EnterScreenCS()

void Canvas::EnterScreenCS ( )

Definition at line 1036 of file canvas.cc.

◆ FixViewport()

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

Definition at line 577 of file canvas.cc.

◆ getModel()

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

Definition at line 203 of file canvas.cc.

◆ handle()

int Canvas::handle ( int  event)
virtual

Definition at line 345 of file canvas.cc.

◆ InitGl()

void Canvas::InitGl ( )

Definition at line 96 of file canvas.cc.

◆ InitTextures()

void Canvas::InitTextures ( )

Definition at line 129 of file canvas.cc.

◆ InvertView()

void Stg::Canvas::InvertView ( uint32_t  invertflags)

◆ IsTopView()

bool Stg::Canvas::IsTopView ( )
inline

Definition at line 125 of file canvas.hh.

◆ LeaveScreenCS()

void Canvas::LeaveScreenCS ( )

Definition at line 1050 of file canvas.cc.

◆ Load()

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

Definition at line 1153 of file canvas.cc.

◆ perspectiveCb()

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

Definition at line 1116 of file canvas.cc.

◆ PopColor()

void Stg::Canvas::PopColor ( )
inline

Definition at line 112 of file canvas.hh.

◆ PushColor() [1/2]

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

Definition at line 110 of file canvas.hh.

◆ PushColor() [2/2]

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

Definition at line 111 of file canvas.hh.

◆ RecordRay()

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

◆ RemoveModel()

void Canvas::RemoveModel ( Model mod)
private

Definition at line 589 of file canvas.cc.

◆ renderFrame()

void Canvas::renderFrame ( )
virtual

Definition at line 756 of file canvas.cc.

◆ resetCamera()

void Canvas::resetCamera ( )

Definition at line 705 of file canvas.cc.

◆ resize()

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

Definition at line 1254 of file canvas.cc.

◆ Save()

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

Definition at line 1189 of file canvas.cc.

◆ Screenshot()

void Canvas::Screenshot ( )

Definition at line 1059 of file canvas.cc.

◆ select()

void Canvas::select ( Model mod)

Definition at line 281 of file canvas.cc.

◆ selected()

bool Canvas::selected ( Model mod)

Definition at line 276 of file canvas.cc.

◆ setDirtyBuffer()

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

Definition at line 108 of file canvas.hh.

◆ TimerCallback()

void Canvas::TimerCallback ( Canvas canvas)
static

Definition at line 42 of file canvas.cc.

◆ unSelect()

void Canvas::unSelect ( Model mod)

Definition at line 292 of file canvas.cc.

◆ unSelectAll()

void Canvas::unSelectAll ( )

Definition at line 300 of file canvas.cc.

◆ VisualizeAll()

bool Stg::Canvas::VisualizeAll ( )
inline

Definition at line 115 of file canvas.hh.

Friends And Related Function Documentation

◆ Model

friend class Model
friend

Definition at line 11 of file canvas.hh.

◆ WorldGui

friend class WorldGui
friend

Definition at line 10 of file canvas.hh.

Member Data Documentation

◆ _custom_options

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

Definition at line 83 of file canvas.hh.

◆ camera

OrthoCamera Stg::Canvas::camera
private

Definition at line 45 of file canvas.hh.

◆ clicked_empty_space

bool Stg::Canvas::clicked_empty_space
private

Definition at line 52 of file canvas.hh.

◆ colorstack

class Stg::Canvas::GlColorStack Stg::Canvas::colorstack
private

◆ current_camera

Camera* Stg::Canvas::current_camera
private

Definition at line 44 of file canvas.hh.

◆ dirty_buffer

bool Stg::Canvas::dirty_buffer
private

Definition at line 47 of file canvas.hh.

◆ empty_space_startx

int Stg::Canvas::empty_space_startx
private

Definition at line 53 of file canvas.hh.

◆ empty_space_starty

int Stg::Canvas::empty_space_starty
private

Definition at line 53 of file canvas.hh.

◆ frames_rendered_count

unsigned long Stg::Canvas::frames_rendered_count

Definition at line 80 of file canvas.hh.

◆ graphics

bool Stg::Canvas::graphics

Definition at line 78 of file canvas.hh.

◆ interval

msec_t Stg::Canvas::interval
private

(even if it is now unselected).

Definition at line 58 of file canvas.hh.

◆ last_selection

Model* Stg::Canvas::last_selection
private

the most recently selected model

Definition at line 55 of file canvas.hh.

◆ models_sorted

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

Definition at line 42 of file canvas.hh.

◆ pCamOn

Option Stg::Canvas::pCamOn
private

Definition at line 69 of file canvas.hh.

◆ perspective_camera

PerspectiveCamera Stg::Canvas::perspective_camera
private

Definition at line 46 of file canvas.hh.

◆ screenshot_frame_skip

int Stg::Canvas::screenshot_frame_skip

Definition at line 81 of file canvas.hh.

◆ selected_models

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

Definition at line 54 of file canvas.hh.

◆ selectedModel

bool Stg::Canvas::selectedModel
private

Definition at line 51 of file canvas.hh.

◆ showBBoxes

Option Stg::Canvas::showBBoxes
private

Definition at line 69 of file canvas.hh.

◆ showBlocks

Option Stg::Canvas::showBlocks
private

Definition at line 69 of file canvas.hh.

◆ showBlur

Option Stg::Canvas::showBlur
private

Definition at line 69 of file canvas.hh.

◆ showClock

Option Stg::Canvas::showClock
private

Definition at line 69 of file canvas.hh.

◆ showData

Option Stg::Canvas::showData
private

Definition at line 69 of file canvas.hh.

◆ showFlags

Option Stg::Canvas::showFlags
private

Definition at line 69 of file canvas.hh.

◆ showFollow

Option Stg::Canvas::showFollow
private

Definition at line 69 of file canvas.hh.

◆ showFootprints

Option Stg::Canvas::showFootprints
private

Definition at line 69 of file canvas.hh.

◆ showGrid

Option Stg::Canvas::showGrid
private

Definition at line 69 of file canvas.hh.

◆ showOccupancy

Option Stg::Canvas::showOccupancy
private

Definition at line 69 of file canvas.hh.

◆ showScreenshots

Option Stg::Canvas::showScreenshots
private

Definition at line 69 of file canvas.hh.

◆ showStatus

Option Stg::Canvas::showStatus
private

Definition at line 69 of file canvas.hh.

◆ showTrailArrows

Option Stg::Canvas::showTrailArrows
private

Definition at line 69 of file canvas.hh.

◆ showTrailRise

Option Stg::Canvas::showTrailRise
private

Definition at line 69 of file canvas.hh.

◆ showTrails

Option Stg::Canvas::showTrails
private

Definition at line 69 of file canvas.hh.

◆ showVoxels

Option Stg::Canvas::showVoxels
private

Definition at line 69 of file canvas.hh.

◆ startx

int Stg::Canvas::startx
private

Definition at line 50 of file canvas.hh.

◆ starty

int Stg::Canvas::starty
private

Definition at line 50 of file canvas.hh.

◆ visualizeAll

Option Stg::Canvas::visualizeAll
private

Definition at line 69 of file canvas.hh.

◆ wf

Worldfile* Stg::Canvas::wf
private

Definition at line 48 of file canvas.hh.

◆ world

WorldGui* Stg::Canvas::world

Definition at line 79 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 Feb 28 2022 23:48:56