#include <cutCommand.h>
Public Member Functions | |
CutCommand (CopyBufferPtr copy_buffer_ptr, SelectionPtr selection_ptr, CloudPtr cloud_ptr) | |
Constructor. | |
~CutCommand () | |
Destructor. | |
Protected Member Functions | |
void | execute () |
Moves the selected points to the copy buffer and removes them from the cloud. | |
void | undo () |
Returns the cut points to the cloud. This does not reconstruct the original ordering of the point cloud. | |
Private Member Functions | |
CutCommand () | |
Default constructor - object is not default constructable. | |
CutCommand (const CutCommand &) | |
Copy constructor - commands are non-copyable. | |
CutCommand & | operator= (const CutCommand &) |
Equal operator - commands are non-copyable. | |
Private Attributes | |
CloudPtr | cloud_ptr_ |
a pointer pointing to the cloud | |
CopyBufferPtr | copy_buffer_ptr_ |
a pointer pointing to the copy buffer. | |
CopyBuffer | cut_cloud_buffer_ |
The copy buffer which backs up the points removed from the cloud. | |
Selection | cut_selection_ |
SelectionPtr | selection_ptr_ |
A shared pointer pointing to the selection object. |
Definition at line 49 of file cutCommand.h.
CutCommand::CutCommand | ( | CopyBufferPtr | copy_buffer_ptr, |
SelectionPtr | selection_ptr, | ||
CloudPtr | cloud_ptr | ||
) |
Constructor.
copy_buffer_ptr | a shared pointer pointing to the copy buffer. |
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 cutCommand.cpp.
Destructor.
Definition at line 53 of file cutCommand.cpp.
CutCommand::CutCommand | ( | ) | [inline, private] |
Default constructor - object is not default constructable.
Definition at line 78 of file cutCommand.h.
CutCommand::CutCommand | ( | const CutCommand & | ) | [inline, private] |
Copy constructor - commands are non-copyable.
Definition at line 84 of file cutCommand.h.
void CutCommand::execute | ( | ) | [protected, virtual] |
Moves the selected points to the copy buffer and removes them from the cloud.
Implements Command.
Definition at line 58 of file cutCommand.cpp.
CutCommand& CutCommand::operator= | ( | const CutCommand & | ) | [inline, private] |
Equal operator - commands are non-copyable.
Definition at line 91 of file cutCommand.h.
void CutCommand::undo | ( | ) | [protected, virtual] |
Returns the cut points to the cloud. This does not reconstruct the original ordering of the point cloud.
Implements Command.
Definition at line 84 of file cutCommand.cpp.
CloudPtr CutCommand::cloud_ptr_ [private] |
a pointer pointing to the cloud
Definition at line 107 of file cutCommand.h.
CopyBufferPtr CutCommand::copy_buffer_ptr_ [private] |
a pointer pointing to the copy buffer.
Definition at line 110 of file cutCommand.h.
CopyBuffer CutCommand::cut_cloud_buffer_ [private] |
The copy buffer which backs up the points removed from the cloud.
Definition at line 97 of file cutCommand.h.
Selection CutCommand::cut_selection_ [private] |
a selection which backs up the index of the points cut in the original cloud.
Definition at line 101 of file cutCommand.h.
SelectionPtr CutCommand::selection_ptr_ [private] |
A shared pointer pointing to the selection object.
Definition at line 104 of file cutCommand.h.