All: Reformat according to new standard
This commit is contained in:
committed by
Kacper Donat
parent
ef997f2259
commit
9fe130cd73
@@ -181,8 +181,7 @@ SoSeparator* SoFCPlacementIndicatorKit::createAxes()
|
||||
auto sep = new SoSeparator;
|
||||
|
||||
auto pcTranslate = new SoTransform();
|
||||
pcTranslate->translation.setValue(
|
||||
Base::convertTo<SbVec3f>((cylinderOffset + offset) * axis));
|
||||
pcTranslate->translation.setValue(Base::convertTo<SbVec3f>((cylinderOffset + offset) * axis));
|
||||
pcTranslate->rotation.setValue(Base::convertTo<SbRotation>(rotation));
|
||||
|
||||
auto pcArrowShaft = new SoCylinder();
|
||||
@@ -247,28 +246,24 @@ SoSeparator* SoFCPlacementIndicatorKit::createAxes()
|
||||
auto sep = new SoSeparator;
|
||||
|
||||
if (axes.getValue() & X) {
|
||||
sep->addChild(createAxis("X",
|
||||
Base::Vector3d::UnitX,
|
||||
ViewParams::instance()->getAxisXColor(),
|
||||
xyOffset));
|
||||
sep->addChild(
|
||||
createAxis("X", Base::Vector3d::UnitX, ViewParams::instance()->getAxisXColor(), xyOffset)
|
||||
);
|
||||
}
|
||||
|
||||
if (axes.getValue() & Y) {
|
||||
sep->addChild(createAxis("Y",
|
||||
Base::Vector3d::UnitY,
|
||||
ViewParams::instance()->getAxisYColor(),
|
||||
xyOffset));
|
||||
sep->addChild(
|
||||
createAxis("Y", Base::Vector3d::UnitY, ViewParams::instance()->getAxisYColor(), xyOffset)
|
||||
);
|
||||
}
|
||||
|
||||
if (axes.getValue() & Z) {
|
||||
double zOffset = (parts.getValue() & PlaneIndicator)
|
||||
? planeIndicatorMargin
|
||||
: axisMargin + additionalAxisMargin;
|
||||
double zOffset = (parts.getValue() & PlaneIndicator) ? planeIndicatorMargin
|
||||
: axisMargin + additionalAxisMargin;
|
||||
|
||||
sep->addChild(createAxis("Z",
|
||||
Base::Vector3d::UnitZ,
|
||||
ViewParams::instance()->getAxisZColor(),
|
||||
zOffset));
|
||||
sep->addChild(
|
||||
createAxis("Z", Base::Vector3d::UnitZ, ViewParams::instance()->getAxisZColor(), zOffset)
|
||||
);
|
||||
}
|
||||
|
||||
return sep;
|
||||
|
||||
Reference in New Issue
Block a user