My Project: dynamics.mod/NewtonDynamics/source/physics/dgCollisionScene.h Source File

My Project

dgCollisionScene.h
Go to the documentation of this file.
1 /* Copyright (c) <2003-2011> <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
23 #ifndef _DGCOLLISIONSCENE_H_
24 #define _DGCOLLISIONSCENE_H_
25
26
27 #include "dgCollision.h"
28 #include "dgCollisionCompound.h"
29
30
31 class dgCollisionScene: public dgCollisionCompound
32 {
33 public:
34 dgCollisionScene(dgWorld* const world);
35 dgCollisionScene (const dgCollisionScene& source, const dgCollisionInstance* const myInstance);
36 dgCollisionScene(dgWorld* const world, dgDeserialize deserialization, void* const userData, const dgCollisionInstance* const myInstance);
37 virtual ~dgCollisionScene();
38
39 void CollidePair (dgCollidingPairCollector::dgPair* const pair, dgCollisionParamProxy& proxy) const;
40 void CollideCompoundPair (dgCollidingPairCollector::dgPair* const pair, dgCollisionParamProxy& proxy) const;
41 virtual void MassProperties ();
42 virtual void Serialize(dgSerialize callback, void* const userData) const;
43
44 dgFloat32 GetBoxMinRadius () const;
45 dgFloat32 GetBoxMaxRadius () const;
46 };
47
48 #endif
dgCollisionScene::MassProperties
virtual void MassProperties()
Definition: dgCollisionScene.cpp:65
dgCollidingPairCollector::dgPair
Definition: dgContact.h:52
dgCollisionScene::dgCollisionScene
dgCollisionScene(dgWorld *const world)
Definition: dgCollisionScene.cpp:31
userData
void *const userData
Definition: dgBroadPhase.h:35
dgCollisionScene::~dgCollisionScene
virtual ~dgCollisionScene()
Definition: dgCollisionScene.cpp:50
dgFloat32
float dgFloat32
Definition: dgTypes.h:233
dgCollisionScene::GetBoxMinRadius
dgFloat32 GetBoxMinRadius() const
Definition: dgCollisionScene.cpp:54
dgSerialize
void(dgApi * dgSerialize)(void *const userData, const void *const buffer, size_t size)
Definition: dgTypes.h:280
dgCollisionScene::CollideCompoundPair
void CollideCompoundPair(dgCollidingPairCollector::dgPair *const pair, dgCollisionParamProxy &proxy) const
Definition: dgCollisionScene.cpp:232
dgDeserialize
void(dgApi * dgDeserialize)(void *const userData, void *buffer, size_t size)
Definition: dgTypes.h:279
dgCollisionScene::Serialize
virtual void Serialize(dgSerialize callback, void *const userData) const
Definition: dgCollisionScene.cpp:381
dgCollisionCompound.h
dgCollisionInstance
Definition: dgCollisionInstance.h:30
dgCollisionScene
Definition: dgCollisionScene.h:31
dgCollision.h
dgCollisionScene::GetBoxMaxRadius
dgFloat32 GetBoxMaxRadius() const
Definition: dgCollisionScene.cpp:59
dgWorld
Definition: dgWorld.h:129
dgCollisionScene::CollidePair
void CollidePair(dgCollidingPairCollector::dgPair *const pair, dgCollisionParamProxy &proxy) const
Definition: dgCollisionScene.cpp:72
dgCollisionCompound
Definition: dgCollisionCompound.h:35
dgCollisionParamProxy
Definition: dgContact.h:93