Skip to content

Class AIAC::GOText

ClassList > AIAC > GOText

Inherits the following classes: AIAC::GOPrimitive

Public Functions

Type Name
const GOPoint GetAnchor () const
const std::string GetText () const
const double GetTextSize () const
void SetAnchor (const GOPoint anchor)
void SetAnchor (const glm::vec3 anchor)
void SetText (const std::string text)
void SetTextSize (const double size)
virtual void SetValueFrom (const std::shared_ptr< GOPrimitive > & ptrGO)
virtual void Transform (const glm::mat4x4 & transformMat)
GOPrimitive operator* (const glm::mat4x4 & transformMat)
virtual ~GOText () = 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< GOText > Add ()
Add GOText to the scene.
std::shared_ptr< GOText > Add (std::string text, GOPoint anchor, double size=GOTextSize::Default)
std::shared_ptr< GOText > Get (const uint32_t & id)
std::vector< std::shared_ptr< GOText > > GetAll ()

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 GetAnchor

inline const GOPoint AIAC::GOText::GetAnchor () const

function GetText

inline const std::string AIAC::GOText::GetText () const

function GetTextSize

inline const double AIAC::GOText::GetTextSize () const

function SetAnchor [½]

inline void AIAC::GOText::SetAnchor (
    const GOPoint anchor
) 

function SetAnchor [2/2]

inline void AIAC::GOText::SetAnchor (
    const glm::vec3 anchor
) 

function SetText

inline void AIAC::GOText::SetText (
    const std::string text
) 

function SetTextSize

inline void AIAC::GOText::SetTextSize (
    const double size
) 

function SetValueFrom

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

Implements AIAC::GOPrimitive::SetValueFrom


function Transform

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

Implements AIAC::GOPrimitive::Transform


function operator*

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

function ~GOText

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

Public Static Functions Documentation

function Add [½]

Add GOText to the scene.

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

Parameters:

  • text Text of the text.
  • anchor Anchor of the text.
  • size Size of the text.

Returns:

uint32_t Id of the text.


function Add [2/2]

static std::shared_ptr< GOText > AIAC::GOText::Add (
    std::string text,
    GOPoint anchor,
    double size=GOTextSize::Default
) 

function Get

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

function GetAll

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


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