Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
DeleteCommand Class Reference

#include <deleteCommand.h>

Inheritance diagram for DeleteCommand:
Inheritance graph
[legend]

List of all members.

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.
DeleteCommandoperator= (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.

Detailed Description

Definition at line 49 of file deleteCommand.h.


Constructor & Destructor Documentation

DeleteCommand::DeleteCommand ( SelectionPtr  selection_ptr,
CloudPtr  cloud_ptr 
)

Constructor.

Parameters:
selection_ptrA shared pointer pointing to the selection object.
cloud_ptrA shared pointer pointing to the cloud object.

Definition at line 45 of file deleteCommand.cpp.

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.


Member Function Documentation

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.


Member Data Documentation

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.

a selection which backs up the index of the deleted points in the original cloud.

Definition at line 97 of file deleteCommand.h.

A shared pointer pointing to the selection object.

Definition at line 100 of file deleteCommand.h.


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


pcl
Author(s): Open Perception
autogenerated on Wed Aug 26 2015 15:38:50