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

OSGGeoPropPLengths.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 _OSGGEOPROPPLENGTHS_H_
00041 #define _OSGGEOPROPPLENGTHS_H_
00042 #ifdef __sgi
00043 #pragma once
00044 #endif
00045 
00046 //---------------------------------------------------------------------------
00047 //  Includes
00048 //---------------------------------------------------------------------------
00049 
00050 #include <OSGGeoPropertyBase.h>
00051 
00052 OSG_BEGIN_NAMESPACE
00053 
00058 struct GeoPLengthsUI32PropertyDesc : public GeoPLengthsPropertyDesc
00059 {
00060     static FieldDescription *_desc[];
00061 
00062     /*---------------------------------------------------------------------*/
00066     static const Char8 *getTypeName (void) { return "GeoPLengthsUI32";        }
00067     static const Char8 *getClassName(void) { return "GeoPLengthsUI32Property";}
00068     static const Char8 *getFieldName(void) { return "lengths";                }
00069     static const Char8 *getGroupName(void) { return "GeoPLengths";            }
00070 
00071     static InitContainerF     getInitMethod(void) { return NULL;            }
00072 
00073     static UInt32             getFormat    (void) { return GL_UNSIGNED_INT; }
00074     static UInt32             getFormatSize(void) { return sizeof(GLuint);  }
00075     static UInt32             getDimension (void) { return 1;               }
00076     static UInt32             getStride    (void) { return 0;               }
00077 
00078     static FieldDescription **getDesc      (void) { return _desc;           }
00079     
00081     /*---------------------------------------------------------------------*/
00084     typedef GeoPLengths                Inherited;
00085     typedef GeoPLengths::PtrType       InheritedPtr;
00086 
00087     typedef GeoPLengthsPropertyDesc    InheritedDesc;
00088 
00089     typedef MFUInt32                   StoredFieldType;
00090 
00091     typedef InheritedDesc::GenericType GenericType;
00092 
00093 #ifndef OSG_SUPPORT_NO_GEO_INTERFACE
00094     typedef GeoPropertyInterface<GeoPLengthsPropertyDesc> Interface;
00095 #endif    
00096 
00098 };
00099 
00100 #if !defined(OSG_DO_DOC)   // created as a dummy class, remove to prevent doubles
00101 typedef GeoProperty<GeoPLengthsUI32PropertyDesc> GeoPLengthsUI32;
00102 #endif
00103 
00104 #if !defined(OSG_COMPILEGEOPROPPLENGTHINST) && !defined(OSG_DO_DOC)
00105 OSG_FC_DLLEXPORT_DECL(GeoProperty,
00106                       GeoPLengthsUI32PropertyDesc,
00107                       OSG_SYSTEMLIB_DLLTMPLMAPPING)
00108 #endif
00109 
00114 struct GeoPLengthsUI16PropertyDesc : public GeoPLengthsPropertyDesc
00115 {
00116     static FieldDescription *_desc[];
00117 
00118     /*---------------------------------------------------------------------*/
00122     static const Char8 *getTypeName (void) { return "GeoPLengthsUI16";        }
00123     static const Char8 *getClassName(void) { return "GeoPLengthsUI16Property";}
00124     static const Char8 *getFieldName(void) { return "lengths";                }
00125     static const Char8 *getGroupName(void) { return "GeoPLengths";            }
00126 
00127     static InitContainerF     getInitMethod(void) { return NULL;              }
00128 
00129     static UInt32             getFormat    (void) { return GL_UNSIGNED_SHORT; }
00130     static UInt32             getFormatSize(void) { return sizeof(GLushort);  }
00131     static UInt32             getDimension (void) { return 1;                 }
00132     static UInt32             getStride    (void) { return 0;                 }
00133 
00134     static FieldDescription **getDesc      (void) { return _desc;             }
00135     
00137     /*---------------------------------------------------------------------*/
00140     typedef GeoPLengths                Inherited;
00141     typedef GeoPLengths::PtrType       InheritedPtr;
00142 
00143     typedef GeoPLengthsPropertyDesc    InheritedDesc;
00144 
00145     typedef MFUInt16                   StoredFieldType;
00146 
00147     typedef InheritedDesc::GenericType GenericType;
00148 
00149 #ifndef OSG_SUPPORT_NO_GEO_INTERFACE
00150     typedef GeoPropertyInterface<GeoPLengthsPropertyDesc> Interface;
00151 #endif    
00152 
00154 };
00155 
00156 #if !defined(OSG_DO_DOC)   // created as a dummy class, remove to prevent doubles
00157 typedef GeoProperty<GeoPLengthsUI16PropertyDesc> GeoPLengthsUI16;
00158 #endif
00159 
00160 #if !defined(OSG_COMPILEGEOPROPPLENGTHINST) && !defined(OSG_DO_DOC)
00161 OSG_FC_DLLEXPORT_DECL(GeoProperty,
00162                       GeoPLengthsUI16PropertyDesc,
00163                       OSG_SYSTEMLIB_DLLTMPLMAPPING)
00164 #endif
00165 
00170 struct GeoPLengthsUI8PropertyDesc : public GeoPLengthsPropertyDesc
00171 {
00172     static FieldDescription *_desc[];
00173 
00174     /*---------------------------------------------------------------------*/
00178     static const Char8 *getTypeName (void) { return "GeoPLengthsUI8";        }
00179     static const Char8 *getClassName(void) { return "GeoPLengthsUI8Property";}
00180     static const Char8 *getFieldName(void) { return "lengths";               }
00181     static const Char8 *getGroupName(void) { return "GeoPLengths";           }
00182 
00183     static InitContainerF     getInitMethod(void) { return NULL;             }
00184 
00185     static UInt32             getFormat    (void) { return GL_UNSIGNED_BYTE; }
00186     static UInt32             getFormatSize(void) { return sizeof(GLubyte);  }
00187     static UInt32             getDimension (void) { return 1;                }
00188     static UInt32             getStride    (void) { return 0;                }
00189 
00190     static FieldDescription **getDesc      (void) { return _desc;            }
00191     
00193     /*---------------------------------------------------------------------*/
00196     typedef GeoPLengths                Inherited;
00197     typedef GeoPLengths::PtrType       InheritedPtr;
00198 
00199     typedef GeoPLengthsPropertyDesc    InheritedDesc;
00200 
00201     typedef MFUInt8                   StoredFieldType;
00202 
00203     typedef InheritedDesc::GenericType GenericType;
00204 
00205 #ifndef OSG_SUPPORT_NO_GEO_INTERFACE
00206     typedef GeoPropertyInterface<GeoPLengthsPropertyDesc> Interface;
00207 #endif    
00208 
00210 };
00211 
00212 #if !defined(OSG_DO_DOC)   // created as a dummy class, remove to prevent doubles
00213 typedef GeoProperty<GeoPLengthsUI8PropertyDesc> GeoPLengthsUI8;
00214 #endif
00215 
00216 #if !defined(OSG_COMPILEGEOPROPPLENGTHINST) && !defined(OSG_DO_DOC)
00217 OSG_FC_DLLEXPORT_DECL(GeoProperty,
00218                       GeoPLengthsUI8PropertyDesc,
00219                       OSG_SYSTEMLIB_DLLTMPLMAPPING)
00220 #endif
00221 
00222 OSG_END_NAMESPACE
00223 
00224 #endif /* _OSGGEOPROPPLENGTHS_H_ */

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