#include <deleteCommand.h>
Public Member Functions | |
DeleteCommand (SelectionPtr selection_ptr, CloudPtr cloud_ptr) | |
Constructor. | |
~DeleteCommand () | |
Destructor. | |
Protected Member Functions | |
void | execute () |
Removes the selected points and maintains a backup for undo. | |
void | undo () |
Returns the deleted points to the cloud, Order is not preserved. | |
Private Member Functions | |
DeleteCommand () | |
Default constructor - object is not default constructable. | |
DeleteCommand (const DeleteCommand &c) | |
Copy constructor - commands are non-copyable. | |
DeleteCommand & | operator= (const DeleteCommand &) |
Equal operator - commands are non-copyable. | |
Private Attributes | |
CloudPtr | cloud_ptr_ |
a pointer pointing to the cloud | |
CopyBuffer | deleted_cloud_buffer_ |
a copy buffer which backs up the points deleted from the cloud. | |
Selection | deleted_selection_ |
SelectionPtr | selection_ptr_ |
A shared pointer pointing to the selection object. |
Definition at line 49 of file deleteCommand.h.
DeleteCommand::DeleteCommand | ( | SelectionPtr | selection_ptr, |
CloudPtr | cloud_ptr | ||
) |
Constructor.
selection_ptr | A shared pointer pointing to the selection object. |
cloud_ptr | A shared pointer pointing to the cloud object. |
Definition at line 45 of file deleteCommand.cpp.
DeleteCommand::~DeleteCommand | ( | ) | [inline] |
Destructor.
Definition at line 58 of file deleteCommand.h.
DeleteCommand::DeleteCommand | ( | ) | [inline, private] |
Default constructor - object is not default constructable.
Definition at line 73 of file deleteCommand.h.
DeleteCommand::DeleteCommand | ( | const DeleteCommand & | c | ) | [inline, private] |
Copy constructor - commands are non-copyable.
Definition at line 79 of file deleteCommand.h.
void DeleteCommand::execute | ( | ) | [protected, virtual] |
Removes the selected points and maintains a backup for undo.
Implements Command.
Definition at line 50 of file deleteCommand.cpp.
DeleteCommand& DeleteCommand::operator= | ( | const DeleteCommand & | ) | [inline, private] |
Equal operator - commands are non-copyable.
Definition at line 87 of file deleteCommand.h.
void DeleteCommand::undo | ( | ) | [protected, virtual] |
Returns the deleted points to the cloud, Order is not preserved.
Implements Command.
Definition at line 73 of file deleteCommand.cpp.
CloudPtr DeleteCommand::cloud_ptr_ [private] |
a pointer pointing to the cloud
Definition at line 103 of file deleteCommand.h.
a copy buffer which backs up the points deleted from the cloud.
Definition at line 93 of file deleteCommand.h.
Selection DeleteCommand::deleted_selection_ [private] |
a selection which backs up the index of the deleted points in the original cloud.
Definition at line 97 of file deleteCommand.h.
SelectionPtr DeleteCommand::selection_ptr_ [private] |
A shared pointer pointing to the selection object.
Definition at line 100 of file deleteCommand.h.