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

Add object.alpha()

parent 1a77b79a
No related branches found
No related tags found
2 merge requests!140armem/dev -> master,!133Add Object Memory with Class and Instance Segments
......@@ -21,6 +21,15 @@ namespace armarx::viz
armarx::PackageFileLocation file = info.simoxXML();
return this->file(file.package, file.relativePath);
}
Object& Object::alpha(float alpha)
{
if (alpha < 1)
{
overrideColor(simox::Color::white().with_alpha(alpha));
}
return *this;
}
}
......@@ -38,7 +38,7 @@ namespace Eigen
namespace armarx
{
///@see <RobotAPI/libraries/ArmarXObjects/ObjectID.h>
// <RobotAPI/libraries/ArmarXObjects/ObjectID.h>
class ObjectID;
}
......@@ -479,6 +479,7 @@ namespace armarx::viz
Object& fileByObjectFinder(const armarx::ObjectID& objectID, const std::string& objectsPackage = DefaultObjectsPackage);
Object& fileByObjectFinder(const std::string& objectID, const std::string& objectsPackage = DefaultObjectsPackage);
Object& alpha(float alpha);
Object& useCollisionModel()
{
......
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