fixed: auto_ptr -> unique_ptr
[opensg.git] / Source / Base / Field / OSGBaseMFields.h
blob4ef8bd7c72b36e6b3c08e01855d3957883561287
1 /*---------------------------------------------------------------------------*\
2 * OpenSG *
3 * *
4 * *
5 * Copyright (C) 2003 by the OpenSG Forum *
6 * *
7 * www.opensg.org *
8 * *
9 * contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de *
10 * *
11 \*---------------------------------------------------------------------------*/
12 /*---------------------------------------------------------------------------*\
13 * License *
14 * *
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. *
18 * *
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. *
23 * *
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. *
27 * *
28 \*---------------------------------------------------------------------------*/
29 /*---------------------------------------------------------------------------*\
30 * Changes *
31 * *
32 * *
33 * *
34 * *
35 * *
36 * *
37 \*---------------------------------------------------------------------------*/
39 #ifndef _OSGBASEMFIELDS_H_
40 #define _OSGBASEMFIELDS_H_
41 #ifdef __sgi
42 #pragma once
43 #endif
45 #include "OSGMField.h"
46 #include "OSGBaseFieldTraits.h"
48 OSG_BEGIN_NAMESPACE
50 #ifndef DOXYGEN_SHOULD_SKIP_THIS
52 /*! \ingroup GrpBaseFieldMulti */
53 typedef MField<Color3f> MFColor3f;
56 /*! \ingroup GrpBaseFieldMulti */
57 typedef MField<Color3fx> MFColor3fx;
60 /*! \ingroup GrpBaseFieldMulti */
61 typedef MField<Color4f> MFColor4f;
64 /*! \ingroup GrpBaseFieldMulti */
65 typedef MField<Color4fx> MFColor4fx;
68 /*! \ingroup GrpBaseFieldMulti */
69 typedef MField<Color3ub> MFColor3ub;
72 /*! \ingroup GrpBaseFieldMulti */
73 typedef MField<Color4ub> MFColor4ub;
76 /*! \ingroup GrpBaseFieldMulti */
77 typedef MField<std::string> MFString;
80 /*! \ingroup GrpBaseFieldMulti */
81 typedef MField<Time, 1> MFTime;
84 /*! \ingroup GrpBaseFieldMulti */
85 typedef MField<BoxVolume> MFBoxVolume;
88 /*! \ingroup GrpBaseFieldMulti */
89 typedef MField<BitVector, 1> MFBitVector;
92 /*! \ingroup GrpBaseFieldMulti */
93 typedef MField<GLenum, 1> MFGLenum;
96 /*! \ingroup GrpBaseFieldMulti */
97 typedef MField<Plane> MFPlane;
99 /*! \ingroup GrpBaseFieldMulti */
100 typedef MField<RenderPropBitVector, 3> MFRenderPropBitVector;
102 #else // these are the doxygen hacks
104 /*! \ingroup GrpBaseFieldMulti \ingroup GrpLibOSGBase */
105 struct MFColor3f : public MField<Color3f> {};
106 /*! \ingroup GrpBaseFieldMulti \ingroup GrpLibOSGBase */
107 struct MFColor3fx : public MField<Color3fx> {};
108 /*! \ingroup GrpBaseFieldMulti \ingroup GrpLibOSGBase */
109 struct MFColor4f : public MField<Color4f> {};
110 /*! \ingroup GrpBaseFieldMulti \ingroup GrpLibOSGBase */
111 struct MFColor4fx : public MField<Color4fx> {};
112 /*! \ingroup GrpBaseFieldMulti \ingroup GrpLibOSGBase */
113 struct MFColor3ub : public MField<Color3ub> {};
114 /*! \ingroup GrpBaseFieldMulti \ingroup GrpLibOSGBase */
115 struct MFColor4ub : public MField<Color4ub> {};
116 /*! \ingroup GrpBaseFieldMulti \ingroup GrpLibOSGBase */
117 struct MFString : public MField<std::string> {};
118 /*! \ingroup GrpBaseFieldMulti \ingroup GrpLibOSGBase */
119 struct MFTime : public MField<Time, 1> {};
120 /*! \ingroup GrpBaseFieldMulti \ingroup GrpLibOSGBase */
121 struct MFBoxVolume : public MField<BoxVolume> {};
122 /*! \ingroup GrpBaseFieldMulti \ingroup GrpLibOSGBase */
123 struct MFBitVector : public MField<BitVector, 1> {};
124 /*! \ingroup GrpBaseFieldMulti \ingroup GrpLibOSGBase */
125 struct MFGLenum : public MField<GLenum, 1> {};
126 /*! \ingroup GrpBaseFieldMulti \ingroup GrpLibOSGBase */
127 struct MFPlane : public MField<Plane> {};
128 /*! \ingroup GrpBaseFieldMulti \ingroup GrpLibOSGBase */
129 struct MFRenderPropBitVector : public MField<RenderPropBitVector, 3> {};
131 #endif // these are the doxygen hacks
133 OSG_END_NAMESPACE
135 #endif /* _OSGBASEMFIELDS_H_ */