Public Member Functions | Protected Member Functions | Protected Attributes
area Class Reference

#include <area.h>

List of all members.

Public Member Functions

void addGoal (int r1, double x2, double y2, int color, int arrow)
void addGridPoint (double x, double y, double cell_size, int color, int with_respect_to_robot=-1)
int addImage (std::string s, double x, double y, double scale=1.0)
int addImage (std::string s, double x, double y, double scale, std::string s1)
int addImage (std::string s, double x, double y, double sizex, double sizey, std::string s1)
void addLine (double x1, double y1, double x2, double y2, int color, bool permanent=false)
void addLink (int r1, int r2, int arrow, int color, float value, int set=0)
void addLink (int r1, int r2, int arrow, int color, int set=0)
void addPoint (double x, double y, int color, int with_respect_to_robot=-1)
void addPoint (double y, int color)
int addRobot ()
int addRobot (std::string name)
 area ()
void clearGoals ()
void clearLinks (int set=0)
void clearPoints ()
void clearRobots ()
int get_selected ()
int getNumOfRobots ()
int getRobotId (std::string name)
int getRobotPose (int id, double *x0, double *y0, double *ang)
void grabSnapshot ()
void setBackGroundImage (std::string s)
void setJoinPoints (bool n)
void setMaintainAspectRatio (bool val)
void setMargins (double maxx, double maxy, double minx, double miny)
void setMaximumNumOfPoints (int n)
void setRobotColor (int idx, int c)
void setRobotPose (int id, double x0, double y0, double ang, int col)
void waitClick (double &x, double &y)
void waitClickInterrupt ()

Protected Member Functions

void compute_environment ()
void draw_robot (double x, double y, double a, int col, int mouse_over, double scale)
void draw_triangle (double x, double y, double a, int col, double scale)
bool on_area_button_press_event (GdkEventButton *ev)
bool on_area_button_release_event (GdkEventButton *ev)
bool on_area_expose_event (GdkEventExpose *ev)
virtual bool on_area_motion_notify_event (GdkEventMotion *ev)
virtual bool on_expose_event (GdkEventExpose *e)
virtual void on_realize ()
void on_size_alloc (Gtk::Allocation &al)
void paint ()
bool timer_callback ()

Protected Attributes

Glib::RefPtr< Gdk::Pixbuf > bg_image
double canvas_maxx
double canvas_maxy
double canvas_minx
double canvas_miny
sem_t clickSem
Gdk::Color cols [10]
float fixed_scale
Glib::RefPtr< Gdk::GC > gc
std::vector< GoalgoalVec
bool has_bg_image
std::vector< ImgimgVec
int initialized
bool interrupted
bool join_points
std::vector< LinklinkVec [LINK_SETS]
bool maintain_aspect_ratio
bool marginSetted
double max_x
double max_y
unsigned maximumNumOfPoints
double min_x
double min_y
int mouseover
int painted
std::vector< PointpointVec
std::map< std::string, int > roboMap
std::vector< RobotroboVec
double scalex
double scaley
int selected
pthread_mutex_t sem
unsigned int snap_id
Pango::FontDescription * timesnr_12
Pango::FontDescription * timesnr_8
Glib::RefPtr< Gdk::Window > window
double xClick
double yClick
double zoom

Detailed Description

Definition at line 90 of file area.h.


Constructor & Destructor Documentation

Definition at line 140 of file area.cc.


Member Function Documentation

void area::addGoal ( int  r1,
double  x2,
double  y2,
int  color,
int  arrow 
)

Definition at line 247 of file area.cc.

void area::addGridPoint ( double  x,
double  y,
double  cell_size,
int  color,
int  with_respect_to_robot = -1 
)

Definition at line 219 of file area.cc.

int area::addImage ( std::string  s,
double  x,
double  y,
double  scale = 1.0 
)

Definition at line 540 of file area.cc.

int area::addImage ( std::string  s,
double  x,
double  y,
double  scale,
std::string  s1 
)

Definition at line 521 of file area.cc.

int area::addImage ( std::string  s,
double  x,
double  y,
double  sizex,
double  sizey,
std::string  s1 
)

Definition at line 544 of file area.cc.

void area::addLine ( double  x1,
double  y1,
double  x2,
double  y2,
int  color,
bool  permanent = false 
)
void area::addLink ( int  r1,
int  r2,
int  arrow,
int  color,
float  value,
int  set = 0 
)

Definition at line 280 of file area.cc.

void area::addLink ( int  r1,
int  r2,
int  arrow,
int  color,
int  set = 0 
)

Definition at line 296 of file area.cc.

void area::addPoint ( double  x,
double  y,
int  color,
int  with_respect_to_robot = -1 
)

Definition at line 203 of file area.cc.

void area::addPoint ( double  y,
int  color 
)

Definition at line 259 of file area.cc.

int area::addRobot ( )

Definition at line 311 of file area.cc.

int area::addRobot ( std::string  name)

Definition at line 181 of file area.cc.

void area::clearGoals ( )

Definition at line 724 of file area.cc.

void area::clearLinks ( int  set = 0)

Definition at line 396 of file area.cc.

Definition at line 408 of file area.cc.

Definition at line 402 of file area.cc.

void area::compute_environment ( ) [protected]

Definition at line 430 of file area.cc.

void area::draw_robot ( double  x,
double  y,
double  a,
int  col,
int  mouse_over,
double  scale = 0.1 
) [protected]

Definition at line 351 of file area.cc.

void area::draw_triangle ( double  x,
double  y,
double  a,
int  col,
double  scale 
) [protected]

Definition at line 374 of file area.cc.

Definition at line 93 of file area.cc.

Definition at line 324 of file area.cc.

int area::getRobotId ( std::string  name)

Definition at line 177 of file area.cc.

int area::getRobotPose ( int  id,
double *  x0,
double *  y0,
double *  ang 
)

Definition at line 338 of file area.cc.

Definition at line 706 of file area.cc.

bool area::on_area_button_press_event ( GdkEventButton *  ev) [protected]

Definition at line 57 of file area.cc.

bool area::on_area_button_release_event ( GdkEventButton *  ev) [protected]

Definition at line 85 of file area.cc.

bool area::on_area_expose_event ( GdkEventExpose *  ev) [protected]

Definition at line 89 of file area.cc.

bool area::on_area_motion_notify_event ( GdkEventMotion *  ev) [protected, virtual]

Definition at line 97 of file area.cc.

bool area::on_expose_event ( GdkEventExpose *  e) [protected, virtual]

Definition at line 731 of file area.cc.

void area::on_realize ( ) [protected, virtual]

Definition at line 413 of file area.cc.

void area::on_size_alloc ( Gtk::Allocation &  al) [protected]

Definition at line 197 of file area.cc.

void area::paint ( ) [protected]

Definition at line 564 of file area.cc.

void area::setBackGroundImage ( std::string  s)

Definition at line 516 of file area.cc.

void area::setJoinPoints ( bool  n)

Definition at line 512 of file area.cc.

void area::setMaintainAspectRatio ( bool  val)

Definition at line 392 of file area.cc.

void area::setMargins ( double  maxx,
double  maxy,
double  minx,
double  miny 
)

Definition at line 422 of file area.cc.

void area::setMaximumNumOfPoints ( int  n)

Definition at line 276 of file area.cc.

void area::setRobotColor ( int  idx,
int  c 
)

Definition at line 736 of file area.cc.

void area::setRobotPose ( int  id,
double  x0,
double  y0,
double  ang,
int  col = 0 
)

Definition at line 328 of file area.cc.

bool area::timer_callback ( ) [protected]

Definition at line 136 of file area.cc.

void area::waitClick ( double &  x,
double &  y 
)

Definition at line 70 of file area.cc.

Definition at line 80 of file area.cc.


Member Data Documentation

Glib::RefPtr<Gdk::Pixbuf> area::bg_image [protected]

Definition at line 127 of file area.h.

double area::canvas_maxx [protected]

Definition at line 142 of file area.h.

double area::canvas_maxy [protected]

Definition at line 142 of file area.h.

double area::canvas_minx [protected]

Definition at line 142 of file area.h.

double area::canvas_miny [protected]

Definition at line 142 of file area.h.

sem_t area::clickSem [protected]

Definition at line 126 of file area.h.

Gdk::Color area::cols[10] [protected]

Definition at line 139 of file area.h.

float area::fixed_scale [protected]

Definition at line 147 of file area.h.

Glib::RefPtr<Gdk::GC> area::gc [protected]

Definition at line 141 of file area.h.

std::vector<Goal> area::goalVec [protected]

Definition at line 134 of file area.h.

bool area::has_bg_image [protected]

Definition at line 128 of file area.h.

std::vector<Img> area::imgVec [protected]

Definition at line 135 of file area.h.

int area::initialized [protected]

Definition at line 144 of file area.h.

bool area::interrupted [protected]

Definition at line 128 of file area.h.

bool area::join_points [protected]

Definition at line 146 of file area.h.

std::vector<Link> area::linkVec[LINK_SETS] [protected]

Definition at line 132 of file area.h.

bool area::maintain_aspect_ratio [protected]

Definition at line 129 of file area.h.

bool area::marginSetted [protected]

Definition at line 146 of file area.h.

double area::max_x [protected]

Definition at line 143 of file area.h.

double area::max_y [protected]

Definition at line 143 of file area.h.

unsigned area::maximumNumOfPoints [protected]

Definition at line 145 of file area.h.

double area::min_x [protected]

Definition at line 143 of file area.h.

double area::min_y [protected]

Definition at line 143 of file area.h.

int area::mouseover [protected]

Definition at line 144 of file area.h.

int area::painted [protected]

Definition at line 144 of file area.h.

std::vector<Point> area::pointVec [protected]

Definition at line 136 of file area.h.

std::map<std::string,int> area::roboMap [protected]

Definition at line 124 of file area.h.

std::vector<Robot> area::roboVec [protected]

Definition at line 133 of file area.h.

double area::scalex [protected]

Definition at line 143 of file area.h.

double area::scaley [protected]

Definition at line 143 of file area.h.

int area::selected [protected]

Definition at line 144 of file area.h.

pthread_mutex_t area::sem [protected]

Definition at line 138 of file area.h.

unsigned int area::snap_id [protected]

Definition at line 137 of file area.h.

Pango::FontDescription* area::timesnr_12 [protected]

Definition at line 130 of file area.h.

Pango::FontDescription* area::timesnr_8 [protected]

Definition at line 131 of file area.h.

Glib::RefPtr<Gdk::Window> area::window [protected]

Definition at line 140 of file area.h.

double area::xClick [protected]

Definition at line 125 of file area.h.

double area::yClick [protected]

Definition at line 125 of file area.h.

double area::zoom [protected]

Definition at line 143 of file area.h.


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


ros_rt_wmp_sniffer
Author(s): Danilo Tardioli, dantard@unizar.es
autogenerated on Mon Oct 6 2014 08:27:58