List of all members.
Public Member Functions |
| GGen_Path () |
void | AddPoint (GGen_Point &point) |
void | AddPointByCoords (GGen_CoordOffset x, GGen_CoordOffset y) |
void | Clear () |
void | Flip (GGen_CoordOffset origin_x, GGen_CoordOffset origin_y, GGen_Direction direction) |
GGen_CoordOffset | GetAverageX () |
GGen_CoordOffset | GetAverageY () |
GGen_CoordOffset | GetCenterX () |
GGen_CoordOffset | GetCenterY () |
GGen_CoordOffset | GetMaxX () |
GGen_CoordOffset | GetMaxY () |
GGen_CoordOffset | GetMinX () |
GGen_CoordOffset | GetMinY () |
void | InsertPoint (uint32 index, GGen_Point &point) |
void | InsertPointByCoords (uint32 index, GGen_CoordOffset x, GGen_CoordOffset y) |
void | Move (GGen_CoordOffset x, GGen_CoordOffset y) |
void | RemovePoint (uint32 index) |
void | Rotate (GGen_CoordOffset origin_x, GGen_CoordOffset origin_y, int32 angle) |
void | Scale (GGen_CoordOffset origin_x, GGen_CoordOffset origin_y, double ratio_x, double ratio_y) |
void | Shear (GGen_CoordOffset origin_x, GGen_CoordOffset origin_y, int32 horizontal_shear, int32 vertical_shear) |
void | Transform (GGen_CoordOffset origin_x, GGen_CoordOffset origin_y, double a11, double a12, double a21, double a22) |
Detailed Description
GGen_Path represents a continuous linear sequence of GGen_Point objects.
Constructor & Destructor Documentation
Creates a new empty Path object.
Member Function Documentation
Adds a point to the end of the path.
- Parameters:
-
Adds a point to the end of the path.
- Parameters:
-
x | X coordinate of the point to be added. |
y | Y coordinate of the point to be added. |
void GGen_Path::Clear |
( |
| ) |
|
Removes all points from the path.
Flips the path vertically or horizontally.
- Parameters:
-
origin_x | X coordinate of flip origin. |
origin_y | Y coordinate of flip origin. |
direction | Direction along which is the flip performed. |
Returns X coordinate of path's center of mass.
- Returns:
- X coordinate of path's center of mass.
Returns Y coordinate of path's center of mass.
- Returns:
- Y coordinate of path's center of mass.
Returns X coordinate of path's unweighted center.
- Returns:
- X coordinate of path's unweighted center.
Returns X coordinate of path's unweighted center.
- Returns:
- X coordinate of path's unweighted center.
Returns X coordinate of the rightmost point in the path.
- Returns:
- X coordinate of the rightmost point in the path.
Returns Y coordinate of the bottommost point in the path.
- Returns:
- Y coordinate of the bottommost point in the path.
Returns X coordinate of the leftmost point in the path.
- Returns:
- X coordinate of the leftmost point in the path.
Returns Y coordinate of the topmost point in the path.
- Returns:
- Y coordinate of the topmost point in the path.
void GGen_Path::InsertPoint |
( |
uint32 |
index, |
|
|
GGen_Point & |
point |
|
) |
| |
Inserts a point into specific place in the path.
- Parameters:
-
index | Index of the point, after which the new point is inserted (starting at 0). |
point | Point to be added. |
Inserts a point into specific place in the path.
- Parameters:
-
index | Index of the point, after which the new point is inserted (starting at 0). |
x | X coordinate of the point to be added. |
y | Y coordinate of the point to be added. |
Moves all points in the path by an offset.
- Parameters:
-
void GGen_Path::RemovePoint |
( |
uint32 |
index | ) |
|
Removes a single point from the path.
- Parameters:
-
index | Index of the point to be removed (starting at 0). |
Rotates whole path around a point.
- Parameters:
-
origin_x | X coordinate of the point around which is the rotation performed. |
origin_y | Y coordinate of the point around which is the rotation performed. |
angle | Rotation angle in degrees. |
Scales the path.
- Parameters:
-
origin_x | X coordinate of scale origin. |
origin_y | Y coordinate of scale origin. |
ratio_x | Horizontal scale ratio. |
ratio_y | Vertical scale ratio |
Shears the path vertically and/or horizontally.
- Parameters:
-
origin_x | X coordinate of shear origin. |
origin_y | Y coordinate of shear origin. |
horizontal_shear | Horizontal shear factor (0 means no horizontal shearing). |
vertical_shear | Horizontal shear factor (1 means no horizontal shearing). |
Applies a linear transformation matrix onto the path.
- Parameters:
-
origin_x | X coordinate of the transformation origin. |
origin_y | Y coordinate of the transformation origin. |
a11 | Matrix element (1,1). |
a12 | Matrix element (1,2). |
a21 | Matrix element (2,1). |
a22 | Matrix element (2,2). |
- Note:
- Unlike with GGen_Data_2D, this operation is lossless (unless the matrix is degenerate).
The documentation for this class was generated from the following files: