#include <ExCMesh3ds.h>
Graphe d'héritage de la classe ExCMesh3ds
|
Définition à la ligne 26 du fichier ExCMesh3ds.cpp. Références ExCMesh3ds(), Guard, m_CurrentAnimation, m_CurrentInterpolation, m_HasInterpolation, m_InterpolationPourcentage, m_TimeForNextFrame, ExCObject::SetName(), ExCObject::SetType(), et UnGuard. Référencé par ExCMesh3ds(), et ~ExCMesh3ds().
00027 { 00028 Guard(ExCMesh3ds::ExCMesh3ds()) 00029 SetName("ExCMesh3ds"); 00030 SetType(typeid(this).name()); 00031 m_CurrentAnimation=0; 00032 m_TimeForNextFrame=100; 00033 m_InterpolationPourcentage=10; 00034 m_CurrentInterpolation=0; 00035 m_HasInterpolation=false; 00036 UnGuard 00037 } |
|
Définition à la ligne 39 du fichier ExCMesh3ds.cpp. Références ExCMesh3ds(), Guard, et UnGuard.
00040 { 00041 Guard(ExCMesh3ds::~ExCMesh3ds()) 00042 UnGuard 00043 } |
|
----------------------------------------- Redéfinie à partir de ExCMesh. Définition à la ligne 46 du fichier ExCMesh3ds.cpp. Références ExCModel::Draw(), ExCModel3DS::Draw(), Draw(), ExManagerModel::GetObject(), Guard, ExCModel3DS::HasList, m_CurrentAnimation, m_CurrentInterpolation, m_HasInterpolation, m_InterpolationPourcentage, m_NumberKeyFrame, m_TimeForNextFrame, m_TimeLastKeyFrame, ExCModel3DS::m_VecObject, m_VecObjectIDKey, ExCObject3D::m_Visible, ManagerModel, ExCMesh::ManagerTexture, ExCModel::SetManagerTexture(), UnGuard, et t3DObject::Verts. Référencé par Draw().
00047 { 00048 Guard(void ExCMesh3ds::Draw(void)) 00049 00050 /* 00051 //copy data 00052 for(unsigned int i=0;i<Current3ds->m_VecObject->size();i++) 00053 { 00054 t3DObject Tmpt3dobj; 00055 //get object data 00056 Tmpt3dobj=Current3ds->m_VecObject->at(i); 00057 //std::cout<<"copy object:"<<Current3ds->m_VecObject->at(i).Material<<std::endl; 00058 //std::cout<<"test copy object:"<<Tmpt3dobj.Material<<std::endl; 00059 //modify objet data 00060 00061 for(unsigned int j;j<Tmpt3dobj.Verts.size();j++) 00062 { 00063 Tmpt3dobj.Verts.at(j)=Current3ds->m_VecObject->at(i).Verts.at(j)+ 00064 ((Next3DS->m_VecObject->at(i).Verts.at(j)-Current3ds->m_VecObject->at(i).Verts.at(j)) 00065 /m_InterpolationPourcentage)*m_CurrentInterpolation; 00066 00067 //std::cout<<"object copy"<<Tmpt3dobj.Verts.at(j)<<std::endl; 00068 //std::cout<<"object original"<<Current3ds->m_VecObject->at(i).Verts.at(j)<<std::endl; 00069 //std::cout<<"----------------------------------------------"<<std::endl; 00070 } 00071 00072 Render3DS->m_VecObject->push_back(Tmpt3dobj); //push the new object data 00073 } 00074 m_CurrentInterpolation++; 00075 00076 00077 Render3DS->Draw(); 00078 */ 00079 /*std::cout<<"vec obj size:"<<Render3DS->m_VecObject->size()<<std::endl; 00080 00081 for(unsigned int i=0;i<Render3DS->m_VecObject->size();i++) 00082 { 00083 std::cout<<"vec vertex size:"<<Render3DS->m_VecObject->at(i).Verts.size()<<std::endl; 00084 for(unsigned int j;j<Render3DS->m_VecObject->at(i).Verts.size();j++) 00085 { 00086 std::cout<<Render3DS->m_VecObject->at(i).Verts.at(j)<<std::endl; 00087 } 00088 }*/ 00089 00090 00091 //Render3DS->m_VecObject.at(); 00092 //Current3ds->m_VecObject.at(); 00093 00094 // Render3DS->BuildList(RENDER_TEXTURES); 00095 // Render3DS->Draw(); 00096 00097 /* ManagerModel->GetObject(Render3DS->GetId())->m_Visible=true; 00098 ManagerModel->GetObject(Render3DS->GetId())->Draw(); 00099 ManagerModel->GetObject(Render3DS->GetId())->m_Visible=false; 00100 */ 00101 if(m_HasInterpolation) 00102 { 00103 //Creat 3 pointer 00104 ExCModel3DS *Current3ds,*Next3DS,*Render3DS; 00105 Current3ds =(ExCModel3DS *) ManagerModel->GetObject(m_VecObjectIDKey.at(m_CurrentAnimation).first); 00106 if(m_CurrentAnimation>=m_NumberKeyFrame-1) 00107 { 00108 Next3DS =(ExCModel3DS *) ManagerModel->GetObject(m_VecObjectIDKey.at(0).first); 00109 }else 00110 { 00111 Next3DS =(ExCModel3DS *) ManagerModel->GetObject(m_VecObjectIDKey.at(m_CurrentAnimation+1).first); 00112 } 00113 00114 //init new object 00115 Render3DS = new ExCModel3DS; 00116 Render3DS->m_VecObject=new std::vector<t3DObject>; 00117 Render3DS->SetManagerTexture(ManagerTexture); 00118 00119 //copy all data 00120 for(unsigned int i=0;i<Current3ds->m_VecObject->size();i++) 00121 { 00122 t3DObject Tmpt3dobj; 00123 Tmpt3dobj=Current3ds->m_VecObject->at(i); 00124 //std::cout<<"copy object:"<<Current3ds->m_VecObject->at(i).Material<<std::endl; 00125 //std::cout<<"test copy object:"<<Tmpt3dobj.Material<<std::endl; 00126 //modify objet data 00127 for(unsigned int j;j<Tmpt3dobj.Verts.size();j++) 00128 { 00129 Tmpt3dobj.Verts.at(j)=Current3ds->m_VecObject->at(i).Verts.at(j)+ 00130 ((Next3DS->m_VecObject->at(i).Verts.at(j)-Current3ds->m_VecObject->at(i).Verts.at(j)) 00131 /m_InterpolationPourcentage)*m_CurrentInterpolation; 00132 00133 //std::cout<<"object copy"<<Tmpt3dobj.Verts.at(j)<<std::endl; 00134 //std::cout<<"object original"<<Current3ds->m_VecObject->at(i).Verts.at(j)<<std::endl; 00135 //std::cout<<"----------------------------------------------"<<std::endl; 00136 } 00137 00138 Render3DS->m_VecObject->push_back(Tmpt3dobj); //push the new object data 00139 } 00140 m_CurrentInterpolation++; 00141 00142 //draw the object 00143 Render3DS->m_Visible=true; 00144 Render3DS->HasList=false; 00145 Render3DS->Draw(); 00146 //free memory 00147 //delete Render3DS; 00148 //delete Render3DS->m_VecObject; 00149 00150 00151 }else 00152 { 00154 //To draw witout interpolation 00155 //------------------------------------------ 00156 ManagerModel->GetObject(m_VecObjectIDKey.at(m_CurrentAnimation).first)->m_Visible=true; 00157 ManagerModel->GetObject(m_VecObjectIDKey.at(m_CurrentAnimation).first)->Draw(); 00158 ManagerModel->GetObject(m_VecObjectIDKey.at(m_CurrentAnimation).first)->m_Visible=false; 00159 } 00160 00161 double currenttime=glutGet(GLUT_ELAPSED_TIME); 00162 if(currenttime>m_TimeLastKeyFrame+m_TimeForNextFrame)//jump next frame 00163 { 00164 m_TimeLastKeyFrame=currenttime; 00165 m_CurrentAnimation++; 00166 m_CurrentInterpolation=0; 00167 } 00168 00169 if(m_CurrentAnimation>=m_NumberKeyFrame)m_CurrentAnimation=0; 00170 UnGuard 00171 } |
|
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 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 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;} |
|
Redéfinie à partir de ExCMesh. Définition à la ligne 173 du fichier ExCMesh3ds.cpp. Références ExNihilo::ExtractFloatValueFromSring(), ExNihilo::ExtractIntValueFromSring(), ExNihilo::ExtracValueFromSring(), ExManagerModel::GetObject(), Guard, ExManagerModel::Load(), Load(), m_CurrentAnimation, m_HasInterpolation, m_NumberKeyFrame, m_VecObjectIDKey, ExCObject3D::m_Visible, ManagerModel, PREFIX, et UnGuard. Référencé par Load().
00174 { 00175 Guard(bool ExCMesh3ds::Load(std::string FileName)) 00176 m_CurrentAnimation=0; 00177 char buffer[255]; 00178 #ifdef UNIX_SRC 00179 sprintf(buffer, PREFIX "/ExNihilo/Data/Mesh/%s", FileName.data()); 00180 #else 00181 sprintf(buffer, "../Data/Mesh/%s", FileName.data()); 00182 #endif 00183 std::ifstream fin; 00184 std::string buffstring; 00185 char b[256]; 00186 std::pair<ExNihilo::ExId , int> PEX; 00187 fin.open(buffer,std::ios::in); 00188 if(fin.is_open()) 00189 { 00190 try 00191 { 00192 //----Read type 00193 memset(b,0,255);fin.getline(b,256,'\n'); 00194 //----Read has interpol 00195 memset(b,0,255);fin.getline(b,256,'\n'); 00196 m_HasInterpolation=(bool)ExNihilo::ExtractIntValueFromSring(b,"<HasInterpolation>","<#HasInterpolation>"); 00197 //----Read numer of key 00198 memset(b,0,255);fin.getline(b,256,'\n'); 00199 m_NumberKeyFrame=ExNihilo::ExtractFloatValueFromSring(b,"<NumberKeyFrame>","<#NumberKeyFrame>"); 00200 //----Read all frame 00201 for(int i=0;i<m_NumberKeyFrame;i++) 00202 { 00203 memset(b,0,255); 00204 fin.getline(b,256,'\n'); 00205 try 00206 { 00207 buffstring=ExNihilo::ExtracValueFromSring(b,"<KeyFrameFile>","<#KeyFrameFile>"); 00208 PEX.first=ManagerModel->Load(buffstring) ; 00209 PEX.second=i; 00210 ManagerModel->GetObject(PEX.first)->m_Visible=false; 00211 m_VecObjectIDKey.push_back(PEX); 00212 }catch(ExCExpStringNotFound){} 00213 } 00214 fin.close(); 00215 }catch(...){throw ExCExpFileReadError();} 00216 }else throw ExCExpFileNotFound(); 00217 return true; 00218 UnGuard 00219 } |
|
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::ExCModelASC(), ExCObject::ExCObject(), ExCWindow::LoadFile(), et ExCObject::LoadFile().
|
|
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 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 99 du fichier ExCMesh3ds.h. Références ManagerId.
00099 {ManagerId = Id;} |
|
Définition à la ligne 98 du fichier ExCMesh3ds.h. Références ManagerModel.
00098 {ManagerModel = Model;} |
|
Définition à la ligne 85 du fichier ExCMesh.h. Références ExCMesh::ManagerTexture. Référencé par ExManagerMesh::Load().
00085 {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 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 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 81 du fichier ExCMesh3ds.h. Référencé par Draw(), ExCMesh3ds(), et Load(). |
|
Définition à la ligne 85 du fichier ExCMesh3ds.h. Référencé par Draw(), et ExCMesh3ds(). |
|
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 86 du fichier ExCMesh3ds.h. Référencé par Draw(), ExCMesh3ds(), et Load(). |
|
Définition à la ligne 84 du fichier ExCMesh3ds.h. Référencé par Draw(), et ExCMesh3ds(). |
|
Définition à la ligne 74 du fichier ExCObject3D.h. Référencé par ExCObject3D::ExCObject3D(), ExCObject3D::ShowInfo(), et ExCModelMD2::ShowInfo(). |
|
Redéfinie dans ExCParticule. Définition à la ligne 77 du fichier ExCObject3D.h. Référencé par ExCObject3D::ExCObject3D(). |
|
Définition à la ligne 80 du fichier ExCMesh3ds.h. |
|
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 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 82 du fichier ExCMesh3ds.h. Référencé par Draw(), et ExCMesh3ds(). |
|
Définition à la ligne 83 du fichier ExCMesh3ds.h. Référencé par Draw(). |
|
Définition à la ligne 67 du fichier ExCObject3D.h. Référencé par ExCCameraFlight::Draw(), ExCCameraChase::Draw(), et ExCCamera::Draw(). |
|
Définition à la ligne 79 du fichier ExCMesh3ds.h. |
|
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 75 du fichier ExCMesh3ds.h. Référencé par SetManagerId(). |
|
Définition à la ligne 74 du fichier ExCMesh3ds.h. Référencé par Draw(), Load(), et SetManagerModel(). |
|