FastUIDraw
Public Member Functions | Public Attributes | List of all members
fastuidraw::TessellatedPath::cap Class Reference

Represents the geometric data for a cap. More...

#include <tessellated_path.hpp>

Public Member Functions

 cap (void)
 
 cap (const segment &seg, bool is_start_cap)
 

Public Attributes

unsigned int m_contour_id
 
float m_contour_length
 
float m_distance_from_contour_start
 
float m_distance_from_edge_start
 
float m_edge_length
 
bool m_is_starting_cap
 
vec2 m_position
 
vec2 m_unit_vector
 

Detailed Description

Represents the geometric data for a cap.

Definition at line 563 of file tessellated_path.hpp.

Constructor & Destructor Documentation

◆ cap() [1/2]

fastuidraw::TessellatedPath::cap::cap ( void  )
inline

Default ctor that does NOT initialize any of the fields of cap

Definition at line 570 of file tessellated_path.hpp.

◆ cap() [2/2]

fastuidraw::TessellatedPath::cap::cap ( const segment seg,
bool  is_start_cap 
)

Ctor that initializes the values of a cap to be values of where a segment starts or ends.

Parameters
segthe segment value
is_start_capif true indicates to give the cap the value as a cap at the start of the segment, if false, then at the end of the segment.

Member Data Documentation

◆ m_contour_id

unsigned int fastuidraw::TessellatedPath::cap::m_contour_id

Gives the contour from which the join originates, following the same convention as segment::m_contour_id.

Definition at line 628 of file tessellated_path.hpp.

◆ m_contour_length

float fastuidraw::TessellatedPath::cap::m_contour_length

Length of the contour on which the cap resides.

Definition at line 597 of file tessellated_path.hpp.

◆ m_distance_from_contour_start

float fastuidraw::TessellatedPath::cap::m_distance_from_contour_start

Gives the distance of the cap start of the -contour-. For cap values of a TessellatedPath, this is 0 for a starting cap and m_contour_length for an ending cap.

Definition at line 616 of file tessellated_path.hpp.

◆ m_distance_from_edge_start

float fastuidraw::TessellatedPath::cap::m_distance_from_edge_start

Gives the distance of the cap from the start of the edge on which the cap resides.

Definition at line 608 of file tessellated_path.hpp.

◆ m_edge_length

float fastuidraw::TessellatedPath::cap::m_edge_length

Length of the edge on which the cap resides.

Definition at line 602 of file tessellated_path.hpp.

◆ m_is_starting_cap

bool fastuidraw::TessellatedPath::cap::m_is_starting_cap

True if the cap is from the start of a contour

Definition at line 621 of file tessellated_path.hpp.

◆ m_position

vec2 fastuidraw::TessellatedPath::cap::m_position

Gives the position of the cap

Definition at line 587 of file tessellated_path.hpp.

◆ m_unit_vector

vec2 fastuidraw::TessellatedPath::cap::m_unit_vector

Gives the unit-vector into the cap

Definition at line 592 of file tessellated_path.hpp.


The documentation for this class was generated from the following file: