C#Code
C#Code
Public Member Functions | Private Attributes
Libraries._3D.ModelManager3D Class Reference

List of all members.

Public Member Functions

 ModelManager3D ()
 ModelManager3D (StringType ID)
 ModelManager3D (string ID)
int GetModelInd (StringType ID)
int GetModelInd (string ID)
BaseModel GetModel (StringType ID)
BaseModel GetModel (string ID)
bool AddModel (BaseModel model)
void RemoveModel (StringType ID)
void Update (int timePassed)
void Render (Microsoft.Xna.Framework.Graphics.GraphicsDevice device)
StringType GetID ()
 ModelManager3D ()
 ModelManager3D (StringType ID)
 ModelManager3D (string ID)
int GetModelInd (StringType ID)
int GetModelInd (string ID)
BaseModel GetModel (StringType ID)
BaseModel GetModel (string ID)
bool AddModel (BaseModel model)
void RemoveModel (StringType ID)
void Update (int timePassed)
void Render (Microsoft.Xna.Framework.Graphics.GraphicsDevice device)
StringType GetID ()

Private Attributes

List< BaseModelm_models
 Stores models in the manager.
StringType m_ID
 ID of the manager. If null it is a unnamed manager.

Detailed Description

Stores 3D models. It can call update and render on the models, as well as give access to specific models. It is a generic way to store 3D models.


Constructor & Destructor Documentation

Libraries._3D.ModelManager3D.ModelManager3D ( )

Constructor

Libraries._3D.ModelManager3D.ModelManager3D ( StringType  ID)

Constructor.

ID - ID to use for the manager.
Libraries._3D.ModelManager3D.ModelManager3D ( string  ID)

Constructor.

ID - ID to use for the manager.
Libraries._3D.ModelManager3D.ModelManager3D ( )

Constructor

Libraries._3D.ModelManager3D.ModelManager3D ( StringType  ID)

Constructor.

ID - ID to use for the manager.
Libraries._3D.ModelManager3D.ModelManager3D ( string  ID)

Constructor.

ID - ID to use for the manager.

Member Function Documentation

bool Libraries._3D.ModelManager3D.AddModel ( BaseModel  model)

Adds the given model to the manager, if possible. If it is a named model and a model already exists with the same ID, the model will not be added. The model will be added to the end of the list.

model - Model to add. Can be named or unnamed.

Return:
Value is true if the model was added, false if not.
bool Libraries._3D.ModelManager3D.AddModel ( BaseModel  model)

Adds the given model to the manager, if possible. If it is a named model and a model already exists with the same ID, the model will not be added. The model will be added to the end of the list.

model - Model to add. Can be named or unnamed.

Return:
Value is true if the model was added, false if not.
StringType Libraries._3D.ModelManager3D.GetID ( )

Returns the ID of the model.

Return:
Value is the model's ID. Value is null if the model does not have a ID.

StringType Libraries._3D.ModelManager3D.GetID ( )

Returns the ID of the model.

Return:
Value is the model's ID. Value is null if the model does not have a ID.

BaseModel Libraries._3D.ModelManager3D.GetModel ( StringType  ID)

Retrive the model with the given ID.

ID - ID of the model to look for.

Return:
Value is the model if found, null if not.
BaseModel Libraries._3D.ModelManager3D.GetModel ( string  ID)

Retrive the model with the given ID.

ID - ID of the model to look for.

Return:
Value is the model if found, null if not.
BaseModel Libraries._3D.ModelManager3D.GetModel ( string  ID)

Retrive the model with the given ID.

ID - ID of the model to look for.

Return:
Value is the model if found, null if not.
BaseModel Libraries._3D.ModelManager3D.GetModel ( StringType  ID)

Retrive the model with the given ID.

ID - ID of the model to look for.

Return:
Value is the model if found, null if not.
int Libraries._3D.ModelManager3D.GetModelInd ( StringType  ID)

Looks for a model with the given ID and returns the index it is stored at. This can't be used to get unnamed models.

ID - ID of the model to look for.

Return:
Value is the index the model is stored at, -1 if not found.
int Libraries._3D.ModelManager3D.GetModelInd ( string  ID)

Looks for a model with the given ID and returns the index it is stored at. This can't be used to get unnamed models.

ID - ID of the model to look for.

Return:
Value is the index the model is stored at, -1 if not found.
int Libraries._3D.ModelManager3D.GetModelInd ( string  ID)

Looks for a model with the given ID and returns the index it is stored at. This can't be used to get unnamed models.

ID - ID of the model to look for.

Return:
Value is the index the model is stored at, -1 if not found.
int Libraries._3D.ModelManager3D.GetModelInd ( StringType  ID)

Looks for a model with the given ID and returns the index it is stored at. This can't be used to get unnamed models.

ID - ID of the model to look for.

Return:
Value is the index the model is stored at, -1 if not found.
void Libraries._3D.ModelManager3D.RemoveModel ( StringType  ID)

Checks for and removes the model with the given ID, if found. Does nothing if the model isn't found.

ID - ID of the model to find.
void Libraries._3D.ModelManager3D.RemoveModel ( StringType  ID)

Checks for and removes the model with the given ID, if found. Does nothing if the model isn't found.

ID - ID of the model to find.
void Libraries._3D.ModelManager3D.Render ( Microsoft.Xna.Framework.Graphics.GraphicsDevice  device)

Calls the render function for all stored models.

ID - ID of the model to find.
void Libraries._3D.ModelManager3D.Render ( Microsoft.Xna.Framework.Graphics.GraphicsDevice  device)

Calls the render function for all stored models.

ID - ID of the model to find.
void Libraries._3D.ModelManager3D.Update ( int  timePassed)

Calls the update function for all stored models.

timePassed - How long the update should handle.
void Libraries._3D.ModelManager3D.Update ( int  timePassed)

Calls the update function for all stored models.

timePassed - How long the update should handle.

Member Data Documentation

ID of the manager. If null it is a unnamed manager.

Stores models in the manager.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Enumerations Properties