Public Slots | Signals | Public Member Functions | Private Member Functions | Private Attributes
pcl::cloud_composer::ProjectModel Class Reference

#include <project_model.h>

List of all members.

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_
CloudViewcloud_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< SelectionEventselection_event_
 Internal pointer storing the last selection event arriving from vtk.
QItemSelectionModel * selection_model_
QUndoStack * undo_stack_
WorkQueuework_queue_
QThread * work_thread_

Detailed Description

Definition at line 66 of file project_model.h.


Constructor & Destructor Documentation

Definition at line 12 of file project_model.cpp.

Definition at line 51 of file project_model.cpp.

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.


Member Function Documentation

void pcl::cloud_composer::ProjectModel::axisVisible ( const bool  axis_visible) [signal]

Definition at line 435 of file project_model.cpp.

Definition at line 415 of file project_model.cpp.

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]

Definition at line 453 of file project_model.cpp.

This emits all the state signals, which updates the GUI action button status (enabled/disabled)".

Definition at line 560 of file project_model.cpp.

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.

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.

Loads from file and inserts a new pointcloud into the model.

Definition at line 158 of file project_model.cpp.

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.

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.

Checks to see if selection contains only CloudItem s.

Definition at line 598 of file project_model.cpp.

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.

This sets whether the CloudView for this project shows axes.

Definition at line 481 of file project_model.cpp.

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.

Internal helper function for updating map.

Definition at line 612 of file project_model.cpp.


Member Data Documentation

Definition at line 196 of file project_model.h.

Definition at line 190 of file project_model.h.

Stores last directory used in file read/write operations.

Definition at line 193 of file project_model.h.

Definition at line 186 of file project_model.h.

Map which stores which cloud items and indices were selected in the selection_event_.

Definition at line 205 of file project_model.h.

Definition at line 197 of file project_model.h.

Internal pointer storing the last selection event arriving from vtk.

Definition at line 203 of file project_model.h.

Definition at line 185 of file project_model.h.

Definition at line 187 of file project_model.h.

Definition at line 188 of file project_model.h.

Definition at line 189 of file project_model.h.


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


pcl
Author(s): Open Perception
autogenerated on Wed Aug 26 2015 15:43:48