#include <ExCModelASC.h>
Graphe d'héritage de la classe ExCModelASC

Membres publics | |
| ExCModelASC (void) | |
| ExCModelASC (std::string FileName) | |
| ~ExCModelASC (void) | |
| void | Draw (void) |
| void | ProcessLine (std::string Line) |
| bool | Load (std::string FileName) |
| void | NextFrame (void) |
| void | PreviousFrame (void) |
| void | SetCurrentFrame (int frame) |
| int | GetCurrentFrame (void) |
| void | SetInterpolationPourcentage (float inter) |
| float | GetInterpolationPourcentage (void) |
| void | SetManagerTexture (ExManagerTexture *Texture) |
| virtual void | StopRun (void) |
| virtual void | StartRun (void) |
| virtual void | StartAction (std::string Action) |
| virtual void | StopAction (void) |
| void | Forward (void) |
| void | Process (std::string Action) |
| virtual ExCAction | InputAction (ExCAction Action) |
| ExCGizmo * | GetCollisionGizmo (void) |
| void | IncreaseCollisionCouter (void) |
| void | DeCreaseCollisionCouter (void) |
| void | ResetCollisionCouter (void) |
| virtual void | CallAllList (void) |
| void | SetRenderMode (int mode) |
| 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) |
| virtual bool | LoadFile (std::string FileName) |
| 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 | |
| bool | m_AlwaysDraw |
| 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 |
| ExCFluxAction * | FluxAction |
Membres protégés | |
| void | BuildList (int Rendu) |
Attributs Protégés | |
| GLuint | m_ListId |
| ExCVec3D | m_AmbiantLight |
| int | m_NumberObject |
| std::vector< ObjAsc > | m_VecObject |
| std::vector< MeshAsc > | m_VecMesh |
| ExManagerTexture * | ManagerTexture |
| int | m_CurrentFrames |
| int | m_NextFrame |
| int | m_numFrames |
| float | m_InterpolationPourcentage |
| bool | m_Transition |
| float | m_Interpolation |
| int | m_KeyFrameStartAction |
| int | m_KeyFrameStopAction |
| std::string | m_CurrentAction |
| ExCGizmo * | m_CollisionGizmo |
| int | m_CollisionCounter |
| int | m_RenderMode |
| 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 |
|
|
Définition à la ligne 26 du fichier ExCModelASC.cpp. Références ExCModel::ExCModel(), ExCModelASC(), Guard, m_ListId, m_NumberObject, ExCObject::SetName(), ExCObject::SetType(), et UnGuard. Référencé par ExCModelASC(), et ~ExCModelASC().
00027 {
00028 Guard(ExCModelASC::ExCModelASC(void))
00029 m_NumberObject=-1;
00030 m_ListId=-1;
00031 ExCModel::ExCModel();
00032 SetName("ExCModelASC");
00033 SetType(typeid(this).name());
00034 UnGuard
00035 }
|
|
|
Définition à la ligne 37 du fichier ExCModelASC.cpp. Références ExCModelASC(), Guard, ExCObject::LoadFile(), m_ListId, m_NumberObject, et UnGuard.
00038 {
00039 Guard(ExCModelASC::ExCModelASC(std::string FileName))
00040 m_NumberObject=-1;
00041 m_ListId=-1;
00042 LoadFile(FileName);
00043 UnGuard
00044 }
|
|
|
Définition à la ligne 46 du fichier ExCModelASC.cpp. Références ExCModelASC(), Guard, et UnGuard.
00047 {
00048 Guard(ExCModelASC::~ExCModelASC(void))
00049 UnGuard
00050 }
|
|
|
Définition à la ligne 151 du fichier ExCModelASC.cpp. Références BuildList(), Guard, m_ListId, m_VecMesh, m_VecObject, ExCModel::ManagerTexture, ExManagerTexture::SetCurrentObject(), et UnGuard. Référencé par BuildList(), et Draw().
00152 {
00153 Guard(void ExCModelASC::BuildList(int Rendu))
00154 glDeleteLists(m_ListId,1); //delete old list
00155 m_ListId=glGenLists(1); //Ask for a new free list
00156 glNewList(m_ListId,GL_COMPILE);
00157 glPushAttrib(GL_ALL_ATTRIB_BITS);
00158 glEnable(GL_TEXTURE_2D);
00159 for(unsigned int i=0;i<m_VecMesh.size();i++)
00160 {
00161 ManagerTexture->SetCurrentObject(m_VecMesh.at(i).m_Material);
00162 glBegin(GL_TRIANGLES);
00163 glTexCoord2fv(m_VecMesh.at(i).VecTAB.m_Vector);glVertex3fv(m_VecMesh.at(i).VecAB.m_Vector);
00164 glTexCoord2fv(m_VecMesh.at(i).VecTBC.m_Vector);glVertex3fv(m_VecMesh.at(i).VecBC.m_Vector);
00165 glTexCoord2fv(m_VecMesh.at(i).VecTCA.m_Vector);glVertex3fv(m_VecMesh.at(i).VecCA.m_Vector);
00166 glEnd();
00167 }
00168 glPopAttrib();
00169 glEndList();
00170 //delete object data because data are now in list
00171 m_VecMesh.clear();
00172 m_VecObject.clear();
00173 UnGuard
00174 } |
|
|
Redéfinie dans ExCModel3DS, et ExCModel3DS. Définition à la ligne 137 du fichier ExCModel.h.
00137 {};
|
|
|
Définition à la ligne 135 du fichier ExCModel.h. Références ExCModel::m_CollisionCounter.
00135 {m_CollisionCounter--;}
|
|
|
Redéfinie à partir de ExCModel. Définition à la ligne 52 du fichier ExCModelASC.cpp. Références BuildList(), ExCModel::Draw(), Draw(), Guard, m_ListId, RENDER_TEXTURES, et UnGuard. Référencé par Draw().
00053 {
00054 Guard(void ExCModelASC::Draw(void))
00055 glPushMatrix();
00056 glDisable(GL_LIGHTING);
00057 ExCModel::Draw();
00058 glRotatef(-90,1,0,0);
00059 if(m_ListId==-1){
00060 BuildList(RENDER_TEXTURES);
00061 std::cout<<"build asc list"<<std::endl;
00062 }
00063 glCallList(m_ListId);
00064 glEnable(GL_LIGHTING);
00065 glPopMatrix();
00066 UnGuard
00067 }
|
|
|
Définition à la ligne 39 du fichier ExCModel.cpp. Références ExCModel::Forward(), Guard, ExCObject3D::m_Position, ExCObject3D::m_Target, et UnGuard. Référencé par ExCModel::Forward().
00040 {
00041 Guard(void ExCModel::Forward(void))
00042 m_Position=m_Position+m_Target;
00043 UnGuard
00044 }
|
|
|
Définition à la ligne 116 du fichier ExCObject3D.h. Références ExCObject3D::m_Acceleration.
00116 {return m_Acceleration;}
|
|
|
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().
|
|
|
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().
|
|
|
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().
|
|
|
Définition à la ligne 133 du fichier ExCModel.h. Références ExCModel::m_CollisionGizmo. Référencé par ExManagerCollision::ResolveCollision().
00133 {return m_CollisionGizmo;}
|
|
|
Définition à la ligne 121 du fichier ExCModel.h. Références ExCModel::m_CurrentFrames.
00121 {return m_CurrentFrames; }
|
|
|
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;}
|
|
|
Définition à la ligne 124 du fichier ExCObject3D.h. Références ExCObject3D::m_Gravity.
00124 {return m_Gravity;}
|
|
|
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;}
|
|
|
Définition à la ligne 123 du fichier ExCModel.h. Références ExCModel::m_InterpolationPourcentage.
00123 {return m_InterpolationPourcentage;}
|
|
|
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;}
|
|
|
Définition à la ligne 136 du fichier ExCObject3D.h. Références ExCObject3D::m_OldPosition.
00136 {return m_OldPosition;}
|
|
|
Définition à la ligne 140 du fichier ExCObject3D.h. Références ExCObject3D::m_OldTarget.
00140 {return m_OldTarget;}
|
|
|
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;}
|
|
|
Définition à la ligne 105 du fichier ExCObject3D.h. Références ExCObject3D::m_ShowInfo.
00105 {return m_ShowInfo;}
|
|
|
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;}
|
|
|
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;}
|
|
|
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;}
|
|
|
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;}
|
|
|
Définition à la ligne 134 du fichier ExCModel.h. Références ExCModel::m_CollisionCounter. Référencé par ExManagerCollision::ResolveCollision().
00134 {m_CollisionCounter++;}
|
|
|
Redéfinie dans ExCModel3DS, ExCModelMD2, et ExCModel3DS. Définition à la ligne 96 du fichier ExCModel.cpp. Références NOTHING. Référencé par ExManagerModel::InputAction().
00097 {
00098 return NOTHING;
00099 }
|
|
|
Redéfinie à partir de ExCModel. Définition à la ligne 69 du fichier ExCModelASC.cpp. Références Guard, Load(), ExCModelASC::MeshAsc::m_Material, m_VecMesh, m_VecObject, ProcessLine(), ExCObject::SetName(), ExCVec2D::SetX(), ExCVec3D::SetX(), ExCVec2D::SetY(), ExCVec3D::SetY(), ExCVec3D::SetZ(), UnGuard, ExCModelASC::MeshAsc::VecAB, ExCModelASC::MeshAsc::VecBC, ExCModelASC::MeshAsc::VecCA, ExCModelASC::MeshAsc::VecTAB, ExCModelASC::MeshAsc::VecTBC, et ExCModelASC::MeshAsc::VecTCA. Référencé par Load().
00070 {
00071 Guard(bool ExCModelASC::Load(std::string FileName))
00072 std::ifstream fin;
00073 std::string buffer;
00074 char b[256];
00075 SetName(ExNihilo::ExtracValueFromSring(FileName,"../Data/Modeles/",".asc"));
00076 fin.open(FileName.data(),std::ios::in);
00077 if(fin.is_open())
00078 {
00079 try
00080 {
00081 do
00082 {
00083 memset(b,0,255);
00084 fin.getline(b,256,'\n');
00085 ProcessLine(b);
00086 }while(!fin.eof());
00087 //build mesh tab
00088 MeshAsc Mesh;
00089 for(unsigned int i =0;i<m_VecObject.size();++i)//draw all object
00090 {
00091 for(unsigned int j =0;j<m_VecObject.at(i).m_VecFace.size();j++)//draw all face
00092 {
00093 Mesh.VecAB.SetX(m_VecObject.at(i).m_VecVertex.at(m_VecObject.at(i).m_VecFace.at(j).GetX()).GetX());
00094 Mesh.VecAB.SetY(m_VecObject.at(i).m_VecVertex.at(m_VecObject.at(i).m_VecFace.at(j).GetX()).GetY());
00095 Mesh.VecAB.SetZ(m_VecObject.at(i).m_VecVertex.at(m_VecObject.at(i).m_VecFace.at(j).GetX()).GetZ());
00096
00097 Mesh.VecBC.SetX(m_VecObject.at(i).m_VecVertex.at(m_VecObject.at(i).m_VecFace.at(j).GetY()).GetX());
00098 Mesh.VecBC.SetY(m_VecObject.at(i).m_VecVertex.at(m_VecObject.at(i).m_VecFace.at(j).GetY()).GetY());
00099 Mesh.VecBC.SetZ(m_VecObject.at(i).m_VecVertex.at(m_VecObject.at(i).m_VecFace.at(j).GetY()).GetZ());
00100
00101 Mesh.VecCA.SetX(m_VecObject.at(i).m_VecVertex.at(m_VecObject.at(i).m_VecFace.at(j).GetZ()).GetX());
00102 Mesh.VecCA.SetY(m_VecObject.at(i).m_VecVertex.at(m_VecObject.at(i).m_VecFace.at(j).GetZ()).GetY());
00103 Mesh.VecCA.SetZ(m_VecObject.at(i).m_VecVertex.at(m_VecObject.at(i).m_VecFace.at(j).GetZ()).GetZ());
00104
00105 Mesh.VecTAB.SetX(m_VecObject.at(i).m_VecTexture.at(m_VecObject.at(i).m_VecFace.at(j).GetX()).GetX());
00106 Mesh.VecTAB.SetY(m_VecObject.at(i).m_VecTexture.at(m_VecObject.at(i).m_VecFace.at(j).GetX()).GetY());
00107
00108 Mesh.VecTBC.SetX(m_VecObject.at(i).m_VecTexture.at(m_VecObject.at(i).m_VecFace.at(j).GetY()).GetX());
00109 Mesh.VecTBC.SetY(m_VecObject.at(i).m_VecTexture.at(m_VecObject.at(i).m_VecFace.at(j).GetY()).GetY());
00110
00111 Mesh.VecTCA.SetX(m_VecObject.at(i).m_VecTexture.at(m_VecObject.at(i).m_VecFace.at(j).GetZ()).GetX());
00112 Mesh.VecTCA.SetY(m_VecObject.at(i).m_VecTexture.at(m_VecObject.at(i).m_VecFace.at(j).GetZ()).GetY());
00113 Mesh.m_Material= m_VecObject.at(i).m_Texture;
00114 m_VecMesh.push_back(Mesh);
00115 }
00116 }
00117 m_VecObject.clear();//now no need object info
00118 return true;
00119 }catch(...){throw ExCExpFileReadError();}
00120 }
00121 throw ExCExpFileNotFound();
00122 return false;
00123 UnGuard
00124 }
|
|
|
Redéfinie dans ExCAnimation, ExCEntity, ExCGroupEntity, ExCTexture, ExCInterface, ExCWindowTitleBar, ExCWindow, ExCWindowTitleBar, et ExCGizmoLineBezier. Définition à la ligne 53 du fichier ExCObject.cpp. Références Guard, ExCObject::LoadFile(), et UnGuard. Référencé par ExCModelASC(), ExCObject::ExCObject(), ExCWindow::LoadFile(), et ExCObject::LoadFile().
|
|
|
Définition à la ligne 100 du fichier ExCModel.cpp. Références Guard, ExCModel::m_CurrentFrames, ExCModel::m_numFrames, ExCModel::NextFrame(), et UnGuard. Référencé par ExCModelMD2::InputAction(), ExCModel3DS::InputAction(), et ExCModel::NextFrame().
00101 {
00102 Guard(void ExCModel::NextFrame(void))
00103 m_CurrentFrames++;
00104 if(m_CurrentFrames>m_numFrames)m_CurrentFrames=1;
00105 UnGuard
00106 }
|
|
|
Définition à la ligne 108 du fichier ExCModel.cpp. Références Guard, ExCModel::m_CurrentFrames, ExCModel::m_numFrames, ExCModel::PreviousFrame(), et UnGuard. Référencé par ExCModel::PreviousFrame().
00109 {
00110 Guard(void ExCModel::PreviousFrame(void))
00111 m_CurrentFrames--;
00112 if(m_CurrentFrames<1)m_CurrentFrames=m_numFrames;
00113 UnGuard
00114 }
|
|
|
Redéfinie dans ExCModel3DS, ExCModelMD2, et ExCModel3DS. |
|
|
Définition à la ligne 126 du fichier ExCModelASC.cpp. Références ExManagerTexture::Add(), ExNihilo::ExtracValueFromSring(), Guard, m_AmbiantLight, m_NumberObject, ExCModelASC::ObjAsc::m_ObjectName, m_VecObject, ExCModel::ManagerTexture, ProcessLine(), ExCVec3D::SetValue(), et UnGuard. Référencé par Load(), et ProcessLine().
00127 {
00128 Guard(void ExCModelASC::ProcessLine(std::string Line))
00129 if(Line.find("Ambient light color:")!=std::string::npos){//first line of file
00130 m_AmbiantLight.SetValue(atof(ExNihilo::ExtracValueFromSring(Line,"Red="," ").data()),atof(ExNihilo::ExtracValueFromSring(Line,"Green="," ").data()),atof(ExNihilo::ExtracValueFromSring(Line,"Blue="," ").data()));
00131 }else if(Line.find("Named object: ")!=std::string::npos){//new object
00132 m_NumberObject++;
00133 ObjAsc obj;
00134 obj.m_ObjectName=ExNihilo::ExtracValueFromSring(Line,"Named object: \"","\"");
00135 m_VecObject.push_back(obj);
00136 }else if(Line.find("Face ")!=std::string::npos){//read face info
00137 m_VecObject.at(m_NumberObject).m_VecFace.push_back(ExCVec3D(atof(ExNihilo::ExtracValueFromSring(Line,"A:"," ").data()),atof(ExNihilo::ExtracValueFromSring(Line,"B:"," ").data()),atof(ExNihilo::ExtracValueFromSring(Line,"C:"," ").data())));
00138 }else if(Line.find("Material: ")!=std::string::npos){//read material
00139 m_VecObject.at(m_NumberObject).m_Texture=ExNihilo::ExtracValueFromSring(Line,"Material: \"","\"");
00140 ManagerTexture->Add(m_VecObject.at(m_NumberObject).m_Texture);
00141 }else if(Line.find("Smoothing: ")!=std::string::npos){//read smothing
00142 m_VecObject.at(m_NumberObject).m_Smoothing=atof(ExNihilo::ExtracValueFromSring(Line,"Smoothing: ","\n").data());
00143 }else if(Line.find("Vertex ")!=std::string::npos){//Vertex data
00144 if(Line.find("Vertex list:")!=std::string::npos){return;}//do nothing
00145 m_VecObject.at(m_NumberObject).m_VecVertex.push_back(ExCVec3D(atof(ExNihilo::ExtracValueFromSring(Line,"X:"," ").data()),atof(ExNihilo::ExtracValueFromSring(Line,"Y:"," ").data()),atof(ExNihilo::ExtracValueFromSring(Line,"Z:"," ").data())));
00146 if(Line.find("U:")!=std::string::npos){m_VecObject.at(m_NumberObject).m_VecTexture.push_back(ExCVec2D(atof(ExNihilo::ExtracValueFromSring(Line,"U:"," ").data()),atof(ExNihilo::ExtracValueFromSring(Line,"V:"," ").data())));}
00147 }
00148 UnGuard
00149 }
|
|
|
Définition à la ligne 136 du fichier ExCModel.h. Références ExCModel::m_CollisionCounter. Référencé par ExManagerCollision::ResolveCollision().
00136 {m_CollisionCounter=0;}
|
|
|
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 }
|
|
||||||||||||||||
|
Définition à la ligne 126 du fichier ExCObject3D.cpp. Références ExCObject3D::Rotate(), ExCObject3D::SetAngleX(), ExCObject3D::SetAngleY(), et ExCObject3D::SetAngleZ().
|
|
||||||||||||||||
|
Définition à la ligne 115 du fichier ExCObject3D.h. Références ExCObject3D::m_Acceleration.
00115 {m_Acceleration=ExCVec3D(x,y,z);}
|
|
|
Définition à la ligne 114 du fichier ExCObject3D.h. Références ExCObject3D::m_Acceleration.
00114 {m_Acceleration=Acceleration;}
|
|
|
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().
|
|
|
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().
|
|
|
Définition à la ligne 118 du fichier ExCObject3D.cpp. Références ExCObject3D::m_Angle, et ExCVec3D::SetZ(). Référencé par ExCObject3D::Rotate().
|
|
|
Définition à la ligne 116 du fichier ExCModel.cpp. Références Guard, ExCModel::m_CurrentFrames, ExCModel::m_numFrames, ExCModel::SetCurrentFrame(), et UnGuard. Référencé par ExCModel::SetCurrentFrame().
00117 {
00118 Guard(void ExCModel::SetCurrentFrame(int frame))
00119 if(frame>0&&frame<m_numFrames)
00120 m_CurrentFrames=frame;
00121 UnGuard
00122 }
|
|
|
Définition à la ligne 101 du fichier ExCObject3D.h. Références ExCObject3D::m_CurrentObject.
00101 {m_CurrentObject=state;}
|
|
|
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;}
|
|
||||||||||||
|
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 }
|
|
||||||||||||||||
|
Définition à la ligne 123 du fichier ExCObject3D.h. Références ExCObject3D::m_Gravity.
|
|
|
Définition à la ligne 122 du fichier ExCObject3D.h. Références ExCObject3D::m_Gravity.
00122 {m_Gravity=Gravity;}
|
|
|
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;}
|
|
|
Définition à la ligne 47 du fichier ExCObject.cpp. Références ExNihilo::IdName, ExCObject::SetId(), et ExCObject::SetName().
|
|
|
Définition à la ligne 122 du fichier ExCModel.h. Références ExCModel::m_InterpolationPourcentage.
00122 {m_InterpolationPourcentage=inter;}
|
|
|
Définition à la ligne 124 du fichier ExCModel.h. Références ExCModel::ManagerTexture. Référencé par ExCMesh3ds::Draw(), ExManagerModel::Load(), et ExCMeshLOD3ds::Load().
00124 {ManagerTexture = Texture;}
|
|
|
||||||||||||||||
|
Définition à la ligne 135 du fichier ExCObject3D.h. Références ExCObject3D::m_OldPosition.
00135 {m_OldPosition=ExCVec3D(x,y,z);}
|
|
|
Définition à la ligne 134 du fichier ExCObject3D.h. Références ExCObject3D::m_OldPosition.
00134 {m_OldPosition=OldPosition;}
|
|
||||||||||||||||
|
Définition à la ligne 139 du fichier ExCObject3D.h. Références ExCObject3D::m_OldTarget.
00139 {m_OldTarget=ExCVec3D(x,y,z);}
|
|
|
Définition à la ligne 138 du fichier ExCObject3D.h. Références ExCObject3D::m_OldTarget.
00138 {m_OldTarget=OldTarget;}
|
|
||||||||||||||||
|
Définition à la ligne 127 du fichier ExCObject3D.h. Références ExCObject3D::m_Position.
00127 {m_Position=ExCVec3D(x,y,z);}
|
|
|
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;}
|
|
|
Définition à la ligne 139 du fichier ExCModel.h. Références ExCModel::m_RenderMode.
00139 {m_RenderMode = mode;}
|
|
|
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;}
|
|
||||||||||||||||
|
Définition à la ligne 131 du fichier ExCObject3D.h. Références ExCObject3D::m_Target.
|
|
|
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;}
|
|
|
||||||||||||||||
|
Définition à la ligne 119 du fichier ExCObject3D.h. Références ExCObject3D::m_Velocity.
00119 {m_Velocity=ExCVec3D(x,y,z);}
|
|
|
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;}
|
|
|
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;}
|
|
|
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 }
|
|
|
Redéfinie dans ExCModel3DS, ExCModelMD2, et ExCModel3DS. Définition à la ligne 140 du fichier ExCModel.cpp.
|
|
|
Définition à la ligne 124 du fichier ExCModel.cpp. Références Guard, ExCModel::StartRun(), et UnGuard. Référencé par ExCModel::StartRun().
|
|
|
Définition à la ligne 146 du fichier ExCModel.cpp. Références Guard, ExCModel::StopAction(), et UnGuard. Référencé par ExCModelMD2::InputAction(), ExCModel3DS::InputAction(), ExCModelMD2::Process(), ExCModel3DS::Process(), et ExCModel::StopAction().
|
|
|
Définition à la ligne 132 du fichier ExCModel.cpp. Références Guard, ExCModel::StopRun(), et UnGuard. Référencé par ExCModel::StopRun().
|
|
|
Redéfinie dans ExCInterface, et ExCSystemeParticule. Définition à la ligne 75 du fichier ExCObject.h. Référencé par ExCTexture::LoadFile(), et ExCObject::SetFlux(). |
|
|
Définition à la ligne 76 du fichier ExCObject.h. Référencé par ExCAnimation::Draw(), et ExCObject::SetFlux(). |
|
|
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(). |
|
|
Définition à la ligne 115 du fichier ExCModel.h. Référencé par ExCModel3DS::Draw(), ExCModel3DS::ExCModel3DS(), et ExCModel3DS::InputAction(). |
|
|
Définition à la ligne 90 du fichier ExCModelASC.h. Référencé par ProcessLine(). |
|
|
|
Définition à la ligne 103 du fichier ExCModel.h. Référencé par ExCModel::DeCreaseCollisionCouter(), ExCModel3DS::ExCModel3DS(), ExCModelMD2::ExCModelMD2(), ExCModel::IncreaseCollisionCouter(), et ExCModel::ResetCollisionCouter(). |
|
|
Définition à la ligne 102 du fichier ExCModel.h. Référencé par ExCModelMD2::Draw(), ExCModel3DS::ExCModel3DS(), ExCModelEXM::ExCModelEXM(), ExCModelMD2::ExCModelMD2(), et ExCModel::GetCollisionGizmo(). |
|
|
Définition à la ligne 101 du fichier ExCModel.h. Référencé par ExCModelMD2::StartAction(), et ExCModel3DS::StartAction(). |
|
|
Définition à la ligne 93 du fichier ExCModel.h. Référencé par ExCModelMD2::Draw(), ExCModelMD2::ExCModelMD2(), ExCModel::GetCurrentFrame(), ExCModel::NextFrame(), ExCModel::PreviousFrame(), ExCModelMD2::Process(), ExCModel3DS::Process(), ExCModel::SetCurrentFrame(), et ExCModelMD2::StartAction(). |
|
|
Définition à la ligne 79 du fichier ExCObject3D.h. Référencé par ExCObject3D::ExCObject3D(), et ExCObject3D::SetCurrentState(). |
|
|
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(). |
|
|
Définition à la ligne 98 du fichier ExCModel.h. Référencé par ExCModelMD2::Draw(), et ExCModelMD2::ExCModelMD2(). |
|
|
Définition à la ligne 96 du fichier ExCModel.h. Référencé par ExCModelMD2::Draw(), ExCModelMD2::ExCModelMD2(), ExCModel::GetInterpolationPourcentage(), et ExCModel::SetInterpolationPourcentage(). |
|
|
Définition à la ligne 99 du fichier ExCModel.h. Référencé par ExCModelMD2::Draw(), et ExCModelMD2::StartAction(). |
|
|
Définition à la ligne 100 du fichier ExCModel.h. Référencé par ExCModelMD2::Draw(), et ExCModelMD2::StartAction(). |
|
|
Définition à la ligne 74 du fichier ExCObject3D.h. Référencé par ExCObject3D::ExCObject3D(), ExCObject3D::ShowInfo(), et ExCModelMD2::ShowInfo(). |
|
|
Définition à la ligne 89 du fichier ExCModelASC.h. Référencé par BuildList(), Draw(), et ExCModelASC(). |
|
|
Redéfinie dans ExCParticule. Définition à la ligne 77 du fichier ExCObject3D.h. Référencé par ExCObject3D::ExCObject3D(). |
|
|
Définition à la ligne 94 du fichier ExCModel.h. Référencé par ExCModelMD2::Draw(), et ExCModelMD2::ExCModelMD2(). |
|
|
Définition à la ligne 91 du fichier ExCModelASC.h. Référencé par ExCModelASC(), et ProcessLine(). |
|
|
Définition à la ligne 95 du fichier ExCModel.h. Référencé par ExCModelMD2::Load(), ExCModel::NextFrame(), ExCModel::PreviousFrame(), et ExCModel::SetCurrentFrame(). |
|
|
Définition à la ligne 72 du fichier ExCObject.h. Référencé par ExCObject::GetFileName(), ExCTexture::LoadFile(), et ExCObject::SetFileName(). |
|
|
Définition à la ligne 70 du fichier ExCObject.h. Référencé par ExCObject::GetId(), et ExCObject::SetId(). |
|
|
Définition à la ligne 71 du fichier ExCObject.h. Référencé par ExCObject::GetName(), ExCGroupEntity::LoadFile(), ExCEntity::LoadFile(), ExCTexture::SetName(), et ExCObject::SetName(). |
|
|
Définition à la ligne 73 du fichier ExCObject.h. Référencé par ExCObject::GetType(), et ExCObject::SetType(). |
|
|
Définition à la ligne 83 du fichier ExCObject3D.h. Référencé par ExCParticule::Draw(), ExCModelMD2::Draw(), ExCObject3D::GetOldPosition(), et ExCObject3D::SetOldPosition(). |
|
|
Définition à la ligne 85 du fichier ExCObject3D.h. Référencé par ExCObject3D::GetOldTarget(), et ExCObject3D::SetOldTarget(). |
|
|
|
Définition à la ligne 72 du fichier ExCObject3D.h. Référencé par ExCObject3D::ExCObject3D(). |
|
|
Définition à la ligne 105 du fichier ExCModel.h. Référencé par ExCModel3DS::Draw(), ExCModel3DS::ExCModel3DS(), ExCModel3DS::InputAction(), et ExCModel::SetRenderMode(). |
|
|
Définition à la ligne 78 du fichier ExCObject3D.h. Référencé par ExCCamera::ExCCamera(), ExCObject3D::ExCObject3D(), ExCObject3D::GetShowInfoState(), et ExCObject3D::SetShowInfoState(). |
|
|
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(). |
|
|
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(). |
|
|
Définition à la ligne 91 du fichier ExCObject3D.h. Référencé par ExCModelMD2::BuildSphere(), ExCModelMD2::ExCModelMD2(), et ExManagerCollision::ResolveCollision(). |
|
|
Définition à la ligne 75 du fichier ExCObject3D.h. Référencé par ExCObject3D::ExCObject3D(). |
|
|
|
Définition à la ligne 97 du fichier ExCModel.h. Référencé par ExCModelMD2::Draw(), ExCModelMD2::ExCModelMD2(), et ExCModelMD2::StartAction(). |
|
|
Définition à la ligne 67 du fichier ExCObject3D.h. Référencé par ExCCameraFlight::Draw(), ExCCameraChase::Draw(), et ExCCamera::Draw(). |
|
|
Définition à la ligne 93 du fichier ExCModelASC.h. Référencé par BuildList(), et Load(). |
|
|
Définition à la ligne 92 du fichier ExCModelASC.h. Référencé par BuildList(), Load(), et ProcessLine(). |
|
|
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(). |
|
|
|
Définition à la ligne 92 du fichier ExCModel.h. Référencé par BuildList(), ExCModel3DS::BuildList(), ExCModel3DS::CallAllArray(), ExCModelMD2::Draw(), ExCModelEXM::Draw(), ExCModel3DS::Draw(), ExCModelMD2::Load(), ProcessLine(), ExCModel3DS::ReadFace(), et ExCModel::SetManagerTexture(). |
1.3.4