Skip to content

Class AIAC::GOMesh

ClassList > AIAC > GOMesh

Inherits the following classes: AIAC::GOPrimitive

Public Functions

Type Name
const std::vector< glm::vec4 > GetColors () const
const std::vector< uint32_t > GetIndices () const
const std::vector< glm::vec3 > GetNormals () const
const std::vector< glm::vec3 > GetVertices () const
virtual void InitGLObject ()
void SetColor (glm::vec4 color)
void SetColors (std::vector< glm::vec4 > colors)
void SetIndices (std::vector< uint32_t > indices)
void SetNormals (std::vector< glm::vec3 > normals)
void SetVertices (std::vector< glm::vec3 > vertices)
virtual void Transform (const glm::mat4x4 & transformMat)
GOPrimitive operator* (const glm::mat4x4 & transformMat)
virtual ~GOMesh () = default

Public Functions inherited from AIAC::GOPrimitive

See AIAC::GOPrimitive

Type Name
void ClearGLObject ()
void Draw ()
GOPrimitive (bool isVisible=true, glm::vec4 color=glm::vec4(0, 0, 0, 1.0))
uint32_t GenerateId ()
glm::vec4 GetColor () const
uint32_t GetId ()
std::string GetName () const
bool GetState ()
GOTypeFlags GetType ()
bool GetVisibility ()
float GetWeight () const
virtual void InitGLObject ()
bool IsVisible () const
void SetColor (glm::vec4 color)
void SetName (std::string name)
void SetState (bool state)
virtual void SetValueFrom (const std::shared_ptr< GOPrimitive > & ptrGO)
void SetVisibility (bool isVisible)
int SetWeight (float weight)
virtual void Transform (const glm::mat4x4 & transformMat)
virtual void Translate (const glm::vec3 & translation)
virtual ~GOPrimitive () = default

Public Static Functions

Type Name
std::shared_ptr< GOMesh > Add ()
Add empty GOMesh to the scene.
std::shared_ptr< GOMesh > Add (std::vector< glm::vec3 > vertices, std::vector< uint32_t > indices)
Add GOMesh to the scene.
std::shared_ptr< GOMesh > Get (const uint32_t & id)
std::vector< std::shared_ptr< GOMesh > > GetAll ()
std::shared_ptr< GOMesh > LoadPly (std::string path)
Load .ply and add the corresponding GOMesh to the scene.

Public Static Functions inherited from AIAC::GOPrimitive

See AIAC::GOPrimitive

Type Name
void Remove (const uint32_t & id)
void Remove (const std::shared_ptr< GOPrimitive > & ptrGO)

Protected Attributes inherited from AIAC::GOPrimitive

See AIAC::GOPrimitive

Type Name
glm::vec4 m_Color
std::vector< std::shared_ptr< GLObject > > m_GLObjects
uint32_t m_Id
bool m_IsVisible
std::string m_Name
bool m_State
GOTypeFlags m_Type
float m_Weight = = GOWeight::Default

Public Functions Documentation

function GetColors

inline const std::vector< glm::vec4 > AIAC::GOMesh::GetColors () const

function GetIndices

inline const std::vector< uint32_t > AIAC::GOMesh::GetIndices () const

function GetNormals

inline const std::vector< glm::vec3 > AIAC::GOMesh::GetNormals () const

function GetVertices

inline const std::vector< glm::vec3 > AIAC::GOMesh::GetVertices () const

function InitGLObject

virtual void AIAC::GOMesh::InitGLObject () 

Implements AIAC::GOPrimitive::InitGLObject


function SetColor

inline void AIAC::GOMesh::SetColor (
    glm::vec4 color
) 

function SetColors

inline void AIAC::GOMesh::SetColors (
    std::vector< glm::vec4 > colors
) 

function SetIndices

inline void AIAC::GOMesh::SetIndices (
    std::vector< uint32_t > indices
) 

function SetNormals

inline void AIAC::GOMesh::SetNormals (
    std::vector< glm::vec3 > normals
) 

function SetVertices

inline void AIAC::GOMesh::SetVertices (
    std::vector< glm::vec3 > vertices
) 

function Transform

inline virtual void AIAC::GOMesh::Transform (
    const glm::mat4x4 & transformMat
) 

Implements AIAC::GOPrimitive::Transform


function operator*

inline GOPrimitive AIAC::GOMesh::operator* (
    const glm::mat4x4 & transformMat
) 

function ~GOMesh

virtual AIAC::GOMesh::~GOMesh () = default

Public Static Functions Documentation

function Add [½]

Add empty GOMesh to the scene.

static std::shared_ptr< GOMesh > AIAC::GOMesh::Add () 


function Add [2/2]

Add GOMesh to the scene.

static std::shared_ptr< GOMesh > AIAC::GOMesh::Add (
    std::vector< glm::vec3 > vertices,
    std::vector< uint32_t > indices
) 

Parameters:

  • vertices Vertices of the mesh.
  • indices Indices of the mesh.

Returns:

uint32_t Id of the mesh.


function Get

static std::shared_ptr< GOMesh > AIAC::GOMesh::Get (
    const uint32_t & id
) 

function GetAll

static std::vector< std::shared_ptr< GOMesh > > AIAC::GOMesh::GetAll () 

function LoadPly

Load .ply and add the corresponding GOMesh to the scene.

static std::shared_ptr< GOMesh > AIAC::GOMesh::LoadPly (
    std::string path
) 

Returns:

uint32_t Id of the mesh.



The documentation for this class was generated from the following file src/AIAC/GOSys/GOPrimitive.h