1 /*---------------------------------------------------------------------------*\
5 * Copyright (C) 2003 by the OpenSG Forum *
9 * contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de *
11 \*---------------------------------------------------------------------------*/
12 /*---------------------------------------------------------------------------*\
15 * This library is free software; you can redistribute it and/or modify it *
16 * under the terms of the GNU Library General Public License as published *
17 * by the Free Software Foundation, version 2. *
19 * This library is distributed in the hope that it will be useful, but *
20 * WITHOUT ANY WARRANTY; without even the implied warranty of *
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
22 * Library General Public License for more details. *
24 * You should have received a copy of the GNU Library General Public *
25 * License along with this library; if not, write to the Free Software *
26 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
28 \*---------------------------------------------------------------------------*/
29 /*---------------------------------------------------------------------------*\
37 \*---------------------------------------------------------------------------*/
39 #ifndef _OSGBASESFIELDS_H_
40 #define _OSGBASESFIELDS_H_
45 #include "OSGSField.h"
46 #include "OSGBaseFieldTraits.h"
50 #ifndef DOXYGEN_SHOULD_SKIP_THIS
52 /*! \ingroup GrpBaseFieldSingle */
53 typedef SField
<Color3f
> SFColor3f
;
56 /*! \ingroup GrpBaseFieldSingle */
57 typedef SField
<Color3fx
> SFColor3fx
;
60 /*! \ingroup GrpBaseFieldSingle */
61 typedef SField
<Color4f
> SFColor4f
;
64 /*! \ingroup GrpBaseFieldSingle */
65 typedef SField
<Color4fx
> SFColor4fx
;
68 /*! \ingroup GrpBaseFieldSingle */
69 typedef SField
<Color3ub
> SFColor3ub
;
72 /*! \ingroup GrpBaseFieldSingle */
73 typedef SField
<Color4ub
> SFColor4ub
;
76 /*! \ingroup GrpBaseFieldSingle */
77 typedef SField
<std::string
> SFString
;
80 /*! \ingroup GrpBaseFieldSingle */
81 typedef SField
<Time
, 1> SFTime
;
84 /*! \ingroup GrpBaseFieldSingle */
85 typedef SField
<BoxVolume
> SFBoxVolume
;
88 /*! \ingroup GrpBaseFieldSingle */
89 typedef SField
<BitVector
, 1> SFBitVector
;
92 /*! \ingroup GrpBaseFieldSingle */
93 typedef SField
<GLenum
, 1> SFGLenum
;
96 /*! \ingroup GrpBaseFieldSingle */
97 typedef SField
<Plane
> SFPlane
;
99 /*! \ingroup GrpBaseFieldSingle */
100 typedef SField
<RenderPropBitVector
, 3> SFRenderPropBitVector
;
102 #else // these are the doxygen hacks
104 /*! \ingroup GrpBaseFieldSingle \ingroup GrpLibOSGBase */
105 struct SFColor3f
: public SField
<Color3f
> {};
106 /*! \ingroup GrpBaseFieldSingle \ingroup GrpLibOSGBase */
107 struct SFColor3fx
: public SField
<Color3fx
> {};
108 /*! \ingroup GrpBaseFieldSingle \ingroup GrpLibOSGBase */
109 struct SFColor4f
: public SField
<Color4f
> {};
110 /*! \ingroup GrpBaseFieldSingle \ingroup GrpLibOSGBase */
111 struct SFColor4fx
: public SField
<Color4fx
> {};
112 /*! \ingroup GrpBaseFieldSingle \ingroup GrpLibOSGBase */
113 struct SFColor3ub
: public SField
<Color3ub
> {};
114 /*! \ingroup GrpBaseFieldSingle \ingroup GrpLibOSGBase */
115 struct SFColor4ub
: public SField
<Color4ub
> {};
116 /*! \ingroup GrpBaseFieldSingle \ingroup GrpLibOSGBase */
117 struct SFString
: public SField
<std::string
> {};
118 /*! \ingroup GrpBaseFieldSingle \ingroup GrpLibOSGBase */
119 struct SFTime
: public SField
<Time
, 1> {};
120 /*! \ingroup GrpBaseFieldSingle \ingroup GrpLibOSGBase */
121 struct SFBoxVolume
: public SField
<BoxVolume
> {};
122 /*! \ingroup GrpBaseFieldSingle \ingroup GrpLibOSGBase */
123 struct SFBitVector
: public SField
<BitVector
, 1> {};
124 /*! \ingroup GrpBaseFieldSingle \ingroup GrpLibOSGBase */
125 struct SFGLenum
: public SField
<GLenum
, 1> {};
126 /*! \ingroup GrpBaseFieldSingle \ingroup GrpLibOSGBase */
127 struct SFPlane
: public SField
<Plane
> {};
128 /*! \ingroup GrpBaseFieldSingle \ingroup GrpLibOSGBase */
129 struct SFRenderPropBitVector
: public SField
<RenderPropBitVector
, 3> {};
131 #endif // these are the doxygen hacks
135 #endif /* _OSGBASESFIELDS_H_ */