Skip to content
Snippets Groups Projects
Commit 666b8185 authored by simeval's avatar simeval
Browse files

add addLandmark and deleteLandmark functions.

parent d72721aa
No related branches found
No related tags found
No related merge requests found
......@@ -143,6 +143,15 @@ typedef double Color [4];
/// \param input configuration : Double[7] new configuration.
boolean applyConfiguration(in string nodeName, in Transform configuration) ;
/// Add Landmark at the center of a node (x=blue, y=green, z=red).
/// \param input nodeName : name of the node
/// \param input size : lenght of axises.
boolean addLandmark(in string nodeName, in float size) ;
/// delete Landmark of a node.
/// \param input nodeName : name of the node
boolean deleteLandmark(in string nodeName) ;
/// Change the visibility of a node. If this node is a group node, visibility mode will be apply to all children.
/// \param input nodeName : name of the node.
/// \param input visibilityMode : visibility mode can be "ON", "OFF" or "ALWAYS_ON_TOP".
......
......@@ -551,6 +551,29 @@ bool GraphicalInterface::applyConfiguration(const char* nodeNameCorba, const dou
}
}
bool GraphicalInterface::addLandmark(const char* nodeNameCorba, float size)
{
const std::string nodeName(nodeNameCorba);
if (nodes_.find(nodeName) == nodes_.end()) {
std::cout << "Node \"" << nodeName << "\" doesn't exist." << std::endl;
return false;
}
nodes_[nodeName]->addLandmark(size);
return true;
}
bool GraphicalInterface::deleteLandmark(const char* nodeNameCorba)
{
const std::string nodeName(nodeNameCorba);
if (nodes_.find(nodeName) == nodes_.end()) {
std::cout << "Node \"" << nodeName << "\" doesn't exist." << std::endl;
return false;
}
nodes_[nodeName]->deleteLandmark();
return true;
}
bool GraphicalInterface::setVisibility(const char* nodeNameCorba, const char* visibilityModeCorba)
{
const std::string nodeName(nodeNameCorba);
......
......@@ -117,6 +117,9 @@ public:
virtual bool applyConfiguration(const char* nodeNameCorba, const double* configuration) ;
virtual bool addLandmark(const char* nodeNameCorba, float size);
virtual bool deleteLandmark(const char* nodeNameCorba);
virtual bool setVisibility(const char* nodeNameCorba, const char* visibilityModeCorba) ;
virtual bool setWireFrameMode(const char* nodeNameCorba, const char* wireFrameModeCorba) ;
virtual bool setLightingMode(const char* nodeNameCorba, const char* lightingModeCorba) ;
......
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