00001 // SGText.hxx - Manage text in the scene graph 00002 // Copyright (C) 2009 Torsten Dreyer Torsten (_at_) t3r *dot* de 00003 // 00004 // This program is free software; you can redistribute it and/or 00005 // modify it under the terms of the GNU General Public License as 00006 // published by the Free Software Foundation; either version 2 of the 00007 // License, or (at your option) any later version. 00008 // 00009 // This program is distributed in the hope that it will be useful, but 00010 // WITHOUT ANY WARRANTY; without even the implied warranty of 00011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 // General Public License for more details. 00013 // 00014 // You should have received a copy of the GNU General Public License 00015 // along with this program; if not, write to the Free Software 00016 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00017 // 00018 00019 #ifndef _SGTEXT_HXX 00020 #define _SGTEXT_HXX 1 00021 00022 #include <osgDB/ReaderWriter> 00023 #include <osg/Group> 00024 00025 #include <simgear/props/props.hxx> 00026 00027 class SGText : public osg::NodeCallback 00028 { 00029 public: 00030 static osg::Node * appendText(const SGPropertyNode* configNode, SGPropertyNode* modelRoot, const osgDB::ReaderWriter::Options* options); 00031 private: 00032 class UpdateCallback; 00033 }; 00034 00035 #endif 00036