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

Membres publics | |
| ExCLoadingAnimation (void) | |
| ~ExCLoadingAnimation (void) | |
| void | SetManagerTexture (ExManagerTexture *Texture) |
| void | Draw (void) |
| void | Load (std::string FileName) |
| bool | Next (void) |
| bool | Previous (void) |
| void | First (void) |
| void | Last (void) |
| int | GetNumberAnimation (void) |
| void | SetPosition (ExCVec2D Position) |
| ExCVec2D | GetPosition (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 | |
| std::ostrstream * | Consol |
| ExCFluxAction * | FluxAction |
Attributs Protégés | |
| ExCVec2D | m_Position |
| ExNihilo::ExId | m_ObjectId |
| std::string | m_ObjectName |
| std::string | m_ObjectFileName |
| std::string | m_ObjectType |
Attributs Privés | |
| int | m_CurrentAnimationTexture |
| int | m_NumberAnimTexture |
| std::vector< std::string > | m_VecAnimTexture |
| ExManagerTexture * | ManagerTexture |
|
|
Définition à la ligne 26 du fichier ExCLoadingAnimation.cpp. Références m_CurrentAnimationTexture, m_NumberAnimTexture, ExCObject::SetName(), et ExCObject::SetType().
00027 {
00028 SetName("ExCLoadingAnimation");
00029 SetType(typeid(this).name());
00030 m_NumberAnimTexture=0;
00031 m_CurrentAnimationTexture=0;
00032 }
|
|
|
Définition à la ligne 34 du fichier ExCLoadingAnimation.cpp.
00035 {
00036 }
|
|
|
Redéfinie à partir de ExCObject. Définition à la ligne 38 du fichier ExCLoadingAnimation.cpp. Références Draw(), ExNihilo::EnterOrthoMode(), Guard, ExNihilo::LeaveOrthoMode(), m_CurrentAnimationTexture, m_VecAnimTexture, ManagerTexture, ExManagerTexture::SetCurrentObject(), et UnGuard. Référencé par ExManagerLoad::Draw(), Draw(), et ExManagerLoad::DrawInAnimation().
00039 {
00040 Guard(void ExCLoadingAnimation::Draw(void))
00041 ExNihilo::EnterOrthoMode();
00042 //ManagerTexture->Add(m_VecAnimTexture.at(m_CurrentAnimationTexture));
00043 if(m_CurrentAnimationTexture>=m_VecAnimTexture.size())m_CurrentAnimationTexture=m_VecAnimTexture.size()-1;
00044 ManagerTexture->SetCurrentObject(m_VecAnimTexture.at(m_CurrentAnimationTexture));
00045 glEnable(GL_TEXTURE_2D);
00046 glDisable(GL_LIGHTING);
00047 glBegin(GL_QUADS);
00048 glColor3f(1.0f,1.0f,1.0f);
00049 glTexCoord2f(0,1);
00050 glVertex2f(0,0);
00051 glTexCoord2f(0,0);
00052 glVertex2f(0,ExNihilo::GetResolutionY());
00053 glTexCoord2f(1,0);
00054 glVertex2f(ExNihilo::GetResolutionX(),ExNihilo::GetResolutionY());
00055 glTexCoord2f(1,1);
00056 glVertex2f(ExNihilo::GetResolutionX(),0);
00057 glEnd();
00058 ExNihilo::LeaveOrthoMode();
00059 UnGuard
00060 }
|
|
|
Définition à la ligne 133 du fichier ExCLoadingAnimation.cpp. Références First(), Guard, m_CurrentAnimationTexture, et UnGuard. Référencé par First().
00134 {
00135 Guard(void ExCLoadingAnimation::First(void))
00136 m_CurrentAnimationTexture=0;
00137 UnGuard
00138 }
|
|
|
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 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 86 du fichier ExCLoadingAnimation.h. Références m_NumberAnimTexture.
00086 {return m_NumberAnimTexture;}
|
|
|
Définition à la ligne 80 du fichier ExCObject2D.h. Références ExCObject2D::m_Position. Référencé par ExCWindowObject::AddObjectControl(), ExManagerObjectWindow::InputAction(), ExCWindowContent::InputCommand(), ExCWindow::RefreshPosotion(), et ExCWindow::SetWindowPosition().
00080 {return m_Position;}
|
|
|
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 126 du fichier ExCLoadingAnimation.cpp. Références Guard, Last(), m_CurrentAnimationTexture, m_NumberAnimTexture, et UnGuard. Référencé par ExManagerLoad::Draw(), et Last().
00127 {
00128 Guard(void ExCLoadingAnimation::Last(void))
00129 m_CurrentAnimationTexture=m_NumberAnimTexture;
00130 UnGuard
00131 }
|
|
|
Définition à la ligne 63 du fichier ExCLoadingAnimation.cpp. Références Guard, Load(), m_CurrentAnimationTexture, m_NumberAnimTexture, m_VecAnimTexture, PREFIX, et UnGuard. Référencé par Load(), et ExManagerLoad::LoadAnimationFile().
00064 {
00065 Guard(void ExCLoadingAnimation::Load(std::string FileName))
00066 m_CurrentAnimationTexture=0;
00067 char buffer[255];
00068 #ifdef UNIX_SRC
00069 sprintf(buffer, PREFIX "/ExNihilo/Data/Loading/%s", FileName.data());
00070 #else
00071 sprintf(buffer, "../Data/Loading/%s", FileName.data());
00072 #endif
00073 std::ifstream fin;
00074 std::string buffstring;
00075 char b[256];
00076 fin.open(buffer,std::ios::in);
00077 if(fin.is_open())
00078 {
00079 try
00080 {
00081 //----Read all file
00082 do
00083 {
00084 memset(b,0,255);
00085 fin.getline(b,256,'\n');
00086 try
00087 {
00088 m_NumberAnimTexture++;
00089 m_VecAnimTexture.push_back(ExNihilo::ExtracValueFromSring(b,"<Frame>","<#Frame>"));
00090 }catch(ExCExpStringNotFound){}
00091 }while(!fin.eof());
00092 fin.close();
00093 }catch(...){throw ExCExpFileReadError();}
00094 }else throw ExCExpFileNotFound();
00095
00096 UnGuard
00097 }
|
|
|
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 99 du fichier ExCLoadingAnimation.cpp. Références Guard, m_CurrentAnimationTexture, m_NumberAnimTexture, Next(), et UnGuard. Référencé par ExManagerLoad::Draw(), et Next().
00100 {
00101 Guard(bool ExCLoadingAnimation::Next(void))
00102 if(m_CurrentAnimationTexture>=m_NumberAnimTexture)
00103 {
00104 m_CurrentAnimationTexture=0;return false;
00105 }else
00106 {
00107 m_CurrentAnimationTexture++;return true;
00108 }
00109 UnGuard
00110 }
|
|
|
Définition à la ligne 113 du fichier ExCLoadingAnimation.cpp. Références Guard, m_CurrentAnimationTexture, Previous(), et UnGuard. Référencé par Previous().
00114 {
00115 Guard(bool ExCLoadingAnimation::Previous(void))
00116 if(m_CurrentAnimationTexture<=0)
00117 {
00118 m_CurrentAnimationTexture=0;return false;
00119 }else
00120 {
00121 m_CurrentAnimationTexture--;return true;
00122 }
00123 UnGuard
00124 }
|
|
|
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 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 78 du fichier ExCLoadingAnimation.h. Références ManagerTexture. Référencé par ExManagerLoad::LoadAnimationFile().
00078 {ManagerTexture=Texture;}
|
|
|
|
Redéfinie dans ExCWindowObject, et ExCWindowObject. Définition à la ligne 79 du fichier ExCObject2D.h. Références ExCObject2D::m_Position.
00079 {m_Position=Position;}
|
|
|
|
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(). |
|
|
Définition à la ligne 68 du fichier ExCLoadingAnimation.h. Référencé par Draw(), ExCLoadingAnimation(), First(), Last(), Load(), Next(), et Previous(). |
|
|
Définition à la ligne 69 du fichier ExCLoadingAnimation.h. Référencé par ExCLoadingAnimation(), GetNumberAnimation(), Last(), Load(), et Next(). |
|
|
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 70 du fichier ExCLoadingAnimation.h. |
|
|
Définition à la ligne 72 du fichier ExCLoadingAnimation.h. Référencé par Draw(), et SetManagerTexture(). |
1.3.4