#include <transformCommand.h>
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. | |
TransformCommand & | operator= (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_ |
Definition at line 49 of file transformCommand.h.
TransformCommand::TransformCommand | ( | ConstSelectionPtr | selection_ptr, |
CloudPtr | cloud_ptr, | ||
const float * | matrix, | ||
float | translate_x, | ||
float | translate_y, | ||
float | translate_z | ||
) |
Constructor.
selection_ptr | a shared pointer pointing to the selection object. |
cloud_ptr | a shared pointer pointing to the cloud object. |
matrix | a (4x4) transform matrix following OpenGL's format. |
Definition at line 45 of file transformCommand.cpp.
TransformCommand::~TransformCommand | ( | ) | [inline] |
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.
void TransformCommand::applyTransform | ( | ConstSelectionPtr | sel_ptr | ) | [private] |
Applies the transformation to the point values.
sel_ptr | A pointer to the selection object whose points are to be transformed. |
Definition at line 132 of file transformCommand.cpp.
void TransformCommand::execute | ( | ) | [protected, virtual] |
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] |
float TransformCommand::cloud_center_[XYZ_SIZE] [private] |
The center of the cloud used by this command.
Definition at line 116 of file transformCommand.h.
float TransformCommand::cloud_matrix_[MATRIX_SIZE] [private] |
The transform matrix of the cloud used by this command.
Definition at line 111 of file transformCommand.h.
float TransformCommand::cloud_matrix_inv_[MATRIX_SIZE] [private] |
The inverted transform matrix of the cloud used by this command.
Definition at line 113 of file transformCommand.h.
CloudPtr TransformCommand::cloud_ptr_ [private] |
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.
float TransformCommand::transform_matrix_[MATRIX_SIZE] [private] |
the transform matrix to be used to compute the new coordinates of the selected points
Definition at line 100 of file transformCommand.h.
float TransformCommand::translate_x_ [private] |
Definition at line 102 of file transformCommand.h.
float TransformCommand::translate_y_ [private] |
Definition at line 102 of file transformCommand.h.
float TransformCommand::translate_z_ [private] |
Definition at line 102 of file transformCommand.h.