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¶
function Draw¶
function GOPrimitive¶
explicit AIAC::GOPrimitive::GOPrimitive (
bool isVisible=true,
glm::vec4 color=glm::vec4(0, 0, 0, 1.0)
)
function GenerateId¶
function GetColor¶
function GetId¶
function GetName¶
function GetState¶
function GetType¶
function GetVisibility¶
function GetWeight¶
function InitGLObject¶
function IsVisible¶
function SetColor¶
function SetName¶
function SetState¶
function SetValueFrom¶
inline virtual void AIAC::GOPrimitive::SetValueFrom (
const std::shared_ptr< GOPrimitive > & ptrGO
)
function SetVisibility¶
function SetWeight¶
function Transform¶
function Translate¶
function ~GOPrimitive¶
Public Static Functions Documentation¶
function Remove [½]¶
function Remove [2/2]¶
Protected Attributes Documentation¶
variable m_Color¶
variable m_GLObjects¶
variable m_Id¶
variable m_IsVisible¶
variable m_Name¶
variable m_State¶
variable m_Type¶
variable m_Weight¶
The documentation for this class was generated from the following file src/AIAC/GOSys/GOPrimitive.h