C#Code
C#Code
Public Member Functions | Static Public Attributes | Properties | Private Attributes | Static Private Attributes
Libraries._3D.Manager3D Class Reference

List of all members.

Public Member Functions

 Manager3D ()
ModelVertexData.ExtractModelData GetModelVertexDataManager ()
ModelManager3D GetModelManager (StringType ID)
ModelManager3D GetModelManager (string ID)
ModelManager3D GetModelManager ()
int GetModelManagerInd (StringType ID)
bool AddModelManager (StringType ID)
Camera3D GetCamera (StringType ID)
Camera3D GetCamera (string ID)
int GetCameraInd (StringType ID)
int GetCameraInd (string ID)
Camera3D GetDefaultCamera ()
bool AddCamera (StringType ID)
bool AddCamera (Camera3D cam)
void Update (int timePassed)
void Render (Microsoft.Xna.Framework.Graphics.GraphicsDevice device)
 Manager3D ()
ModelVertexData.ExtractModelData GetModelVertexDataManager ()
ModelManager3D GetModelManager (StringType ID)
ModelManager3D GetModelManager (string ID)
ModelManager3D GetModelManager ()
int GetModelManagerInd (StringType ID)
bool AddModelManager (StringType ID)
Camera3D GetCamera (StringType ID)
Camera3D GetCamera (string ID)
int GetCameraInd (StringType ID)
int GetCameraInd (string ID)
Camera3D GetDefaultCamera ()
bool AddCamera (StringType ID)
bool AddCamera (Camera3D cam)
void Update (int timePassed)
void Render (Microsoft.Xna.Framework.Graphics.GraphicsDevice device)

Static Public Attributes

static readonly string s_defaultModelM = "default"
 Default model manager ID. The manager associated with this will always exist.
static readonly string s_defaulCameraM = "default"
 Default camera ID. The camera associated with this will always exist.

Properties

static Manager3D Instance [get]

Private Attributes

List< Camera3Dm_cameras
 Stores all the cameras.
List< ModelManager3Dm_modelManagers
 Stores all the model managers.
Libraries._3D.ModelVertexData.ExtractModelData m_modelVertexDataM
 Extracts model vertex data from models and stores it for later use.

Static Private Attributes

static Manager3D s_instance
 Singleton instance.

Detailed Description

Generic handler used to setup and run 3D. It can handles models, cameras, etc.


Constructor & Destructor Documentation

Libraries._3D.Manager3D.Manager3D ( )

Default constructor.

Libraries._3D.Manager3D.Manager3D ( )

Default constructor.


Member Function Documentation

bool Libraries._3D.Manager3D.AddCamera ( StringType  ID)

Create and add a camera with the given ID. If a camera already exists with the given name, nothing happens.

ID - ID of the manager to create.

Return:
Value is true if the manager could be added, false if not.
bool Libraries._3D.Manager3D.AddCamera ( Camera3D  cam)

Addes the given camera to the manager if no camera with the same ID already exists.

cam - Camera to add.

Return:
Value is true if the manager could be added, false if not.
bool Libraries._3D.Manager3D.AddCamera ( StringType  ID)

Create and add a camera with the given ID. If a camera already exists with the given name, nothing happens.

ID - ID of the manager to create.

Return:
Value is true if the manager could be added, false if not.
bool Libraries._3D.Manager3D.AddCamera ( Camera3D  cam)

Addes the given camera to the manager if no camera with the same ID already exists.

cam - Camera to add.

Return:
Value is true if the manager could be added, false if not.
bool Libraries._3D.Manager3D.AddModelManager ( StringType  ID)

Create and add a model manager with the given ID. If a model manager already exists with the given name, nothing happens.

ID - ID of the manager to create.

Return:
Value is true if the manager could be added, false if not.
bool Libraries._3D.Manager3D.AddModelManager ( StringType  ID)

Create and add a model manager with the given ID. If a model manager already exists with the given name, nothing happens.

ID - ID of the manager to create.

Return:
Value is true if the manager could be added, false if not.
Camera3D Libraries._3D.Manager3D.GetCamera ( string  ID)

Retrives the camera manager with the given ID, if possible.

ID - ID of the camera manager to get.

Return:
Value is the camera manager that corresponds to the ID, null if no match was found.
Camera3D Libraries._3D.Manager3D.GetCamera ( StringType  ID)

Retrives the camera manager with the given ID, if possible.

ID - ID of the camera manager to get.

Return:
Value is the camera manager that corresponds to the ID, null if no match was found.
Camera3D Libraries._3D.Manager3D.GetCamera ( string  ID)

Retrives the camera manager with the given ID, if possible.

ID - ID of the camera manager to get.

Return:
Value is the camera manager that corresponds to the ID, null if no match was found.
Camera3D Libraries._3D.Manager3D.GetCamera ( StringType  ID)

Retrives the camera manager with the given ID, if possible.

ID - ID of the camera manager to get.

Return:
Value is the camera manager that corresponds to the ID, null if no match was found.
int Libraries._3D.Manager3D.GetCameraInd ( StringType  ID)

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

ID - ID of the manager to look for. null gets the default camera.

Return:
Value is the index the manager is stored at, -1 if not found.
int Libraries._3D.Manager3D.GetCameraInd ( string  ID)

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

ID - ID of the manager to look for. null gets the default camera.

Return:
Value is the index the manager is stored at, -1 if not found.
int Libraries._3D.Manager3D.GetCameraInd ( StringType  ID)

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

ID - ID of the manager to look for. null gets the default camera.

Return:
Value is the index the manager is stored at, -1 if not found.
int Libraries._3D.Manager3D.GetCameraInd ( string  ID)

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

ID - ID of the manager to look for. null gets the default camera.

Return:
Value is the index the manager is stored at, -1 if not found.
Camera3D Libraries._3D.Manager3D.GetDefaultCamera ( )

Get the default camera.

Return:
Value is the default camera.

Camera3D Libraries._3D.Manager3D.GetDefaultCamera ( )

Get the default camera.

Return:
Value is the default camera.

ModelManager3D Libraries._3D.Manager3D.GetModelManager ( StringType  ID)

Retrives the model manager with the given ID, if possible.

ID - ID of the model manager to get.

Return:
Value is the model manager that corresponds to the ID, null if no match was found.
ModelManager3D Libraries._3D.Manager3D.GetModelManager ( )

Retrives the default model manager.

Return:
Value is the model manager.

ModelManager3D Libraries._3D.Manager3D.GetModelManager ( string  ID)

Retrives the model manager with the given ID, if possible.

ID - ID of the model manager to get.

Return:
Value is the model manager that corresponds to the ID, null if no match was found.
ModelManager3D Libraries._3D.Manager3D.GetModelManager ( string  ID)

Retrives the model manager with the given ID, if possible.

ID - ID of the model manager to get.

Return:
Value is the model manager that corresponds to the ID, null if no match was found.
ModelManager3D Libraries._3D.Manager3D.GetModelManager ( )

Retrives the default model manager.

Return:
Value is the model manager.

ModelManager3D Libraries._3D.Manager3D.GetModelManager ( StringType  ID)

Retrives the model manager with the given ID, if possible.

ID - ID of the model manager to get.

Return:
Value is the model manager that corresponds to the ID, null if no match was found.
int Libraries._3D.Manager3D.GetModelManagerInd ( StringType  ID)

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

ID - ID of the manager to look for.

Return:
Value is the index the manager is stored at, -1 if not found.
int Libraries._3D.Manager3D.GetModelManagerInd ( StringType  ID)

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

ID - ID of the manager to look for.

Return:
Value is the index the manager is stored at, -1 if not found.
ModelVertexData.ExtractModelData Libraries._3D.Manager3D.GetModelVertexDataManager ( )

Retrive the model vertex data manager. This can be used to extract verticies from model files and store them for later use. Use this when you want to load a model from file and use its verticies.

ModelVertexData.ExtractModelData Libraries._3D.Manager3D.GetModelVertexDataManager ( )

Retrive the model vertex data manager. This can be used to extract verticies from model files and store them for later use. Use this when you want to load a model from file and use its verticies.

void Libraries._3D.Manager3D.Render ( Microsoft.Xna.Framework.Graphics.GraphicsDevice  device)

Render everything in the manager.

device - Graphics device to render with.
void Libraries._3D.Manager3D.Render ( Microsoft.Xna.Framework.Graphics.GraphicsDevice  device)

Render everything in the manager.

device - Graphics device to render with.
void Libraries._3D.Manager3D.Update ( int  timePassed)

Update everything in the manager.

timePassed - How much time the update is for.
void Libraries._3D.Manager3D.Update ( int  timePassed)

Update everything in the manager.

timePassed - How much time the update is for.

Member Data Documentation

Stores all the cameras.

Stores all the model managers.

Libraries _3D ModelVertexData ExtractModelData Libraries::_3D.Manager3D::m_modelVertexDataM [private]

Extracts model vertex data from models and stores it for later use.

static readonly string Libraries::_3D.Manager3D::s_defaulCameraM = "default" [static]

Default camera ID. The camera associated with this will always exist.

static readonly string Libraries::_3D.Manager3D::s_defaultModelM = "default" [static]

Default model manager ID. The manager associated with this will always exist.

Singleton instance.


Property Documentation

static Manager3D Libraries::_3D.Manager3D::Instance [static, get]

Get the singleton instance of the class.

Return:
Value is the singleton instance.


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