Public Slots | Signals | Public Member Functions | Protected Member Functions | Protected Attributes
mapviz::MapCanvas Class Reference

#include <map_canvas.h>

List of all members.

Public Slots

void setFrameRate (const double fps)

Signals

void Hover (double x, double y, double scale)

Public Member Functions

void AddPlugin (MapvizPluginPtr plugin, int order)
void CaptureFrame (bool force=false)
void CaptureFrames (bool enabled)
bool CopyCaptureBuffer (uchar *buffer)
bool CopyCaptureBuffer (std::vector< uint8_t > &buffer)
QPointF FixedFrameToMapGlCoord (const QPointF &point)
double frameRate () const
void InitializeTf (boost::shared_ptr< tf::TransformListener > tf)
 MapCanvas (QWidget *parent=0)
QPointF MapGlCoordToFixedFrame (const QPointF &point)
float OffsetX () const
float OffsetY () const
void RemovePlugin (MapvizPluginPtr plugin)
void ReorderDisplays ()
void ResetLocation ()
void SetBackground (const QColor &color)
void SetFixedFrame (const std::string &frame)
void SetOffsetX (float x)
void SetOffsetY (float y)
void SetTargetFrame (const std::string &frame)
void SetViewScale (float scale)
void ToggleEnableAntialiasing (bool on)
void ToggleFixOrientation (bool on)
void ToggleRotate90 (bool on)
void ToggleUseLatestTransforms (bool on)
void UpdateView ()
float ViewScale () const
 ~MapCanvas ()

Protected Member Functions

void initGlBlending ()
void initializeGL ()
void InitializePixelBuffers ()
void leaveEvent (QEvent *e)
void mouseMoveEvent (QMouseEvent *e)
void mousePressEvent (QMouseEvent *e)
void mouseReleaseEvent (QMouseEvent *e)
void paintEvent (QPaintEvent *event)
void popGlMatrices ()
void pushGlMatrices ()
void Recenter ()
void resizeGL (int w, int h)
void TransformTarget (QPainter *painter)
void wheelEvent (QWheelEvent *e)
void Zoom (float factor)

Protected Attributes

QColor bg_color_
std::vector< uint8_t > capture_buffer_
bool capture_frames_
double drag_x_
double drag_y_
bool enable_antialiasing_
bool fix_orientation_
std::string fixed_frame_
QTimer frame_rate_timer_
bool has_pixel_buffers_
bool initialized_
Qt::MouseButton mouse_button_
int mouse_hover_x_
int mouse_hover_y_
bool mouse_hovering_
bool mouse_pressed_
int mouse_previous_y_
int mouse_x_
int mouse_y_
double offset_x_
double offset_y_
GLuint pixel_buffer_ids_ [2]
int32_t pixel_buffer_index_
int32_t pixel_buffer_size_
std::list< MapvizPluginPtrplugins_
QTransform qtransform_
bool rotate_90_
float scene_bottom_
float scene_left_
float scene_right_
float scene_top_
std::string target_frame_
boost::shared_ptr
< tf::TransformListener
tf_
tf::StampedTransform transform_
float view_bottom_
float view_center_x_
float view_center_y_
float view_left_
float view_right_
float view_scale_
float view_top_

Detailed Description

Definition at line 60 of file map_canvas.h.


Constructor & Destructor Documentation

mapviz::MapCanvas::MapCanvas ( QWidget *  parent = 0) [explicit]

Definition at line 43 of file map_canvas.cpp.

Definition at line 87 of file map_canvas.cpp.


Member Function Documentation

void mapviz::MapCanvas::AddPlugin ( MapvizPluginPtr  plugin,
int  order 
)

Definition at line 443 of file map_canvas.cpp.

void mapviz::MapCanvas::CaptureFrame ( bool  force = false)

Definition at line 175 of file map_canvas.cpp.

void mapviz::MapCanvas::CaptureFrames ( bool  enabled) [inline]

Definition at line 114 of file map_canvas.h.

bool mapviz::MapCanvas::CopyCaptureBuffer ( uchar *  buffer) [inline]

Copies the current capture buffer into the target buffer. The target buffer must already be initialized to a size of: height * width * 4

Parameters:
bufferAn initialize buffer to copy data into
Returns:
false if the current capture buffer is empty

Definition at line 127 of file map_canvas.h.

bool mapviz::MapCanvas::CopyCaptureBuffer ( std::vector< uint8_t > &  buffer) [inline]

Resizes a vector to be large enough to hold the current capture buffer and then copies the capture buffer into it.

Parameters:
bufferA vector to copy the capture buffer into.
Returns:
false if the current capture buffer is empty

Definition at line 144 of file map_canvas.h.

QPointF mapviz::MapCanvas::FixedFrameToMapGlCoord ( const QPointF &  point)

Definition at line 329 of file map_canvas.cpp.

double mapviz::MapCanvas::frameRate ( ) const

Definition at line 596 of file map_canvas.cpp.

void mapviz::MapCanvas::Hover ( double  x,
double  y,
double  scale 
) [signal]
void mapviz::MapCanvas::initGlBlending ( ) [protected]

Definition at line 162 of file map_canvas.cpp.

void mapviz::MapCanvas::initializeGL ( ) [protected]

Definition at line 125 of file map_canvas.cpp.

Definition at line 100 of file map_canvas.cpp.

void mapviz::MapCanvas::InitializeTf ( boost::shared_ptr< tf::TransformListener tf)

Definition at line 95 of file map_canvas.cpp.

void mapviz::MapCanvas::leaveEvent ( QEvent *  e) [protected]

Definition at line 388 of file map_canvas.cpp.

QPointF mapviz::MapCanvas::MapGlCoordToFixedFrame ( const QPointF &  point)

Definition at line 323 of file map_canvas.cpp.

void mapviz::MapCanvas::mouseMoveEvent ( QMouseEvent *  e) [protected]

Definition at line 344 of file map_canvas.cpp.

void mapviz::MapCanvas::mousePressEvent ( QMouseEvent *  e) [protected]

Definition at line 312 of file map_canvas.cpp.

void mapviz::MapCanvas::mouseReleaseEvent ( QMouseEvent *  e) [protected]

Definition at line 334 of file map_canvas.cpp.

float mapviz::MapCanvas::OffsetX ( ) const [inline]

Definition at line 87 of file map_canvas.h.

float mapviz::MapCanvas::OffsetY ( ) const [inline]

Definition at line 88 of file map_canvas.h.

void mapviz::MapCanvas::paintEvent ( QPaintEvent *  event) [protected]

Definition at line 211 of file map_canvas.cpp.

void mapviz::MapCanvas::popGlMatrices ( ) [protected]

Definition at line 288 of file map_canvas.cpp.

void mapviz::MapCanvas::pushGlMatrices ( ) [protected]

Definition at line 277 of file map_canvas.cpp.

void mapviz::MapCanvas::Recenter ( ) [protected]

Definition at line 577 of file map_canvas.cpp.

Definition at line 448 of file map_canvas.cpp.

Definition at line 572 of file map_canvas.cpp.

Definition at line 566 of file map_canvas.cpp.

void mapviz::MapCanvas::resizeGL ( int  w,
int  h 
) [protected]

Definition at line 170 of file map_canvas.cpp.

void mapviz::MapCanvas::SetBackground ( const QColor &  color) [inline]

Definition at line 108 of file map_canvas.h.

void mapviz::MapCanvas::SetFixedFrame ( const std::string &  frame)

Definition at line 394 of file map_canvas.cpp.

void mapviz::MapCanvas::setFrameRate ( const double  fps) [slot]

Definition at line 586 of file map_canvas.cpp.

void mapviz::MapCanvas::SetOffsetX ( float  x) [inline]

Definition at line 96 of file map_canvas.h.

void mapviz::MapCanvas::SetOffsetY ( float  y) [inline]

Definition at line 102 of file map_canvas.h.

void mapviz::MapCanvas::SetTargetFrame ( const std::string &  frame)

Definition at line 404 of file map_canvas.cpp.

void mapviz::MapCanvas::SetViewScale ( float  scale) [inline]

Definition at line 90 of file map_canvas.h.

Definition at line 424 of file map_canvas.cpp.

Definition at line 414 of file map_canvas.cpp.

Definition at line 419 of file map_canvas.cpp.

Definition at line 434 of file map_canvas.cpp.

void mapviz::MapCanvas::TransformTarget ( QPainter *  painter) [protected]

Definition at line 454 of file map_canvas.cpp.

Definition at line 550 of file map_canvas.cpp.

float mapviz::MapCanvas::ViewScale ( ) const [inline]

Definition at line 86 of file map_canvas.h.

void mapviz::MapCanvas::wheelEvent ( QWheelEvent *  e) [protected]

Definition at line 299 of file map_canvas.cpp.

void mapviz::MapCanvas::Zoom ( float  factor) [protected]

Definition at line 306 of file map_canvas.cpp.


Member Data Documentation

QColor mapviz::MapCanvas::bg_color_ [protected]

Definition at line 198 of file map_canvas.h.

std::vector<uint8_t> mapviz::MapCanvas::capture_buffer_ [protected]

Definition at line 246 of file map_canvas.h.

Definition at line 189 of file map_canvas.h.

double mapviz::MapCanvas::drag_x_ [protected]

Definition at line 216 of file map_canvas.h.

double mapviz::MapCanvas::drag_y_ [protected]

Definition at line 217 of file map_canvas.h.

Definition at line 194 of file map_canvas.h.

Definition at line 192 of file map_canvas.h.

std::string mapviz::MapCanvas::fixed_frame_ [protected]

Definition at line 238 of file map_canvas.h.

Definition at line 196 of file map_canvas.h.

Definition at line 185 of file map_canvas.h.

Definition at line 191 of file map_canvas.h.

Qt::MouseButton mapviz::MapCanvas::mouse_button_ [protected]

Definition at line 200 of file map_canvas.h.

Definition at line 208 of file map_canvas.h.

Definition at line 209 of file map_canvas.h.

Definition at line 207 of file map_canvas.h.

Definition at line 201 of file map_canvas.h.

Definition at line 205 of file map_canvas.h.

int mapviz::MapCanvas::mouse_x_ [protected]

Definition at line 202 of file map_canvas.h.

int mapviz::MapCanvas::mouse_y_ [protected]

Definition at line 203 of file map_canvas.h.

double mapviz::MapCanvas::offset_x_ [protected]

Definition at line 212 of file map_canvas.h.

double mapviz::MapCanvas::offset_y_ [protected]

Definition at line 213 of file map_canvas.h.

GLuint mapviz::MapCanvas::pixel_buffer_ids_[2] [protected]

Definition at line 187 of file map_canvas.h.

Definition at line 188 of file map_canvas.h.

Definition at line 186 of file map_canvas.h.

Definition at line 244 of file map_canvas.h.

QTransform mapviz::MapCanvas::qtransform_ [protected]

Definition at line 243 of file map_canvas.h.

Definition at line 193 of file map_canvas.h.

Definition at line 236 of file map_canvas.h.

float mapviz::MapCanvas::scene_left_ [protected]

Definition at line 233 of file map_canvas.h.

Definition at line 234 of file map_canvas.h.

float mapviz::MapCanvas::scene_top_ [protected]

Definition at line 235 of file map_canvas.h.

std::string mapviz::MapCanvas::target_frame_ [protected]

Definition at line 239 of file map_canvas.h.

boost::shared_ptr<tf::TransformListener> mapviz::MapCanvas::tf_ [protected]

Definition at line 241 of file map_canvas.h.

Definition at line 242 of file map_canvas.h.

Definition at line 230 of file map_canvas.h.

Definition at line 220 of file map_canvas.h.

Definition at line 221 of file map_canvas.h.

float mapviz::MapCanvas::view_left_ [protected]

Definition at line 227 of file map_canvas.h.

float mapviz::MapCanvas::view_right_ [protected]

Definition at line 228 of file map_canvas.h.

float mapviz::MapCanvas::view_scale_ [protected]

Definition at line 224 of file map_canvas.h.

float mapviz::MapCanvas::view_top_ [protected]

Definition at line 229 of file map_canvas.h.


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


mapviz
Author(s): Marc Alban
autogenerated on Thu Aug 24 2017 02:45:59