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

OSGGeoPropColors.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 _OSGPROPGEOCOLORS_H_
00040 #define _OSGPROPGEOCOLORS_H_
00041 #ifdef __sgi
00042 #pragma once
00043 #endif
00044 
00045 #include <OSGGeoPropertyBase.h>
00046 
00047 OSG_BEGIN_NAMESPACE
00048 
00053 struct GeoColors3fPropertyDesc : public GeoColorsPropertyDesc
00054 {
00055     static FieldDescription *_desc[];
00056 
00057     /*---------------------------------------------------------------------*/
00061     static const Char8 *getTypeName (void) { return "GeoColors3f";         }
00062     static const Char8 *getClassName(void) { return "GeoColors3fProperty"; }
00063     static const Char8 *getFieldName(void) { return "colors";              }
00064     static const Char8 *getGroupName(void) { return "GeoColors";           }
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 3;               }
00071     static UInt32             getStride    (void) { return 0;               }
00072 
00073     static FieldDescription **getDesc      (void) { return _desc;           }
00074 
00076     /*---------------------------------------------------------------------*/
00080     typedef GeoColors                  Inherited;
00081     typedef GeoColors::PtrType         InheritedPtr;
00082 
00083     typedef GeoColorsPropertyDesc      InheritedDesc;
00084 
00085     typedef MFColor3f                  StoredFieldType;
00086     typedef InheritedDesc::GenericType GenericType;
00087     
00088 #ifndef OSG_SUPPORT_NO_GEO_INTERFACE
00089     typedef GeoPropertyInterface<GeoColorsPropertyDesc> Interface;
00090 #endif
00091 
00093 };
00094 
00095 
00096 #if !defined(OSG_DO_DOC)   // created as a dummy class, remove to prevent doubles
00097 typedef GeoProperty<GeoColors3fPropertyDesc> GeoColors3f;
00098 #endif
00099 
00100 #if !defined(OSG_COMPILEGEOPROPCOLORINST) && !defined(OSG_DO_DOC)
00101 OSG_FC_DLLEXPORT_DECL(GeoProperty,
00102                       GeoColors3fPropertyDesc,
00103                       OSG_SYSTEMLIB_DLLTMPLMAPPING)
00104 #endif
00105 
00110 struct GeoColors4fPropertyDesc : public GeoColorsPropertyDesc
00111 {
00112     static FieldDescription *_desc[];
00113 
00114     /*---------------------------------------------------------------------*/
00118     static const Char8 *getTypeName (void) { return "GeoColors4f";         }
00119     static const Char8 *getClassName(void) { return "GeoColors4fProperty"; }
00120     static const Char8 *getFieldName(void) { return "Colors";              }
00121     static const Char8 *getGroupName(void) { return "GeoColors";           }
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 4;               }
00128     static UInt32             getStride    (void) { return 0;               }
00129 
00130     static FieldDescription **getDesc      (void) { return _desc;           }
00131 
00133     /*---------------------------------------------------------------------*/
00137     typedef GeoColors                  Inherited;
00138     typedef GeoColors::PtrType         InheritedPtr;
00139 
00140     typedef GeoColorsPropertyDesc      InheritedDesc;
00141 
00142     typedef MFColor4f                  StoredFieldType;
00143     typedef InheritedDesc::GenericType GenericType;
00144     
00145 #ifndef OSG_SUPPORT_NO_GEO_INTERFACE
00146     typedef GeoPropertyInterface<GeoColorsPropertyDesc> Interface;
00147 #endif
00148 
00150 };
00151 
00152 #if !defined(OSG_DO_DOC)   // created as a dummy class, remove to prevent doubles
00153 typedef GeoProperty<GeoColors4fPropertyDesc> GeoColors4f;
00154 #endif
00155 
00156 #if !defined(OSG_COMPILEGEOPROPCOLORINST) && !defined(OSG_DO_DOC)
00157 OSG_FC_DLLEXPORT_DECL(GeoProperty,
00158                       GeoColors4fPropertyDesc,
00159                       OSG_SYSTEMLIB_DLLTMPLMAPPING)
00160 #endif
00161 
00166 struct GeoColors3ubPropertyDesc : public GeoColorsPropertyDesc
00167 {
00168     static FieldDescription *_desc[];
00169 
00170     /*---------------------------------------------------------------------*/
00174     static const Char8 *getTypeName (void) { return "GeoColors3ub";         }
00175     static const Char8 *getClassName(void) { return "GeoColors3ubProperty"; }
00176     static const Char8 *getFieldName(void) { return "Colors";               }
00177     static const Char8 *getGroupName(void) { return "GeoColors";            }
00178 
00179     static InitContainerF     getInitMethod(void) { return NULL;            }
00180 
00181     static UInt32             getFormat    (void) { return GL_FLOAT;        }
00182     static UInt32             getFormatSize(void) { return sizeof(GLfloat); }
00183     static UInt32             getDimension (void) { return 3;               }
00184     static UInt32             getStride    (void) { return 0;               }
00185 
00186     static FieldDescription **getDesc      (void) { return _desc;           }
00187     
00189     /*---------------------------------------------------------------------*/
00193     typedef GeoColors                  Inherited;
00194     typedef GeoColors::PtrType         InheritedPtr;
00195 
00196     typedef GeoColorsPropertyDesc      InheritedDesc;
00197 
00198     typedef MFColor3ub                 StoredFieldType;
00199     typedef InheritedDesc::GenericType GenericType;
00200 
00201 #ifndef OSG_SUPPORT_NO_GEO_INTERFACE
00202     typedef GeoPropertyInterface<GeoColorsPropertyDesc> Interface;
00203 #endif
00204 
00206 };
00207 
00208 #if !defined(OSG_DO_DOC)   // created as a dummy class, remove to prevent doubles
00209 typedef GeoProperty<GeoColors3ubPropertyDesc> GeoColors3ub;
00210 #endif
00211 
00212 #if !defined(OSG_COMPILEGEOPROPCOLORINST) && !defined(OSG_DO_DOC)
00213 OSG_FC_DLLEXPORT_DECL(GeoProperty,
00214                       GeoColors3ubPropertyDesc,
00215                       OSG_SYSTEMLIB_DLLTMPLMAPPING)
00216 #endif
00217 
00222 struct GeoColors4ubPropertyDesc : public GeoColorsPropertyDesc
00223 {
00224     static FieldDescription *_desc[];
00225 
00226     /*---------------------------------------------------------------------*/
00230     static const Char8 *getTypeName  (void) { return "GeoColors4ub";         }
00231     static const Char8 *getClassName (void) { return "GeoColors4ubProperty"; }
00232     static const Char8 *getFieldName (void) { return "Colors";               }
00233     static const Char8 *getGroupName (void) { return "GeoColors";            }
00234 
00235     static InitContainerF     getInitMethod(void) { return NULL;             }
00236 
00237     static UInt32             getFormat    (void) { return GL_UNSIGNED_BYTE; }
00238     static UInt32             getFormatSize(void) { return sizeof(GLubyte);  }
00239     static UInt32             getDimension (void) { return 4;                }
00240     static UInt32             getStride    (void) { return 0;                }
00241 
00242     static FieldDescription **getDesc      (void) { return _desc;            }
00243 
00245     /*---------------------------------------------------------------------*/
00249     typedef GeoColors                  Inherited;
00250     typedef GeoColors::PtrType         InheritedPtr;
00251 
00252     typedef GeoColorsPropertyDesc      InheritedDesc;
00253 
00254     typedef MFColor4ub                 StoredFieldType;
00255     typedef InheritedDesc::GenericType GenericType;
00256 
00257 #ifndef OSG_SUPPORT_NO_GEO_INTERFACE
00258     typedef GeoPropertyInterface<GeoColorsPropertyDesc> Interface;
00259 #endif
00260     
00262 };
00263 
00264 #if !defined(OSG_DO_DOC)   // created as a dummy class, remove to prevent doubles
00265 typedef GeoProperty<GeoColors4ubPropertyDesc> GeoColors4ub;
00266 #endif
00267 
00268 #if !defined(OSG_COMPILEGEOPROPCOLORINST) && !defined(OSG_DO_DOC)
00269 OSG_FC_DLLEXPORT_DECL(GeoProperty,
00270                       GeoColors4ubPropertyDesc,
00271                       OSG_SYSTEMLIB_DLLTMPLMAPPING)
00272 #endif
00273 
00274 OSG_END_NAMESPACE
00275 
00276 #include <OSGGeoPropColors.inl>
00277 
00278 #endif /* _OSGGEOPROPCOLORS_H_ */
00279 
00280 
00281 
00282 
00283 
00284 

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