Skip to content

Class AIAC::GOCylinder

ClassList > AIAC > GOCylinder

Inherits the following classes: AIAC::GOPrimitive

Public Functions

Type Name
glm::vec4 GetEdgeColor () const
GOPoint GetPEnd () const
GOPoint GetPStart () const
float GetRadius () const
virtual void InitGLObject ()
void SetEdgeColor (glm::vec4 edgeColor)
void SetPEnd (GOPoint pEnd)
void SetPStart (GOPoint pStart)
void SetRadius (float radius)
virtual void SetValueFrom (const std::shared_ptr< GOPrimitive > & ptrGO)
virtual void Transform (const glm::mat4x4 & transformMat)
virtual ~GOCylinder () = 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< GOCylinder > Add (GOPoint p1, GOPoint p2, float radius)
Add GOCylinder to the scene.
std::shared_ptr< GOCylinder > Get (const uint32_t & id)
std::vector< std::shared_ptr< GOCylinder > > 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 GetEdgeColor

inline glm::vec4 AIAC::GOCylinder::GetEdgeColor () const

function GetPEnd

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

function GetPStart

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

function GetRadius

inline float AIAC::GOCylinder::GetRadius () const

function InitGLObject

virtual void AIAC::GOCylinder::InitGLObject () 

Implements AIAC::GOPrimitive::InitGLObject


function SetEdgeColor

inline void AIAC::GOCylinder::SetEdgeColor (
    glm::vec4 edgeColor
) 

function SetPEnd

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

function SetPStart

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

function SetRadius

inline void AIAC::GOCylinder::SetRadius (
    float radius
) 

function SetValueFrom

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

Implements AIAC::GOPrimitive::SetValueFrom


function Transform

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

Implements AIAC::GOPrimitive::Transform


function ~GOCylinder

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

Public Static Functions Documentation

function Add

Add GOCylinder to the scene.

static std::shared_ptr< GOCylinder > AIAC::GOCylinder::Add (
    GOPoint p1,
    GOPoint p2,
    float radius
) 

Parameters:

  • p1 First point of the cylinder.
  • p2 Second point of the cylinder.
  • radius Radius of the cylinder.

Returns:

uint32_t Id of the cylinder.


function Get

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

function GetAll

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


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