OSGTypedGeoVectorProperty.h File Reference

#include "OSGGL.h"
#include "OSGDrawableDef.h"
#include "OSGVecMFields.h"
#include "OSGBaseMFields.h"
#include "OSGGeoVectorProperty.h"
#include "OSGTypedGeoVectorProperty.inl"

Go to the source code of this file.


Namespaces

namespace  OSG

Classes

class  OSG::TypedGeoVectorProperty< GeoPropertyDesc >
 GeoProperty is a specialized form of Attachment, used to define the properties of the geometry node. See PageWINDOWGLUTGeoProperties for a description. More...
struct  OSG::TypedGeoVectorPropertyDescBase
struct  OSG::TypedNormGeoVectorPropertyDescBase

Defines

#define makeProp(typename, gltypename, gltype)
#define makeNormProp(typename, propname, nscale, gltypename, gltype)
#define make1to4dprop(tbase, ttype, gltypename, gltype)
#define maketypesprop(ttype, gltypename, gltype)
#define make1to4dnprop(tbase, ttype, scale, gltypename, gltype)
#define maketypesnprop(ttype, scale, gltypename, gltype)
#define makecolorprop(ttype, scale, gltypename, gltype)

Typedefs

typedef GeoPnt3fProperty OSG::GeoPnt3rProperty
typedef GeoVec2fProperty OSG::GeoVec2rProperty
typedef GeoVec3fProperty OSG::GeoVec3rProperty
typedef GeoPnt3fPropertyPtr OSG::GeoPnt3rPropertyPtr
typedef GeoVec2fPropertyPtr OSG::GeoVec2rPropertyPtr
typedef GeoVec3fPropertyPtr OSG::GeoVec3rPropertyPtr

Functions

 OSG::maketypesnprop (ub, 255, GL_UNSIGNED_BYTE, GLubyte)
 OSG::maketypesnprop (b, 127, GL_BYTE, GLbyte)
 OSG::maketypesnprop (us, 65535, GL_UNSIGNED_SHORT, GLushort)
 OSG::maketypesnprop (s, 32767, GL_SHORT, GLshort)
 OSG::maketypesprop (f, GL_FLOAT, GLfloat)
 OSG::maketypesprop (d, GL_DOUBLE, GLdouble)
 OSG::makecolorprop (ub, 255, GL_UNSIGNED_BYTE, GLubyte)
 OSG::makeProp (Color3f, GL_FLOAT, GLfloat)
 OSG::makeProp (Color4f, GL_FLOAT, GLfloat)

Define Documentation

#define makeProp ( typename,
gltypename,
gltype   ) 

Value:

struct Geo##typename##PropertyDesc :                                      \
    public TypedGeoVectorPropertyDescBase                                 \
{                                                                            \
    /*---------------------------------------------------------------------*/\\\
                                                                             \
    static const Char8 *getTypeName (void)                                   \
    {                                                                        \
        return "Geo" #typename "Property";                                \
    }                                                                        \
                                                                             \
    static UInt32             getFormat    (void) { return gltypename;      }\
    static UInt32             getFormatSize(void) { return sizeof(gltype);  }\
    static UInt32             getDimension (void) { return typename::_uiSize;}\
                                                                             \
    typedef typename          StoredType;                                    \
    typedef MF##typename      StoredFieldType;                               \\
}

Definition at line 525 of file OSGTypedGeoVectorProperty.h.

#define makeNormProp ( typename,
propname,
nscale,
gltypename,
gltype   ) 

Value:

struct Geo##propname##PropertyDesc :                                      \
    public TypedNormGeoVectorPropertyDescBase                             \
{                                                                            \
    /*---------------------------------------------------------------------*/\\\
                                                                             \
    static const Char8 *getTypeName (void)                                   \
    {                                                                        \
        return "Geo" #propname "Property";                                \
    }                                                                        \
                                                                             \
    static UInt32             getFormat    (void) { return gltypename;      }\
    static UInt32             getFormatSize(void) { return sizeof(gltype);  }\
    static UInt32             getDimension (void) { return typename::_uiSize;}\
                                                                             \
    typedef typename          StoredType;                                    \
    typedef MF##typename      StoredFieldType;                               \
                                                                             \
    static const int scale = nscale;                                         \\
}

Definition at line 547 of file OSGTypedGeoVectorProperty.h.

#define make1to4dprop ( tbase,
ttype,
gltypename,
gltype   ) 

Value:

makeProp(tbase##1##ttype, gltypename, gltype);                              \
makeProp(tbase##2##ttype, gltypename, gltype);                              \
makeProp(tbase##3##ttype, gltypename, gltype);                              \
makeProp(tbase##4##ttype, gltypename, gltype)

Definition at line 576 of file OSGTypedGeoVectorProperty.h.

#define maketypesprop ( ttype,
gltypename,
gltype   ) 

Value:

make1to4dprop(Vec, ttype, gltypename, gltype);                              \
make1to4dprop(Pnt, ttype, gltypename, gltype);                              \

Definition at line 582 of file OSGTypedGeoVectorProperty.h.

#define make1to4dnprop ( tbase,
ttype,
scale,
gltypename,
gltype   ) 

Value:

makeNormProp(tbase##1##ttype, tbase##1N##ttype, scale, gltypename, gltype); \
makeNormProp(tbase##2##ttype, tbase##2N##ttype, scale, gltypename, gltype); \
makeNormProp(tbase##3##ttype, tbase##3N##ttype, scale, gltypename, gltype); \
makeNormProp(tbase##4##ttype, tbase##4N##ttype, scale, gltypename, gltype)

Definition at line 586 of file OSGTypedGeoVectorProperty.h.

#define maketypesnprop ( ttype,
scale,
gltypename,
gltype   ) 

Value:

make1to4dnprop(Vec, ttype, scale, gltypename, gltype);                      \
make1to4dnprop(Pnt, ttype, scale, gltypename, gltype);                      \
make1to4dprop(Vec, ttype, gltypename, gltype);                              \
make1to4dprop(Pnt, ttype, gltypename, gltype)

Definition at line 592 of file OSGTypedGeoVectorProperty.h.

#define makecolorprop ( ttype,
scale,
gltypename,
gltype   ) 

Value:

makeProp(Color3##ttype, gltypename, gltype);                                \
makeProp(Color4##ttype, gltypename, gltype);                                \
makeNormProp(Color3##ttype, Color3N##ttype, scale, gltypename, gltype);     \
makeNormProp(Color4##ttype, Color4N##ttype, scale, gltypename, gltype)

Definition at line 598 of file OSGTypedGeoVectorProperty.h.