fernandotonon/QtMeshEditor

View on GitHub
src/TransformOperator.cpp

Summary

Maintainability
Test Coverage
F
53%

Showing 18 of 21 total issues

TODO found
Open

//TODO - Create a grid to the nodes
Severity: Minor
Found in src/TransformOperator.cpp by fixme

TODO found
Open

// TODO move this node in the SelectionBoxObject class
Severity: Minor
Found in src/TransformOperator.cpp by fixme

TODO found
Open

//TODO scaling in selection CS
Severity: Minor
Found in src/TransformOperator.cpp by fixme

TODO found
Open

//TODO - Create a grid to the nodes
Severity: Minor
Found in src/TransformOperator.cpp by fixme

TODO found
Open

emit selectedOrientationChanged(SelectionSet::getSingleton()->getSelectionOrientation()); //TODO connect this signal
Severity: Minor
Found in src/TransformOperator.cpp by fixme

TODO found
Open

// TODO create a virtual class GizmoObject & add Rotation & Translation Gizmo to have only one interface
Severity: Minor
Found in src/TransformOperator.cpp by fixme

TODO found
Open

// TODO add scale gizmo
Severity: Minor
Found in src/TransformOperator.cpp by fixme

TODO found
Open

// TODO improve calculation to eliminate little approx when returning to 0 after 3D rotation
Severity: Minor
Found in src/TransformOperator.cpp by fixme

TODO found
Open

case TransformOperator::TS_ROTATE: // TODO change orientation when LOCAL mode is selected
Severity: Minor
Found in src/TransformOperator.cpp by fixme

TODO found
Open

//TODO - Create a grid to the nodes
Severity: Minor
Found in src/TransformOperator.cpp by fixme

TODO found
Open

//TODO - Create a grid to the nodes
Severity: Minor
Found in src/TransformOperator.cpp by fixme

TODO found
Open

// TODO add a GUI scale by Vector length between mStartPoint & current pos on ground plane
Severity: Minor
Found in src/TransformOperator.cpp by fixme

TODO found
Open

//TODO add a parent or local transform (get the orientation of object node)
Severity: Minor
Found in src/TransformOperator.cpp by fixme

TODO found
Open

emit selectedPositionChanged(SelectionSet::getSingleton()->getSelectionCenter()); //TODO connect this signal
Severity: Minor
Found in src/TransformOperator.cpp by fixme

TODO found
Open

// TODO add a control between 0 360° or -180 180°
Severity: Minor
Found in src/TransformOperator.cpp by fixme

The function setSelectedOrientation is never used.
Wontfix

void TransformOperator::setSelectedOrientation(const Ogre::Vector3& newOrientation)
Severity: Minor
Found in src/TransformOperator.cpp by cppcheck

Class TransformOperator does not have a operator= which is recommended since it has dynamic memory/resource allocation(s).
Open

m_pSelectionBox = new SelectionBoxObject(SELECTIONBOX_OBJECT_NAME);
Severity: Minor
Found in src/TransformOperator.cpp by cppcheck

The function setSelectedScale is never used.
Wontfix

void TransformOperator::setSelectedScale(const Ogre::Vector3& newScale)
Severity: Minor
Found in src/TransformOperator.cpp by cppcheck

The function setSelectedPosition is never used.
Wontfix

void TransformOperator::setSelectedPosition(const Ogre::Vector3& newPosition)
Severity: Minor
Found in src/TransformOperator.cpp by cppcheck

Function translateSelected argument 1 names different: declaration newPosition definition translation.
Open

void TransformOperator::translateSelected(const Ogre::Vector3& translation)
Severity: Minor
Found in src/TransformOperator.cpp and 1 other location by cppcheck
src/TransformOperator.h on lines 72..72

Class TransformOperator does not have a copy constructor which is recommended since it has dynamic memory/resource allocation(s).
Open

m_pSelectionBox = new SelectionBoxObject(SELECTIONBOX_OBJECT_NAME);
Severity: Minor
Found in src/TransformOperator.cpp by cppcheck

There are no issues that match your filters.

Category
Status