libmoldeo (Moldeo 1.0 Core)  1.0
libmoldeo is the group of objects and functions that executes the basic operations of Moldeo 1.0 Platform.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
moGeometry Class Reference

Base abstracta de base para las geometrías. More...

#include <moGUIManager.h>

Inheritance diagram for moGeometry:
moResourceElement moAbstract moAxis3D moBoundingBox3D moBoxGeometry moCircleGeometry moCylinderGeometry moDodecahedronGeometry moExtrudeGeometry moIcosahedronGeometry moOctahedronGeometry moPlaneGeometry moPolyhedronGeometry moRingGeometry moShapeGeometry moSphereGeometry moTetrahedronGeometry moTextGeometry moTubeGeometry

Public Member Functions

 moGeometry ()
 
 moGeometry (moGeometryType p_type)
 
virtual ~moGeometry ()
 
 moGeometry (const moGeometry &p_src)
 
moGeometryoperator= (const moGeometry &p_src)
 
virtual MOboolean Init ()
 Inicializa el objeto. More...
 
virtual MOboolean Init (moResourceManager *pResourceManager)
 
virtual MOboolean Finish ()
 Finaliza el objeto, libera recursos. More...
 
virtual float * GetVerticesBuffer ()
 
virtual float * GetNormalsBuffer ()
 
virtual float * GetColorBuffer ()
 
virtual float * GetVerticesUVBuffer ()
 
virtual const moPointArrayGetVertices () const
 
virtual const moPointArrayGetNormals () const
 
virtual const moTCoordArrayGetVerticesUV () const
 
virtual const moTCoordArrayGetFacesUV () const
 
virtual const moColorArrayGetColors () const
 
virtual const moFaceArrayGetFaces () const
 
moGeometryType GetType () const
 
void applyMatrix (const moGLMatrixf &p_ModelMatrix)
 
int addAttribute (const moText &p_AttributeName, moAttribute *p_attribute)
 
int removeAttribute (const moText &p_AttributeName)
 
moAttributegetAttribute (const moText &p_AttributeName)
 
virtual moText ToJSON ()
 
- Public Member Functions inherited from moResourceElement
 moResourceElement ()
 
 moResourceElement (moResourceType p_type)
 
virtual ~moResourceElement ()
 
virtual void SetResourceManager (moResourceManager *p_rm)
 
virtual moResourceManagerGetResourceManager ()
 
moResourceType GetResourceType ()
 
- Public Member Functions inherited from moAbstract
 moAbstract ()
 
virtual ~moAbstract ()
 
MOboolean Initialized ()
 Pregunta si está inicializado. More...
 

Static Public Member Functions

static moText TypeToStr (moGeometryType p_type)
 

Public Attributes

moText m_Name
 
moGeometryType m_Type
 
moPointArray m_Vertices
 
moTCoordArray m_VerticesUvs
 
moVertexArray m_Normals
 
moColorArray m_Colors
 
MOfloatm_VerticesBuffer
 
MOfloatm_NormalsBuffer
 
MOfloatm_VerticesUVBuffer
 
MOfloatm_ColorBuffer
 
moFaceArray m_Faces
 
moTCoordArray m_FaceVertexUvs
 
moAttributeArray m_Attributes
 
- Public Attributes inherited from moAbstract
MOboolean m_bInitialized
 Valor de inicialización More...
 

Additional Inherited Members

- Static Public Attributes inherited from moAbstract
static moDebugMODebug2 = new moDebug()
 Clase de impresión de errores para depuración More...
 
static moTextHeapMODebug = new moTextHeap()
 Lista de textos. More...
 
- Protected Attributes inherited from moResourceElement
moResourceType m_ResourceType
 
moResourceManagerm_pResourceManager
 

Detailed Description

Base abstracta de base para las geometrías.

Todas las geometrías como Cubo, Esfera, Triangulo, .. derivan de esta clase que contiene un vector de vertices y otro de indices que referencian a esos vertices. El modo directo que consiste en simplemente usar el vector de vertices para dibujar la geometría, puede forzarse al llamar al constructor moGeometry( p_direct_mode = false|true )

Definition at line 127 of file moGUIManager.h.

Constructor & Destructor Documentation

moGeometry::moGeometry ( )

Definition at line 60 of file moGUIManager.cpp.

moGeometry::moGeometry ( moGeometryType  p_type)

Definition at line 69 of file moGUIManager.cpp.

moGeometry::~moGeometry ( )
virtual

Definition at line 77 of file moGUIManager.cpp.

moGeometry::moGeometry ( const moGeometry p_src)
inline

Definition at line 134 of file moGUIManager.h.

Member Function Documentation

int moGeometry::addAttribute ( const moText p_AttributeName,
moAttribute p_attribute 
)
void moGeometry::applyMatrix ( const moGLMatrixf p_ModelMatrix)

Definition at line 114 of file moGUIManager.cpp.

MOboolean moGeometry::Finish ( )
virtual

Finaliza el objeto, libera recursos.

Función de finalización. Libera los recursos generados en la función de inicialización.

Returns
verdadero si fue exitosa o falso en otro caso

Reimplemented from moAbstract.

Definition at line 109 of file moGUIManager.cpp.

moAttribute* moGeometry::getAttribute ( const moText p_AttributeName)
float * moGeometry::GetColorBuffer ( )
virtual

Definition at line 270 of file moGUIManager.cpp.

virtual const moColorArray& moGeometry::GetColors ( ) const
inlinevirtual

Definition at line 163 of file moGUIManager.h.

virtual const moFaceArray& moGeometry::GetFaces ( ) const
inlinevirtual

Definition at line 168 of file moGUIManager.h.

virtual const moTCoordArray& moGeometry::GetFacesUV ( ) const
inlinevirtual

Definition at line 159 of file moGUIManager.h.

virtual const moPointArray& moGeometry::GetNormals ( ) const
inlinevirtual

Definition at line 151 of file moGUIManager.h.

float * moGeometry::GetNormalsBuffer ( )
virtual

Definition at line 280 of file moGUIManager.cpp.

moGeometryType moGeometry::GetType ( ) const
inline

Definition at line 172 of file moGUIManager.h.

virtual const moPointArray& moGeometry::GetVertices ( ) const
inlinevirtual

Definition at line 147 of file moGUIManager.h.

float * moGeometry::GetVerticesBuffer ( )
virtual

i*9 = each face is a triangle, 3 components * 3 vertices

position

texture uv

color r,g,b

Definition at line 226 of file moGUIManager.cpp.

virtual const moTCoordArray& moGeometry::GetVerticesUV ( ) const
inlinevirtual

Definition at line 155 of file moGUIManager.h.

float * moGeometry::GetVerticesUVBuffer ( )
virtual

Definition at line 275 of file moGUIManager.cpp.

MOboolean moGeometry::Init ( )
virtual

Inicializa el objeto.

Función de Inicialización. Todos los recursos manejados exclusivamente por este objeto son generados aquí.

Returns
verdadero si fue exitosa o falso en otro caso

Reimplemented from moAbstract.

Definition at line 100 of file moGUIManager.cpp.

MOboolean moGeometry::Init ( moResourceManager pResourceManager)
virtual

Reimplemented from moResourceElement.

Definition at line 104 of file moGUIManager.cpp.

moGeometry & moGeometry::operator= ( const moGeometry p_src)

Definition at line 82 of file moGUIManager.cpp.

int moGeometry::removeAttribute ( const moText p_AttributeName)
moText moGeometry::ToJSON ( )
virtual

Definition at line 182 of file moGUIManager.cpp.

moText moGeometry::TypeToStr ( moGeometryType  p_type)
static

Definition at line 119 of file moGUIManager.cpp.

Member Data Documentation

moAttributeArray moGeometry::m_Attributes

Definition at line 202 of file moGUIManager.h.

MOfloat* moGeometry::m_ColorBuffer

Definition at line 198 of file moGUIManager.h.

moColorArray moGeometry::m_Colors

Definition at line 193 of file moGUIManager.h.

moFaceArray moGeometry::m_Faces

Definition at line 200 of file moGUIManager.h.

moTCoordArray moGeometry::m_FaceVertexUvs

Definition at line 201 of file moGUIManager.h.

moText moGeometry::m_Name

Definition at line 187 of file moGUIManager.h.

moVertexArray moGeometry::m_Normals

Definition at line 192 of file moGUIManager.h.

MOfloat* moGeometry::m_NormalsBuffer

Definition at line 196 of file moGUIManager.h.

moGeometryType moGeometry::m_Type

Definition at line 188 of file moGUIManager.h.

moPointArray moGeometry::m_Vertices

Definition at line 190 of file moGUIManager.h.

MOfloat* moGeometry::m_VerticesBuffer

Definition at line 195 of file moGUIManager.h.

MOfloat* moGeometry::m_VerticesUVBuffer

Definition at line 197 of file moGUIManager.h.

moTCoordArray moGeometry::m_VerticesUvs

Definition at line 191 of file moGUIManager.h.


The documentation for this class was generated from the following files: