fixed: auto_ptr -> unique_ptr
[opensg.git] / Source / System / NodeCores / Groups / Misc / OSGDoubleTransform.h
blobc9e6f8bd47c3d6b2bbf897bdbb2ad8205bff7f73
1 /*---------------------------------------------------------------------------*\
2 * OpenSG *
3 * *
4 * *
5 * Copyright (C) 2000-2006 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 _OSGDOUBLETRANSFORM_H_
40 #define _OSGDOUBLETRANSFORM_H_
41 #ifdef __sgi
42 #pragma once
43 #endif
45 #include "OSGConfig.h"
46 #include "OSGDoubleTransformBase.h"
48 #ifdef OSG_HAVE_ACTION //CHECK
49 #include "OSGActorBase.h"
50 #endif
52 OSG_BEGIN_NAMESPACE
54 /*! \brief DoubleTransform class. See \ref
55 PageGroupDoubleTransform for a description.
56 \ingroup GrpGroupMiscObj
57 \ingroup GrpLibOSGGroup
58 \includebasedoc
61 class OSG_GROUP_DLLMAPPING DoubleTransform : public DoubleTransformBase
63 protected:
65 /*========================== PUBLIC =================================*/
67 public:
69 typedef DoubleTransformBase Inherited;
70 typedef DoubleTransform Self;
72 /*---------------------------------------------------------------------*/
73 /*! \name Sync */
74 /*! \{ */
76 virtual void changed(ConstFieldMaskArg whichField,
77 UInt32 origin,
78 BitVector details );
80 /*! \} */
81 /*---------------------------------------------------------------------*/
82 /*! \name Transformation */
83 /*! \{ */
85 virtual void accumulateMatrix(Matrix &result);
87 /*! \} */
88 /*---------------------------------------------------------------------*/
89 /*! \name Dump */
90 /*! \{ */
92 virtual void dump( UInt32 uiIndent = 0,
93 const BitVector bvFlags = 0) const;
95 /*! \} */
96 /*========================= PROTECTED ===============================*/
98 protected:
100 // Variables should all be in DoubleTransformBase.
102 /*---------------------------------------------------------------------*/
103 /*! \name Constructors */
104 /*! \{ */
106 DoubleTransform(void);
107 DoubleTransform(const DoubleTransform &source);
109 /*! \} */
110 /*---------------------------------------------------------------------*/
111 /*! \name Destructors */
112 /*! \{ */
114 virtual ~DoubleTransform(void);
116 /*! \} */
117 /*---------------------------------------------------------------------*/
118 /*! \name Init */
119 /*! \{ */
121 static void initMethod(InitPhase ePhase);
123 /*! \} */
124 /*---------------------------------------------------------------------*/
125 /*! \name Volume */
126 /*! \{ */
128 virtual void adjustVolume (Volume &volume);
130 /*! \} */
131 /*---------------------------------------------------------------------*/
132 /*! \name Intersect & Render */
133 /*! \{ */
135 Action::ResultE intersectEnter(Action *action);
136 Action::ResultE intersectLeave(Action *action);
138 Action::ResultE renderEnter (Action *action);
139 Action::ResultE renderLeave (Action *action);
141 /*! \} */
142 /*========================== PRIVATE ================================*/
144 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;
155 OSG_END_NAMESPACE
157 #include "OSGDoubleTransformBase.inl"
158 #include "OSGDoubleTransform.inl"
160 #endif /* _OSGDOUBLETRANSFORM_H_ */