Skip to content
Snippets Groups Projects
Commit 072a8e00 authored by Rainer Kartmann's avatar Rainer Kartmann
Browse files

Prefix private member variables with _

parent 0ac7864f
No related branches found
No related tags found
No related merge requests found
......@@ -92,12 +92,12 @@ namespace armarx
float DebugDrawerTopic::getPoseScale() const
{
return poseScale;
return _poseScale;
}
void DebugDrawerTopic::setPoseScale(float scale)
{
this->poseScale = scale;
this->_poseScale = scale;
}
void DebugDrawerTopic::setPoseScaleMeters()
......@@ -112,7 +112,7 @@ namespace armarx
void DebugDrawerTopic::shortSleep()
{
this->sleepFor(shortSleepDuration);
this->sleepFor(_shortSleepDuration);
}
void DebugDrawerTopic::clearAll(bool sleep)
......@@ -379,7 +379,7 @@ namespace armarx
void DebugDrawerTopic::drawPose(
const VisuID& id, const Eigen::Matrix4f& pose, bool ignoreLengthScale)
{
drawPose(id, pose, poseScale, ignoreLengthScale);
drawPose(id, pose, _poseScale, ignoreLengthScale);
}
void DebugDrawerTopic::drawPose(
......@@ -387,7 +387,7 @@ namespace armarx
const Eigen::Vector3f& pos, const Eigen::Quaternionf& ori,
bool ignoreLengthScale)
{
drawPose(id, math::Helpers::Pose(pos, ori), poseScale, ignoreLengthScale);
drawPose(id, math::Helpers::Pose(pos, ori), _poseScale, ignoreLengthScale);
}
void DebugDrawerTopic::drawPose(
......@@ -599,9 +599,11 @@ namespace armarx
}
}
void DebugDrawerTopic::drawTriMeshAsPolygons(const VisuID& id,
const VirtualRobot::TriMeshModel& trimesh,
const std::vector<DrawColor>& faceColorsInner, float lineWidth, const DrawColor& colorEdge, bool ignoreLengthScale)
void DebugDrawerTopic::drawTriMeshAsPolygons(
const VisuID& id,
const VirtualRobot::TriMeshModel& trimesh,
const std::vector<DrawColor>& faceColorsInner, float lineWidth,
const DrawColor& colorEdge, bool ignoreLengthScale)
{
if (!enabled())
{
......
......@@ -701,10 +701,10 @@ namespace armarx
float _lengthScale = 1;
/// Scaling for pose visualization (1 is good when drawing in millimeters).
float poseScale = 1;
float _poseScale = 1;
/// The duration for shortSleep().
std::chrono::milliseconds shortSleepDuration { 100 };
std::chrono::milliseconds _shortSleepDuration { 100 };
};
......@@ -721,7 +721,7 @@ namespace armarx
template <typename DurationT>
void DebugDrawerTopic::setShortSleepDuration(const DurationT& duration)
{
this->shortSleepDuration = std::chrono::duration_cast<std::chrono::milliseconds>(duration);
this->_shortSleepDuration = std::chrono::duration_cast<std::chrono::milliseconds>(duration);
}
template <class ColorT>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment