1 /*---------------------------------------------------------------------------*\
5 * Copyright (C) 2000-2006 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 _OSGSKINNEDGEOMETRY_H_
40 #define _OSGSKINNEDGEOMETRY_H_
45 #include "OSGSkinnedGeometryBase.h"
46 #include "OSGRenderAction.h"
50 /*! \brief SkinnedGeometry class. See \ref
51 PageDynamicsSkinnedGeometry for a description.
54 class OSG_DYNAMICS_DLLMAPPING SkinnedGeometry
: public SkinnedGeometryBase
58 /*========================== PUBLIC =================================*/
62 typedef SkinnedGeometryBase Inherited
;
63 typedef SkinnedGeometry Self
;
73 /*---------------------------------------------------------------------*/
77 virtual void changed(ConstFieldMaskArg whichField
,
82 /*---------------------------------------------------------------------*/
86 Action::ResultE
renderEnter (Action
*action
);
87 Action::ResultE
renderLeave (Action
*action
);
89 Action::ResultE
intersectEnter(Action
*action
);
91 Action::ResultE
animBindEnter (Action
*action
);
94 /*---------------------------------------------------------------------*/
95 /*! \name Drawable Specifics */
98 virtual void fill (DrawableStatsAttachment
*drawStats
);
99 virtual void adjustVolume(Volume
&volume
);
102 /*---------------------------------------------------------------------*/
106 virtual void dump( UInt32 uiIndent
= 0,
107 const BitVector bvFlags
= 0) const;
110 /*========================= PROTECTED ===============================*/
114 // Variables should all be in SkinnedGeometryBase.
116 /*---------------------------------------------------------------------*/
117 /*! \name Constructors */
120 SkinnedGeometry(void);
121 SkinnedGeometry(const SkinnedGeometry
&source
);
124 /*---------------------------------------------------------------------*/
125 /*! \name Destructors */
128 virtual ~SkinnedGeometry(void);
131 /*---------------------------------------------------------------------*/
135 static void initMethod(InitPhase ePhase
);
138 /*---------------------------------------------------------------------*/
142 template <class ElemTypeT
>
143 void transformProperty(GeoVectorProperty
*prop
, const Matrix
&matrix
);
146 /*========================== PRIVATE ================================*/
150 friend class FieldContainer
;
151 friend class SkinnedGeometryBase
;
153 // prohibit default functions (move to 'public' if you need one)
154 void operator =(const SkinnedGeometry
&source
);
157 typedef SkinnedGeometry
*SkinnedGeometryP
;
161 #include "OSGSkinningAlgorithm.h"
163 #include "OSGSkinnedGeometryBase.inl"
164 #include "OSGSkinnedGeometry.inl"
166 #endif /* _OSGSKINNEDGEOMETRY_H_ */