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

Référence de la classe ExCLoadingAnimation

#include <ExCLoadingAnimation.h>

Graphe d'héritage de la classe ExCLoadingAnimation

ExCObject2D ExCObject

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
ExCFluxActionFluxAction

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
ExManagerTextureManagerTexture

Documentation des contructeurs et destructeurs

ExCLoadingAnimation::ExCLoadingAnimation void   ) 
 

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 }

ExCLoadingAnimation::~ExCLoadingAnimation void   ) 
 

Définition à la ligne 34 du fichier ExCLoadingAnimation.cpp.

00035 {
00036 }


Documentation des méthodes

void ExCLoadingAnimation::Draw void   )  [virtual]
 

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 }

void ExCLoadingAnimation::First void   ) 
 

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 }

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

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

Références ExCObject::m_ObjectFileName.

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

00094 {return m_ObjectFileName;}

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

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

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

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

00092 {return m_ObjectId;}

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

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

Références ExCObject::m_ObjectName.

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

00093 {return m_ObjectName;}

int ExCLoadingAnimation::GetNumberAnimation void   )  [inline]
 

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

Références m_NumberAnimTexture.

00086 {return m_NumberAnimTexture;}

ExCVec2D ExCObject2D::GetPosition void   )  [inline, inherited]
 

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;}

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

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

Références ExCObject::m_ObjectType.

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

00095 {return m_ObjectType;}

void ExCLoadingAnimation::Last void   ) 
 

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 }

void ExCLoadingAnimation::Load std::string  FileName  ) 
 

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 }

bool ExCObject::LoadFile std::string  FileName  )  [virtual, inherited]
 

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().

00054 {
00055 Guard(bool ExCObject::LoadFile(std::string FileName))
00056         return true;
00057 UnGuard
00058 }  

bool ExCLoadingAnimation::Next void   ) 
 

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 }

bool ExCLoadingAnimation::Previous void   ) 
 

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 }

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

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

Références ExCObject::m_ObjectFileName.

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

00098 {m_ObjectFileName = FileName;}

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

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

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

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

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

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

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

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

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

00096 {m_ObjectId=Id;}

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

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

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

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

void ExCLoadingAnimation::SetManagerTexture ExManagerTexture Texture  )  [inline]
 

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

Références ManagerTexture.

Référencé par ExManagerLoad::LoadAnimationFile().

00078 {ManagerTexture=Texture;}

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

Redéfinie dans ExCTexture.

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

Références ExCObject::m_ObjectName.

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

00097 {m_ObjectName = Name;}

void ExCObject2D::SetPosition ExCVec2D  Position  )  [inline, inherited]
 

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;}

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

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

Références ExCObject::m_ObjectType.

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

00099 {m_ObjectType = Type;}


Documentation des données imbriquées

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

Redéfinie dans ExCInterface, et ExCSystemeParticule.

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

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

ExCFluxAction* ExCObject::FluxAction [inherited]
 

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

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

int ExCLoadingAnimation::m_CurrentAnimationTexture [private]
 

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

Référencé par Draw(), ExCLoadingAnimation(), First(), Last(), Load(), Next(), et Previous().

int ExCLoadingAnimation::m_NumberAnimTexture [private]
 

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

Référencé par ExCLoadingAnimation(), GetNumberAnimation(), Last(), Load(), et Next().

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

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

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

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

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

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

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

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

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

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

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

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

ExCVec2D ExCObject2D::m_Position [protected, inherited]
 

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

Référencé par ExCWindowObject::AddObjectControl(), ExCWindowObject::Draw(), ExCWindowMessageBoxQuestion::Draw(), ExCWindowMessageBox::Draw(), ExCObject2D::GetPosition(), ExCWindowObject::Init(), ExCWindowObject::PointInWindow(), ExCWindow::RefreshPosotion(), ExCWindowObject::SetPosition(), et ExCObject2D::SetPosition().

std::vector<std::string> ExCLoadingAnimation::m_VecAnimTexture [private]
 

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

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

ExManagerTexture* ExCLoadingAnimation::ManagerTexture [private]
 

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

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


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