Changeset 281
- Timestamp:
- 10/12/06 06:35:54 (2 years ago)
- Files:
-
- trunk/Source/System/NodeCores/Groups/Misc/OSGInverseTransform.cpp (modified) (9 diffs)
- trunk/Source/System/NodeCores/Groups/Misc/OSGInverseTransform.h (modified) (4 diffs)
- trunk/Source/System/NodeCores/Groups/Misc/OSGSwitch.cpp (modified) (4 diffs)
- trunk/Source/System/NodeCores/Groups/Misc/OSGSwitch.h (modified) (1 diff)
- trunk/VSBuild/OpenSGES/GroupLib/GroupLib.vcproj (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Source/System/NodeCores/Groups/Misc/OSGInverseTransform.cpp
r106 r281 48 48 49 49 #include "OSGInverseTransform.h" 50 #ifndef OSG_WINCE 50 51 #include "OSGIntersectAction.h" 52 #endif 51 53 #include "OSGRenderAction.h" 52 54 #include "OSGNode.h" … … 76 78 if(ePhase == TypeObject::SystemPost) 77 79 { 80 #ifndef OSG_WINCE 78 81 IntersectAction::registerEnterDefault( 79 82 getClassType(), … … 85 88 reinterpret_cast<Action::Callback>( 86 89 &InverseTransform::intersectLeave)); 87 90 #endif 88 91 89 92 RenderAction::registerEnterDefault( … … 146 149 } 147 150 148 void InverseTransform::accumulateMatrix(Matrix &result)151 void InverseTransform::accumulateMatrix(Matrixr &result) 149 152 { 150 153 result.mult(_invWorld); … … 154 157 155 158 void InverseTransform::calcMatrix( DrawActionBase *, 156 const Matrix &mToWorld,157 Matrix &mResult)159 const Matrixr &mToWorld, 160 Matrixr &mResult) 158 161 { 159 162 mResult.invertFrom(mToWorld); … … 162 165 } 163 166 164 void InverseTransform::initMatrix(const Matrix &mToWorld)167 void InverseTransform::initMatrix(const Matrixr &mToWorld) 165 168 { 166 169 _invWorld.invertFrom(mToWorld); … … 173 176 /* Intersect */ 174 177 178 #ifndef OSG_WINCE 175 179 Action::ResultE InverseTransform::intersectEnter(Action *action) 176 180 { … … 208 212 return Action::Continue; 209 213 } 214 #endif 210 215 211 216 /*-------------------------------------------------------------------------*/ … … 215 220 { 216 221 RenderAction *pAction = dynamic_cast<RenderAction *>(action); 217 Matrix mMat; // will be set to World^-1222 Matrixr mMat; // will be set to World^-1 218 223 219 224 calcMatrix(pAction, pAction->top_matrix(), mMat); trunk/Source/System/NodeCores/Groups/Misc/OSGInverseTransform.h
r106 r281 76 76 /*! \{ */ 77 77 78 void initMatrix(const Matrix &mToWorld);78 void initMatrix(const Matrixr &mToWorld); 79 79 80 80 void calcMatrix( DrawActionBase *pAction, 81 const Matrix &mToWorld,82 Matrix &mResult);81 const Matrixr &mToWorld, 82 Matrixr &mResult); 83 83 84 84 /*! \} */ … … 117 117 /*! \{ */ 118 118 119 void adjustVolume (Volume &volume);119 void adjustVolume (Volume &volume); 120 120 121 virtual void accumulateMatrix(Matrix &result);121 virtual void accumulateMatrix(Matrixr &result); 122 122 123 123 /*! \} */ … … 126 126 /*! \{ */ 127 127 128 #ifndef OSG_WINCE 128 129 Action::ResultE intersectEnter(Action *action); 129 130 Action::ResultE intersectLeave(Action *action); 131 #endif 130 132 131 133 Action::ResultE renderEnter (Action *action); … … 152 154 friend class InverseTransformBase; 153 155 154 Matrix _invWorld;156 Matrixr _invWorld; 155 157 156 158 // prohibit default functions (move to 'public' if you need one) trunk/Source/System/NodeCores/Groups/Misc/OSGSwitch.cpp
r106 r281 45 45 46 46 #include <OSGRenderAction.h> 47 #ifndef OSG_WINCE 47 48 #include <OSGIntersectAction.h> 49 #endif 48 50 49 51 OSG_USING_NAMESPACE … … 123 125 } 124 126 127 #ifndef OSG_WINCE 125 128 ActionBase::ResultE Switch::intersect(Action *action) 126 129 { … … 144 147 return returnValue; 145 148 } 149 #endif 146 150 147 151 /*-------------------------------------------------------------------------*/ … … 158 162 reinterpret_cast<Action::Callback>(&Switch::render)); 159 163 164 #ifndef OSG_WINCE 160 165 IntersectAction::registerEnterDefault( 161 166 getClassType(), 162 167 reinterpret_cast<Action::Callback>(&Switch::intersect)); 168 #endif 163 169 } 164 170 } trunk/Source/System/NodeCores/Groups/Misc/OSGSwitch.h
r106 r281 112 112 /*! \{ */ 113 113 114 #ifndef OSG_WINCE 114 115 ActionBase::ResultE intersect(Action *action); 116 #endif 115 117 116 118 /*! \} */ trunk/VSBuild/OpenSGES/GroupLib/GroupLib.vcproj
r16 r281 237 237 </File> 238 238 <File 239 RelativePath="..\..\..\Source\System\NodeCores\Groups\Misc\OSGInverseTransform.cpp" 240 > 241 </File> 242 <File 243 RelativePath="..\..\..\Source\System\NodeCores\Groups\Misc\OSGInverseTransformBase.cpp" 244 > 245 </File> 246 <File 247 RelativePath="..\..\..\Source\System\NodeCores\Groups\Misc\OSGSwitch.cpp" 248 > 249 </File> 250 <File 251 RelativePath="..\..\..\Source\System\NodeCores\Groups\Misc\OSGSwitchBase.cpp" 252 > 253 </File> 254 <File 239 255 RelativePath="..\..\..\Source\System\NodeCores\Groups\Misc\OSGTransform.cpp" 240 256 > … … 385 401 /> 386 402 </FileConfiguration> 403 </File> 404 <File 405 RelativePath="..\..\..\Source\System\NodeCores\Groups\Misc\OSGInverseTransform.h" 406 > 407 </File> 408 <File 409 RelativePath="..\..\..\Source\System\NodeCores\Groups\Misc\OSGInverseTransform.inl" 410 > 411 </File> 412 <File 413 RelativePath="..\..\..\Source\System\NodeCores\Groups\Misc\OSGInverseTransformBase.h" 414 > 415 </File> 416 <File 417 RelativePath="..\..\..\Source\System\NodeCores\Groups\Misc\OSGInverseTransformBase.inl" 418 > 419 </File> 420 <File 421 RelativePath="..\..\..\Source\System\NodeCores\Groups\Misc\OSGInverseTransformFields.h" 422 > 423 </File> 424 <File 425 RelativePath="..\..\..\Source\System\NodeCores\Groups\Misc\OSGSwitch.h" 426 > 427 </File> 428 <File 429 RelativePath="..\..\..\Source\System\NodeCores\Groups\Misc\OSGSwitch.inl" 430 > 431 </File> 432 <File 433 RelativePath="..\..\..\Source\System\NodeCores\Groups\Misc\OSGSwitchBase.h" 434 > 435 </File> 436 <File 437 RelativePath="..\..\..\Source\System\NodeCores\Groups\Misc\OSGSwitchBase.inl" 438 > 439 </File> 440 <File 441 RelativePath="..\..\..\Source\System\NodeCores\Groups\Misc\OSGSwitchFields.h" 442 > 387 443 </File> 388 444 <File
