Skip to content

Class AIAC::GOPrimitive

ClassList > AIAC > GOPrimitive

Inherited by the following classes: AIAC::GOCircle, AIAC::GOCylinder, AIAC::GOLine, AIAC::GOMesh, AIAC::GOPoint, AIAC::GOPolyline, AIAC::GOText, AIAC::GOTriangle

Public Functions

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
void Remove (const uint32_t & id)
void Remove (const std::shared_ptr< GOPrimitive > & ptrGO)

Protected Attributes

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 ClearGLObject

void AIAC::GOPrimitive::ClearGLObject () 

function Draw

inline void AIAC::GOPrimitive::Draw () 

function GOPrimitive

explicit AIAC::GOPrimitive::GOPrimitive (
    bool isVisible=true,
    glm::vec4 color=glm::vec4(0, 0, 0, 1.0)
) 

function GenerateId

uint32_t AIAC::GOPrimitive::GenerateId () 

function GetColor

inline glm::vec4 AIAC::GOPrimitive::GetColor () const

function GetId

inline uint32_t AIAC::GOPrimitive::GetId () 

function GetName

inline std::string AIAC::GOPrimitive::GetName () const

function GetState

inline bool AIAC::GOPrimitive::GetState () 

function GetType

inline GOTypeFlags AIAC::GOPrimitive::GetType () 

function GetVisibility

inline bool AIAC::GOPrimitive::GetVisibility () 

function GetWeight

inline float AIAC::GOPrimitive::GetWeight () const

function InitGLObject

inline virtual void AIAC::GOPrimitive::InitGLObject () 

function IsVisible

inline bool AIAC::GOPrimitive::IsVisible () const

function SetColor

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

function SetName

inline void AIAC::GOPrimitive::SetName (
    std::string name
) 

function SetState

inline void AIAC::GOPrimitive::SetState (
    bool state
) 

function SetValueFrom

inline virtual void AIAC::GOPrimitive::SetValueFrom (
    const std::shared_ptr< GOPrimitive > & ptrGO
) 

function SetVisibility

inline void AIAC::GOPrimitive::SetVisibility (
    bool isVisible
) 

function SetWeight

inline int AIAC::GOPrimitive::SetWeight (
    float weight
) 

function Transform

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

function Translate

inline virtual void AIAC::GOPrimitive::Translate (
    const glm::vec3 & translation
) 

function ~GOPrimitive

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

Public Static Functions Documentation

function Remove [½]

static void AIAC::GOPrimitive::Remove (
    const uint32_t & id
) 

function Remove [2/2]

static void AIAC::GOPrimitive::Remove (
    const std::shared_ptr< GOPrimitive > & ptrGO
) 

Protected Attributes Documentation

variable m_Color

glm::vec4 AIAC::GOPrimitive::m_Color;

variable m_GLObjects

std::vector<std::shared_ptr<GLObject> > AIAC::GOPrimitive::m_GLObjects;

variable m_Id

uint32_t AIAC::GOPrimitive::m_Id;

variable m_IsVisible

bool AIAC::GOPrimitive::m_IsVisible;

variable m_Name

std::string AIAC::GOPrimitive::m_Name;

variable m_State

bool AIAC::GOPrimitive::m_State;

variable m_Type

GOTypeFlags AIAC::GOPrimitive::m_Type;

variable m_Weight

float AIAC::GOPrimitive::m_Weight;


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