Class AIAC::GOPolyline¶
ClassList > AIAC > GOPolyline
Inherits the following classes: AIAC::GOPrimitive
Public Functions¶
Type | Name |
---|---|
const std::vector< GOPoint > & | GetPoints () const |
virtual void | InitGLObject () |
bool | IsClosed () const |
void | SetClosed (bool isClosed) |
void | SetPoints (std::vector< glm::vec3 > points) |
void | SetPoints (std::vector< GOPoint > points) |
void | SetWeight (float weight) |
virtual void | Transform (const glm::mat4x4 & transformMat) |
GOPrimitive | operator* (const glm::mat4x4 & transformMat) |
virtual | ~GOPolyline () = default |
Public Functions inherited from 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< GOPolyline > | Add () Add GOPolyline to the scene. |
std::shared_ptr< GOPolyline > | Add (std::vector< GOPoint > points, bool isClosed=false, float weight=GOWeight::Default) |
std::shared_ptr< GOPolyline > | Add (std::vector< glm::vec3 > points, bool isClosed=false, float weight=GOWeight::Default) |
std::shared_ptr< GOPolyline > | Get (const uint32_t & id) |
std::vector< std::shared_ptr< GOPolyline > > | GetAll () |
Public Static Functions inherited from AIAC::GOPrimitive¶
Type | Name |
---|---|
void | Remove (const uint32_t & id) |
void | Remove (const std::shared_ptr< GOPrimitive > & ptrGO) |
Protected Attributes inherited from 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 GetPoints¶
function InitGLObject¶
Implements AIAC::GOPrimitive::InitGLObject
function IsClosed¶
function SetClosed¶
function SetPoints [½]¶
function SetPoints [2/2]¶
function SetWeight¶
function Transform¶
Implements AIAC::GOPrimitive::Transform
function operator*¶
function ~GOPolyline¶
Public Static Functions Documentation¶
function Add [⅓]¶
Add GOPolyline to the scene.
Parameters:
points
Points of the polyline.
Returns:
uint32_t Id of the polyline.
function Add [⅔]¶
static std::shared_ptr< GOPolyline > AIAC::GOPolyline::Add (
std::vector< GOPoint > points,
bool isClosed=false,
float weight=GOWeight::Default
)
function Add [3/3]¶
static std::shared_ptr< GOPolyline > AIAC::GOPolyline::Add (
std::vector< glm::vec3 > points,
bool isClosed=false,
float weight=GOWeight::Default
)
function Get¶
function GetAll¶
The documentation for this class was generated from the following file src/AIAC/GOSys/GOPrimitive.h