Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

OSGGeoPropIndices.h

Go to the documentation of this file.
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 _OSGGEOPROPINDICES_H_
00041 #define _OSGGEOPROPINDICES_H_
00042 #ifdef __sgi
00043 #pragma once
00044 #endif
00045 
00046 #include <OSGGeoPropertyBase.h>
00047 
00048 OSG_BEGIN_NAMESPACE
00049 
00054 struct GeoIndicesUI32PropertyDesc : public GeoIndicesPropertyDesc
00055 {
00056     static FieldDescription *_desc[];
00057 
00058     /*---------------------------------------------------------------------*/
00062     static const Char8 *getTypeName (void) { return "GeoIndicesUI32";         }
00063     static const Char8 *getClassName(void) { return "GeoIndicesUI32Property"; }
00064     static const Char8 *getFieldName(void) { return "indices";                }
00065     static const Char8 *getGroupName(void) { return "GeoIndices";             }
00066 
00067     static InitContainerF     getInitMethod(void) { return NULL;            }
00068 
00069     static UInt32             getFormat    (void) { return GL_UNSIGNED_INT; }
00070     static UInt32             getFormatSize(void) { return sizeof(GLuint);  }
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 GeoIndices                 Inherited;
00082     typedef GeoIndices::PtrType        InheritedPtr;
00083 
00084     typedef GeoIndicesPropertyDesc     InheritedDesc;
00085 
00086     typedef MFUInt32                   StoredFieldType;
00087 
00088     typedef InheritedDesc::GenericType GenericType;
00089 
00090 #ifndef OSG_SUPPORT_NO_GEO_INTERFACE
00091     typedef GeoPropertyInterface<GeoIndicesPropertyDesc> Interface;
00092 #endif
00093 
00095 };
00096 
00097 #if !defined(OSG_DO_DOC)   // created as a dummy class, remove to prevent doubles
00098 typedef GeoProperty<GeoIndicesUI32PropertyDesc> GeoIndicesUI32;
00099 #endif
00100 
00101 
00102 #if !defined(OSG_COMPILEGEOPROPINDEXINST) && !defined(OSG_DO_DOC)
00103 OSG_FC_DLLEXPORT_DECL(GeoProperty,
00104                       GeoIndicesUI32PropertyDesc,
00105                       OSG_SYSTEMLIB_DLLTMPLMAPPING)
00106 #endif
00107 
00112 struct GeoIndicesUI16PropertyDesc : public GeoIndicesPropertyDesc
00113 {
00114     static FieldDescription *_desc[];
00115 
00116     /*---------------------------------------------------------------------*/
00120     static const Char8 *getTypeName (void) { return "GeoIndicesUI16";         }
00121     static const Char8 *getClassName(void) { return "GeoIndicesUI16Property"; }
00122     static const Char8 *getFieldName(void) { return "indices";                }
00123     static const Char8 *getGroupName(void) { return "GeoIndices";             }
00124 
00125     static InitContainerF     getInitMethod(void) { return NULL;              }
00126 
00127     static UInt32             getFormat    (void) { return GL_UNSIGNED_SHORT; }
00128     static UInt32             getFormatSize(void) { return sizeof(GLushort);  }
00129     static UInt32             getDimension (void) { return 1;                 }
00130     static UInt32             getStride    (void) { return 0;                 }
00131 
00132     static FieldDescription **getDesc      (void) { return _desc;             }
00133 
00135     /*---------------------------------------------------------------------*/
00139     typedef GeoIndices                 Inherited;
00140     typedef GeoIndices::PtrType        InheritedPtr;
00141 
00142     typedef GeoIndicesPropertyDesc     InheritedDesc;
00143 
00144     typedef MFUInt16                   StoredFieldType;
00145 
00146     typedef InheritedDesc::GenericType GenericType;
00147 
00148 #ifndef OSG_SUPPORT_NO_GEO_INTERFACE
00149     typedef GeoPropertyInterface<GeoIndicesPropertyDesc> Interface;
00150 #endif
00151 
00153 };
00154 
00155 #if !defined(OSG_DO_DOC)   // created as a dummy class, remove to prevent doubles
00156 typedef GeoProperty<GeoIndicesUI16PropertyDesc> GeoIndicesUI16;
00157 #endif
00158 
00159 
00160 #if !defined(OSG_COMPILEGEOPROPINDEXINST) && !defined(OSG_DO_DOC)
00161 OSG_FC_DLLEXPORT_DECL(GeoProperty,
00162                       GeoIndicesUI16PropertyDesc,
00163                       OSG_SYSTEMLIB_DLLTMPLMAPPING)
00164 #endif
00165 
00166 OSG_END_NAMESPACE
00167 
00168 #endif /* _OSGGEOPROPINDICES_H_ */

Generated on Thu Aug 25 04:05:23 2005 for OpenSG by  doxygen 1.4.3