Newton Dynamics  4.00
ndSceneMixed.h
1 /* Copyright (c) <2003-2019> <Julio Jerez, Newton Game Dynamics>
2 *
3 * This software is provided 'as-is', without any express or implied
4 * warranty. In no event will the authors be held liable for any damages
5 * arising from the use of this software.
6 *
7 * Permission is granted to anyone to use this software for any purpose,
8 * including commercial applications, and to alter it and redistribute it
9 * freely, subject to the following restrictions:
10 *
11 * 1. The origin of this software must not be misrepresented; you must not
12 * claim that you wrote the original software. If you use this software
13 * in a product, an acknowledgment in the product documentation would be
14 * appreciated but is not required.
15 *
16 * 2. Altered source versions must be plainly marked as such, and must not be
17 * misrepresented as being the original software.
18 *
19 * 3. This notice may not be removed or altered from any source distribution.
20 */
21 
22 #ifndef __D_SCENE_DEFAULT_H__
23 #define __D_SCENE_DEFAULT_H__
24 
25 #include "ndCollisionStdafx.h"
26 #include "ndScene.h"
27 
28 class ndRayCastNotify;
29 
30 D_MSV_NEWTON_ALIGN_32
31 class ndSceneMixed : public ndScene
32 {
33  public:
34  D_COLLISION_API ndSceneMixed();
35  D_COLLISION_API virtual ~ndSceneMixed();
36 
37  protected:
38  D_COLLISION_API virtual bool AddBody(ndBodyKinematic* const body);
39  D_COLLISION_API virtual bool RemoveBody(ndBodyKinematic* const body);
40  D_COLLISION_API virtual dFloat32 RayCast(ndRayCastNotify& callback, const dVector& p0, const dVector& p1) const;
41  D_COLLISION_API virtual void Cleanup();
42  D_COLLISION_API void BalanceScene();
43 
44  D_COLLISION_API virtual void DebugScene(ndSceneTreeNotiFy* const notify);
45 
46  private:
47  D_COLLISION_API void AddNode(ndSceneNode* const newNode);
48  D_COLLISION_API void RemoveNode(ndSceneNode* const newNode);
49  D_COLLISION_API void FindCollidinPairs(dInt32 threadIndex, ndBodyKinematic* const body, bool oneWay);
50 
51  dFloat64 m_treeEntropy;
52  ndFitnessList m_fitness;
53 
54 } D_GCC_NEWTON_ALIGN_32 ;
55 
56 
57 
58 
59 #endif
ndSceneMixed
Definition: ndSceneMixed.h:32
ndScene
Definition: ndScene.h:60
ndSceneTreeNotiFy
Definition: ndScene.h:42
ndRayCastNotify
Definition: ndRayCastNotify.h:33
ndScene::ndFitnessList
Definition: ndScene.h:73
ndBodyKinematic
Definition: ndBodyKinematic.h:37
ndSceneNode
Definition: ndSceneNode.h:34
dVector
Definition: dVectorArmNeon.h:1104