#include <project_model.h>
Public Slots | |
void | clearSelection () |
void | commandCompleted (CloudCommand *command) |
void | createNewCloudFromSelection () |
Creates a new cloud from the selected items and points. | |
void | deleteSelectedItems () |
void | emitAllStateSignals () |
This emits all the state signals, which updates the GUI action button status (enabled/disabled)". | |
void | insertNewCloudFromFile () |
Loads from file and inserts a new pointcloud into the model. | |
void | insertNewCloudFromRGBandDepth () |
Loads from rgb and depth file and inserts a new pointcloud into the model. | |
void | itemSelectionChanged (const QItemSelection &selected, const QItemSelection &deselected) |
Slot Called whenever the item selection_model_ changes. | |
void | mouseStyleChanged (QAction *new_style_action) |
Slot called when the mouse style selected in the GUI changes. | |
void | saveSelectedCloudToFile () |
Opens a file dialog and saves selected cloud to file. | |
void | selectAllItems (QStandardItem *item=0) |
Selects all items in the model. | |
void | setAxisVisibility (bool visible) |
This sets whether the CloudView for this project shows axes. | |
Signals | |
void | axisVisible (const bool axis_visible) |
void | deleteAvailable (bool can_delete) |
void | enqueueNewAction (AbstractTool *tool, ConstItemList data) |
void | modelChanged () |
Catch-all signal emitted whenever the model changes. | |
void | mouseStyleState (interactor_styles::INTERACTOR_STYLES) |
void | newCloudFromSelectionAvailable (bool can_create) |
Public Member Functions | |
void | enqueueToolAction (AbstractTool *tool) |
Takes tool object issues signal to work queue to take control of it. | |
const QString | getName () |
QItemSelectionModel * | getSelectionModel () |
Returns the selection model which is used for this project. | |
QUndoStack * | getUndoStack () |
void | insertNewCloudComposerItem (CloudComposerItem *new_item, QStandardItem *parent_item) |
Helper function which inserts the item into this model and makes connections for properties. | |
void | manipulateClouds (boost::shared_ptr< ManipulationEvent > manip_event) |
This is invoked to perform the manipulations specified on the model. | |
ProjectModel (QObject *parent=0) | |
ProjectModel (const ProjectModel &to_copy) | |
ProjectModel (QString project_name, QObject *parent=0) | |
void | setCloudView (CloudView *view) |
Sets the CloudView that this project is rendering in. | |
void | setName (QString new_name) |
Sets the name of the project using the horizontalHeaderItem. | |
void | setPointSelection (boost::shared_ptr< SelectionEvent > selected_event) |
This sets the selection for points which have been selected in the QVTKWindow. | |
virtual | ~ProjectModel () |
Private Member Functions | |
bool | onlyCloudItemsSelected () |
Checks to see if selection contains only CloudItem s. | |
void | setSelectedStyle (interactor_styles::INTERACTOR_STYLES style) |
Internal helper function for updating map. | |
Private Attributes | |
bool | axis_visible_ |
CloudView * | cloud_view_ |
QDir | last_directory_ |
Stores last directory used in file read/write operations. | |
QMap< QString, int > | name_to_type_map_ |
QMap< CloudItem *, pcl::PointIndices::Ptr > | selected_item_index_map_ |
Map which stores which cloud items and indices were selected in the selection_event_. | |
QMap < interactor_styles::INTERACTOR_STYLES, bool > | selected_style_map_ |
boost::shared_ptr< SelectionEvent > | selection_event_ |
Internal pointer storing the last selection event arriving from vtk. | |
QItemSelectionModel * | selection_model_ |
QUndoStack * | undo_stack_ |
WorkQueue * | work_queue_ |
QThread * | work_thread_ |
Definition at line 66 of file project_model.h.
pcl::cloud_composer::ProjectModel::ProjectModel | ( | QObject * | parent = 0 | ) |
Definition at line 12 of file project_model.cpp.
pcl::cloud_composer::ProjectModel::ProjectModel | ( | const ProjectModel & | to_copy | ) |
Definition at line 51 of file project_model.cpp.
pcl::cloud_composer::ProjectModel::~ProjectModel | ( | ) | [virtual] |
Definition at line 56 of file project_model.cpp.
pcl::cloud_composer::ProjectModel::ProjectModel | ( | QString | project_name, |
QObject * | parent = 0 |
||
) |
Definition at line 63 of file project_model.cpp.
void pcl::cloud_composer::ProjectModel::axisVisible | ( | const bool | axis_visible | ) | [signal] |
void pcl::cloud_composer::ProjectModel::clearSelection | ( | ) | [slot] |
Definition at line 435 of file project_model.cpp.
void pcl::cloud_composer::ProjectModel::commandCompleted | ( | CloudCommand * | command | ) | [slot] |
Definition at line 415 of file project_model.cpp.
void pcl::cloud_composer::ProjectModel::createNewCloudFromSelection | ( | ) | [slot] |
Creates a new cloud from the selected items and points.
Definition at line 505 of file project_model.cpp.
void pcl::cloud_composer::ProjectModel::deleteAvailable | ( | bool | can_delete | ) | [signal] |
void pcl::cloud_composer::ProjectModel::deleteSelectedItems | ( | ) | [slot] |
Definition at line 453 of file project_model.cpp.
void pcl::cloud_composer::ProjectModel::emitAllStateSignals | ( | ) | [slot] |
This emits all the state signals, which updates the GUI action button status (enabled/disabled)".
Definition at line 560 of file project_model.cpp.
void pcl::cloud_composer::ProjectModel::enqueueNewAction | ( | AbstractTool * | tool, |
ConstItemList | data | ||
) | [signal] |
void pcl::cloud_composer::ProjectModel::enqueueToolAction | ( | AbstractTool * | tool | ) |
Takes tool object issues signal to work queue to take control of it.
Definition at line 388 of file project_model.cpp.
const QString pcl::cloud_composer::ProjectModel::getName | ( | ) | [inline] |
Definition at line 78 of file project_model.h.
QItemSelectionModel* pcl::cloud_composer::ProjectModel::getSelectionModel | ( | ) | [inline] |
Returns the selection model which is used for this project.
Definition at line 89 of file project_model.h.
QUndoStack* pcl::cloud_composer::ProjectModel::getUndoStack | ( | ) | [inline] |
Definition at line 81 of file project_model.h.
void pcl::cloud_composer::ProjectModel::insertNewCloudComposerItem | ( | CloudComposerItem * | new_item, |
QStandardItem * | parent_item | ||
) |
Helper function which inserts the item into this model and makes connections for properties.
Definition at line 426 of file project_model.cpp.
void pcl::cloud_composer::ProjectModel::insertNewCloudFromFile | ( | ) | [slot] |
Loads from file and inserts a new pointcloud into the model.
Definition at line 158 of file project_model.cpp.
void pcl::cloud_composer::ProjectModel::insertNewCloudFromRGBandDepth | ( | ) | [slot] |
Loads from rgb and depth file and inserts a new pointcloud into the model.
Definition at line 212 of file project_model.cpp.
void pcl::cloud_composer::ProjectModel::itemSelectionChanged | ( | const QItemSelection & | selected, |
const QItemSelection & | deselected | ||
) | [slot] |
Slot Called whenever the item selection_model_ changes.
Definition at line 581 of file project_model.cpp.
void pcl::cloud_composer::ProjectModel::manipulateClouds | ( | boost::shared_ptr< ManipulationEvent > | manip_event | ) |
This is invoked to perform the manipulations specified on the model.
Definition at line 123 of file project_model.cpp.
void pcl::cloud_composer::ProjectModel::modelChanged | ( | ) | [signal] |
Catch-all signal emitted whenever the model changes.
void pcl::cloud_composer::ProjectModel::mouseStyleChanged | ( | QAction * | new_style_action | ) | [slot] |
Slot called when the mouse style selected in the GUI changes.
Definition at line 489 of file project_model.cpp.
void pcl::cloud_composer::ProjectModel::mouseStyleState | ( | interactor_styles::INTERACTOR_STYLES | ) | [signal] |
void pcl::cloud_composer::ProjectModel::newCloudFromSelectionAvailable | ( | bool | can_create | ) | [signal] |
bool pcl::cloud_composer::ProjectModel::onlyCloudItemsSelected | ( | ) | [private] |
Checks to see if selection contains only CloudItem s.
Definition at line 598 of file project_model.cpp.
void pcl::cloud_composer::ProjectModel::saveSelectedCloudToFile | ( | ) | [slot] |
Opens a file dialog and saves selected cloud to file.
Definition at line 345 of file project_model.cpp.
void pcl::cloud_composer::ProjectModel::selectAllItems | ( | QStandardItem * | item = 0 | ) | [slot] |
Selects all items in the model.
Definition at line 539 of file project_model.cpp.
void pcl::cloud_composer::ProjectModel::setAxisVisibility | ( | bool | visible | ) | [slot] |
This sets whether the CloudView for this project shows axes.
Definition at line 481 of file project_model.cpp.
void pcl::cloud_composer::ProjectModel::setCloudView | ( | CloudView * | view | ) |
Sets the CloudView that this project is rendering in.
Definition at line 84 of file project_model.cpp.
void pcl::cloud_composer::ProjectModel::setName | ( | QString | new_name | ) |
Sets the name of the project using the horizontalHeaderItem.
Definition at line 71 of file project_model.cpp.
void pcl::cloud_composer::ProjectModel::setPointSelection | ( | boost::shared_ptr< SelectionEvent > | selected_event | ) |
This sets the selection for points which have been selected in the QVTKWindow.
Definition at line 93 of file project_model.cpp.
void pcl::cloud_composer::ProjectModel::setSelectedStyle | ( | interactor_styles::INTERACTOR_STYLES | style | ) | [private] |
Internal helper function for updating map.
Definition at line 612 of file project_model.cpp.
bool pcl::cloud_composer::ProjectModel::axis_visible_ [private] |
Definition at line 196 of file project_model.h.
Definition at line 190 of file project_model.h.
QDir pcl::cloud_composer::ProjectModel::last_directory_ [private] |
Stores last directory used in file read/write operations.
Definition at line 193 of file project_model.h.
QMap<QString, int> pcl::cloud_composer::ProjectModel::name_to_type_map_ [private] |
Definition at line 186 of file project_model.h.
QMap<CloudItem*, pcl::PointIndices::Ptr > pcl::cloud_composer::ProjectModel::selected_item_index_map_ [private] |
Map which stores which cloud items and indices were selected in the selection_event_.
Definition at line 205 of file project_model.h.
QMap<interactor_styles::INTERACTOR_STYLES, bool> pcl::cloud_composer::ProjectModel::selected_style_map_ [private] |
Definition at line 197 of file project_model.h.
boost::shared_ptr<SelectionEvent> pcl::cloud_composer::ProjectModel::selection_event_ [private] |
Internal pointer storing the last selection event arriving from vtk.
Definition at line 203 of file project_model.h.
QItemSelectionModel* pcl::cloud_composer::ProjectModel::selection_model_ [private] |
Definition at line 185 of file project_model.h.
QUndoStack* pcl::cloud_composer::ProjectModel::undo_stack_ [private] |
Definition at line 187 of file project_model.h.
Definition at line 188 of file project_model.h.
QThread* pcl::cloud_composer::ProjectModel::work_thread_ [private] |
Definition at line 189 of file project_model.h.