Template class for convenient specifying of path commands and coordinates. More...
#include </home/chochlik/devel/oglplus/include/oglplus/ext/NV_path_rendering/path_spec.hpp>

Public Member Functions | |
| PathNVSpec (void) | |
| Creates an empty path specification. | |
| PathNVSpec (GLuint command_count_hint, GLuint coord_count_hint) | |
| Creates an empty path specification with storage size hints. More... | |
Path specification commands | |
The path specification is built by calling the member functions in this group. Every one of these functions appends a the specified command to the end of the command list and for commands with coordinates it also appends the specified values to the coordinate list. | |
| PathNVSpec & | Close (void) |
| PathNVSpec & | Restart (void) |
| Restart path. | |
| PathNVSpec & | MoveTo (T c0, T c1) |
| Move to absolute coordinates. | |
| PathNVSpec & | RelativeMoveTo (T c0, T c1) |
| Move by specified amount. | |
| PathNVSpec & | LineTo (T c0, T c1) |
| Draw a line to absolute coordinates. | |
| PathNVSpec & | RelativeLineTo (T c0, T c1) |
| Draw a line in the specified direction. | |
| PathNVSpec & | HorizontalLineTo (T c0) |
| Draw a horizontal line to the specified vertical coordinate. | |
| PathNVSpec & | RelativeHorizontalLineTo (T c0) |
| Draw a horizontal line in the specified direction. | |
| PathNVSpec & | VerticalLineTo (T c0) |
| Draw a vertical line to the specified horizontal coordinate. | |
| PathNVSpec & | RelativeVerticalLineTo (T c0) |
| Draw a vertical line in the specified direction. | |
| PathNVSpec & | QuadraticCurveTo (T c0, T c1, T c2, T c3) |
| Draw a quadratic curve with the specified absolute control points. | |
| PathNVSpec & | RelativeQuadraticCurveTo (T c0, T c1, T c2, T c3) |
| Draw a quadratic curve with the specified relative control points. | |
| PathNVSpec & | CubicCurveTo (T c0, T c1, T c2, T c3, T c4, T c5) |
| Draw a cubic curve with the specified absolute control points. | |
| PathNVSpec & | RelativeCubicCurveTo (T c0, T c1, T c2, T c3, T c4, T c5) |
| Draw a cubic curve with the specified relative control points. | |
| PathNVSpec & | SmoothQuadraticCurveTo (T c0, T c1) |
| Draw a smooth quadratic curve with specified absolute control points. | |
| PathNVSpec & | RelativeSmoothQuadraticCurveTo (T c0, T c1) |
| Draw a smooth quadratic curve with specified relative control points. | |
| PathNVSpec & | SmoothCubicCurveTo (T c0, T c1, T c2, T c3) |
| Draw a smooth cubic curve with specified absolute control points. | |
| PathNVSpec & | RelativeSmoothCubicCurveTo (T c0, T c1, T c2, T c3) |
| Draw a smooth cubic curve with specified relative control points. | |
| PathNVSpec & | SmallCCWArcTo (T c0, T c1, T c2, T c3, T c4) |
| Draw a small-sweep CCW elliptical arc with absolute parameters. | |
| PathNVSpec & | RelativeSmallCCWArcTo (T c0, T c1, T c2, T c3, T c4) |
| Draw a small-sweep CCW elliptical arc with relative parameters. | |
| PathNVSpec & | SmallCWArcTo (T c0, T c1, T c2, T c3, T c4) |
| Draw a small-sweep CW elliptical arc with absolute parameters. | |
| PathNVSpec & | RelativeSmallCWArcTo (T c0, T c1, T c2, T c3, T c4) |
| Draw a small-sweep CW elliptical arc with relative parameters. | |
| PathNVSpec & | LargeCCWArcTo (T c0, T c1, T c2, T c3, T c4) |
| Draw a large-sweep CCW elliptical arc with absolute parameters. | |
| PathNVSpec & | RelativeLargeCCWArcTo (T c0, T c1, T c2, T c3, T c4) |
| Draw a large-sweep CCW elliptical arc with relative parameters. | |
| PathNVSpec & | LargeCWArcTo (T c0, T c1, T c2, T c3, T c4) |
| Draw a large-sweep CW elliptical arc with absolute parameters. | |
| PathNVSpec & | RelativeLargeCWArcTo (T c0, T c1, T c2, T c3, T c4) |
| Draw a large-sweep CW elliptical arc with relative parameters. | |
| PathNVSpec & | DupFirstCubicCurveTo (T c0, T c1, T c2, T c3) |
| Draw a cubic curve segment duplicating first control point. | |
| PathNVSpec & | DupLastCubicCurveTo (T c0, T c1, T c2, T c3) |
| Draw a cubic curve segment duplicating last control point. | |
| PathNVSpec & | Rect (T c0, T c1, T c2, T c3) |
| Draw a rectangle with the specified absolute coordinates. | |
| PathNVSpec & | CircularCCWArcTo (T c0, T c1, T c2, T c3, T c4) |
| Draw a circular CCW arc with the specified absolute coordinates. | |
| PathNVSpec & | CircularCWArcTo (T c0, T c1, T c2, T c3, T c4) |
| Draw a circular CW arc with the specified absolute coordinates. | |
| PathNVSpec & | CircularTangentArcTo (T c0, T c1, T c2, T c3, T c4) |
| Draw a circular tangential arc with specified absolute coordinates. | |
| PathNVSpec & | ArcTo (T c0, T c1, T c2, T c3, T c4, T c5, T c6) |
| Draw a general elliptical arc with specified absolute coordinates. | |
| PathNVSpec & | RelativeArcTo (T c0, T c1, T c2, T c3, T c4, T c5, T c6) |
| Draw a general elliptical arc with specified relative coordinates. | |
Template class for convenient specifying of path commands and coordinates.
This function can be used to specify the commands and coordinates of a PathNV instance, using the Spec member function.
| oglplus::PathNVSpec< PathCoordType >::PathNVSpec | ( | GLuint | command_count_hint, |
| GLuint | coord_count_hint | ||
| ) |
Creates an empty path specification with storage size hints.
This constructor pre-allocates space for command_count_hint commands and coord_count_hint coordinate values.
| PathNVSpec& oglplus::PathNVSpec< PathCoordType >::Close | ( | void | ) |
Close path
Referenced by oglplus::BriefPathNVSpec< PathCoordType >::Z().