#include <ExCAnimation.h>
Graphe d'héritage de la classe ExCAnimation
|
Définition à la ligne 26 du fichier ExCAnimation.cpp. Références ExCAnimation(), ExCObject3D::ExCObject3D(), Guard, m_CurrentAnimation, m_Pause, m_Time, ExCObject::SetName(), ExCObject::SetType(), et UnGuard. Référencé par ExCAnimation(), et ~ExCAnimation().
00027 { 00028 Guard(ExCAnimation::ExCAnimation()) 00029 ExCObject3D::ExCObject3D(); 00030 SetName("ExCAnimation"); 00031 SetType(typeid(this).name()); 00032 m_Time=0; 00033 m_CurrentAnimation=0; 00034 m_Pause=false; 00035 UnGuard 00036 } |
|
Définition à la ligne 38 du fichier ExCAnimation.cpp. Références ExCAnimation(), Guard, et UnGuard.
00039 { 00040 Guard(ExCAnimation::~ExCAnimation()) 00041 UnGuard 00042 } |
|
Redéfinie à partir de ExCObject. Définition à la ligne 45 du fichier ExCAnimation.cpp. Références ExCVec3D::DecX(), ExCVec3D::DecY(), ExCVec3D::DecZ(), Draw(), ExCObject::FluxAction, ExCVec3D::GetX(), ExCVec3D::GetY(), ExCVec3D::GetZ(), Guard, ExCObject3D::m_Angle, m_CurrentAnimation, m_Loop, m_Object, m_Pause, ExCObject3D::m_Position, m_ShowPath, m_Time, m_VecAnimation, ExCFluxAction::Push(), ExCVec3D::SetValue(), et UnGuard. Référencé par Draw().
00046 { 00047 Guard(void ExCAnimation::Draw(void)) 00048 //Draw gizmo line 00049 for(unsigned int i=0;i<m_VecAnimation.size();i++) 00050 { 00051 m_VecAnimation.at(i).m_Line.Draw(); 00052 //Draw Angle interpol point 00053 if(m_ShowPath) 00054 { 00055 ExCVec3D PositionAngle; 00056 glColor3f(0,0,1); 00057 glPushMatrix(); 00058 PositionAngle=m_VecAnimation.at(i).m_Line.PointOnCurve(0.25); 00059 glTranslatef(PositionAngle.GetX(),PositionAngle.GetY(),PositionAngle.GetZ()); 00060 glutWireSphere(5,8,8); 00061 glPopMatrix(); 00062 00063 glPushMatrix(); 00064 PositionAngle=m_VecAnimation.at(i).m_Line.PointOnCurve(0.5); 00065 glTranslatef(PositionAngle.GetX(),PositionAngle.GetY(),PositionAngle.GetZ()); 00066 glutWireSphere(5,8,8); 00067 glPopMatrix(); 00068 00069 glPushMatrix(); 00070 PositionAngle=m_VecAnimation.at(i).m_Line.PointOnCurve(0.75); 00071 glTranslatef(PositionAngle.GetX(),PositionAngle.GetY(),PositionAngle.GetZ()); 00072 glutWireSphere(5,8,8); 00073 glPopMatrix(); 00074 } 00075 } 00076 float AgX,AgY,AgZ; 00077 //Get posistion on curve 00078 m_Object->m_Position=m_VecAnimation.at(m_CurrentAnimation).m_Line.PointOnCurve(m_Time); 00079 00080 if(!m_Pause) 00081 { 00082 //Interpol angle 00083 float nbriterprc; 00084 nbriterprc=m_VecAnimation.at(m_CurrentAnimation).m_NumberIter/4; 00085 if(m_Time==0) 00086 { 00087 m_Object->m_Angle.SetValue(m_VecAnimation.at(m_CurrentAnimation).m_AngleCtrlPoint0.GetX(), 00088 m_VecAnimation.at(m_CurrentAnimation).m_AngleCtrlPoint0.GetY(), 00089 m_VecAnimation.at(m_CurrentAnimation).m_AngleCtrlPoint0.GetZ()); 00090 00091 }else 00092 { 00093 if(m_Time<=0.25) 00094 { 00095 AgX=(m_VecAnimation.at(m_CurrentAnimation).m_AngleCtrlPoint0.GetX()-m_VecAnimation.at(m_CurrentAnimation).m_AngleCtrlPoint1.GetX())/nbriterprc; 00096 AgY=(m_VecAnimation.at(m_CurrentAnimation).m_AngleCtrlPoint0.GetY()-m_VecAnimation.at(m_CurrentAnimation).m_AngleCtrlPoint1.GetY())/nbriterprc; 00097 AgZ=(m_VecAnimation.at(m_CurrentAnimation).m_AngleCtrlPoint0.GetZ()-m_VecAnimation.at(m_CurrentAnimation).m_AngleCtrlPoint1.GetZ())/nbriterprc; 00098 m_Object->m_Angle.DecX(AgX); 00099 m_Object->m_Angle.DecY(AgY); 00100 m_Object->m_Angle.DecZ(AgZ); 00101 00102 } 00103 if(m_Time>0.25&&m_Time<0.5) 00104 { 00105 00106 AgX=(m_VecAnimation.at(m_CurrentAnimation).m_AngleCtrlPoint1.GetX()-m_VecAnimation.at(m_CurrentAnimation).m_AngleCtrlPoint2.GetX())/nbriterprc; 00107 AgY=(m_VecAnimation.at(m_CurrentAnimation).m_AngleCtrlPoint1.GetY()-m_VecAnimation.at(m_CurrentAnimation).m_AngleCtrlPoint2.GetY())/nbriterprc; 00108 AgZ=(m_VecAnimation.at(m_CurrentAnimation).m_AngleCtrlPoint1.GetZ()-m_VecAnimation.at(m_CurrentAnimation).m_AngleCtrlPoint2.GetZ())/nbriterprc; 00109 m_Object->m_Angle.DecX(AgX); 00110 m_Object->m_Angle.DecY(AgY); 00111 m_Object->m_Angle.DecZ(AgZ); 00112 } 00113 if(m_Time>0.5&&m_Time<0.75) 00114 { 00115 AgX=(m_VecAnimation.at(m_CurrentAnimation).m_AngleCtrlPoint2.GetX()-m_VecAnimation.at(m_CurrentAnimation).m_AngleCtrlPoint3.GetX())/nbriterprc; 00116 AgY=(m_VecAnimation.at(m_CurrentAnimation).m_AngleCtrlPoint2.GetY()-m_VecAnimation.at(m_CurrentAnimation).m_AngleCtrlPoint3.GetY())/nbriterprc; 00117 AgZ=(m_VecAnimation.at(m_CurrentAnimation).m_AngleCtrlPoint2.GetZ()-m_VecAnimation.at(m_CurrentAnimation).m_AngleCtrlPoint3.GetZ())/nbriterprc; 00118 m_Object->m_Angle.DecX(AgX); 00119 m_Object->m_Angle.DecY(AgY); 00120 m_Object->m_Angle.DecZ(AgZ); 00121 } 00122 if(m_Time>0.75&&m_Time<1) 00123 { 00124 AgX=(m_VecAnimation.at(m_CurrentAnimation).m_AngleCtrlPoint3.GetX()-m_VecAnimation.at(m_CurrentAnimation).m_AngleCtrlPoint4.GetX())/nbriterprc; 00125 AgY=(m_VecAnimation.at(m_CurrentAnimation).m_AngleCtrlPoint3.GetY()-m_VecAnimation.at(m_CurrentAnimation).m_AngleCtrlPoint4.GetY())/nbriterprc; 00126 AgZ=(m_VecAnimation.at(m_CurrentAnimation).m_AngleCtrlPoint3.GetZ()-m_VecAnimation.at(m_CurrentAnimation).m_AngleCtrlPoint4.GetZ())/nbriterprc; 00127 m_Object->m_Angle.DecX(AgX); 00128 m_Object->m_Angle.DecY(AgY); 00129 m_Object->m_Angle.DecZ(AgZ); 00130 } 00131 00132 00133 } 00134 00135 00136 if(m_Loop)m_Time=m_Time+m_VecAnimation.at(m_CurrentAnimation).m_Speed; 00137 if (m_Time>1) 00138 { 00139 //std::cout<<"NExt anim "<<m_VecAnimation.at(m_CurrentAnimation).m_EndAction<<std::endl; 00140 if(m_VecAnimation.at(m_CurrentAnimation).m_EndAction.m_Action!=0) 00141 { 00142 FluxAction->Push(m_VecAnimation.at(m_CurrentAnimation).m_EndAction); 00143 } 00144 m_Time=0; 00145 m_CurrentAnimation++; 00146 if(m_CurrentAnimation>=m_VecAnimation.size()) 00147 { 00148 if(m_Loop) 00149 { 00150 m_CurrentAnimation=0; 00151 } 00152 } 00153 } 00154 } 00155 UnGuard 00156 } |
|
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 136 du fichier ExCAnimation.h. Références m_Pause.
00136 {return m_Pause;} |
|
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 ExCObject. Définition à la ligne 167 du fichier ExCAnimation.cpp. Références ExNihilo::ExtractFloatValueFromSring(), ExNihilo::ExtractIntValueFromSring(), ExNihilo::ExtracValueFromSring(), ExManagerEntity::GetObject(), ExManagerModel::GetObject(), ExManagerCamera::GetObject(), ExManagerId::GetObjectId(), ExManagerId::GetObjectManagerType(), Guard, ExCGizmoLineBezier::LoadFile(), LoadFile(), ExCAction::m_Action, ExCObject3D::m_Angle, ExCAnimation::AnimationStruct::m_AngleCtrlPoint0, ExCAnimation::AnimationStruct::m_AngleCtrlPoint1, ExCAnimation::AnimationStruct::m_AngleCtrlPoint2, ExCAnimation::AnimationStruct::m_AngleCtrlPoint3, ExCAnimation::AnimationStruct::m_AngleCtrlPoint4, m_CurrentAnimation, ExCAnimation::AnimationStruct::m_EndAction, ExCAction::m_ExecutingLife, ExCAnimation::AnimationStruct::m_Line, m_Loop, ExCAnimation::AnimationStruct::m_NumberIter, m_Object, ExCAction::m_Param, ExCAction::m_Param1, ExCAction::m_Param2, m_ShowPath, ExCAnimation::AnimationStruct::m_Speed, ExCAction::m_StartingLife, m_TargetObjectName, m_TargetObjectType, m_VecAnimation, ManagerCamera, ManagerEntity, ManagerId, ManagerModel, ExCObject::SetFileName(), ExCObject::SetName(), SetShowPathState(), ExCVec3D::SetValue(), et UnGuard. Référencé par ExManagerAnimation::Load(), et LoadFile().
00168 { 00169 Guard(bool ExCAnimation::LoadFile(std::string FileName)) 00170 m_VecAnimation.clear(); 00171 SetFileName(FileName); 00172 SetName(FileName); 00173 char buffer[255]; 00174 sprintf(buffer, "../Data/Animation/%s", FileName.data()); 00175 std::ifstream fin; 00176 std::string buffstring; 00177 char b[256]; 00178 fin.open(buffer,std::ios::in); 00179 00180 AnimationStruct Anim; 00181 int tmpNumber; 00182 if(fin.is_open()) 00183 { 00184 try 00185 { 00186 //----Read Type 00187 memset(b,0,255); 00188 fin.getline(b,256,'\n'); 00189 //----Read Loop 00190 memset(b,0,255); 00191 fin.getline(b,256,'\n'); 00192 m_Loop=ExNihilo::ExtractIntValueFromSring(b,"<Loop>","<#Loop>"); 00193 //----Read TargetObjectType 00194 memset(b,0,255); 00195 fin.getline(b,256,'\n'); 00196 m_TargetObjectType=ExNihilo::ExtracValueFromSring(b,"<TargetObjectType>","<#TargetObjectType>"); 00197 //----Read TargetObjectName 00198 memset(b,0,255); 00199 fin.getline(b,256,'\n'); 00200 m_TargetObjectName=ExNihilo::ExtracValueFromSring(b,"<TargetObjectName>","<#TargetObjectName>"); 00201 //----Read ShowPath 00202 memset(b,0,255); 00203 fin.getline(b,256,'\n'); 00204 m_ShowPath=(bool)ExNihilo::ExtractIntValueFromSring(b,"<ShowPath>","<#ShowPath>"); 00205 //----Read Number of Bezier 00206 memset(b,0,255); 00207 fin.getline(b,256,'\n'); 00208 tmpNumber=ExNihilo::ExtractIntValueFromSring(b,"<NumberOfBezier>","<#NumberOfBezier>"); 00209 00210 for(int i=0;i<tmpNumber;i++) 00211 { 00212 //----Read Bezier file 00213 memset(b,0,255); 00214 fin.getline(b,256,'\n'); 00215 Anim.m_Line.LoadFile(ExNihilo::ExtracValueFromSring(b,"<BezierFile>","<#BezierFile>")); 00216 //----Read speed 00217 memset(b,0,255); 00218 fin.getline(b,256,'\n'); 00219 Anim.m_Speed=ExNihilo::ExtractFloatValueFromSring(b,"<Speed>","<#Speed>"); 00220 //----Read end action 00221 memset(b,0,255); 00222 fin.getline(b,256,'\n'); 00223 00224 buffstring=ExNihilo::ExtracValueFromSring(b,"<Exec_Action>","<#Exec_Action>"); 00225 Anim.m_EndAction.m_Action=ExNihilo::ExtractIntValueFromSring(buffstring,"<Action>","<#Action>"); 00226 Anim.m_EndAction.m_Param=ExNihilo::ExtracValueFromSring(buffstring,"<Param>","<#Param>"); 00227 Anim.m_EndAction.m_Param1=ExNihilo::ExtracValueFromSring(buffstring,"<Param1>","<#Param1>"); 00228 Anim.m_EndAction.m_Param2=ExNihilo::ExtracValueFromSring(buffstring,"<Param2>","<#Param2>"); 00229 Anim.m_EndAction.m_ExecutingLife=ExNihilo::ExtractIntValueFromSring(buffstring,"<Timer>","<#Timer>"); 00230 Anim.m_EndAction.m_StartingLife=(double)((double)glutGet(GLUT_ELAPSED_TIME)/1000); 00231 00232 //---- Read CtrtPoint0Angle 00233 memset(b,0,255); 00234 fin.getline(b,256,'\n'); 00235 buffstring=ExNihilo::ExtracValueFromSring(b,"<CtrlPoint0Angle>","<#CtrlPoint0Angle>"); 00236 Anim.m_AngleCtrlPoint0.SetValue(ExNihilo::ExtractFloatValueFromSring(buffstring,"<X>","<#X>"), 00237 ExNihilo::ExtractFloatValueFromSring(buffstring,"<Y>","<#Y>"), 00238 ExNihilo::ExtractFloatValueFromSring(buffstring,"<Z>","<#Z>")); 00239 //---- Read CtrtPoint1Angle 00240 memset(b,0,255); 00241 fin.getline(b,256,'\n'); 00242 buffstring=ExNihilo::ExtracValueFromSring(b,"<CtrlPoint1Angle>","<#CtrtPoint1Angle>"); 00243 Anim.m_AngleCtrlPoint1.SetValue(ExNihilo::ExtractFloatValueFromSring(buffstring,"<X>","<#X>"), 00244 ExNihilo::ExtractFloatValueFromSring(buffstring,"<Y>","<#Y>"), 00245 ExNihilo::ExtractFloatValueFromSring(buffstring,"<Z>","<#Z>")); 00246 //---- Read CtrtPoint2Angle 00247 memset(b,0,255); 00248 fin.getline(b,256,'\n'); 00249 buffstring=ExNihilo::ExtracValueFromSring(b,"<CtrlPoint2Angle>","<#CtrlPoint2Angle>"); 00250 Anim.m_AngleCtrlPoint2.SetValue(ExNihilo::ExtractFloatValueFromSring(buffstring,"<X>","<#X>"), 00251 ExNihilo::ExtractFloatValueFromSring(buffstring,"<Y>","<#Y>"), 00252 ExNihilo::ExtractFloatValueFromSring(buffstring,"<Z>","<#Z>")); 00253 //---- Read CtrtPoint3Angle 00254 memset(b,0,255); 00255 fin.getline(b,256,'\n'); 00256 buffstring=ExNihilo::ExtracValueFromSring(b,"<CtrlPoint3Angle>","<#CtrlPoint3Angle>"); 00257 Anim.m_AngleCtrlPoint3.SetValue(ExNihilo::ExtractFloatValueFromSring(buffstring,"<X>","<#X>"), 00258 ExNihilo::ExtractFloatValueFromSring(buffstring,"<Y>","<#Y>"), 00259 ExNihilo::ExtractFloatValueFromSring(buffstring,"<Z>","<#Z>")); 00260 //---- Read CtrtPoint4Angle 00261 memset(b,0,255); 00262 fin.getline(b,256,'\n'); 00263 buffstring=ExNihilo::ExtracValueFromSring(b,"<CtrlPoint4Angle>","<#CtrlPoint4Angle>"); 00264 Anim.m_AngleCtrlPoint4.SetValue(ExNihilo::ExtractFloatValueFromSring(buffstring,"<X>","<#X>"), 00265 ExNihilo::ExtractFloatValueFromSring(buffstring,"<Y>","<#Y>"), 00266 ExNihilo::ExtractFloatValueFromSring(buffstring,"<Z>","<#Z>")); 00267 00268 Anim.m_NumberIter=1/Anim.m_Speed; 00269 m_VecAnimation.push_back(Anim); 00270 } 00271 fin.close(); 00272 } 00273 catch(ExCExpStringNotFound) 00274 { 00275 std::cout<<"ExCExpStringNotFound"<<std::endl; 00276 } 00277 catch(...) 00278 { 00279 std::cout<<"ExCExpFileReadError"<<std::endl; 00280 throw ExCExpFileReadError(); 00281 } 00282 }else throw ExCExpFileNotFound(); 00283 SetShowPathState(m_ShowPath); 00284 00285 //Find manager where is the object and get pointer to object 00286 try 00287 { 00288 00289 if(strcmpi(ManagerId->GetObjectManagerType(m_TargetObjectType).data(),"ExManagerCamera")==0) 00290 { 00291 m_Object=ManagerCamera->GetObject(ManagerId->GetObjectId(m_TargetObjectName,m_TargetObjectType)); 00292 00293 } 00294 if(strcmpi(ManagerId->GetObjectManagerType(m_TargetObjectType).data(),"ExManagerModel")==0) 00295 { 00296 m_Object=ManagerModel->GetObject(ManagerId->GetObjectId(m_TargetObjectName,m_TargetObjectType)); 00297 00298 } 00299 if(strcmpi(ManagerId->GetObjectManagerType(m_TargetObjectType).data(),"ExManagerEntity")==0) 00300 { 00301 m_Object=ManagerEntity->GetObject(ManagerId->GetObjectId(m_TargetObjectName,m_TargetObjectType)); 00302 00303 } 00304 m_Object->m_Angle.SetValue(m_VecAnimation.at(m_CurrentAnimation).m_AngleCtrlPoint0.GetX(), 00305 m_VecAnimation.at(m_CurrentAnimation).m_AngleCtrlPoint0.GetY(), 00306 m_VecAnimation.at(m_CurrentAnimation).m_AngleCtrlPoint0.GetZ()); 00307 return true; 00308 }catch (...) 00309 { 00310 std::cout<<"Wrong animation object chek name or object type in your anim file"<<std::endl; 00311 return false; 00312 } 00313 return false; 00314 UnGuard 00315 } |
|
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(), 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 127 du fichier ExCAnimation.h. Références ManagerCamera. Référencé par ExManagerAnimation::Load().
00127 {ManagerCamera = Cam;} |
|
Définition à la ligne 130 du fichier ExCAnimation.h. Références ManagerEntity. Référencé par ExManagerAnimation::Load().
00130 {ManagerEntity = Entity;} |
|
Définition à la ligne 129 du fichier ExCAnimation.h. Références ManagerId. Référencé par ExManagerAnimation::Load().
00129 {ManagerId = Id;} |
|
Définition à la ligne 128 du fichier ExCAnimation.h. Références ManagerModel. Référencé par ExManagerAnimation::Load().
00128 {ManagerModel = Model;} |
|
|
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 135 du fichier ExCAnimation.h. Références m_Pause. Référencé par ExManagerAnimation::InputAction().
00135 {m_Pause=state;} |
|
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 158 du fichier ExCAnimation.cpp. Références m_ShowPath, et m_VecAnimation. Référencé par LoadFile().
00159 { 00160 m_ShowPath=state; 00161 for(unsigned int i=0;i<m_VecAnimation.size();i++) 00162 { 00163 m_VecAnimation.at(i).m_Line.SetVisibleState(m_ShowPath); 00164 } 00165 } |
|
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 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 113 du fichier ExCAnimation.h. Référencé par Draw(), ExCAnimation(), et LoadFile(). |
|
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 74 du fichier ExCObject3D.h. Référencé par ExCObject3D::ExCObject3D(), ExCObject3D::ShowInfo(), et ExCModelMD2::ShowInfo(). |
|
Définition à la ligne 106 du fichier ExCAnimation.h. |
|
Définition à la ligne 110 du fichier ExCAnimation.h. Référencé par Draw(), et LoadFile(). |
|
Redéfinie dans ExCParticule. Définition à la ligne 77 du fichier ExCObject3D.h. Référencé par ExCObject3D::ExCObject3D(). |
|
Définition à la ligne 118 du fichier ExCAnimation.h. Référencé par Draw(), et LoadFile(). |
|
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 116 du fichier ExCAnimation.h. Référencé par Draw(), ExCAnimation(), GetPauseState(), et SetPauseState(). |
|
|
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(). |
|
Définition à la ligne 105 du fichier ExCAnimation.h. Référencé par Draw(), LoadFile(), et SetShowPathState(). |
|
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 103 du fichier ExCAnimation.h. Référencé par LoadFile(). |
|
Définition à la ligne 104 du fichier ExCAnimation.h. Référencé par LoadFile(). |
|
Définition à la ligne 107 du fichier ExCAnimation.h. Référencé par Draw(), et ExCAnimation(). |
|
Définition à la ligne 67 du fichier ExCObject3D.h. Référencé par ExCCameraFlight::Draw(), ExCCameraChase::Draw(), et ExCCamera::Draw(). |
|
Définition à la ligne 114 du fichier ExCAnimation.h. Référencé par Draw(), LoadFile(), et SetShowPathState(). |
|
Définition à la ligne 108 du fichier ExCAnimation.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 80 du fichier ExCAnimation.h. Référencé par LoadFile(), et SetManagerCamera(). |
|
Définition à la ligne 83 du fichier ExCAnimation.h. Référencé par LoadFile(), et SetManagerEntity(). |
|
Définition à la ligne 82 du fichier ExCAnimation.h. Référencé par LoadFile(), et SetManagerId(). |
|
Définition à la ligne 81 du fichier ExCAnimation.h. Référencé par LoadFile(), et SetManagerModel(). |