Page principale | Liste des namespaces | Hiérarchie des classes | Liste par ordre alphabétique | Liste des composants | Liste des fichiers | Membres des namespaces | Composants | Déclarations

Référence de la classe ExCGroupEntity

#include <ExCGroupEntity.h>

Graphe d'héritage de la classe ExCGroupEntity

ExCEntity ExCObject3D ExCObject

Membres publics

 ExCGroupEntity (void)
 ~ExCGroupEntity (void)
bool LoadFile (std::string FileName)
void Draw (void)
void SetManagerMesh (ExManagerMesh *Mesh)
void SetManagerGizmo (ExManagerGizmo *Gizmo)
void SetManagerModel (ExManagerModel *Model)
void SetManagerId (ExManagerId *Id)
bool LoadFile (std::ifstream *fin)
void SetCurrentState (bool state)
void ShowInfo (void)
void SetShowInfoState (bool state)
bool GetShowInfoState (void)
void SetAngleX (float Angle)
void SetAngleY (float Angle)
void SetAngleZ (float Angle)
float GetAngleX (void)
float GetAngleY (void)
float GetAngleZ (void)
void SetAcceleration (ExCVec3D Acceleration)
void SetAcceleration (float x, float y, float z)
ExCVec3D GetAcceleration (void)
void SetVelocity (ExCVec3D Velocity)
void SetVelocity (float x, float y, float z)
ExCVec3D GetVelocity (void)
void SetGravity (ExCVec3D Gravity)
void SetGravity (float x, float y, float z)
ExCVec3D GetGravity (void)
void SetPosition (ExCVec3D Position)
void SetPosition (float x, float y, float z)
ExCVec3D GetPosition (void)
void SetTarget (ExCVec3D Target)
void SetTarget (float x, float y, float z)
ExCVec3D GetTarget (void)
void SetOldPosition (ExCVec3D OldPosition)
void SetOldPosition (float x, float y, float z)
ExCVec3D GetOldPosition (void)
void SetOldTarget (ExCVec3D OldTarget)
void SetOldTarget (float x, float y, float z)
ExCVec3D GetOldTarget (void)
void Rotate (float angleX, float angleY, float angleZ)
void Rotate (void)
void SetVisibleState (bool state)
bool GetVisibleState (void)
void SetFlux (std::ostrstream *consol, ExCFluxAction *action)
void SetIdName (ExNihilo::IdName idname)
ExNihilo::ExId GetId (void)
std::string GetName (void)
std::string GetFileName (void)
std::string GetType (void)
void SetId (ExNihilo::ExId Id)
void SetName (std::string Name)
void SetFileName (std::string FileName)
void SetType (std::string Type)

Attributs Publics

std::string m_FileProperty
std::string m_FileMesh
ExNihilo::ExId m_MeshId
std::string m_FileGizmo
std::string m_ManagerType
ExCVec3D m_Scale
std::string m_GroupeName
bool m_HasGroupe
ExCVec3D m_Position
ExCVec3D m_OldPosition
ExCVec3D m_Target
ExCVec3D m_OldTarget
ExCVec3D m_Angle
int m_speed
float m_SphereRadius
bool m_Visible
std::ostrstream * Consol
ExCFluxActionFluxAction

Attributs Protégés

ExCVec3D m_Up
ExCVec3D m_Velocity
ExCVec3D m_Gravity
ExCVec3D m_Acceleration
double m_RefreshTime
double m_Life
double m_StartingLife
float m_Size
float m_Mass
bool m_ShowInfo
bool m_CurrentObject
ExNihilo::ExId m_ObjectId
std::string m_ObjectName
std::string m_ObjectFileName
std::string m_ObjectType

Attributs Privés

ExManagerMeshManagerMesh
ExManagerGizmoManagerGizmo
ExManagerModelManagerModel
ExManagerIdManagerId
std::vector< ExCEntitym_VecEntity
int m_NumberEntity

Documentation des contructeurs et destructeurs

ExCGroupEntity::ExCGroupEntity void   ) 
 

Définition à la ligne 26 du fichier ExCGroupEntity.cpp.

Références ExCGroupEntity(), Guard, ExCEntity::m_GroupeName, ExCEntity::m_HasGroupe, ExCObject3D::m_Visible, ExCObject::SetName(), ExCObject::SetType(), et UnGuard.

Référencé par ExCGroupEntity(), et ~ExCGroupEntity().

00027 {
00028 Guard(ExCGroupEntity::ExCGroupEntity(void))
00029         SetName("ExCGroupEntity");
00030         SetType(typeid(this).name());
00031         m_Visible=true;
00032         m_HasGroupe=false;
00033         m_GroupeName="NONE";
00034 UnGuard
00035 }

ExCGroupEntity::~ExCGroupEntity void   ) 
 

Définition à la ligne 37 du fichier ExCGroupEntity.cpp.

Références ExCGroupEntity(), Guard, et UnGuard.

00038 {
00039 Guard(ExCGroupEntity::~ExCGroupEntity(void))
00040 UnGuard
00041 }


Documentation des méthodes

void ExCGroupEntity::Draw void   )  [virtual]
 

Redéfinie à partir de ExCEntity.

Définition à la ligne 43 du fichier ExCGroupEntity.cpp.

Références ExQuaternion::CreateFromAxisAngle(), ExQuaternion::CreateMatrix(), Draw(), ExCVec3D::GetX(), ExCVec3D::GetY(), ExCVec3D::GetZ(), Guard, ExCObject3D::m_Angle, ExCObject3D::m_Position, ExCEntity::m_Scale, m_VecEntity, ExCObject3D::m_Visible, et UnGuard.

Référencé par Draw().

00044 {
00045 Guard(void ExCGroupEntity::Draw(void))
00046         if(!m_Visible)return;
00047         glPushMatrix();
00048         glDisable(GL_LIGHTING);
00049                 glTranslatef(m_Position.GetX(),m_Position.GetY(),m_Position.GetZ());
00050 
00051 
00052                 /*glRotatef(m_Angle.GetX(),1,0,0);
00053                 glRotatef(m_Angle.GetY(),0,1,0);
00054                 glRotatef(m_Angle.GetZ(),0,0,1);
00055 */
00056                 ExQuaternion qRotationY,qRotationX,qRotationZ,qresult;
00057                 float matrix[16];
00058 
00059                 qRotationX.CreateFromAxisAngle(1, 0, 0, m_Angle.GetX());
00060                 qRotationY.CreateFromAxisAngle(0, 1, 0, m_Angle.GetY());
00061                 qRotationZ.CreateFromAxisAngle(0, 0, 1, m_Angle.GetZ());
00062 
00063                 qRotationY.CreateMatrix(matrix);
00064                 glMultMatrixf(matrix);
00065                 qRotationZ.CreateMatrix(matrix);
00066                 glMultMatrixf(matrix);
00067                 qRotationX.CreateMatrix(matrix);
00068                 glMultMatrixf(matrix);
00069 
00070 
00071                 glScalef(m_Scale.GetX(),m_Scale.GetY(),m_Scale.GetZ());
00072                 //std::cout<<"Drw:EntityGroupe:"<<m_VecEntity.size()<<std::endl;
00073                 for( unsigned int i=0;i<m_VecEntity.size();i++)
00074                 {
00075                         m_VecEntity.at(i).Draw();
00076                         //std::cout<<"Drw:"<<m_VecEntity.at(i).GetName()<<std::endl;;
00077                 }
00078         glPopMatrix();
00079 UnGuard
00080 }

ExCVec3D ExCObject3D::GetAcceleration void   )  [inline, inherited]
 

Définition à la ligne 116 du fichier ExCObject3D.h.

Références ExCObject3D::m_Acceleration.

00116 {return m_Acceleration;}

float ExCObject3D::GetAngleX void   )  [inline, inherited]
 

Définition à la ligne 110 du fichier ExCObject3D.h.

Références ExCVec3D::GetX(), et ExCObject3D::m_Angle.

Référencé par ExCCameraFirst::Draw(), ExCCameraChase::Draw(), et ExCCamera::Draw().

00110 {return m_Angle.GetX();}

float ExCObject3D::GetAngleY void   )  [inline, inherited]
 

Définition à la ligne 111 du fichier ExCObject3D.h.

Références ExCVec3D::GetY(), et ExCObject3D::m_Angle.

Référencé par ExCCameraFirst::Draw(), ExCCameraChase::Draw(), et ExCCamera::Draw().

00111 {return m_Angle.GetY();}

float ExCObject3D::GetAngleZ void   )  [inline, inherited]
 

Définition à la ligne 112 du fichier ExCObject3D.h.

Références ExCVec3D::GetZ(), et ExCObject3D::m_Angle.

Référencé par ExCCameraFirst::Draw(), ExCCameraChase::Draw(), et ExCCamera::Draw().

00112 {return m_Angle.GetZ();}

std::string ExCObject::GetFileName void   )  [inline, inherited]
 

Définition à la ligne 94 du fichier ExCObject.h.

Références ExCObject::m_ObjectFileName.

Référencé par ExManagerMap::InputAction().

00094 {return m_ObjectFileName;}

ExCVec3D ExCObject3D::GetGravity void   )  [inline, inherited]
 

Définition à la ligne 124 du fichier ExCObject3D.h.

Références ExCObject3D::m_Gravity.

00124 {return m_Gravity;}

ExNihilo::ExId ExCObject::GetId void   )  [inline, inherited]
 

Définition à la ligne 92 du fichier ExCObject.h.

Références ExNihilo::ExId, et ExCObject::m_ObjectId.

Référencé par ExCSystemeParticule::CreateNewParticle(), ExManagerModel::Load(), ExManagerMesh::Load(), ExManagerId::RecordObject(), ExCObject3D::ShowInfo(), et ExCModelMD2::ShowInfo().

00092 {return m_ObjectId;}

std::string ExCObject::GetName void   )  [inline, inherited]
 

Définition à la ligne 93 du fichier ExCObject.h.

Références ExCObject::m_ObjectName.

Référencé par ExManagerTexture::Add(), ExManagerInterface::Load(), ExManagerEntity::LoadGroupe(), ExManagerId::RecordObject(), ExManagerCollision::ResolveCollision(), ExCObject3D::ShowInfo(), et ExCModelMD2::ShowInfo().

00093 {return m_ObjectName;}

ExCVec3D ExCObject3D::GetOldPosition void   )  [inline, inherited]
 

Définition à la ligne 136 du fichier ExCObject3D.h.

Références ExCObject3D::m_OldPosition.

00136 {return m_OldPosition;}

ExCVec3D ExCObject3D::GetOldTarget void   )  [inline, inherited]
 

Définition à la ligne 140 du fichier ExCObject3D.h.

Références ExCObject3D::m_OldTarget.

00140 {return m_OldTarget;}

ExCVec3D ExCObject3D::GetPosition void   )  [inline, inherited]
 

Définition à la ligne 128 du fichier ExCObject3D.h.

Références ExCObject3D::m_Position.

Référencé par ExCCameraFirst::Draw(), ExCCameraChase::Draw(), ExManagerEntity::LoadGroupe(), ExManagerEntity::Reload(), et ExManagerCollision::ResolveCollision().

00128 {return m_Position;}

bool ExCObject3D::GetShowInfoState void   )  [inline, inherited]
 

Définition à la ligne 105 du fichier ExCObject3D.h.

Références ExCObject3D::m_ShowInfo.

00105 {return m_ShowInfo;}

ExCVec3D ExCObject3D::GetTarget void   )  [inline, inherited]
 

Définition à la ligne 132 du fichier ExCObject3D.h.

Références ExCObject3D::m_Target.

Référencé par ExCCameraFirst::Draw(), et ExManagerCollision::ResolveCollision().

00132 {return m_Target;}

std::string ExCObject::GetType void   )  [inline, inherited]
 

Définition à la ligne 95 du fichier ExCObject.h.

Références ExCObject::m_ObjectType.

Référencé par ExManagerId::RecordObject(), et ExManagerCollision::ResolveCollision().

00095 {return m_ObjectType;}

ExCVec3D ExCObject3D::GetVelocity void   )  [inline, inherited]
 

Définition à la ligne 120 du fichier ExCObject3D.h.

Références ExCObject3D::m_Velocity.

Référencé par ExManagerCollision::ResolveCollision().

00120 {return m_Velocity;}

bool ExCObject3D::GetVisibleState void   )  [inline, inherited]
 

Définition à la ligne 146 du fichier ExCObject3D.h.

Références ExCObject3D::m_Visible.

Référencé par ExCModel3DS::InputAction().

00146 {return m_Visible;}

bool ExCEntity::LoadFile std::ifstream *  fin  )  [inherited]
 

Définition à la ligne 188 du fichier ExCEntity.cpp.

Références ExNihilo::ExtracValueFromSring(), ExManagerModel::GetObject(), ExManagerMesh::GetObject(), Guard, ExManagerModel::Load(), ExManagerMesh::Load(), ExCEntity::LoadFile(), ExCObject3D::m_Angle, ExCEntity::m_FileGizmo, ExCEntity::m_FileMesh, ExCEntity::m_FileProperty, ExCEntity::m_ManagerType, ExCEntity::m_MeshId, ExCObject::m_ObjectName, ExCObject3D::m_Position, ExCEntity::m_Scale, ExCObject3D::m_Visible, ExCEntity::ManagerMesh, ExCEntity::ManagerModel, ExCVec3D::SetValue(), et UnGuard.

00189 {
00190 Guard(bool ExCEntity::LoadFile(std::ifstream *fin))
00191         std::string buffstring;
00192         char b[256];
00193 //      fin.open(FileName.data(),std::ios::in);
00194         if(fin->is_open())
00195         {
00196                 try
00197                 {
00198                         //----Read Type
00199                         memset(b,0,255);fin->getline(b,256,'\n');
00200                         //----Read File property
00201                         memset(b,0,255);fin->getline(b,256,'\n');
00202                         m_FileProperty=ExNihilo::ExtracValueFromSring(b,"<ObjectProperty>","<#ObjectProperty>");
00203                         //----Read File MEsh
00204                         memset(b,0,255);fin->getline(b,256,'\n');
00205                         m_FileMesh=ExNihilo::ExtracValueFromSring(b,"<ObjectGraphic>","<#ObjectGraphic>");
00206                         //----Read File Gizmo
00207                         memset(b,0,255);fin->getline(b,256,'\n');
00208                         m_FileGizmo=ExNihilo::ExtracValueFromSring(b,"<CollisionGizmo>","<#CollisionGizmo>");
00209                         //read property later in other file
00210                         //----Read File Name
00211                         memset(b,0,255);fin->getline(b,256,'\n');
00212                         m_ObjectName=ExNihilo::ExtracValueFromSring(b,"<ObjectName>","<#ObjectName>");
00213                         //---- Read Position
00214                         memset(b,0,255);fin->getline(b,256,'\n');
00215                         buffstring=ExNihilo::ExtracValueFromSring(b,"<Position>","<#Position>");
00216                         m_Position.SetValue(ExNihilo::ExtractFloatValueFromSring(buffstring,"<X>","<#X>"),
00217                                 ExNihilo::ExtractFloatValueFromSring(buffstring,"<Y>","<#Y>"),
00218                                 ExNihilo::ExtractFloatValueFromSring(buffstring,"<Z>","<#Z>"));
00219                         //---- Read Angle
00220                         memset(b,0,255);fin->getline(b,256,'\n');
00221                         buffstring=ExNihilo::ExtracValueFromSring(b,"<Angle>","<#Angle>");
00222                         m_Angle.SetValue(ExNihilo::ExtractFloatValueFromSring(buffstring,"<X>","<#X>"),
00223                                 ExNihilo::ExtractFloatValueFromSring(buffstring,"<Y>","<#Y>"),
00224                                 ExNihilo::ExtractFloatValueFromSring(buffstring,"<Z>","<#Z>"));
00225                         //---- Read scale
00226                         memset(b,0,255);fin->getline(b,256,'\n');
00227                         buffstring=ExNihilo::ExtracValueFromSring(b,"<Scale>","<#Scale>");
00228                         m_Scale.SetValue(ExNihilo::ExtractFloatValueFromSring(buffstring,"<X>","<#X>"),
00229                                 ExNihilo::ExtractFloatValueFromSring(buffstring,"<Y>","<#Y>"),
00230                                 ExNihilo::ExtractFloatValueFromSring(buffstring,"<Z>","<#Z>"));
00231                 
00232                 }
00233                 catch(ExCExpStringNotFound)
00234                 {
00235                         std::cout<<"ExCExpStringNotFound"<<std::endl;
00236                 }
00237                 catch(...)
00238                 {
00239                         std::cout<<"ExCExpFileReadError"<<std::endl;
00240                         throw ExCExpFileReadError();
00241                 }
00242         }else throw   ExCExpFileNotFound();
00243 
00244         //Find manager where is the object and get pointer to object
00245         try
00246         {
00247 
00248                 if(strcmpi(ExNihilo::GetFileExtension(m_FileMesh).data(),"exme")==0)
00249                 {
00250                         m_ManagerType="ExManagerMesh";
00251                         m_MeshId=ManagerMesh->Load(m_FileMesh);
00252                         ManagerMesh->GetObject(m_MeshId)->m_Visible=false;
00253                         return true;
00254                 }
00255                 if(strcmpi(ExNihilo::GetFileExtension(m_FileMesh).data(),"3ds")==0)
00256                 {
00257                         m_ManagerType="ExManagerModel";
00258                         m_MeshId=ManagerModel->Load(m_FileMesh);
00259                         ManagerModel->GetObject(m_MeshId)->m_Visible=false;
00260                         return true;
00261                 }
00262                 if(strcmpi(ExNihilo::GetFileExtension(m_FileMesh).data(),"md2")==0)
00263                 {
00264                         m_ManagerType="ExManagerModel";
00265                         m_MeshId=ManagerModel->Load(m_FileMesh);
00266                         ManagerModel->GetObject(m_MeshId)->m_Visible=false;
00267                         return true;
00268                 }
00269         }catch (...)
00270         {
00271                 std::cout<<"Wrong Graphic object chek name or object type in your graphic file"<<std::endl;
00272                 return false;
00273         }
00274         return false;
00275 
00276         //read 3ds
00277 
00278         //read gizmo
00279 
00280         return true;
00281         UnGuard
00282 }

bool ExCGroupEntity::LoadFile std::string  FileName  )  [virtual]
 

Redéfinie à partir de ExCEntity.

Définition à la ligne 82 du fichier ExCGroupEntity.cpp.

Références ExNihilo::ExtractIntValueFromSring(), ExNihilo::ExtracValueFromSring(), ExManagerModel::GetObject(), ExManagerMesh::GetObject(), Guard, ExManagerModel::Load(), ExManagerMesh::Load(), LoadFile(), ExCObject3D::m_Angle, ExCEntity::m_FileGizmo, ExCEntity::m_FileMesh, ExCEntity::m_FileProperty, ExCEntity::m_ManagerType, ExCEntity::m_MeshId, m_NumberEntity, ExCObject::m_ObjectName, ExCObject3D::m_Position, ExCEntity::m_Scale, m_VecEntity, ExCObject3D::m_Visible, ManagerGizmo, ManagerId, ManagerMesh, ManagerModel, ExCEntity::SetManagerGizmo(), ExCEntity::SetManagerId(), ExCEntity::SetManagerMesh(), ExCEntity::SetManagerModel(), ExCObject::SetName(), ExCVec3D::SetValue(), et UnGuard.

Référencé par LoadFile().

00083 {
00084 Guard(bool ExCGroupEntity::LoadFile(std::string FileName))
00085 
00086         //char                  buffer[255];
00087         //sprintf(buffer, "../Data/Animation/%s", FileName.data());
00088         ExCEntity tmpEntity;
00089         std::ifstream fin;
00090         std::string buffstring;
00091         char b[256];
00092         fin.open(FileName.data(),std::ios::in);
00093         if(fin.is_open())
00094         {
00095                 try
00096                 {
00097                         //----Read Type
00098                         memset(b,0,255);fin.getline(b,256,'\n');
00099                         //----Read File property
00100                         memset(b,0,255);fin.getline(b,256,'\n');
00101                         m_FileProperty=ExNihilo::ExtracValueFromSring(b,"<ObjectProperty>","<#ObjectProperty>");
00102                         //----Read File MEsh
00103                         memset(b,0,255);fin.getline(b,256,'\n');
00104                         m_FileMesh=ExNihilo::ExtracValueFromSring(b,"<ObjectGraphic>","<#ObjectGraphic>");
00105                         //----Read File Gizmo
00106                         memset(b,0,255);fin.getline(b,256,'\n');
00107                         m_FileGizmo=ExNihilo::ExtracValueFromSring(b,"<CollisionGizmo>","<#CollisionGizmo>");
00108                         //read property later in other file
00109                         //----Read File Name
00110                         memset(b,0,255);fin.getline(b,256,'\n');
00111                         m_ObjectName=ExNihilo::ExtracValueFromSring(b,"<ObjectName>","<#ObjectName>");
00112                         //---- Read Position
00113                         memset(b,0,255);fin.getline(b,256,'\n');
00114                         buffstring=ExNihilo::ExtracValueFromSring(b,"<Position>","<#Position>");
00115                         m_Position.SetValue(ExNihilo::ExtractFloatValueFromSring(buffstring,"<X>","<#X>"),
00116                                 ExNihilo::ExtractFloatValueFromSring(buffstring,"<Y>","<#Y>"),
00117                                 ExNihilo::ExtractFloatValueFromSring(buffstring,"<Z>","<#Z>"));
00118                         //---- Read Angle
00119                         memset(b,0,255);fin.getline(b,256,'\n');
00120                         buffstring=ExNihilo::ExtracValueFromSring(b,"<Angle>","<#Angle>");
00121                         m_Angle.SetValue(ExNihilo::ExtractFloatValueFromSring(buffstring,"<X>","<#X>"),
00122                                 ExNihilo::ExtractFloatValueFromSring(buffstring,"<Y>","<#Y>"),
00123                                 ExNihilo::ExtractFloatValueFromSring(buffstring,"<Z>","<#Z>"));
00124                         //---- Read scale
00125                         memset(b,0,255);fin.getline(b,256,'\n');
00126                         buffstring=ExNihilo::ExtracValueFromSring(b,"<Scale>","<#Scale>");
00127                         m_Scale.SetValue(ExNihilo::ExtractFloatValueFromSring(buffstring,"<X>","<#X>"),
00128                                 ExNihilo::ExtractFloatValueFromSring(buffstring,"<Y>","<#Y>"),
00129                                 ExNihilo::ExtractFloatValueFromSring(buffstring,"<Z>","<#Z>"));
00130                         //read number entity
00131                         memset(b,0,255);fin.getline(b,256,'\n');
00132                         m_NumberEntity=ExNihilo::ExtractIntValueFromSring(b,"<NumberEntity>","<#NumberEntity>");
00133                         //read entity
00134                         for(int i=0;i<m_NumberEntity;i++)
00135                         {
00136                                 //----Read Type
00137                                 memset(b,0,255);fin.getline(b,256,'\n');
00138                                 //----Read File property
00139                                 memset(b,0,255);fin.getline(b,256,'\n');
00140                                 tmpEntity.m_FileProperty=ExNihilo::ExtracValueFromSring(b,"<ObjectProperty>","<#ObjectProperty>");
00141                                 //----Read File MEsh
00142                                 memset(b,0,255);fin.getline(b,256,'\n');
00143                                 tmpEntity.m_FileMesh=ExNihilo::ExtracValueFromSring(b,"<ObjectGraphic>","<#ObjectGraphic>");
00144                                 //----Read File Gizmo
00145                                 memset(b,0,255);fin.getline(b,256,'\n');
00146                                 tmpEntity.m_FileGizmo=ExNihilo::ExtracValueFromSring(b,"<CollisionGizmo>","<#CollisionGizmo>");
00147                                 //read property later in other file
00148                                 //----Read File Name
00149                                 memset(b,0,255);fin.getline(b,256,'\n');
00150                                 tmpEntity.SetName(ExNihilo::ExtracValueFromSring(b,"<ObjectName>","<#ObjectName>"));
00151                                 //---- Read Position
00152                                 memset(b,0,255);fin.getline(b,256,'\n');
00153                                 buffstring=ExNihilo::ExtracValueFromSring(b,"<Position>","<#Position>");
00154                                 tmpEntity.m_Position.SetValue(ExNihilo::ExtractFloatValueFromSring(buffstring,"<X>","<#X>"),
00155                                         ExNihilo::ExtractFloatValueFromSring(buffstring,"<Y>","<#Y>"),
00156                                         ExNihilo::ExtractFloatValueFromSring(buffstring,"<Z>","<#Z>"));
00157                                 //---- Read Angle
00158                                 memset(b,0,255);fin.getline(b,256,'\n');
00159                                 buffstring=ExNihilo::ExtracValueFromSring(b,"<Angle>","<#Angle>");
00160                                 tmpEntity.m_Angle.SetValue(ExNihilo::ExtractFloatValueFromSring(buffstring,"<X>","<#X>"),
00161                                         ExNihilo::ExtractFloatValueFromSring(buffstring,"<Y>","<#Y>"),
00162                                         ExNihilo::ExtractFloatValueFromSring(buffstring,"<Z>","<#Z>"));
00163                                 //---- Read scale
00164                                 memset(b,0,255);fin.getline(b,256,'\n');
00165                                 buffstring=ExNihilo::ExtracValueFromSring(b,"<Scale>","<#Scale>");
00166                                 tmpEntity.m_Scale.SetValue(ExNihilo::ExtractFloatValueFromSring(buffstring,"<X>","<#X>"),
00167                                         ExNihilo::ExtractFloatValueFromSring(buffstring,"<Y>","<#Y>"),
00168                                         ExNihilo::ExtractFloatValueFromSring(buffstring,"<Z>","<#Z>"));
00169                                 //Find manager where is the object and get pointer to object
00170                                 try
00171                                 {
00172                                         tmpEntity.SetManagerGizmo(ManagerGizmo);
00173                                         tmpEntity.SetManagerMesh(ManagerMesh);
00174                                         tmpEntity.SetManagerModel(ManagerModel);
00175                                         tmpEntity.SetManagerId(ManagerId);
00176                                         std::cout<<tmpEntity.m_FileMesh<<std::endl;
00177                                         if(strcmpi(ExNihilo::GetFileExtension(tmpEntity.m_FileMesh).data(),"exme")==0)
00178                                         {
00179                                                 tmpEntity.m_ManagerType="ExManagerMesh";
00180                                                 tmpEntity.m_MeshId=ManagerMesh->Load(tmpEntity.m_FileMesh);
00181                                                 ManagerMesh->GetObject(tmpEntity.m_MeshId)->m_Visible=false;
00182                                                 return true;
00183                                         }
00184                                         if(strcmpi(ExNihilo::GetFileExtension(tmpEntity.m_FileMesh).data(),"3ds")==0)
00185                                         {
00186                                                 tmpEntity.m_ManagerType="ExManagerModel";
00187                                                 tmpEntity.m_MeshId=ManagerModel->Load(tmpEntity.m_FileMesh);
00188                                                 ManagerModel->GetObject(tmpEntity.m_MeshId)->m_Visible=false;
00189                                                 
00190                                         }
00191                                 }catch (...)
00192                                 {
00193                                         std::cout<<"Wrong Graphic object chek name or object type in your graphic file"<<std::endl;
00194                                         
00195                                 }
00196                                 m_VecEntity.push_back(tmpEntity);
00197                         }
00198                         
00199                         fin.close();
00200                 }
00201                 catch(ExCExpStringNotFound)
00202                 {
00203                         std::cout<<"ExCExpStringNotFound"<<std::endl;
00204                 }
00205                 catch(...)
00206                 {
00207                         std::cout<<"ExCExpFileReadError"<<std::endl;
00208                         throw ExCExpFileReadError();
00209                 }
00210         }else throw   ExCExpFileNotFound();
00211         return true;
00212 UnGuard
00213 }

void ExCObject3D::Rotate void   )  [inherited]
 

Définition à la ligne 134 du fichier ExCObject3D.cpp.

Références GetQuaternionFromEuler(), ExCVec3D::GetX(), ExCVec3D::GetY(), ExCVec3D::GetZ(), ExCObject3D::m_Angle, ExCVec3D::SetX(), ExCVec3D::SetY(), et ExCVec3D::SetZ().

Référencé par ExCObject3D::Rotate().

00135 {
00136         if(m_Angle.GetX()<0)m_Angle.SetX(359);
00137         if(m_Angle.GetX()>359)m_Angle.SetX(0);
00138         if(m_Angle.GetY()<0)m_Angle.SetY(359);
00139         if(m_Angle.GetY()>359)m_Angle.SetY(0);
00140         if(m_Angle.GetZ()<0)m_Angle.SetZ(359);
00141         if(m_Angle.GetZ()>359)m_Angle.SetZ(0);
00142         
00143         ExQuaternion quat;
00144         ExCMatrix4x4 Matr;
00145         ExCVec3D VecX,VecY,VecZ,VecDir;
00146         
00147         quat=GetQuaternionFromEuler(m_Angle.GetX(),m_Angle.GetY(),m_Angle.GetZ());
00148         //Matr=GetMatrixFromQuaternion(quat);
00149         //Matr=GetMatrixFromEuler(m_AngleX,m_AngleY,m_AngleZ);
00150         
00151         /*VecX.m_Vector[0]=(float)Matr.m_Matrix[0];
00152         VecX.m_Vector[1]=(float)Matr.m_Matrix[1];
00153         VecX.m_Vector[2]=(float)Matr.m_Matrix[2];
00154         VecY.m_Vector[0]=(float)Matr.m_Matrix[4];
00155         VecY.m_Vector[1]=(float)Matr.m_Matrix[5];
00156         VecY.m_Vector[2]=(float)Matr.m_Matrix[6];
00157         VecZ.m_Vector[0]=(float)Matr.m_Matrix[8];
00158         VecZ.m_Vector[1]=(float)Matr.m_Matrix[9];
00159         VecZ.m_Vector[2]=(float)Matr.m_Matrix[10];
00160 
00161         VecDir.m_Vector[0]=VecX.GetVectorLenght();
00162         VecDir.m_Vector[1]=VecY.GetVectorLenght();
00163         VecDir.m_Vector[2]=VecZ.GetVectorLenght();
00164         VecDir=VecX+VecY+VecZ;
00165         std::cout<<"Angle X:"<<m_AngleX<<" Y:"<<m_AngleY<<" Z:"<<m_AngleZ<<std::endl;
00166         std::cout<<"Quater :"<<quat<<std::endl;
00167         std::cout<<"Matrice:"<<Matr<<std::endl;
00168         std::cout<<"vec   X:"<<VecX<<std::endl;
00169         std::cout<<"vec   Y:"<<VecY<<std::endl;
00170         std::cout<<"vec   Z:"<<VecZ<<std::endl;
00171         std::cout<<"vec dir:"<<VecDir<<std::endl;
00172         std::cout<<"vel bef:"<<m_Velocity<<std::endl;
00173         //std::cout<<"vec aft:"<<m_Velocity<<std::endl;
00174         
00175 
00176         m_Target.SetX((Cos[(int)m_AngleY]));
00177         m_Target.SetZ((Sin[(int)m_AngleY]));
00178         m_Target.SetY((Sin[(int)m_AngleX]));
00179         std::cout<<"vec target:"<<m_Target<<std::endl;*/
00180         //VecDir=GetAxisFromQuaternion(quat);
00181         //m_Velocity=m_Velocity*VecDir;
00182         //std::cout<<"vec dir:"<<VecDir<<std::endl;
00183         //std::cout<<"vec vel:"<<m_Velocity<<std::endl;
00184         
00185 }

void ExCObject3D::Rotate float  angleX,
float  angleY,
float  angleZ
[inherited]
 

Définition à la ligne 126 du fichier ExCObject3D.cpp.

Références ExCObject3D::Rotate(), ExCObject3D::SetAngleX(), ExCObject3D::SetAngleY(), et ExCObject3D::SetAngleZ().

00127 {
00128         SetAngleX(angleX);
00129         SetAngleY(angleY);
00130         SetAngleZ(angleZ);
00131         Rotate();       
00132 }

void ExCObject3D::SetAcceleration float  x,
float  y,
float  z
[inline, inherited]
 

Définition à la ligne 115 du fichier ExCObject3D.h.

Références ExCObject3D::m_Acceleration.

00115 {m_Acceleration=ExCVec3D(x,y,z);}

void ExCObject3D::SetAcceleration ExCVec3D  Acceleration  )  [inline, inherited]
 

Définition à la ligne 114 du fichier ExCObject3D.h.

Références ExCObject3D::m_Acceleration.

00114 {m_Acceleration=Acceleration;}

void ExCObject3D::SetAngleX float  Angle  )  [inherited]
 

Définition à la ligne 106 du fichier ExCObject3D.cpp.

Références ExCVec3D::GetX(), ExCObject3D::m_Angle, et ExCVec3D::SetX().

Référencé par ExCObject3D::Rotate().

00107 {
00108         if(m_Angle.GetX()<0)m_Angle.SetX(359);
00109         if(m_Angle.GetX()>359)m_Angle.SetX(0);
00110 }

void ExCObject3D::SetAngleY float  Angle  )  [inherited]
 

Définition à la ligne 112 du fichier ExCObject3D.cpp.

Références ExCVec3D::GetY(), ExCObject3D::m_Angle, et ExCVec3D::SetY().

Référencé par ExCObject3D::Rotate().

00113 {
00114         if(m_Angle.GetY()<0)m_Angle.SetY(359);
00115         if(m_Angle.GetY()>359)m_Angle.SetY(0);
00116 }

void ExCObject3D::SetAngleZ float  Angle  )  [inherited]
 

Définition à la ligne 118 du fichier ExCObject3D.cpp.

Références ExCObject3D::m_Angle, et ExCVec3D::SetZ().

Référencé par ExCObject3D::Rotate().

00119 {
00120         /*if(m_AngleZ<0)m_AngleZ=359;
00121         if(m_AngleZ>359)m_AngleZ=0;*/
00122         m_Angle.SetZ(Angle);
00123 }

void ExCObject3D::SetCurrentState bool  state  )  [inline, inherited]
 

Définition à la ligne 101 du fichier ExCObject3D.h.

Références ExCObject3D::m_CurrentObject.

00101 {m_CurrentObject=state;}

void ExCObject::SetFileName std::string  FileName  )  [inline, inherited]
 

Définition à la ligne 98 du fichier ExCObject.h.

Références ExCObject::m_ObjectFileName.

Référencé par ExManagerModel::Load(), ExManagerMap::Load(), ExManagerEntity::Load(), ExCGizmoLineBezier::LoadFile(), ExCAnimation::LoadFile(), et ExManagerEntity::LoadGroupe().

00098 {m_ObjectFileName = FileName;}

void ExCObject::SetFlux std::ostrstream *  consol,
ExCFluxAction action
[inherited]
 

Définition à la ligne 66 du fichier ExCObject.cpp.

Références ExCObject::Consol, et ExCObject::FluxAction.

Référencé par ExManagerId::RecordObject().

00067 {
00068         Consol=consol;
00069         FluxAction=action;
00070 }

void ExCObject3D::SetGravity float  x,
float  y,
float  z
[inline, inherited]
 

Définition à la ligne 123 du fichier ExCObject3D.h.

Références ExCObject3D::m_Gravity.

00123 {m_Gravity=ExCVec3D(x,y,z);}

void ExCObject3D::SetGravity ExCVec3D  Gravity  )  [inline, inherited]
 

Définition à la ligne 122 du fichier ExCObject3D.h.

Références ExCObject3D::m_Gravity.

00122 {m_Gravity=Gravity;}

void ExCObject::SetId ExNihilo::ExId  Id  )  [inline, inherited]
 

Définition à la ligne 96 du fichier ExCObject.h.

Références ExNihilo::ExId, et ExCObject::m_ObjectId.

Référencé par ExCSystemeParticule::CreateNewParticle(), ExCObject::ExCObject(), ExManagerId::RecordObject(), et ExCObject::SetIdName().

00096 {m_ObjectId=Id;}

void ExCObject::SetIdName ExNihilo::IdName  idname  )  [inherited]
 

Définition à la ligne 47 du fichier ExCObject.cpp.

Références ExNihilo::IdName, ExCObject::SetId(), et ExCObject::SetName().

00048 {
00049         SetName(idname.second);
00050         SetId(idname.first);
00051 }

void ExCGroupEntity::SetManagerGizmo ExManagerGizmo Gizmo  )  [inline]
 

Redéfinie à partir de ExCEntity.

Définition à la ligne 94 du fichier ExCGroupEntity.h.

Références ManagerGizmo.

00094 {ManagerGizmo = Gizmo;}

void ExCGroupEntity::SetManagerId ExManagerId Id  )  [inline]
 

Redéfinie à partir de ExCEntity.

Définition à la ligne 96 du fichier ExCGroupEntity.h.

Références ManagerId.

00096 {ManagerId = Id;}

void ExCGroupEntity::SetManagerMesh ExManagerMesh Mesh  )  [inline]
 

Redéfinie à partir de ExCEntity.

Définition à la ligne 93 du fichier ExCGroupEntity.h.

Références ManagerMesh.

00093 {ManagerMesh = Mesh;}

void ExCGroupEntity::SetManagerModel ExManagerModel Model  )  [inline]
 

Redéfinie à partir de ExCEntity.

Définition à la ligne 95 du fichier ExCGroupEntity.h.

Références ManagerModel.

00095 {ManagerModel = Model;}//TO DO remove this one en use only mesh

void ExCObject::SetName std::string  Name  )  [inline, inherited]
 

Redéfinie dans ExCTexture.

Définition à la ligne 97 du fichier ExCObject.h.

Références ExCObject::m_ObjectName.

Référencé par ExManagerCamera::AddCamera(), ExCAnimation::ExCAnimation(), ExCCamera::ExCCamera(), ExCCameraChase::ExCCameraChase(), ExCCameraFirst::ExCCameraFirst(), ExCCameraFlight::ExCCameraFlight(), ExCCameraFree::ExCCameraFree(), ExCEntity::ExCEntity(), ExCFont::ExCFont(), ExCGizmo::ExCGizmo(), ExCGizmoElipsoide::ExCGizmoElipsoide(), ExCGizmoFace::ExCGizmoFace(), ExCGizmoLine::ExCGizmoLine(), ExCGizmoLineBezier::ExCGizmoLineBezier(), ExCGizmoPoint::ExCGizmoPoint(), ExCGizmoRectangle::ExCGizmoRectangle(), ExCGizmoSphere::ExCGizmoSphere(), ExCGroupEntity(), ExCInterface::ExCInterface(), ExCLight::ExCLight(), ExCLoadingAnimation::ExCLoadingAnimation(), ExCMesh::ExCMesh(), ExCMesh3ds::ExCMesh3ds(), ExCMeshBilboarded::ExCMeshBilboarded(), ExCMeshFireEffect::ExCMeshFireEffect(), ExCMeshLOD3ds::ExCMeshLOD3ds(), ExCMeshSauronEffect::ExCMeshSauronEffect(), ExCMeshSmogEffect::ExCMeshSmogEffect(), ExCMeshSummonCylenderEffect::ExCMeshSummonCylenderEffect(), ExCMeshWaterDisqueEffect::ExCMeshWaterDisqueEffect(), ExCMeshWaterEffect::ExCMeshWaterEffect(), ExCModel3DS::ExCModel3DS(), ExCModelASC::ExCModelASC(), ExCModelEXM::ExCModelEXM(), ExCModelMD2::ExCModelMD2(), ExCModelMD3::ExCModelMD3(), ExCModelOBJ::ExCModelOBJ(), ExCObject::ExCObject(), ExCObject2D::ExCObject2D(), ExCObject3D::ExCObject3D(), ExCParticule::ExCParticule(), ExCParticuleLine::ExCParticuleLine(), ExCParticulePoint::ExCParticulePoint(), ExCParticuleTexture::ExCParticuleTexture(), ExCSound::ExCSound(), ExCSpirit::ExCSpirit(), ExCSystemeParticule::ExCSystemeParticule(), ExCVertexProgram::ExCVertexProgram(), ExCWindowContent::ExCWindowContent(), ExCWindowControl::ExCWindowControl(), ExCWindowTitleBar::ExCWindowTitleBar(), ExManagerSpirit::Init(), ExManagerFont::Init(), ExCWindowTitleBar::Init(), ExCWindowObject::Init(), ExCWindowMessageBoxQuestion::Init(), ExCWindowMessageBox::Init(), ExCWindowLabel::Init(), ExCWindowEditLabel::Init(), ExCWindowButtonSwitchOnMouse::Init(), ExCWindowButtonSwitch::Init(), ExCWindowButton::Init(), ExCWindow::Init(), ExManagerModel::Load(), ExManagerMesh::Load(), ExCSystemeParticule::Load(), ExCModelASC::Load(), ExManagerLoad::LoadAnimationFile(), LoadFile(), ExCAnimation::LoadFile(), ExManagerEntity::LoadGroupe(), ExManagerSound::LoadSound(), ExManagerId::RecordObject(), et ExCObject::SetIdName().

00097 {m_ObjectName = Name;}

void ExCObject3D::SetOldPosition float  x,
float  y,
float  z
[inline, inherited]
 

Définition à la ligne 135 du fichier ExCObject3D.h.

Références ExCObject3D::m_OldPosition.

00135 {m_OldPosition=ExCVec3D(x,y,z);}

void ExCObject3D::SetOldPosition ExCVec3D  OldPosition  )  [inline, inherited]
 

Définition à la ligne 134 du fichier ExCObject3D.h.

Références ExCObject3D::m_OldPosition.

00134 {m_OldPosition=OldPosition;}

void ExCObject3D::SetOldTarget float  x,
float  y,
float  z
[inline, inherited]
 

Définition à la ligne 139 du fichier ExCObject3D.h.

Références ExCObject3D::m_OldTarget.

00139 {m_OldTarget=ExCVec3D(x,y,z);}

void ExCObject3D::SetOldTarget ExCVec3D  OldTarget  )  [inline, inherited]
 

Définition à la ligne 138 du fichier ExCObject3D.h.

Références ExCObject3D::m_OldTarget.

00138 {m_OldTarget=OldTarget;}

void ExCObject3D::SetPosition float  x,
float  y,
float  z
[inline, inherited]
 

Définition à la ligne 127 du fichier ExCObject3D.h.

Références ExCObject3D::m_Position.

00127 {m_Position=ExCVec3D(x,y,z);}

void ExCObject3D::SetPosition ExCVec3D  Position  )  [inline, inherited]
 

Définition à la ligne 126 du fichier ExCObject3D.h.

Références ExCObject3D::m_Position.

Référencé par ExCModelMD2::Draw(), et ExManagerEntity::LoadGroupe().

00126 {m_Position=Position;}

void ExCObject3D::SetShowInfoState bool  state  )  [inline, inherited]
 

Définition à la ligne 104 du fichier ExCObject3D.h.

Références ExCObject3D::m_ShowInfo.

Référencé par ExManagerCamera::InputAction().

00104 {m_ShowInfo=state;}

void ExCObject3D::SetTarget float  x,
float  y,
float  z
[inline, inherited]
 

Définition à la ligne 131 du fichier ExCObject3D.h.

Références ExCObject3D::m_Target.

00131 {m_Target=ExCVec3D(x,y,z);}

void ExCObject3D::SetTarget ExCVec3D  Target  )  [inline, inherited]
 

Définition à la ligne 130 du fichier ExCObject3D.h.

Références ExCObject3D::m_Target.

Référencé par ExManagerCollision::ResolveCollision().

00130 {m_Target=Target;}

void ExCObject::SetType std::string  Type  )  [inline, inherited]
 

Définition à la ligne 99 du fichier ExCObject.h.

Références ExCObject::m_ObjectType.

Référencé par ExCAnimation::ExCAnimation(), ExCCamera::ExCCamera(), ExCCameraChase::ExCCameraChase(), ExCCameraFirst::ExCCameraFirst(), ExCCameraFlight::ExCCameraFlight(), ExCCameraFree::ExCCameraFree(), ExCEntity::ExCEntity(), ExCFont::ExCFont(), ExCGizmo::ExCGizmo(), ExCGizmoElipsoide::ExCGizmoElipsoide(), ExCGizmoFace::ExCGizmoFace(), ExCGizmoLine::ExCGizmoLine(), ExCGizmoLineBezier::ExCGizmoLineBezier(), ExCGizmoPoint::ExCGizmoPoint(), ExCGizmoRectangle::ExCGizmoRectangle(), ExCGizmoSphere::ExCGizmoSphere(), ExCGroupEntity(), ExCInterface::ExCInterface(), ExCLight::ExCLight(), ExCLoadingAnimation::ExCLoadingAnimation(), ExCMesh::ExCMesh(), ExCMesh3ds::ExCMesh3ds(), ExCMeshBilboarded::ExCMeshBilboarded(), ExCMeshFireEffect::ExCMeshFireEffect(), ExCMeshLOD3ds::ExCMeshLOD3ds(), ExCMeshSauronEffect::ExCMeshSauronEffect(), ExCMeshSmogEffect::ExCMeshSmogEffect(), ExCMeshSummonCylenderEffect::ExCMeshSummonCylenderEffect(), ExCMeshWaterDisqueEffect::ExCMeshWaterDisqueEffect(), ExCMeshWaterEffect::ExCMeshWaterEffect(), ExCModel3DS::ExCModel3DS(), ExCModelASC::ExCModelASC(), ExCModelEXM::ExCModelEXM(), ExCModelMD2::ExCModelMD2(), ExCModelMD3::ExCModelMD3(), ExCModelOBJ::ExCModelOBJ(), ExCObject::ExCObject(), ExCObject2D::ExCObject2D(), ExCObject3D::ExCObject3D(), ExCParticule::ExCParticule(), ExCParticuleLine::ExCParticuleLine(), ExCParticulePoint::ExCParticulePoint(), ExCParticuleTexture::ExCParticuleTexture(), ExCSound::ExCSound(), ExCSpirit::ExCSpirit(), ExCSystemeParticule::ExCSystemeParticule(), ExCTexture::ExCTexture(), ExCVertexProgram::ExCVertexProgram(), ExCWindowContent::ExCWindowContent(), ExCWindowControl::ExCWindowControl(), ExCWindowTitleBar::ExCWindowTitleBar(), ExCWindowObject::Init(), ExCWindowMessageBoxQuestion::Init(), ExCWindowMessageBox::Init(), ExCWindowLabel::Init(), ExCWindowEditLabel::Init(), ExCWindowButtonSwitchOnMouse::Init(), ExCWindowButtonSwitch::Init(), ExCWindowButton::Init(), ExCWindow::Init(), et ExManagerId::RecordObject().

00099 {m_ObjectType = Type;}

void ExCObject3D::SetVelocity float  x,
float  y,
float  z
[inline, inherited]
 

Définition à la ligne 119 du fichier ExCObject3D.h.

Références ExCObject3D::m_Velocity.

00119 {m_Velocity=ExCVec3D(x,y,z);}

void ExCObject3D::SetVelocity ExCVec3D  Velocity  )  [inline, inherited]
 

Définition à la ligne 118 du fichier ExCObject3D.h.

Références ExCObject3D::m_Velocity.

Référencé par ExManagerCollision::ResolveCollision().

00118 {m_Velocity=Velocity;}

void ExCObject3D::SetVisibleState bool  state  )  [inline, inherited]
 

Définition à la ligne 145 du fichier ExCObject3D.h.

Références ExCObject3D::m_Visible.

Référencé par ExCModel3DS::ExCModel3DS(), ExCModelMD2::ExCModelMD2(), ExManagerEntity::InputAction(), et ExCModel3DS::InputAction().

00145 {m_Visible=state;}

void ExCObject3D::ShowInfo void   )  [inherited]
 

Redéfinie dans ExCModelMD2.

Définition à la ligne 55 du fichier ExCObject3D.cpp.

Références ExCObject::GetId(), ExCObject::GetName(), ExCVec3D::GetX(), ExCVec3D::GetY(), ExCVec3D::GetZ(), Guard, ExCObject3D::m_Acceleration, ExCObject3D::m_Gravity, ExCObject3D::m_Life, ExCObject3D::m_Position, ExCObject3D::m_Velocity, ExCObject3D::ShowInfo(), UnGuard, et ExNihilo::WriteToScreen().

Référencé par ExCObject3D::ShowInfo().

00056 {
00057 Guard(void ExCObject3D::ShowInfo(void))
00058         
00059         char *CIdName;
00060         char *CPosition;
00061         char *CVelocity;
00062         char *CAcceleration;
00063         char *CGravity;
00064         char *CLife;
00065 
00066         CIdName= new char[strlen("Name : Id:")+strlen(GetName().data())+7];
00067         sprintf(CIdName,"Name :%s Id:%ld",GetName(),GetId());
00068 
00069         CPosition= new char[strlen("Position X: Y: Z:")+30];
00070         sprintf(CPosition,"Position X:%f Y:%f Z:%f",m_Position.GetX(),m_Position.GetY(),m_Position.GetZ());
00071 
00072         CVelocity= new char[strlen("Velocity X: Y: Z:")+30];
00073         sprintf(CVelocity,"Velocity X:%f Y:%f Z:%f",m_Velocity.GetX(),m_Velocity.GetY(),m_Velocity.GetZ());
00074 
00075         CGravity= new char[strlen("Gravity X: Y: Z:")+30];
00076         sprintf(CGravity,"Gravity X:%f Y:%f Z:%f",m_Gravity.GetX(),m_Gravity.GetY(),m_Gravity.GetZ());
00077 
00078         CAcceleration= new char[strlen("Acceleration X: Y: Z:")+30];
00079         sprintf(CAcceleration,"Acceleration X:%f Y:%f Z:%f",m_Acceleration.GetX(),m_Acceleration.GetY(),m_Acceleration.GetZ());
00080 
00081         CLife= new char[strlen("Life :")+10];
00082         sprintf(CLife,"Life :%f",m_Life);
00083 
00084                 ExNihilo::WriteToScreen(500,500,CIdName);       
00085                 ExNihilo::WriteToScreen(500,515,CPosition);
00086                 ExNihilo::WriteToScreen(500,530,CVelocity);     
00087                 ExNihilo::WriteToScreen(500,545,CAcceleration); 
00088                 ExNihilo::WriteToScreen(500,560,CGravity);      
00089                 ExNihilo::WriteToScreen(500,575,CLife); 
00090                 std::cout<<CIdName<<std::endl;  
00091                 std::cout<<CPosition<<std::endl;        
00092                 std::cout<<CVelocity<<std::endl;                
00093                 std::cout<<CAcceleration<<std::endl;            
00094                 std::cout<<CGravity<<std::endl;         
00095                 std::cout<<CLife<<std::endl;            
00096 
00097         delete CIdName;
00098         delete CPosition;
00099         delete CVelocity;
00100         delete CAcceleration;
00101         delete CGravity;
00102         delete CLife;   
00103 UnGuard
00104 }  


Documentation des données imbriquées

std::ostrstream* ExCObject::Consol [inherited]
 

Redéfinie dans ExCInterface, et ExCSystemeParticule.

Définition à la ligne 75 du fichier ExCObject.h.

Référencé par ExCTexture::LoadFile(), et ExCObject::SetFlux().

ExCFluxAction* ExCObject::FluxAction [inherited]
 

Définition à la ligne 76 du fichier ExCObject.h.

Référencé par ExCAnimation::Draw(), et ExCObject::SetFlux().

ExCVec3D ExCObject3D::m_Acceleration [protected, inherited]
 

Redéfinie dans ExCParticule.

Définition à la ligne 71 du fichier ExCObject3D.h.

Référencé par ExCModel::Draw(), ExCObject3D::ExCObject3D(), ExCObject3D::GetAcceleration(), ExCModelMD2::InputAction(), ExCModel3DS::InputAction(), ExCObject3D::SetAcceleration(), ExCObject3D::ShowInfo(), et ExCModelMD2::ShowInfo().

ExCVec3D ExCObject3D::m_Angle [inherited]
 

Définition à la ligne 86 du fichier ExCObject3D.h.

Référencé par ExCSystemeParticule::Draw(), ExCModel::Draw(), Draw(), ExCEntity::Draw(), ExCCameraFlight::Draw(), ExCCameraFirst::Draw(), ExCCameraChase::Draw(), ExCCamera::Draw(), ExCAnimation::Draw(), ExCCamera::DrawCameraInfo(), ExCObject3D::ExCObject3D(), ExCObject3D::GetAngleX(), ExCObject3D::GetAngleY(), ExCObject3D::GetAngleZ(), ExManagerCamera::InputAction(), ExCModelMD2::InputAction(), ExCModel3DS::InputAction(), LoadFile(), ExCEntity::LoadFile(), ExCAnimation::LoadFile(), ExManagerEntity::LoadGroupe(), ExCModelMD2::Process(), ExCModel3DS::Process(), ExCCameraFlight::Process(), ExCCamera::Process(), ExManagerEntity::Reload(), ExCLight::Reset(), ExCObject3D::Rotate(), ExCObject3D::SetAngleX(), ExCObject3D::SetAngleY(), ExCObject3D::SetAngleZ(), et ExCModelMD2::ShowInfo().

bool ExCObject3D::m_CurrentObject [protected, inherited]
 

Définition à la ligne 79 du fichier ExCObject3D.h.

Référencé par ExCObject3D::ExCObject3D(), et ExCObject3D::SetCurrentState().

std::string ExCEntity::m_FileGizmo [inherited]
 

Définition à la ligne 87 du fichier ExCEntity.h.

Référencé par LoadFile(), ExCEntity::LoadFile(), et ExManagerEntity::LoadGroupe().

std::string ExCEntity::m_FileMesh [inherited]
 

Définition à la ligne 85 du fichier ExCEntity.h.

Référencé par LoadFile(), ExCEntity::LoadFile(), et ExManagerEntity::LoadGroupe().

std::string ExCEntity::m_FileProperty [inherited]
 

Définition à la ligne 84 du fichier ExCEntity.h.

Référencé par LoadFile(), ExCEntity::LoadFile(), et ExManagerEntity::LoadGroupe().

ExCVec3D ExCObject3D::m_Gravity [protected, inherited]
 

Redéfinie dans ExCParticule.

Définition à la ligne 69 du fichier ExCObject3D.h.

Référencé par ExCModel::Draw(), ExCObject3D::ExCObject3D(), ExCObject3D::GetGravity(), ExCObject3D::SetGravity(), ExCObject3D::ShowInfo(), et ExCModelMD2::ShowInfo().

std::string ExCEntity::m_GroupeName [inherited]
 

Définition à la ligne 90 du fichier ExCEntity.h.

Référencé par ExCGroupEntity(), et ExManagerEntity::LoadGroupe().

bool ExCEntity::m_HasGroupe [inherited]
 

Définition à la ligne 91 du fichier ExCEntity.h.

Référencé par ExCGroupEntity(), et ExManagerEntity::LoadGroupe().

double ExCObject3D::m_Life [protected, inherited]
 

Définition à la ligne 74 du fichier ExCObject3D.h.

Référencé par ExCObject3D::ExCObject3D(), ExCObject3D::ShowInfo(), et ExCModelMD2::ShowInfo().

std::string ExCEntity::m_ManagerType [inherited]
 

Définition à la ligne 88 du fichier ExCEntity.h.

Référencé par ExCEntity::Draw(), LoadFile(), et ExCEntity::LoadFile().

float ExCObject3D::m_Mass [protected, inherited]
 

Redéfinie dans ExCParticule.

Définition à la ligne 77 du fichier ExCObject3D.h.

Référencé par ExCObject3D::ExCObject3D().

ExNihilo::ExId ExCEntity::m_MeshId [inherited]
 

Définition à la ligne 86 du fichier ExCEntity.h.

Référencé par ExCEntity::Draw(), LoadFile(), et ExCEntity::LoadFile().

int ExCGroupEntity::m_NumberEntity [private]
 

Définition à la ligne 81 du fichier ExCGroupEntity.h.

Référencé par LoadFile().

std::string ExCObject::m_ObjectFileName [protected, inherited]
 

Définition à la ligne 72 du fichier ExCObject.h.

Référencé par ExCObject::GetFileName(), ExCTexture::LoadFile(), et ExCObject::SetFileName().

ExNihilo::ExId ExCObject::m_ObjectId [protected, inherited]
 

Définition à la ligne 70 du fichier ExCObject.h.

Référencé par ExCObject::GetId(), et ExCObject::SetId().

std::string ExCObject::m_ObjectName [protected, inherited]
 

Définition à la ligne 71 du fichier ExCObject.h.

Référencé par ExCObject::GetName(), LoadFile(), ExCEntity::LoadFile(), ExCTexture::SetName(), et ExCObject::SetName().

std::string ExCObject::m_ObjectType [protected, inherited]
 

Définition à la ligne 73 du fichier ExCObject.h.

Référencé par ExCObject::GetType(), et ExCObject::SetType().

ExCVec3D ExCObject3D::m_OldPosition [inherited]
 

Définition à la ligne 83 du fichier ExCObject3D.h.

Référencé par ExCParticule::Draw(), ExCModelMD2::Draw(), ExCObject3D::GetOldPosition(), et ExCObject3D::SetOldPosition().

ExCVec3D ExCObject3D::m_OldTarget [inherited]
 

Définition à la ligne 85 du fichier ExCObject3D.h.

Référencé par ExCObject3D::GetOldTarget(), et ExCObject3D::SetOldTarget().

ExCVec3D ExCObject3D::m_Position [inherited]
 

Redéfinie dans ExCParticule.

Définition à la ligne 82 du fichier ExCObject3D.h.

Référencé par ExCSystemeParticule::CalculateEmitPosition(), ExCModelMD2::Draw(), ExCModel3DS::Draw(), ExCModel::Draw(), ExCMeshSmogEffect::Draw(), ExCMeshLOD3ds::Draw(), ExCMeshFireEffect::Draw(), ExCMeshBilboarded::Draw(), ExCLight::Draw(), ExCHeightMap::Draw(), Draw(), ExCEntity::Draw(), ExCCameraFlight::Draw(), ExCCameraFirst::Draw(), ExCCameraChase::Draw(), ExCCamera::Draw(), ExCAnimation::Draw(), ExCCamera::DrawCameraGizmo(), ExCCamera::DrawCameraInfo(), ExCObject3D::ExCObject3D(), ExCModel::Forward(), ExCObject3D::GetPosition(), ExCLight::GetPositionX(), ExCLight::GetPositionY(), ExCLight::GetPositionZ(), ExManagerCamera::InputAction(), ExCModelMD2::InputAction(), ExCModel3DS::InputAction(), ExCHeightMap::Load(), LoadFile(), ExCEntity::LoadFile(), ExManagerEntity::LoadGroupe(), ExCModelMD2::Process(), ExCModel3DS::Process(), ExCLight::Reset(), ExCObject3D::SetPosition(), ExCLight::SetPosition(), ExCLight::SetPositionX(), ExCLight::SetPositionY(), ExCLight::SetPositionZ(), ExCObject3D::ShowInfo(), et ExCModelMD2::ShowInfo().

double ExCObject3D::m_RefreshTime [protected, inherited]
 

Définition à la ligne 72 du fichier ExCObject3D.h.

Référencé par ExCObject3D::ExCObject3D().

ExCVec3D ExCEntity::m_Scale [inherited]
 

Définition à la ligne 89 du fichier ExCEntity.h.

Référencé par Draw(), ExCEntity::Draw(), LoadFile(), ExCEntity::LoadFile(), ExManagerEntity::LoadGroupe(), et ExManagerEntity::Reload().

bool ExCObject3D::m_ShowInfo [protected, inherited]
 

Définition à la ligne 78 du fichier ExCObject3D.h.

Référencé par ExCCamera::ExCCamera(), ExCObject3D::ExCObject3D(), ExCObject3D::GetShowInfoState(), et ExCObject3D::SetShowInfoState().

float ExCObject3D::m_Size [protected, inherited]
 

Redéfinie dans ExCMeshBilboarded, ExCMeshFireEffect, ExCMeshWaterEffect, ExCMeshSmogEffect, et ExCParticule.

Définition à la ligne 76 du fichier ExCObject3D.h.

Référencé par ExCObject3D::ExCObject3D(), et ExCSkyBox::ExCSkyBox().

int ExCObject3D::m_speed [inherited]
 

Définition à la ligne 90 du fichier ExCObject3D.h.

Référencé par ExCModelMD2::Draw(), ExCCameraFlight::Draw(), ExCCamera::Draw(), ExCCamera::ExCCamera(), ExCModelMD2::ExCModelMD2(), et ExManagerCamera::InputAction().

float ExCObject3D::m_SphereRadius [inherited]
 

Définition à la ligne 91 du fichier ExCObject3D.h.

Référencé par ExCModelMD2::BuildSphere(), ExCModelMD2::ExCModelMD2(), et ExManagerCollision::ResolveCollision().

double ExCObject3D::m_StartingLife [protected, inherited]
 

Définition à la ligne 75 du fichier ExCObject3D.h.

Référencé par ExCObject3D::ExCObject3D().

ExCVec3D ExCObject3D::m_Target [inherited]
 

Définition à la ligne 84 du fichier ExCObject3D.h.

Référencé par ExCModel::Draw(), ExCCameraFlight::Draw(), ExCCameraFirst::Draw(), ExCCameraChase::Draw(), ExCCamera::Draw(), ExCCamera::DrawCameraGizmo(), ExCCamera::DrawCameraInfo(), ExCModel::Forward(), ExCObject3D::GetTarget(), ExCLight::GetTargetX(), ExCLight::GetTargetY(), ExCLight::GetTargetZ(), ExManagerCamera::InputAction(), ExCLight::Reset(), ExCObject3D::SetTarget(), ExCLight::SetTarget(), ExCLight::SetTargetX(), ExCLight::SetTargetY(), ExCLight::SetTargetZ(), et ExCModelMD2::ShowInfo().

ExCVec3D ExCObject3D::m_Up [protected, inherited]
 

Définition à la ligne 67 du fichier ExCObject3D.h.

Référencé par ExCCameraFlight::Draw(), ExCCameraChase::Draw(), et ExCCamera::Draw().

std::vector<ExCEntity > ExCGroupEntity::m_VecEntity [private]
 

Définition à la ligne 80 du fichier ExCGroupEntity.h.

Référencé par Draw(), et LoadFile().

ExCVec3D ExCObject3D::m_Velocity [protected, inherited]
 

Redéfinie dans ExCParticule.

Définition à la ligne 68 du fichier ExCObject3D.h.

Référencé par ExCModel::Draw(), ExCModelMD2::ExCModelMD2(), ExCObject3D::ExCObject3D(), ExCObject3D::GetVelocity(), ExCModelMD2::InputAction(), ExCModel3DS::InputAction(), ExCObject3D::SetVelocity(), ExCObject3D::ShowInfo(), et ExCModelMD2::ShowInfo().

bool ExCObject3D::m_Visible [inherited]
 

Définition à la ligne 92 du fichier ExCObject3D.h.

Référencé par ExCModelMD2::Draw(), ExCModel3DS::Draw(), ExCMeshWaterDisqueEffect::Draw(), ExCMeshSummonCylenderEffect::Draw(), ExCMeshSmogEffect::Draw(), ExCMeshSauronEffect::Draw(), ExCMeshLOD3ds::Draw(), ExCMeshFireEffect::Draw(), ExCMeshBilboarded::Draw(), ExCMesh3ds::Draw(), ExCMesh::Draw(), Draw(), ExCGizmoSphere::Draw(), ExCGizmoLineBezier::Draw(), ExCEntity::Draw(), ExCEntity::ExCEntity(), ExCGroupEntity(), ExCObject3D::GetVisibleState(), ExCMesh3ds::Load(), LoadFile(), ExCEntity::LoadFile(), et ExCObject3D::SetVisibleState().

ExManagerGizmo* ExCGroupEntity::ManagerGizmo [private]
 

Redéfinie à partir de ExCEntity.

Définition à la ligne 76 du fichier ExCGroupEntity.h.

Référencé par LoadFile(), et SetManagerGizmo().

ExManagerId* ExCGroupEntity::ManagerId [private]
 

Redéfinie à partir de ExCEntity.

Définition à la ligne 78 du fichier ExCGroupEntity.h.

Référencé par LoadFile(), et SetManagerId().

ExManagerMesh* ExCGroupEntity::ManagerMesh [private]
 

Redéfinie à partir de ExCEntity.

Définition à la ligne 75 du fichier ExCGroupEntity.h.

Référencé par LoadFile(), et SetManagerMesh().

ExManagerModel* ExCGroupEntity::ManagerModel [private]
 

Redéfinie à partir de ExCEntity.

Définition à la ligne 77 du fichier ExCGroupEntity.h.

Référencé par LoadFile(), et SetManagerModel().


La documentation associée à cette classe a été générée à partir des fichiers suivants :
Généré le Tue Oct 28 12:43:47 2003 pour ExNihilo par doxygen 1.3.4