Commit b2b31ad5 authored by Emmanuel Promayon's avatar Emmanuel Promayon

FIXED code cleaning (comments)

parent b95533f2
......@@ -62,7 +62,7 @@ Frame::Frame(vtkSmartPointer<vtkTransform> transform, Frame* parentFrame) {
}
// Private help mehtod
// ------------------------- initAttributes ------------------------
void Frame::initAttributes() {
frameName = "Frame" + QString::number(nbTotalFrames);
nbTotalFrames ++;
......@@ -85,7 +85,7 @@ void Frame::initAttributes() {
}
// ------------------- Default Destructor ----------------------------------
// ------------------- Default Destructor ------------------------
Frame::~Frame() {
if (parentFrame != nullptr) {
......@@ -102,7 +102,6 @@ Frame::~Frame() {
}
// -----------------* Hierarchy accessors / Modifyers *-----------------
// ------------------- getFrameName ----------------------------------
const QString& Frame::getFrameName() const {
return frameName;
......@@ -168,7 +167,7 @@ void Frame::setParentFrame(InterfaceFrame* parent, bool keepTransform) {
transformWorldToMe->Update();
if (parentFrame != nullptr) {
transformWorldToMe->Concatenate(this->parentFrame->getTransformFromWorld());
transformWorldToMe->Concatenate(parentFrame->getTransformFromWorld());
transformWorldToMe->Update();
parentFrame->addFrameChild(this);
}
......@@ -182,12 +181,13 @@ void Frame::addFrameChild(InterfaceFrame* frame) {
}
}
// ------------------- removeFrameChild ----------------------------------
void Frame::removeFrameChild(InterfaceFrame* frame) {
if (childrenFrame.indexOf(frame) != -1) {
childrenFrame.remove(childrenFrame.indexOf(frame));
}
}
// -----------------* Transforms accessors / Modifyers *-----------------
// ------------------- getTransformFromWorld ----------------------------------
const vtkSmartPointer<vtkTransform> Frame::getTransformFromWorld() const {
return transformWorldToMe;
......@@ -352,9 +352,7 @@ void Frame::setTransformRotationVTK(double aroundX, double aroundY, double aroun
representationTransformFilter->Update();
}
// ------------------- getFrameActor ----------------------------------
// ------------------- getFrameAxisActor ----------------------------------
vtkSmartPointer<vtkAxesActor> Frame::getFrameAxisActor() {
if (axes == nullptr) {
......@@ -401,7 +399,7 @@ vtkSmartPointer<vtkAxesActor> Frame::getFrameAxisActor() {
// ------------------- setFrameVisibility ----------------------------------
void Frame::setFrameVisibility(Viewer* viewer, bool visible) {
QMap<Viewer*, bool>::iterator it = this->frameViewers.find(viewer);
QMap<Viewer*, bool>::iterator it = frameViewers.find(viewer);
if (it == frameViewers.end()) {
frameViewers.insert(viewer, visible);
......@@ -412,9 +410,9 @@ void Frame::setFrameVisibility(Viewer* viewer, bool visible) {
}
// ------------------- setFrameVisibility ----------------------------------
// ------------------- getFrameVisibility ----------------------------------
bool Frame::getFrameVisibility(Viewer* viewer) const {
QMap<Viewer*, bool>::const_iterator it = this->frameViewers.find(viewer);
QMap<Viewer*, bool>::const_iterator it = frameViewers.find(viewer);
if (it == frameViewers.end()) {
return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment