SoTreeNode.h
Go to the documentation of this file.00001 /* ======================================================================== 00002 * Copyright (C) 2000 Vienna University of Technology 00003 * 00004 * This library is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU Lesser General Public 00006 * License as published by the Free Software Foundation; either 00007 * version 2.1 of the License, or (at your option) any later version. 00008 * 00009 * This library is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 * Lesser General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU Lesser General Public 00015 * License along with this library; if not, write to the Free Software 00016 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00017 * 00018 * For further information please contact Dieter Schmalstieg under 00019 * <schmalstieg@ims.tuwien.ac.at> or write to Dieter Schmalstieg, 00020 * Vienna University of Technology, Favoritenstr. 9-11/188, A1040 Vienna, 00021 * Austria. 00022 * ======================================================================== 00023 * PROJECT: Studierstube 00024 * ======================================================================== */ 00025 00026 /* ======================================================================= */ 00027 /** Header file for API definitions of SoTreeNode 00028 * 00029 * @author Valerie Maquil 00030 * 00031 * $Header: 00032 * @file */ 00033 /* ======================================================================= */ 00034 00035 00036 #ifndef SoTreeNode_H 00037 #define SoTreeNode_H 00038 00039 #include "SoTreeBase.h" 00040 #include <stbapi/util/ivio.h> 00041 00042 #include <string> 00043 00044 00045 /** 00046 * implements a node of a conventional tree. The subnodes and leaves of this node 00047 * are specified in the part "subnodes" 00048 00049 All Parts 00050 <table> 00051 <tr> <td>Part Name</td><td>Part Type</td><td>Default Type</td><td>NULL Default</td></tr> 00052 <tr> <td>subnodes </td><td>SoNodeKitListPart</td><td>---</td><td>NO</td></tr> 00053 </table> 00054 00055 Extra Information for List Parts from Above Table 00056 00057 <table> 00058 <tr> <td>Part Name</td><td>Container Type</td><td>Possible Types</td></tr> 00059 <tr> <td>subnodes</td><td>SoGroup</td><td>SoTreeBase</td></tr> 00060 </table> 00061 00062 00063 @ingroup bot 00064 */ 00065 class BOTANIC_VIS_API SoTreeNode : public SoTreeBase 00066 { 00067 SO_KIT_HEADER(SoTreeNode); 00068 /** 00069 * subnodes and leaves of this node 00070 */ 00071 SO_KIT_CATALOG_ENTRY_HEADER(subnodes); 00072 00073 00074 public: 00075 /** 00076 * inventor class initialization 00077 */ 00078 static void initClass(); 00079 /** 00080 * constructor 00081 */ 00082 SoTreeNode(); 00083 00084 protected: 00085 /** 00086 * destructor 00087 */ 00088 virtual ~SoTreeNode(); 00089 00090 }; 00091 00092 //---------------------------------------------------------------------------- 00093 00094 #endif // SoTreeNode_H