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

OSGGeoPropTexCoords.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 #ifndef _OSGGEOPROPTEXCOORDS_H_
00040 #define _OSGGEOPROPTEXCOORDS_H_
00041 #ifdef __sgi
00042 #pragma once
00043 #endif
00044 
00045 #include <OSGGeoPropertyBase.h>
00046 
00047 OSG_BEGIN_NAMESPACE
00048 
00053 struct GeoTexCoords1fPropertyDesc : public GeoTexCoordsPropertyDesc
00054 {
00055     static FieldDescription *_desc[];
00056 
00057     /*---------------------------------------------------------------------*/
00061     static const Char8 *getTypeName (void) { return "GeoTexCoords1f";         }
00062     static const Char8 *getClassName(void) { return "GeoTexCoords1fProperty"; }
00063     static const Char8 *getFieldName(void) { return "TexCoords";              }
00064     static const Char8 *getGroupName(void) { return "GeoTexCoords";           }
00065 
00066     static InitContainerF     getInitMethod(void) { return NULL;            }
00067 
00068     static UInt32             getFormat    (void) { return GL_FLOAT;        }
00069     static UInt32             getFormatSize(void) { return sizeof(GLfloat); }
00070     static UInt32             getDimension (void) { return 1;               }
00071     static UInt32             getStride    (void) { return 0;               }
00072 
00073     static FieldDescription **getDesc      (void) { return _desc;           }
00074 
00076     /*---------------------------------------------------------------------*/
00080     typedef GeoTexCoords                Inherited;
00081     typedef GeoTexCoords::PtrType       InheritedPtr;
00082 
00083     typedef GeoTexCoordsPropertyDesc    InheritedDesc;
00084 
00085     typedef MFReal32                    StoredFieldType;
00086     typedef InheritedDesc::GenericType  GenericType;
00087 
00088 #ifndef OSG_SUPPORT_NO_GEO_INTERFACE
00089     typedef GeoPropertyInterface<GeoTexCoordsPropertyDesc> Interface;
00090 #endif
00091 
00093 };
00094 
00095 #if !defined(OSG_DO_DOC)   // created as a dummy class, remove to prevent doubles
00096 typedef GeoProperty<GeoTexCoords1fPropertyDesc> GeoTexCoords1f;
00097 #endif
00098 
00099 #if !defined(OSG_COMPILEGEOPROPTEXCOORDSINST) && !defined(OSG_DO_DOC)
00100 OSG_FC_DLLEXPORT_DECL(GeoProperty,
00101                       GeoTexCoords1fPropertyDesc,
00102                       OSG_SYSTEMLIB_DLLTMPLMAPPING)
00103 #endif
00104 
00105 
00110 struct GeoTexCoords2fPropertyDesc : public GeoTexCoordsPropertyDesc
00111 {
00112     static FieldDescription *_desc[];
00113 
00114     /*---------------------------------------------------------------------*/
00118     static const Char8 *getTypeName (void) { return "GeoTexCoords2f";         }
00119     static const Char8 *getClassName(void) { return "GeoTexCoords2fProperty"; }
00120     static const Char8 *getFieldName(void) { return "TexCoords";              }
00121     static const Char8 *getGroupName(void) { return "GeoTexCoords";           }
00122 
00123     static InitContainerF     getInitMethod(void) { return NULL;            }
00124 
00125     static UInt32             getFormat    (void) { return GL_FLOAT;        }
00126     static UInt32             getFormatSize(void) { return sizeof(GLfloat); }
00127     static UInt32             getDimension (void) { return 2;               }
00128     static UInt32             getStride    (void) { return 0;               }
00129 
00130     static FieldDescription **getDesc      (void) { return _desc;           }
00131 
00133     /*---------------------------------------------------------------------*/
00137     typedef GeoTexCoords                Inherited;
00138     typedef GeoTexCoords::PtrType       InheritedPtr;
00139 
00140     typedef GeoTexCoordsPropertyDesc    InheritedDesc;
00141 
00142     typedef MFVec2f                     StoredFieldType;
00143     typedef InheritedDesc::GenericType  GenericType;
00144 
00145 #ifndef OSG_SUPPORT_NO_GEO_INTERFACE
00146     typedef GeoPropertyInterface<GeoTexCoordsPropertyDesc> Interface;
00147 #endif
00148 
00150 };
00151 
00152 #if !defined(OSG_DO_DOC)   // created as a dummy class, remove to prevent doubles
00153 typedef GeoProperty<GeoTexCoords2fPropertyDesc> GeoTexCoords2f;
00154 #endif
00155 
00156 #if !defined(OSG_COMPILEGEOPROPTEXCOORDSINST) && !defined(OSG_DO_DOC)
00157 OSG_FC_DLLEXPORT_DECL(GeoProperty,
00158                       GeoTexCoords2fPropertyDesc,
00159                       OSG_SYSTEMLIB_DLLTMPLMAPPING)
00160 #endif
00161 
00162 
00167 struct GeoTexCoords3fPropertyDesc : public GeoTexCoordsPropertyDesc
00168 {
00169     static FieldDescription *_desc[];
00170 
00171     /*---------------------------------------------------------------------*/
00175     static const Char8 *getTypeName (void) { return "GeoTexCoords3f";         }
00176     static const Char8 *getClassName(void) { return "GeoTexCoords3fProperty"; }
00177     static const Char8 *getFieldName(void) { return "TexCoords";              }
00178     static const Char8 *getGroupName(void) { return "GeoTexCoords";           }
00179 
00180     static InitContainerF     getInitMethod(void) { return NULL;            }
00181 
00182     static UInt32             getFormat    (void) { return GL_FLOAT;        }
00183     static UInt32             getFormatSize(void) { return sizeof(GLfloat); }
00184     static UInt32             getDimension (void) { return 3;               }
00185     static UInt32             getStride    (void) { return 0;               }
00186 
00187     static FieldDescription **getDesc      (void) { return _desc;           }
00188 
00190     /*---------------------------------------------------------------------*/
00194     typedef GeoTexCoords                Inherited;
00195     typedef GeoTexCoords::PtrType       InheritedPtr;
00196 
00197     typedef GeoTexCoordsPropertyDesc    InheritedDesc;
00198 
00199     typedef MFVec3f                     StoredFieldType;
00200     typedef InheritedDesc::GenericType  GenericType;
00201 
00202 #ifndef OSG_SUPPORT_NO_GEO_INTERFACE
00203     typedef GeoPropertyInterface<GeoTexCoordsPropertyDesc> Interface;
00204 #endif
00205 
00207 };
00208 
00209 #if !defined(OSG_DO_DOC)   // created as a dummy class, remove to prevent doubles
00210 typedef GeoProperty<GeoTexCoords3fPropertyDesc> GeoTexCoords3f;
00211 #endif
00212 
00213 #if !defined(OSG_COMPILEGEOPROPTEXCOORDSINST) && !defined(OSG_DO_DOC)
00214 OSG_FC_DLLEXPORT_DECL(GeoProperty,
00215                       GeoTexCoords3fPropertyDesc,
00216                       OSG_SYSTEMLIB_DLLTMPLMAPPING)
00217 #endif
00218 
00223 struct GeoTexCoords4fPropertyDesc : public GeoTexCoordsPropertyDesc
00224 {
00225     static FieldDescription *_desc[];
00226 
00227     /*---------------------------------------------------------------------*/
00231     static const Char8 *getTypeName (void) { return "GeoTexCoords4f";         }
00232     static const Char8 *getClassName(void) { return "GeoTexCoords4fProperty"; }
00233     static const Char8 *getFieldName(void) { return "TexCoords";              }
00234     static const Char8 *getGroupName(void) { return "GeoTexCoords";           }
00235 
00236     static InitContainerF     getInitMethod(void) { return NULL;            }
00237 
00238     static UInt32             getFormat    (void) { return GL_FLOAT;        }
00239     static UInt32             getFormatSize(void) { return sizeof(GLfloat); }
00240     static UInt32             getDimension (void) { return 4;               }
00241     static UInt32             getStride    (void) { return 0;               }
00242 
00243     static FieldDescription **getDesc      (void) { return _desc;           }
00244 
00246     /*---------------------------------------------------------------------*/
00250     typedef GeoTexCoords                Inherited;
00251     typedef GeoTexCoords::PtrType       InheritedPtr;
00252 
00253     typedef GeoTexCoordsPropertyDesc    InheritedDesc;
00254 
00255     typedef MFVec4f                     StoredFieldType;
00256     typedef InheritedDesc::GenericType  GenericType;
00257 
00258 #ifndef OSG_SUPPORT_NO_GEO_INTERFACE
00259     typedef GeoPropertyInterface<GeoTexCoordsPropertyDesc> Interface;
00260 #endif
00261 
00263 };
00264 
00265 #if !defined(OSG_DO_DOC)   // created as a dummy class, remove to prevent doubles
00266 typedef GeoProperty<GeoTexCoords4fPropertyDesc> GeoTexCoords4f;
00267 #endif
00268 
00269 #if !defined(OSG_COMPILEGEOPROPTEXCOORDSINST) && !defined(OSG_DO_DOC)
00270 OSG_FC_DLLEXPORT_DECL(GeoProperty,
00271                       GeoTexCoords4fPropertyDesc,
00272                       OSG_SYSTEMLIB_DLLTMPLMAPPING)
00273 #endif
00274 
00275 
00280 struct GeoTexCoords1dPropertyDesc : public GeoTexCoordsPropertyDesc
00281 {
00282     static FieldDescription *_desc[];
00283 
00284     /*---------------------------------------------------------------------*/
00288     static const Char8 *getTypeName (void) { return "GeoTexCoords1d";         }
00289     static const Char8 *getClassName(void) { return "GeoTexCoords1dProperty"; }
00290     static const Char8 *getFieldName(void) { return "TexCoords";              }
00291     static const Char8 *getGroupName(void) { return "GeoTexCoords";           }
00292 
00293     static InitContainerF     getInitMethod(void) { return NULL;            }
00294 
00295     static UInt32             getFormat    (void) { return GL_DOUBLE;       }
00296     static UInt32             getFormatSize(void) { return sizeof(GLdouble);}
00297     static UInt32             getDimension (void) { return 1;               }
00298     static UInt32             getStride    (void) { return 0;               }
00299 
00300     static FieldDescription **getDesc      (void) { return _desc;           }
00301 
00303     /*---------------------------------------------------------------------*/
00307     typedef GeoTexCoords                Inherited;
00308     typedef GeoTexCoords::PtrType       InheritedPtr;
00309 
00310     typedef GeoTexCoordsPropertyDesc    InheritedDesc;
00311 
00312     typedef MFReal64                    StoredFieldType;
00313     typedef InheritedDesc::GenericType  GenericType;
00314 
00315 #ifndef OSG_SUPPORT_NO_GEO_INTERFACE
00316     typedef GeoPropertyInterface<GeoTexCoordsPropertyDesc> Interface;
00317 #endif
00318 
00320 };
00321 
00322 #if !defined(OSG_DO_DOC)   // created as a dummy class, remove to prevent doubles
00323 typedef GeoProperty<GeoTexCoords1dPropertyDesc> GeoTexCoords1d;
00324 #endif
00325 
00326 #if !defined(OSG_COMPILEGEOPROPTEXCOORDSINST) && !defined(OSG_DO_DOC)
00327 OSG_FC_DLLEXPORT_DECL(GeoProperty,
00328                       GeoTexCoords1dPropertyDesc,
00329                       OSG_SYSTEMLIB_DLLTMPLMAPPING)
00330 #endif
00331 
00332 
00337 struct GeoTexCoords2dPropertyDesc : public GeoTexCoordsPropertyDesc
00338 {
00339     static FieldDescription *_desc[];
00340 
00341     /*---------------------------------------------------------------------*/
00345     static const Char8 *getTypeName (void) { return "GeoTexCoords2d";         }
00346     static const Char8 *getClassName(void) { return "GeoTexCoords2dProperty"; }
00347     static const Char8 *getFieldName(void) { return "TexCoords";              }
00348     static const Char8 *getGroupName(void) { return "GeoTexCoords";           }
00349 
00350     static InitContainerF     getInitMethod(void) { return NULL;            }
00351 
00352     static UInt32             getFormat    (void) { return GL_DOUBLE;       }
00353     static UInt32             getFormatSize(void) { return sizeof(GLdouble);}
00354     static UInt32             getDimension (void) { return 2;               }
00355     static UInt32             getStride    (void) { return 0;               }
00356 
00357     static FieldDescription **getDesc      (void) { return _desc;           }
00358 
00360     /*---------------------------------------------------------------------*/
00364     typedef GeoTexCoords                Inherited;
00365     typedef GeoTexCoords::PtrType       InheritedPtr;
00366 
00367     typedef GeoTexCoordsPropertyDesc    InheritedDesc;
00368 
00369     typedef MFVec2d                     StoredFieldType;
00370     typedef InheritedDesc::GenericType  GenericType;
00371 
00372 #ifndef OSG_SUPPORT_NO_GEO_INTERFACE
00373     typedef GeoPropertyInterface<GeoTexCoordsPropertyDesc> Interface;
00374 #endif
00375 
00377 };
00378 
00379 #if !defined(OSG_DO_DOC)   // created as a dummy class, remove to prevent doubles
00380 typedef GeoProperty<GeoTexCoords2dPropertyDesc> GeoTexCoords2d;
00381 #endif
00382 
00383 #if !defined(OSG_COMPILEGEOPROPTEXCOORDSINST) && !defined(OSG_DO_DOC)
00384 OSG_FC_DLLEXPORT_DECL(GeoProperty,
00385                       GeoTexCoords2dPropertyDesc,
00386                       OSG_SYSTEMLIB_DLLTMPLMAPPING)
00387 #endif
00388 
00389 
00394 struct GeoTexCoords3dPropertyDesc : public GeoTexCoordsPropertyDesc
00395 {
00396     static FieldDescription *_desc[];
00397 
00398     /*---------------------------------------------------------------------*/
00402     static const Char8 *getTypeName (void) { return "GeoTexCoords3d";         }
00403     static const Char8 *getClassName(void) { return "GeoTexCoords3dProperty"; }
00404     static const Char8 *getFieldName(void) { return "TexCoords";              }
00405     static const Char8 *getGroupName(void) { return "GeoTexCoords";           }
00406 
00407     static InitContainerF     getInitMethod(void) { return NULL;            }
00408 
00409     static UInt32             getFormat    (void) { return GL_DOUBLE;       }
00410     static UInt32             getFormatSize(void) { return sizeof(GLdouble);}
00411     static UInt32             getDimension (void) { return 3;               }
00412     static UInt32             getStride    (void) { return 0;               }
00413 
00414     static FieldDescription **getDesc      (void) { return _desc;           }
00415 
00417     /*---------------------------------------------------------------------*/
00421     typedef GeoTexCoords                Inherited;
00422     typedef GeoTexCoords::PtrType       InheritedPtr;
00423 
00424     typedef GeoTexCoordsPropertyDesc    InheritedDesc;
00425 
00426     typedef MFVec3d                     StoredFieldType;
00427     typedef InheritedDesc::GenericType  GenericType;
00428 
00429 #ifndef OSG_SUPPORT_NO_GEO_INTERFACE
00430     typedef GeoPropertyInterface<GeoTexCoordsPropertyDesc> Interface;
00431 #endif
00432 
00434 };
00435 
00436 #if !defined(OSG_DO_DOC)   // created as a dummy class, remove to prevent doubles
00437 typedef GeoProperty<GeoTexCoords3dPropertyDesc> GeoTexCoords3d;
00438 #endif
00439 
00440 #if !defined(OSG_COMPILEGEOPROPTEXCOORDSINST) && !defined(OSG_DO_DOC)
00441 OSG_FC_DLLEXPORT_DECL(GeoProperty,
00442                       GeoTexCoords3dPropertyDesc,
00443                       OSG_SYSTEMLIB_DLLTMPLMAPPING)
00444 #endif
00445 
00450 struct GeoTexCoords4dPropertyDesc : public GeoTexCoordsPropertyDesc
00451 {
00452     static FieldDescription *_desc[];
00453 
00454     /*---------------------------------------------------------------------*/
00458     static const Char8 *getTypeName (void) { return "GeoTexCoords4d";         }
00459     static const Char8 *getClassName(void) { return "GeoTexCoords4dProperty"; }
00460     static const Char8 *getFieldName(void) { return "TexCoords";              }
00461     static const Char8 *getGroupName(void) { return "GeoTexCoords";           }
00462 
00463     static InitContainerF     getInitMethod(void) { return NULL;            }
00464 
00465     static UInt32             getFormat    (void) { return GL_DOUBLE;       }
00466     static UInt32             getFormatSize(void) { return sizeof(GLdouble);}
00467     static UInt32             getDimension (void) { return 4;               }
00468     static UInt32             getStride    (void) { return 0;               }
00469 
00470     static FieldDescription **getDesc      (void) { return _desc;           }
00471 
00473     /*---------------------------------------------------------------------*/
00477     typedef GeoTexCoords                Inherited;
00478     typedef GeoTexCoords::PtrType       InheritedPtr;
00479 
00480     typedef GeoTexCoordsPropertyDesc    InheritedDesc;
00481 
00482     typedef MFVec4d                     StoredFieldType;
00483     typedef InheritedDesc::GenericType  GenericType;
00484 
00485 #ifndef OSG_SUPPORT_NO_GEO_INTERFACE
00486     typedef GeoPropertyInterface<GeoTexCoordsPropertyDesc> Interface;
00487 #endif
00488 
00490 };
00491 
00492 #if !defined(OSG_DO_DOC)   // created as a dummy class, remove to prevent doubles
00493 typedef GeoProperty<GeoTexCoords4dPropertyDesc> GeoTexCoords4d;
00494 #endif
00495 
00496 #if !defined(OSG_COMPILEGEOPROPTEXCOORDSINST) && !defined(OSG_DO_DOC)
00497 OSG_FC_DLLEXPORT_DECL(GeoProperty,
00498                       GeoTexCoords4dPropertyDesc,
00499                       OSG_SYSTEMLIB_DLLTMPLMAPPING)
00500 #endif
00501 
00502 
00503 OSG_END_NAMESPACE
00504 
00505 #include <OSGGeoPropTexCoords.inl>
00506 
00507 #endif /* _OSGGEOPROPTEXCOORDS_H_ */

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