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

#include <transformCommand.h>

Inheritance diagram for TransformCommand:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 TransformCommand (ConstSelectionPtr selection_ptr, CloudPtr cloud_ptr, const float *matrix, float translate_x, float translate_y, float translate_z)
 Constructor.
 ~TransformCommand ()
 Destructor.

Protected Member Functions

void execute ()
 Executes the command.
void undo ()
 Undos the command.

Private Member Functions

void applyTransform (ConstSelectionPtr sel_ptr)
 Applies the transformation to the point values.
TransformCommandoperator= (const TransformCommand &)
 Equal operator - object is non-copyable.
 TransformCommand (const TransformCommand &)
 Copy constructor - object is not copy-constructable.

Private Attributes

float cloud_center_ [XYZ_SIZE]
 The center of the cloud used by this command.
float cloud_matrix_ [MATRIX_SIZE]
 The transform matrix of the cloud used by this command.
float cloud_matrix_inv_ [MATRIX_SIZE]
 The inverted transform matrix of the cloud used by this command.
CloudPtr cloud_ptr_
 a pointer poiting to the cloud
SelectionPtr internal_selection_ptr_
 An internal selection object used to perform undo.
ConstSelectionPtr selection_ptr_
 pointers to constructor params
float transform_matrix_ [MATRIX_SIZE]
float translate_x_
float translate_y_
float translate_z_

Detailed Description

Definition at line 49 of file transformCommand.h.


Constructor & Destructor Documentation

TransformCommand::TransformCommand ( ConstSelectionPtr  selection_ptr,
CloudPtr  cloud_ptr,
const float *  matrix,
float  translate_x,
float  translate_y,
float  translate_z 
)

Constructor.

Parameters:
selection_ptra shared pointer pointing to the selection object.
cloud_ptra shared pointer pointing to the cloud object.
matrixa (4x4) transform matrix following OpenGL's format.
Precondition:
Assumes the selection_ptr is valid, non-NULL.

Definition at line 45 of file transformCommand.cpp.

Destructor.

Definition at line 62 of file transformCommand.h.

TransformCommand::TransformCommand ( const TransformCommand ) [inline, private]

Copy constructor - object is not copy-constructable.

Definition at line 78 of file transformCommand.h.


Member Function Documentation

Applies the transformation to the point values.

Parameters:
sel_ptrA pointer to the selection object whose points are to be transformed.

Definition at line 132 of file transformCommand.cpp.

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

Executes the command.

Implements Command.

Definition at line 64 of file transformCommand.cpp.

TransformCommand& TransformCommand::operator= ( const TransformCommand ) [inline, private]

Equal operator - object is non-copyable.

Definition at line 84 of file transformCommand.h.

void TransformCommand::undo ( ) [protected, virtual]

Undos the command.

Implements Command.

Definition at line 73 of file transformCommand.cpp.


Member Data Documentation

The center of the cloud used by this command.

Definition at line 116 of file transformCommand.h.

The transform matrix of the cloud used by this command.

Definition at line 111 of file transformCommand.h.

The inverted transform matrix of the cloud used by this command.

Definition at line 113 of file transformCommand.h.

a pointer poiting to the cloud

Definition at line 108 of file transformCommand.h.

An internal selection object used to perform undo.

Definition at line 96 of file transformCommand.h.

pointers to constructor params

Definition at line 105 of file transformCommand.h.

the transform matrix to be used to compute the new coordinates of the selected points

Definition at line 100 of file transformCommand.h.

Definition at line 102 of file transformCommand.h.

Definition at line 102 of file transformCommand.h.

Definition at line 102 of file transformCommand.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:54