TDME2 1.9.121
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SimplePartition Class Referencefinal

Bogus/Simple partition implementation. More...

#include <tdme/engine/SimplePartition.h>

Inheritance diagram for SimplePartition:
Inheritance graph
Collaboration diagram for SimplePartition:
Collaboration graph

Public Member Functions

 SimplePartition ()
 Public constructor. More...
 
const vector< Entity * > & getVisibleEntities (Frustum *frustum) override
 Get visible entities. More...
 
bool isVisibleEntity (Entity *entity) override
 Check if entity is visible. More...
 
- Public Member Functions inherited from Partition
virtual ~Partition ()
 Destructor. More...
 
virtual void reset ()=0
 Reset. More...
 
virtual void addEntity (Entity *entity)=0
 Adds a entity. More...
 
virtual void updateEntity (Entity *entity)=0
 Updates a entity. More...
 
virtual void removeEntity (Entity *entity)=0
 Removes a entity. More...
 
virtual const vector< Entity * > & getVisibleEntities (Frustum *frustum)=0
 Get visible entities. More...
 
virtual bool isVisibleEntity (Entity *entity)=0
 Check if entity is visible. More...
 

Private Member Functions

void reset () override
 Reset. More...
 
void addEntity (Entity *entity) override
 Adds a entity. More...
 
void updateEntity (Entity *entity) override
 Updates a entity. More...
 
void removeEntity (Entity *entity) override
 Removes a entity. More...
 

Private Attributes

vector< Entity * > entities
 
VectorIteratorMultiple< Entity * > arrayListIteratorMultiple
 

Detailed Description

Bogus/Simple partition implementation.

Author
Andreas Drewke
Version
$Id$

Definition at line 23 of file SimplePartition.h.

Constructor & Destructor Documentation

◆ SimplePartition()

Public constructor.

Definition at line 17 of file SimplePartition.cpp.

Member Function Documentation

◆ addEntity()

void addEntity ( Entity entity)
overrideprivatevirtual

Adds a entity.

Parameters
entityentity

Implements Partition.

Definition at line 27 of file SimplePartition.cpp.

◆ getVisibleEntities()

const vector< Entity * > & getVisibleEntities ( Frustum frustum)
overridevirtual

Get visible entities.

Parameters
frustumfrustum
Returns
visible entities

Implements Partition.

Definition at line 50 of file SimplePartition.cpp.

◆ isVisibleEntity()

bool isVisibleEntity ( Entity entity)
overridevirtual

Check if entity is visible.

Parameters
frustumfrustum
entityentity
Returns
if entity has been determined to be visible by last getVisibleEntities() call

Implements Partition.

Definition at line 55 of file SimplePartition.cpp.

◆ removeEntity()

void removeEntity ( Entity entity)
overrideprivatevirtual

Removes a entity.

Parameters
entityentity

Implements Partition.

Definition at line 40 of file SimplePartition.cpp.

◆ reset()

void reset ( )
overrideprivatevirtual

Reset.

Implements Partition.

Definition at line 22 of file SimplePartition.cpp.

◆ updateEntity()

void updateEntity ( Entity entity)
overrideprivatevirtual

Updates a entity.

Parameters
entityentity

Implements Partition.

Definition at line 36 of file SimplePartition.cpp.

Member Data Documentation

◆ arrayListIteratorMultiple

VectorIteratorMultiple<Entity*> arrayListIteratorMultiple
private

Definition at line 27 of file SimplePartition.h.

◆ entities

vector<Entity*> entities
private

Definition at line 26 of file SimplePartition.h.


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