SoTreeLeaf.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 SoTreeLeaf 00028 * 00029 * @author Valerie Maquil 00030 * 00031 * $Header: 00032 * @file */ 00033 /* ======================================================================= */ 00034 00035 00036 #ifndef SoTreeLeaf_H 00037 #define SoTreeLeaf_H 00038 00039 #include "SoTreeBase.h" 00040 00041 #include <string> 00042 00043 00044 /** 00045 * implements a leaf of a conventional tree. The size of the leaf is specified by 00046 * the corresponding field. 00047 00048 00049 File Format / defaults: 00050 00051 @verbatim 00052 SoTreeLeaf { 00053 00054 SoSFFloat size 0 00055 00056 } 00057 @endverbatim 00058 00059 00060 @ingroup bot 00061 */ 00062 class BOTANIC_VIS_API SoTreeLeaf : public SoTreeBase 00063 { 00064 SO_KIT_HEADER(SoTreeLeaf); 00065 00066 00067 public: 00068 00069 /** 00070 * inventor class initialization 00071 */ 00072 static void initClass(); 00073 /** 00074 * constructor 00075 */ 00076 SoTreeLeaf(); 00077 00078 /** 00079 * specifies the size of this leaf 00080 */ 00081 SoSFFloat size; 00082 00083 protected: 00084 /** 00085 * destructor 00086 */ 00087 virtual ~SoTreeLeaf(); 00088 00089 00090 00091 }; 00092 00093 //---------------------------------------------------------------------------- 00094 00095 #endif // SoTreeLeaf_H