Skip to content

Class AIAC::GOLine

ClassList > AIAC > GOLine

Inherits the following classes: AIAC::GOPrimitive

Public Functions

Type Name
float ComputeAngle (std::shared_ptr< GOLine > ptrGO2)
Compute the angle between the current line object and another one.
float ComputeSignedAngle (std::shared_ptr< GOLine > ptrGO2)
Compute the angle between the current line object and another one with a sign.
void ExtendBothEnds (float length)
void ExtendFromEnd (float length)
void ExtendFromStart (float length)
float GetLength () const
GOPoint GetMidPoint () const
glm::vec3 GetMidPointValues () const
glm::vec3 GetNormalValues () const
GOPoint GetPEnd () const
GOPoint GetPStart () const
virtual void InitGLObject ()
void SetPEnd (GOPoint pEnd)
void SetPStart (GOPoint pStart)
void SetPts (GOPoint pStart, GOPoint pEnd)
virtual void SetValueFrom (const std::shared_ptr< GOPrimitive > & ptrGO)
virtual void Transform (const glm::mat4x4 & transformMat)
virtual void Translate (const glm::vec3 & translation)
virtual ~GOLine () = 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< GOLine > Add ()
std::shared_ptr< GOLine > Add (GOPoint p1, GOPoint p2, float weight=GOWeight::Default)
Add GOLine to the scene.
std::shared_ptr< GOLine > Get (const uint32_t & id)
std::vector< std::shared_ptr< GOLine > > 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 ComputeAngle

Compute the angle between the current line object and another one.

float AIAC::GOLine::ComputeAngle (
    std::shared_ptr< GOLine > ptrGO2
) 

Parameters:

  • ptrGO2 the second line

Returns:

float the angle in degrees


function ComputeSignedAngle

Compute the angle between the current line object and another one with a sign.

float AIAC::GOLine::ComputeSignedAngle (
    std::shared_ptr< GOLine > ptrGO2
) 

Parameters:

  • ptrGO2 the second line

Returns:

float the angle in degrees


function ExtendBothEnds

inline void AIAC::GOLine::ExtendBothEnds (
    float length
) 

function ExtendFromEnd

inline void AIAC::GOLine::ExtendFromEnd (
    float length
) 

function ExtendFromStart

inline void AIAC::GOLine::ExtendFromStart (
    float length
) 

function GetLength

inline float AIAC::GOLine::GetLength () const

function GetMidPoint

inline GOPoint AIAC::GOLine::GetMidPoint () const

function GetMidPointValues

inline glm::vec3 AIAC::GOLine::GetMidPointValues () const

function GetNormalValues

inline glm::vec3 AIAC::GOLine::GetNormalValues () const

function GetPEnd

inline GOPoint AIAC::GOLine::GetPEnd () const

function GetPStart

inline GOPoint AIAC::GOLine::GetPStart () const

function InitGLObject

virtual void AIAC::GOLine::InitGLObject () 

Implements AIAC::GOPrimitive::InitGLObject


function SetPEnd

inline void AIAC::GOLine::SetPEnd (
    GOPoint pEnd
) 

function SetPStart

inline void AIAC::GOLine::SetPStart (
    GOPoint pStart
) 

function SetPts

inline void AIAC::GOLine::SetPts (
    GOPoint pStart,
    GOPoint pEnd
) 

function SetValueFrom

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

Implements AIAC::GOPrimitive::SetValueFrom


function Transform

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

Implements AIAC::GOPrimitive::Transform


function Translate

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

Implements AIAC::GOPrimitive::Translate


function ~GOLine

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

Public Static Functions Documentation

function Add [½]

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

function Add [2/2]

Add GOLine to the scene.

static std::shared_ptr< GOLine > AIAC::GOLine::Add (
    GOPoint p1,
    GOPoint p2,
    float weight=GOWeight::Default
) 

Parameters:

  • p1 First point of the line.
  • p2 Second point of the line.
  • weight Weight of the line.

Returns:

uint32_t Id of the line.


function Get

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

function GetAll

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


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