Classes | Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
DynamicTree Class Reference
Inheritance diagram for DynamicTree:
Inheritance graph
[legend]

Classes

struct  Actor
 

Public Types

enum  { e_actorCount = 128 }
 

Public Member Functions

 DynamicTree ()
 
void Keyboard (int key) override
 
bool QueryCallback (int32 proxyId)
 
float RayCastCallback (const b2RayCastInput &input, int32 proxyId)
 
void Step (Settings &settings) override
 
- Public Member Functions inherited from Test
virtual void BeginContact (b2Contact *contact) override
 Called when two fixtures begin to touch. More...
 
void CompleteBombSpawn (const b2Vec2 &p)
 
void DrawTitle (const char *string)
 
virtual void EndContact (b2Contact *contact) override
 Called when two fixtures cease to touch. More...
 
virtual void JointDestroyed (b2Joint *joint)
 
virtual void KeyboardUp (int key)
 
void LaunchBomb ()
 
void LaunchBomb (const b2Vec2 &position, const b2Vec2 &velocity)
 
virtual void MouseDown (const b2Vec2 &p)
 
virtual void MouseMove (const b2Vec2 &p)
 
virtual void MouseUp (const b2Vec2 &p)
 
virtual void PostSolve (b2Contact *contact, const b2ContactImpulse *impulse) override
 
virtual void PreSolve (b2Contact *contact, const b2Manifold *oldManifold) override
 
void ShiftMouseDown (const b2Vec2 &p)
 
void ShiftOrigin (const b2Vec2 &newOrigin)
 
void SpawnBomb (const b2Vec2 &worldPt)
 
 Test ()
 
virtual void UpdateUI ()
 
virtual ~Test ()
 
- Public Member Functions inherited from b2ContactListener
virtual ~b2ContactListener ()
 

Static Public Member Functions

static TestCreate ()
 

Private Member Functions

void Action ()
 
void CreateProxy ()
 
void DestroyProxy ()
 
void GetRandomAABB (b2AABB *aabb)
 
void MoveAABB (b2AABB *aabb)
 
void MoveProxy ()
 
void Query ()
 
void RayCast ()
 

Private Attributes

Actor m_actors [e_actorCount]
 
bool m_automated
 
float m_proxyExtent
 
b2AABB m_queryAABB
 
Actorm_rayActor
 
b2RayCastInput m_rayCastInput
 
b2RayCastOutput m_rayCastOutput
 
int32 m_stepCount
 
b2DynamicTree m_tree
 
float m_worldExtent
 

Additional Inherited Members

- Protected Attributes inherited from Test
b2Bodym_bomb
 
bool m_bombSpawning
 
b2Vec2 m_bombSpawnPoint
 
DestructionListener m_destructionListener
 
b2Bodym_groundBody
 
b2Profile m_maxProfile
 
b2MouseJointm_mouseJoint
 
b2Vec2 m_mouseWorld
 
int32 m_pointCount
 
ContactPoint m_points [k_maxContactPoints]
 
int32 m_stepCount
 
int32 m_textIncrement
 
int32 m_textLine
 
b2Profile m_totalProfile
 
b2Worldm_world
 
b2AABB m_worldAABB
 

Detailed Description

Definition at line 25 of file dynamic_tree.cpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
e_actorCount 

Definition at line 29 of file dynamic_tree.cpp.

Constructor & Destructor Documentation

◆ DynamicTree()

DynamicTree::DynamicTree ( )
inline

Definition at line 34 of file dynamic_tree.cpp.

Member Function Documentation

◆ Action()

void DynamicTree::Action ( )
inlineprivate

Definition at line 276 of file dynamic_tree.cpp.

◆ Create()

static Test* DynamicTree::Create ( )
inlinestatic

Definition at line 63 of file dynamic_tree.cpp.

◆ CreateProxy()

void DynamicTree::CreateProxy ( )
inlineprivate

Definition at line 227 of file dynamic_tree.cpp.

◆ DestroyProxy()

void DynamicTree::DestroyProxy ( )
inlineprivate

Definition at line 242 of file dynamic_tree.cpp.

◆ GetRandomAABB()

void DynamicTree::GetRandomAABB ( b2AABB aabb)
inlineprivate

Definition at line 198 of file dynamic_tree.cpp.

◆ Keyboard()

void DynamicTree::Keyboard ( int  key)
inlineoverridevirtual

Reimplemented from Test.

Definition at line 141 of file dynamic_tree.cpp.

◆ MoveAABB()

void DynamicTree::MoveAABB ( b2AABB aabb)
inlineprivate

Definition at line 208 of file dynamic_tree.cpp.

◆ MoveProxy()

void DynamicTree::MoveProxy ( )
inlineprivate

Definition at line 257 of file dynamic_tree.cpp.

◆ Query()

void DynamicTree::Query ( )
inlineprivate

Definition at line 295 of file dynamic_tree.cpp.

◆ QueryCallback()

bool DynamicTree::QueryCallback ( int32  proxyId)
inline

Definition at line 163 of file dynamic_tree.cpp.

◆ RayCast()

void DynamicTree::RayCast ( )
inlineprivate

Definition at line 312 of file dynamic_tree.cpp.

◆ RayCastCallback()

float DynamicTree::RayCastCallback ( const b2RayCastInput input,
int32  proxyId 
)
inline

Definition at line 170 of file dynamic_tree.cpp.

◆ Step()

void DynamicTree::Step ( Settings settings)
inlineoverridevirtual

Reimplemented from Test.

Definition at line 68 of file dynamic_tree.cpp.

Member Data Documentation

◆ m_actors

Actor DynamicTree::m_actors[e_actorCount]
private

Definition at line 355 of file dynamic_tree.cpp.

◆ m_automated

bool DynamicTree::m_automated
private

Definition at line 357 of file dynamic_tree.cpp.

◆ m_proxyExtent

float DynamicTree::m_proxyExtent
private

Definition at line 348 of file dynamic_tree.cpp.

◆ m_queryAABB

b2AABB DynamicTree::m_queryAABB
private

Definition at line 351 of file dynamic_tree.cpp.

◆ m_rayActor

Actor* DynamicTree::m_rayActor
private

Definition at line 354 of file dynamic_tree.cpp.

◆ m_rayCastInput

b2RayCastInput DynamicTree::m_rayCastInput
private

Definition at line 352 of file dynamic_tree.cpp.

◆ m_rayCastOutput

b2RayCastOutput DynamicTree::m_rayCastOutput
private

Definition at line 353 of file dynamic_tree.cpp.

◆ m_stepCount

int32 DynamicTree::m_stepCount
private

Definition at line 356 of file dynamic_tree.cpp.

◆ m_tree

b2DynamicTree DynamicTree::m_tree
private

Definition at line 350 of file dynamic_tree.cpp.

◆ m_worldExtent

float DynamicTree::m_worldExtent
private

Definition at line 347 of file dynamic_tree.cpp.


The documentation for this class was generated from the following file:


mvsim
Author(s):
autogenerated on Tue Jul 4 2023 03:08:22