00001 // userdata.hxx -- two classes for populating ssg user data slots in association 00002 // with our implimenation of random surface objects. 00003 // 00004 // Written by David Megginson, started December 2001. 00005 // 00006 // Copyright (C) 2001 - 2003 Curtis L. Olson - http://www.flightgear.org/~curt 00007 // 00008 // This program is free software; you can redistribute it and/or 00009 // modify it under the terms of the GNU General Public License as 00010 // published by the Free Software Foundation; either version 2 of the 00011 // License, or (at your option) any later version. 00012 // 00013 // This program is distributed in the hope that it will be useful, but 00014 // WITHOUT ANY WARRANTY; without even the implied warranty of 00015 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 // General Public License for more details. 00017 // 00018 // You should have received a copy of the GNU General Public License 00019 // along with this program; if not, write to the Free Software 00020 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00021 // 00022 // $Id: userdata_8hxx_source.html,v 1.3 2010/02/23 22:10:17 curt Exp $ 00023 00024 00025 #ifndef _SG_USERDATA_HXX 00026 #define _SG_USERDATA_HXX 00027 00028 #include <simgear/compiler.h> 00029 00030 #include <osg/Node> 00031 00032 class SGMatModel; 00033 class SGPropertyNode; 00034 00040 void sgUserDataInit(SGPropertyNode *p); 00041 00045 osg::Node* sgGetRandomModel(SGMatModel *obj); 00046 00047 namespace simgear 00048 { 00052 SGPropertyNode* getPropertyRoot(); 00053 } 00054 00055 #endif // _SG_USERDATA_HXX