Skip to content

Class AIAC::GOPoint

ClassList > AIAC > GOPoint

Inherits the following classes: AIAC::GOPrimitive

Public Functions

Type Name
float DistanceTo (const GOPoint & point) const
GOPoint () = default
GOPoint (float x, float y, float z, float weight=GOWeight::Default)
GOPoint (glm::vec3 position, float weight=GOWeight::Default)
glm::vec3 GetPosition () const
virtual void InitGLObject ()
void SetPosition (glm::vec3 position)
virtual void SetValueFrom (const std::shared_ptr< GOPrimitive > & ptrGO)
void SetWeight (float weight)
void SetX (float x)
void SetY (float y)
void SetZ (float z)
virtual void Transform (const glm::mat4x4 & transformMat)
float X () const
float Y () const
float Z () const
vec3 () const
virtual ~GOPoint () = 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< GOPoint > Add (float x, float y, float z, float weight=GOWeight::Default)
Add GOPoint to the scene.
std::shared_ptr< GOPoint > Add (glm::vec3 position, float weight=GOWeight::Default)
std::shared_ptr< GOPoint > Get (const uint32_t & id)
std::vector< std::shared_ptr< GOPoint > > 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 DistanceTo

inline float AIAC::GOPoint::DistanceTo (
    const GOPoint & point
) const

function GOPoint [⅓]

AIAC::GOPoint::GOPoint () = default

function GOPoint [⅔]

AIAC::GOPoint::GOPoint (
    float x,
    float y,
    float z,
    float weight=GOWeight::Default
) 

function GOPoint [3/3]

AIAC::GOPoint::GOPoint (
    glm::vec3 position,
    float weight=GOWeight::Default
) 

function GetPosition

inline glm::vec3 AIAC::GOPoint::GetPosition () const

function InitGLObject

virtual void AIAC::GOPoint::InitGLObject () 

Implements AIAC::GOPrimitive::InitGLObject


function SetPosition

inline void AIAC::GOPoint::SetPosition (
    glm::vec3 position
) 

function SetValueFrom

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

Implements AIAC::GOPrimitive::SetValueFrom


function SetWeight

inline void AIAC::GOPoint::SetWeight (
    float weight
) 

function SetX

inline void AIAC::GOPoint::SetX (
    float x
) 

function SetY

inline void AIAC::GOPoint::SetY (
    float y
) 

function SetZ

inline void AIAC::GOPoint::SetZ (
    float z
) 

function Transform

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

Implements AIAC::GOPrimitive::Transform


function X

inline float AIAC::GOPoint::X () const

function Y

inline float AIAC::GOPoint::Y () const

function Z

inline float AIAC::GOPoint::Z () const

function vec3

inline AIAC::GOPoint::vec3 () const

function ~GOPoint

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

Public Static Functions Documentation

function Add [½]

Add GOPoint to the scene.

static std::shared_ptr< GOPoint > AIAC::GOPoint::Add (
    float x,
    float y,
    float z,
    float weight=GOWeight::Default
) 

Parameters:

  • x X coordinate of the point.
  • y Y coordinate of the point.
  • z Z coordinate of the point.
  • weight Weight of the point.

Returns:

uint32_t Id of the point.


function Add [2/2]

static std::shared_ptr< GOPoint > AIAC::GOPoint::Add (
    glm::vec3 position,
    float weight=GOWeight::Default
) 

function Get

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

function GetAll

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


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