Added Action class NodeVisitor that supports osgPresentation nodes.

This commit is contained in:
Robert Osfield
2013-09-04 10:33:11 +00:00
parent 3c106e4dd7
commit 9f5e131203
19 changed files with 354 additions and 79 deletions

View File

@@ -20,7 +20,25 @@ using namespace osgPresentation;
bool Text::load()
{
OSG_NOTICE<<"Not implemented yet"<<std::endl;
OSG_NOTICE<<"Text::load() Not implemented yet"<<std::endl;
std::string value;
getPropertyValue("string", value);
std::string font("arial.ttf");
getPropertyValue("font", font);
double width = 1.0;
getPropertyValue("width", width);
double character_size = 0.06;
getPropertyValue("character_size", character_size);
OSG_NOTICE<<"Text : string = "<<value<<std::endl;
OSG_NOTICE<<" font = "<<font<<std::endl;
OSG_NOTICE<<" width = "<<width<<std::endl;
OSG_NOTICE<<" character_size = "<<character_size<<std::endl;
return false;
}