00001 /*---------------------------------------------------------------------------*\ 00002 * OpenSG * 00003 * * 00004 * * 00005 * Copyright (C) 2000-2002 by the OpenSG Forum * 00006 * * 00007 * www.opensg.org * 00008 * * 00009 * contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de * 00010 * * 00011 \*---------------------------------------------------------------------------*/ 00012 /*---------------------------------------------------------------------------*\ 00013 * License * 00014 * * 00015 * This library is free software; you can redistribute it and/or modify it * 00016 * under the terms of the GNU Library General Public License as published * 00017 * by the Free Software Foundation, version 2. * 00018 * * 00019 * This library is distributed in the hope that it will be useful, but * 00020 * WITHOUT ANY WARRANTY; without even the implied warranty of * 00021 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * 00022 * Library General Public License for more details. * 00023 * * 00024 * You should have received a copy of the GNU Library General Public * 00025 * License along with this library; if not, write to the Free Software * 00026 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * 00027 * * 00028 \*---------------------------------------------------------------------------*/ 00029 /*---------------------------------------------------------------------------*\ 00030 * Changes * 00031 * * 00032 * * 00033 * * 00034 * * 00035 * * 00036 * * 00037 \*---------------------------------------------------------------------------*/ 00038 00039 00040 #ifndef _OSGGEOPROPPTYPES_H_ 00041 #define _OSGGEOPROPPTYPES_H_ 00042 #ifdef __sgi 00043 #pragma once 00044 #endif 00045 00046 #include <OSGGeoPropertyBase.h> 00047 00048 OSG_BEGIN_NAMESPACE 00049 00054 struct GeoPTypesUI8PropertyDesc : public GeoPTypesPropertyDesc 00055 { 00056 static FieldDescription *_desc[]; 00057 00058 /*---------------------------------------------------------------------*/ 00062 static const Char8 *getTypeName (void) { return "GeoPTypesUI8"; } 00063 static const Char8 *getClassName(void) { return "GeoPTypesUI8Property"; } 00064 static const Char8 *getFieldName(void) { return "types"; } 00065 static const Char8 *getGroupName(void) { return "GeoPTypes"; } 00066 00067 static InitContainerF getInitMethod(void) { return NULL; } 00068 00069 static UInt32 getFormat (void) { return GL_UNSIGNED_BYTE; } 00070 static UInt32 getFormatSize(void) { return sizeof(GLubyte); } 00071 static UInt32 getDimension (void) { return 1; } 00072 static UInt32 getStride (void) { return 0; } 00073 00074 static FieldDescription **getDesc (void) { return _desc; } 00075 00077 /*---------------------------------------------------------------------*/ 00081 typedef GeoPTypes Inherited; 00082 typedef GeoPTypes::PtrType InheritedPtr; 00083 00084 typedef GeoPTypesPropertyDesc InheritedDesc; 00085 00086 typedef MFUInt8 StoredFieldType; 00087 typedef InheritedDesc::GenericType GenericType; 00088 00089 #ifndef OSG_SUPPORT_NO_GEO_INTERFACE 00090 typedef GeoPropertyInterface<GeoPTypesPropertyDesc> Interface; 00091 #endif 00092 00093 }; 00094 00095 #if !defined(OSG_DO_DOC) // created as a dummy class, remove to prevent doubles 00096 typedef GeoProperty<GeoPTypesUI8PropertyDesc> GeoPTypesUI8; 00097 #endif 00098 00099 00100 #if !defined(OSG_COMPILEGEOPROPPTYPEINST) && !defined(OSG_DO_DOC) 00101 OSG_FC_DLLEXPORT_DECL(GeoProperty, 00102 GeoPTypesUI8PropertyDesc, 00103 OSG_SYSTEMLIB_DLLTMPLMAPPING) 00104 #endif 00105 00106 OSG_END_NAMESPACE 00107 00108 #endif /* _OSGGEOPROPPTYPES_H_ */
1.4.3