OGLplus (0.52.0) a C++ wrapper for OpenGL

oglplus::PathNVSpec< PathCoordType > Class Template Reference

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>

Inheritance diagram for oglplus::PathNVSpec< PathCoordType >:

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.

PathNVSpecClose (void)
 
PathNVSpecRestart (void)
 Restart path.
 
PathNVSpecMoveTo (T c0, T c1)
 Move to absolute coordinates.
 
PathNVSpecRelativeMoveTo (T c0, T c1)
 Move by specified amount.
 
PathNVSpecLineTo (T c0, T c1)
 Draw a line to absolute coordinates.
 
PathNVSpecRelativeLineTo (T c0, T c1)
 Draw a line in the specified direction.
 
PathNVSpecHorizontalLineTo (T c0)
 Draw a horizontal line to the specified vertical coordinate.
 
PathNVSpecRelativeHorizontalLineTo (T c0)
 Draw a horizontal line in the specified direction.
 
PathNVSpecVerticalLineTo (T c0)
 Draw a vertical line to the specified horizontal coordinate.
 
PathNVSpecRelativeVerticalLineTo (T c0)
 Draw a vertical line in the specified direction.
 
PathNVSpecQuadraticCurveTo (T c0, T c1, T c2, T c3)
 Draw a quadratic curve with the specified absolute control points.
 
PathNVSpecRelativeQuadraticCurveTo (T c0, T c1, T c2, T c3)
 Draw a quadratic curve with the specified relative control points.
 
PathNVSpecCubicCurveTo (T c0, T c1, T c2, T c3, T c4, T c5)
 Draw a cubic curve with the specified absolute control points.
 
PathNVSpecRelativeCubicCurveTo (T c0, T c1, T c2, T c3, T c4, T c5)
 Draw a cubic curve with the specified relative control points.
 
PathNVSpecSmoothQuadraticCurveTo (T c0, T c1)
 Draw a smooth quadratic curve with specified absolute control points.
 
PathNVSpecRelativeSmoothQuadraticCurveTo (T c0, T c1)
 Draw a smooth quadratic curve with specified relative control points.
 
PathNVSpecSmoothCubicCurveTo (T c0, T c1, T c2, T c3)
 Draw a smooth cubic curve with specified absolute control points.
 
PathNVSpecRelativeSmoothCubicCurveTo (T c0, T c1, T c2, T c3)
 Draw a smooth cubic curve with specified relative control points.
 
PathNVSpecSmallCCWArcTo (T c0, T c1, T c2, T c3, T c4)
 Draw a small-sweep CCW elliptical arc with absolute parameters.
 
PathNVSpecRelativeSmallCCWArcTo (T c0, T c1, T c2, T c3, T c4)
 Draw a small-sweep CCW elliptical arc with relative parameters.
 
PathNVSpecSmallCWArcTo (T c0, T c1, T c2, T c3, T c4)
 Draw a small-sweep CW elliptical arc with absolute parameters.
 
PathNVSpecRelativeSmallCWArcTo (T c0, T c1, T c2, T c3, T c4)
 Draw a small-sweep CW elliptical arc with relative parameters.
 
PathNVSpecLargeCCWArcTo (T c0, T c1, T c2, T c3, T c4)
 Draw a large-sweep CCW elliptical arc with absolute parameters.
 
PathNVSpecRelativeLargeCCWArcTo (T c0, T c1, T c2, T c3, T c4)
 Draw a large-sweep CCW elliptical arc with relative parameters.
 
PathNVSpecLargeCWArcTo (T c0, T c1, T c2, T c3, T c4)
 Draw a large-sweep CW elliptical arc with absolute parameters.
 
PathNVSpecRelativeLargeCWArcTo (T c0, T c1, T c2, T c3, T c4)
 Draw a large-sweep CW elliptical arc with relative parameters.
 
PathNVSpecDupFirstCubicCurveTo (T c0, T c1, T c2, T c3)
 Draw a cubic curve segment duplicating first control point.
 
PathNVSpecDupLastCubicCurveTo (T c0, T c1, T c2, T c3)
 Draw a cubic curve segment duplicating last control point.
 
PathNVSpecRect (T c0, T c1, T c2, T c3)
 Draw a rectangle with the specified absolute coordinates.
 
PathNVSpecCircularCCWArcTo (T c0, T c1, T c2, T c3, T c4)
 Draw a circular CCW arc with the specified absolute coordinates.
 
PathNVSpecCircularCWArcTo (T c0, T c1, T c2, T c3, T c4)
 Draw a circular CW arc with the specified absolute coordinates.
 
PathNVSpecCircularTangentArcTo (T c0, T c1, T c2, T c3, T c4)
 Draw a circular tangential arc with specified absolute coordinates.
 
PathNVSpecArcTo (T c0, T c1, T c2, T c3, T c4, T c5, T c6)
 Draw a general elliptical arc with specified absolute coordinates.
 
PathNVSpecRelativeArcTo (T c0, T c1, T c2, T c3, T c4, T c5, T c6)
 Draw a general elliptical arc with specified relative coordinates.
 

Detailed Description

template<typename PathCoordType>
class oglplus::PathNVSpec< PathCoordType >

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.

See Also
PathNV
PathNVCommand
Examples:
standalone/002_simple_path.cpp.

Constructor & Destructor Documentation

template<typename PathCoordType>
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.

Member Function Documentation

template<typename PathCoordType>
PathNVSpec& oglplus::PathNVSpec< PathCoordType >::Close ( void  )

The documentation for this class was generated from the following file:
  • /home/chochlik/devel/oglplus/include/oglplus/ext/NV_path_rendering/path_spec.hpp

Copyright © 2010-2014 Matúš Chochlík, University of Žilina, Žilina, Slovakia.
<matus.chochlik -at- fri.uniza.sk>
<chochlik -at -gmail.com>
Documentation generated on Mon Sep 22 2014 by Doxygen (version 1.8.6).