Public Slots | Signals | Public Member Functions | Static Public Attributes | Private Slots | Private Member Functions | Private Attributes
octomap::ViewerGui Class Reference

#include <ViewerGui.h>

List of all members.

Public Slots

void addNextScans (unsigned scans)
void changeTreeDepth (int depth)
void gotoFirstScan ()
bool isShown ()

Signals

void changeCamPosition (double x, double y, double z, double lookX, double lookY, double lookZ)
void changeCurrentScan (unsigned scans)
void changeNumberOfScans (unsigned scans)
void changeResolution (double resolution)
void updateStatusBar (QString message, int duration)

Public Member Functions

 ViewerGui (const std::string &filename="", QWidget *parent=0)
 ~ViewerGui ()

Static Public Attributes

static const unsigned int DEFAULT_OCTREE_ID = 0
static const unsigned int LASERTYPE_SICK = 1
static const unsigned int LASERTYPE_URG = 0

Private Slots

void on_action_bg_black_triggered ()
void on_action_bg_gray_triggered ()
void on_action_bg_white_triggered ()
void on_actionAxes_toggled (bool checked)
void on_actionClear_nodes_in_selection_triggered ()
void on_actionClear_selection_triggered ()
void on_actionClear_triggered ()
void on_actionClear_unknown_in_selection_triggered ()
void on_actionConvert_ml_tree_triggered ()
void on_actionDelete_nodes_in_selection_triggered ()
void on_actionDelete_nodes_outside_of_selection_triggered ()
void on_actionExit_triggered ()
void on_actionExpand_tree_triggered ()
void on_actionExport_sequence_triggered (bool checked)
void on_actionExport_view_triggered ()
void on_actionFill_nodes_in_selection_triggered ()
void on_actionFill_selection_triggered ()
void on_actionFill_unknown_in_selection_triggered ()
void on_actionFree_toggled (bool enabled)
void on_actionHeight_map_toggled (bool checked)
void on_actionHelp_triggered ()
void on_actionHideBackground_toggled (bool checked)
void on_actionOctree_cells_toggled (bool enabled)
void on_actionOctree_structure_toggled (bool enabled)
void on_actionOpen_file_triggered ()
void on_actionOpen_graph_incremental_triggered ()
void on_actionPointcloud_toggled (bool checked)
void on_actionPrintout_mode_toggled (bool checked)
void on_actionPrune_tree_triggered ()
void on_actionReload_Octree_triggered ()
void on_actionRestore_camera_triggered ()
void on_actionSave_file_triggered ()
void on_actionSelected_toggled (bool enabled)
void on_actionSelection_box_toggled (bool checked)
void on_actionSemanticColoring_toggled (bool checked)
void on_actionSettings_triggered ()
void on_actionStore_camera_triggered ()
void on_actionTest_triggered ()
void on_actionTrajectory_toggled (bool checked)
void on_loadcampose_triggered ()
void on_savecampose_triggered ()

Private Member Functions

void addNextScan ()
void addOctree (AbstractOcTree *tree, int id, pose6d origin)
void addOctree (AbstractOcTree *tree, int id)
void generateOctree ()
bool getOctreeRecord (int id, OcTreeRecord *&otr)
void loadCameraPosition (const char *filename)
void loadGraph (bool completeGraph=true)
void openFile ()
void openGraph (bool completeGraph=true)
void openMapCollection ()
void openOcTree ()
 open "regular" file containing an octree
void openPC ()
void openPointcloud ()
void openTree ()
 open binary format OcTree
void saveCameraPosition (const char *filename) const
void setNodesInBBX (const point3d &min, const point3d &max, bool occupied)
void setNonNodesInBBX (const point3d &min, const point3d &max, bool occupied)
void setOcTreeUISwitches ()
void showInfo (QString string, bool newline=false)
void showOcTree ()
void updateNodesInBBX (const point3d &min, const point3d &max, bool occupied)

Private Attributes

CameraFollowModem_cameraFollowMode
bool m_cameraStored
std::string m_filename
 Filename of last loaded file, in case it is necessary to reload it.
ViewerWidgetm_glwidget
double m_laserMaxRange
unsigned int m_laserType
QLabel * m_mapMemoryStatus
QLabel * m_mapSizeStatus
unsigned int m_max_tree_depth
ScanGraph::iterator m_nextScanToAdd
double m_occupancyThresh
double m_octreeResolution
std::map< int, OcTreeRecordm_octrees
PointcloudDrawerm_pointcloudDrawer
ScanGraphm_scanGraph
TrajectoryDrawerm_trajectoryDrawer
Ui::ViewerGuiClass ui

Detailed Description

Definition at line 51 of file ViewerGui.h.


Constructor & Destructor Documentation

octomap::ViewerGui::ViewerGui ( const std::string &  filename = "",
QWidget *  parent = 0 
)

Definition at line 40 of file ViewerGui.cpp.

Definition at line 128 of file ViewerGui.cpp.


Member Function Documentation

void octomap::ViewerGui::addNextScan ( ) [private]

Adds a scan from the graph to the OcTree

Definition at line 358 of file ViewerGui.cpp.

void octomap::ViewerGui::addNextScans ( unsigned  scans) [slot]

Definition at line 382 of file ViewerGui.cpp.

void octomap::ViewerGui::addOctree ( octomap::AbstractOcTree tree,
int  id,
octomap::pose6d  origin 
) [private]

Definition at line 179 of file ViewerGui.cpp.

void octomap::ViewerGui::addOctree ( octomap::AbstractOcTree tree,
int  id 
) [private]

Definition at line 226 of file ViewerGui.cpp.

void octomap::ViewerGui::changeCamPosition ( double  x,
double  y,
double  z,
double  lookX,
double  lookY,
double  lookZ 
) [signal]
void octomap::ViewerGui::changeCurrentScan ( unsigned  scans) [signal]
void octomap::ViewerGui::changeNumberOfScans ( unsigned  scans) [signal]
void octomap::ViewerGui::changeResolution ( double  resolution) [signal]
void octomap::ViewerGui::changeTreeDepth ( int  depth) [slot]

Definition at line 609 of file ViewerGui.cpp.

(Re-)generates OcTree from the internally stored ScanGraph

Definition at line 301 of file ViewerGui.cpp.

bool octomap::ViewerGui::getOctreeRecord ( int  id,
OcTreeRecord *&  otr 
) [private]

Definition at line 168 of file ViewerGui.cpp.

Definition at line 339 of file ViewerGui.cpp.

bool octomap::ViewerGui::isShown ( ) [slot]

Definition at line 154 of file ViewerGui.cpp.

void octomap::ViewerGui::loadCameraPosition ( const char *  filename) [private]

Definition at line 1210 of file ViewerGui.cpp.

void octomap::ViewerGui::loadGraph ( bool  completeGraph = true) [private]

Finishes loading a ScanGraph, either from .log or .graph.

Definition at line 546 of file ViewerGui.cpp.

Definition at line 1171 of file ViewerGui.cpp.

Definition at line 1181 of file ViewerGui.cpp.

Definition at line 1176 of file ViewerGui.cpp.

void octomap::ViewerGui::on_actionAxes_toggled ( bool  checked) [private, slot]

Definition at line 1032 of file ViewerGui.cpp.

Definition at line 747 of file ViewerGui.cpp.

Definition at line 755 of file ViewerGui.cpp.

Definition at line 1049 of file ViewerGui.cpp.

Definition at line 763 of file ViewerGui.cpp.

Definition at line 1072 of file ViewerGui.cpp.

Definition at line 797 of file ViewerGui.cpp.

Definition at line 820 of file ViewerGui.cpp.

Definition at line 621 of file ViewerGui.cpp.

Definition at line 1108 of file ViewerGui.cpp.

void octomap::ViewerGui::on_actionExport_sequence_triggered ( bool  checked) [private, slot]

Definition at line 947 of file ViewerGui.cpp.

Definition at line 942 of file ViewerGui.cpp.

Definition at line 789 of file ViewerGui.cpp.

Definition at line 781 of file ViewerGui.cpp.

Definition at line 772 of file ViewerGui.cpp.

void octomap::ViewerGui::on_actionFree_toggled ( bool  enabled) [private, slot]

Definition at line 1143 of file ViewerGui.cpp.

void octomap::ViewerGui::on_actionHeight_map_toggled ( bool  checked) [private, slot]

Definition at line 983 of file ViewerGui.cpp.

Definition at line 625 of file ViewerGui.cpp.

void octomap::ViewerGui::on_actionHideBackground_toggled ( bool  checked) [private, slot]

Definition at line 1040 of file ViewerGui.cpp.

void octomap::ViewerGui::on_actionOctree_cells_toggled ( bool  enabled) [private, slot]

Definition at line 1127 of file ViewerGui.cpp.

void octomap::ViewerGui::on_actionOctree_structure_toggled ( bool  enabled) [private, slot]

Definition at line 1135 of file ViewerGui.cpp.

Definition at line 663 of file ViewerGui.cpp.

Definition at line 678 of file ViewerGui.cpp.

void octomap::ViewerGui::on_actionPointcloud_toggled ( bool  checked) [private, slot]

Definition at line 1014 of file ViewerGui.cpp.

void octomap::ViewerGui::on_actionPrintout_mode_toggled ( bool  checked) [private, slot]

Definition at line 961 of file ViewerGui.cpp.

Definition at line 1093 of file ViewerGui.cpp.

Definition at line 1064 of file ViewerGui.cpp.

Definition at line 1008 of file ViewerGui.cpp.

Definition at line 695 of file ViewerGui.cpp.

void octomap::ViewerGui::on_actionSelected_toggled ( bool  enabled) [private, slot]

Definition at line 1152 of file ViewerGui.cpp.

void octomap::ViewerGui::on_actionSelection_box_toggled ( bool  checked) [private, slot]

Definition at line 970 of file ViewerGui.cpp.

void octomap::ViewerGui::on_actionSemanticColoring_toggled ( bool  checked) [private, slot]

Definition at line 991 of file ViewerGui.cpp.

Definition at line 629 of file ViewerGui.cpp.

Definition at line 1001 of file ViewerGui.cpp.

Definition at line 1060 of file ViewerGui.cpp.

void octomap::ViewerGui::on_actionTrajectory_toggled ( bool  checked) [private, slot]

Definition at line 1023 of file ViewerGui.cpp.

Definition at line 1193 of file ViewerGui.cpp.

Definition at line 1186 of file ViewerGui.cpp.

void octomap::ViewerGui::openFile ( ) [private]

(Re-)load the data file stored in m_fileName. Depending on the extension, the respective load function is used.

Definition at line 391 of file ViewerGui.cpp.

void octomap::ViewerGui::openGraph ( bool  completeGraph = true) [private]

Opens a .graph file and generates a ScanGraph from it. Afterwards, loadGraph() is called.

Definition at line 419 of file ViewerGui.cpp.

Definition at line 514 of file ViewerGui.cpp.

void octomap::ViewerGui::openOcTree ( ) [private]

open "regular" file containing an octree

Definition at line 487 of file ViewerGui.cpp.

void octomap::ViewerGui::openPC ( ) [private]

Opens a .pc PointCloud

Reads in a .dat file which consists of single points in ASCII, one point per line, values separated by white spaces

Definition at line 432 of file ViewerGui.cpp.

void octomap::ViewerGui::openTree ( ) [private]

open binary format OcTree

Definition at line 475 of file ViewerGui.cpp.

void octomap::ViewerGui::saveCameraPosition ( const char *  filename) const [private]

Definition at line 1202 of file ViewerGui.cpp.

void octomap::ViewerGui::setNodesInBBX ( const point3d min,
const point3d max,
bool  occupied 
) [private]

Definition at line 884 of file ViewerGui.cpp.

void octomap::ViewerGui::setNonNodesInBBX ( const point3d min,
const point3d max,
bool  occupied 
) [private]

Definition at line 912 of file ViewerGui.cpp.

Definition at line 460 of file ViewerGui.cpp.

void octomap::ViewerGui::showInfo ( QString  string,
bool  newline = false 
) [private]

Definition at line 158 of file ViewerGui.cpp.

void octomap::ViewerGui::showOcTree ( ) [private]

Definition at line 231 of file ViewerGui.cpp.

void octomap::ViewerGui::updateNodesInBBX ( const point3d min,
const point3d max,
bool  occupied 
) [private]

Definition at line 853 of file ViewerGui.cpp.

void octomap::ViewerGui::updateStatusBar ( QString  message,
int  duration 
) [signal]

Member Data Documentation

const unsigned int octomap::ViewerGui::DEFAULT_OCTREE_ID = 0 [static]

Definition at line 62 of file ViewerGui.h.

const unsigned int octomap::ViewerGui::LASERTYPE_SICK = 1 [static]

Definition at line 59 of file ViewerGui.h.

const unsigned int octomap::ViewerGui::LASERTYPE_URG = 0 [static]

Definition at line 58 of file ViewerGui.h.

Definition at line 204 of file ViewerGui.h.

Definition at line 210 of file ViewerGui.h.

std::string octomap::ViewerGui::m_filename [private]

Filename of last loaded file, in case it is necessary to reload it.

Definition at line 215 of file ViewerGui.h.

Definition at line 201 of file ViewerGui.h.

Definition at line 206 of file ViewerGui.h.

unsigned int octomap::ViewerGui::m_laserType [private]

Definition at line 209 of file ViewerGui.h.

Definition at line 212 of file ViewerGui.h.

Definition at line 211 of file ViewerGui.h.

unsigned int octomap::ViewerGui::m_max_tree_depth [private]

Definition at line 208 of file ViewerGui.h.

Definition at line 198 of file ViewerGui.h.

Definition at line 207 of file ViewerGui.h.

Definition at line 205 of file ViewerGui.h.

std::map<int, OcTreeRecord> octomap::ViewerGui::m_octrees [private]

Definition at line 195 of file ViewerGui.h.

Definition at line 203 of file ViewerGui.h.

Definition at line 197 of file ViewerGui.h.

Definition at line 202 of file ViewerGui.h.

Ui::ViewerGuiClass octomap::ViewerGui::ui [private]

Definition at line 200 of file ViewerGui.h.


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


octovis
Author(s): Kai M. Wurm , Armin Hornung
autogenerated on Thu Aug 27 2015 14:13:26