Class 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¶
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¶
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 ComputeAngle¶
Compute the angle between the current line object and another one.
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.
Parameters:
ptrGO2
the second line
Returns:
float the angle in degrees
function ExtendBothEnds¶
function ExtendFromEnd¶
function ExtendFromStart¶
function GetLength¶
function GetMidPoint¶
function GetMidPointValues¶
function GetNormalValues¶
function GetPEnd¶
function GetPStart¶
function InitGLObject¶
Implements AIAC::GOPrimitive::InitGLObject
function SetPEnd¶
function SetPStart¶
function SetPts¶
function SetValueFrom¶
Implements AIAC::GOPrimitive::SetValueFrom
function Transform¶
Implements AIAC::GOPrimitive::Transform
function Translate¶
Implements AIAC::GOPrimitive::Translate
function ~GOLine¶
Public Static Functions Documentation¶
function 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¶
function GetAll¶
The documentation for this class was generated from the following file src/AIAC/GOSys/GOPrimitive.h