#include <Logic.h>
Public Member Functions | |
| Logic (void) | |
| Constructor. | |
| ~Logic (void) | |
| Destructor. | |
| void | EnablePoints (void) |
| Enable/Disable points showing. | |
| void | EnableLines (void) |
| Enable/Disable lines showing. | |
| void | EnableTriangles (void) |
| Enable/Disable triangles showing. | |
| bool | ArePointsEnabled (void) |
| check if points are enabled | |
| bool | AreLinesEnabled (void) |
| check if lines are enabled | |
| bool | AreTrianglesEnabled (void) |
| check if triangles are enabled | |
| const std::vector< Point > & | GetQuadraticControlPoints (void) const |
| Gets quadratic curve control points. | |
| const std::vector< Line > & | GetQuadraticLines (void) const |
| Gets quadratic curve control lines. | |
| const std::vector< int > & | GetQuadraticIndices (void) const |
| Gets quadratic curve control indices. | |
| void | SetQuadraticControlPoint (int pointIndex, const Point &point) |
| Sets the position of a control point of the curve. | |
| bool | AreQuadraticControlPointsIntersected (const Point &point, int &controlPointIndex, float pointSize) |
| checks for a intersection beetwen a point an the control points | |
| bool Logic::AreQuadraticControlPointsIntersected | ( | const Point & | point, | |
| int & | controlPointIndex, | |||
| float | pointSize | |||
| ) |
checks for a intersection beetwen a point an the control points
| point | the point to be checked | |
| controlPointIndex | index of the control point intersected (output) | |
| pointSixe | size of the point |
| void Logic::EnableLines | ( | void | ) |
Enable/Disable lines showing.
| void Logic::EnablePoints | ( | void | ) |
Enable/Disable points showing.
| void Logic::EnableTriangles | ( | void | ) |
Enable/Disable triangles showing.
| void Logic::SetQuadraticControlPoint | ( | int | pointIndex, | |
| const Point & | point | |||
| ) |
Sets the position of a control point of the curve.
| pointIndex | the index of the point: 0-2 | |
| point | the new point |
1.5.9