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 _OSGDOUBLETRANSFORM_H_
40 #define _OSGDOUBLETRANSFORM_H_
45 #include "OSGConfig.h"
46 #include "OSGDoubleTransformBase.h"
48 #ifdef OSG_HAVE_ACTION //CHECK
49 #include "OSGActorBase.h"
54 /*! \brief DoubleTransform class. See \ref
55 PageGroupDoubleTransform for a description.
56 \ingroup GrpGroupMiscObj
57 \ingroup GrpLibOSGGroup
61 class OSG_GROUP_DLLMAPPING DoubleTransform
: public DoubleTransformBase
65 /*========================== PUBLIC =================================*/
69 typedef DoubleTransformBase Inherited
;
70 typedef DoubleTransform Self
;
72 /*---------------------------------------------------------------------*/
76 virtual void changed(ConstFieldMaskArg whichField
,
81 /*---------------------------------------------------------------------*/
82 /*! \name Transformation */
85 virtual void accumulateMatrix(Matrix
&result
);
88 /*---------------------------------------------------------------------*/
92 virtual void dump( UInt32 uiIndent
= 0,
93 const BitVector bvFlags
= 0) const;
96 /*========================= PROTECTED ===============================*/
100 // Variables should all be in DoubleTransformBase.
102 /*---------------------------------------------------------------------*/
103 /*! \name Constructors */
106 DoubleTransform(void);
107 DoubleTransform(const DoubleTransform
&source
);
110 /*---------------------------------------------------------------------*/
111 /*! \name Destructors */
114 virtual ~DoubleTransform(void);
117 /*---------------------------------------------------------------------*/
121 static void initMethod(InitPhase ePhase
);
124 /*---------------------------------------------------------------------*/
128 virtual void adjustVolume (Volume
&volume
);
131 /*---------------------------------------------------------------------*/
132 /*! \name Intersect & Render */
135 Action::ResultE
intersectEnter(Action
*action
);
136 Action::ResultE
intersectLeave(Action
*action
);
138 Action::ResultE
renderEnter (Action
*action
);
139 Action::ResultE
renderLeave (Action
*action
);
142 /*========================== PRIVATE ================================*/
146 friend class FieldContainer
;
147 friend class DoubleTransformBase
;
149 // prohibit default functions (move to 'public' if you need one)
150 void operator =(const DoubleTransform
&source
);
153 typedef DoubleTransform
*DoubleTransformP
;
157 #include "OSGDoubleTransformBase.inl"
158 #include "OSGDoubleTransform.inl"
160 #endif /* _OSGDOUBLETRANSFORM_H_ */