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

#include <cutCommand.h>

Inheritance diagram for CutCommand:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

Definition at line 49 of file cutCommand.h.


Constructor & Destructor Documentation

CutCommand::CutCommand ( CopyBufferPtr  copy_buffer_ptr,
SelectionPtr  selection_ptr,
CloudPtr  cloud_ptr 
)

Constructor.

Parameters:
copy_buffer_ptra shared pointer pointing to the copy buffer.
selection_ptra shared pointer pointing to the selection object.
cloud_ptra 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.


Member Function Documentation

void CutCommand::execute ( ) [protected, virtual]

Moves the selected points to the copy buffer and removes them from the cloud.

Precondition:
Assumes the constructor was given appropriate pointers to the required objects.

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.


Member Data Documentation

a pointer pointing to the cloud

Definition at line 107 of file cutCommand.h.

a pointer pointing to the copy buffer.

Definition at line 110 of file cutCommand.h.

The copy buffer which backs up the points removed from the cloud.

Definition at line 97 of file cutCommand.h.

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

Definition at line 101 of file cutCommand.h.

A shared pointer pointing to the selection object.

Definition at line 104 of file cutCommand.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