Rename cryptic variables.

This commit is contained in:
Aesylwinn 2016-05-13 12:55:35 -04:00
parent 32ba5bf8b8
commit f8b43b2a64
3 changed files with 10 additions and 10 deletions

View file

@ -36,7 +36,7 @@ namespace CSVRender
{ {
if (PathgridTag* tag = dynamic_cast<PathgridTag*>(hit.tag.get())) if (PathgridTag* tag = dynamic_cast<PathgridTag*>(hit.tag.get()))
{ {
unsigned short node = SceneUtil::getPathgridNode(static_cast<unsigned short>(hit.i0)); unsigned short node = SceneUtil::getPathgridNode(static_cast<unsigned short>(hit.index0));
tag->getPathgrid()->toggleSelected(node); tag->getPathgrid()->toggleSelected(node);
} }
} }
@ -54,7 +54,7 @@ namespace CSVRender
mLastId = tag->getPathgrid()->getId(); mLastId = tag->getPathgrid()->getId();
} }
unsigned short node = SceneUtil::getPathgridNode(static_cast<unsigned short>(hit.i0)); unsigned short node = SceneUtil::getPathgridNode(static_cast<unsigned short>(hit.index0));
tag->getPathgrid()->toggleSelected(node); tag->getPathgrid()->toggleSelected(node);
return; return;
@ -86,7 +86,7 @@ namespace CSVRender
if (PathgridTag* tag = dynamic_cast<PathgridTag*>(hit.tag.get())) if (PathgridTag* tag = dynamic_cast<PathgridTag*>(hit.tag.get()))
{ {
mDragMode = DragMode_Edge; mDragMode = DragMode_Edge;
mFromNode = SceneUtil::getPathgridNode(static_cast<unsigned short>(hit.i0)); mFromNode = SceneUtil::getPathgridNode(static_cast<unsigned short>(hit.index0));
return true; return true;
} }
} }

View file

@ -501,9 +501,9 @@ CSVRender::WorldspaceHitResult CSVRender::WorldspaceWidget::mousePick (const QPo
WorldspaceHitResult hit = { true, tag, 0, 0, 0, intersection.getWorldIntersectPoint() }; WorldspaceHitResult hit = { true, tag, 0, 0, 0, intersection.getWorldIntersectPoint() };
if (intersection.indexList.size() >= 3) if (intersection.indexList.size() >= 3)
{ {
hit.i0 = intersection.indexList[0]; hit.index0 = intersection.indexList[0];
hit.i1 = intersection.indexList[1]; hit.index1 = intersection.indexList[1];
hit.i2 = intersection.indexList[2]; hit.index2 = intersection.indexList[2];
} }
return hit; return hit;
} }
@ -513,9 +513,9 @@ CSVRender::WorldspaceHitResult CSVRender::WorldspaceWidget::mousePick (const QPo
WorldspaceHitResult hit = { true, 0, 0, 0, 0, intersection.getWorldIntersectPoint() }; WorldspaceHitResult hit = { true, 0, 0, 0, 0, intersection.getWorldIntersectPoint() };
if (intersection.indexList.size() >= 3) if (intersection.indexList.size() >= 3)
{ {
hit.i0 = intersection.indexList[0]; hit.index0 = intersection.indexList[0];
hit.i1 = intersection.indexList[1]; hit.index1 = intersection.indexList[1];
hit.i2 = intersection.indexList[2]; hit.index2 = intersection.indexList[2];
} }
return hit; return hit;
} }

View file

@ -40,7 +40,7 @@ namespace CSVRender
{ {
bool hit; bool hit;
osg::ref_ptr<TagBase> tag; osg::ref_ptr<TagBase> tag;
unsigned int i0, i1, i2; unsigned int index0, index1, index2; // indices of mesh vertices
osg::Vec3d worldPos; osg::Vec3d worldPos;
}; };