OGLplus (0.52.0) a C++ wrapper for OpenGL

oglplus::PathArrayNV Class Reference

Array of PathNV objects and related operations. More...

#include </home/chochlik/devel/oglplus/include/oglplus/ext/NV_path_rendering/path_array.hpp>

Inheritance diagram for oglplus::PathArrayNV:
Collaboration diagram for oglplus::PathArrayNV:

Public Types

typedef Reference< PathNVreference
 Reference to elements.
 
typedef const reference const_reference
 Reference to const elements.
 
typedef SeqIterator< PathNViterator
 Iterator type.
 
typedef iterator const_iterator
 Const-iterator type.
 

Public Member Functions

 PathArrayNV (GLsizei count)
 Creates a sequence of count paths.
 
template<typename CharType >
PathArrayNVGlyphs (PathNVFontTarget font_target, const GLchar *font_name, Bitfield< PathNVFontStyle > font_style, GLsizei num_glyphs, const CharType *char_codes, PathNVMissingGlyph handle_missing_glyphs, GLuint parameter_template, GLfloat em_scale)
 Creates a range of paths from specified font for specified chars. More...
 
template<typename CharType >
PathArrayNVGlyphs (PathNVFontTarget font_target, const GLchar *font_name, Bitfield< PathNVFontStyle > font_style, const std::vector< CharType > &char_codes, PathNVMissingGlyph handle_missing_glyphs, GLuint parameter_template, GLfloat em_scale)
 Creates a range of paths from specified font for specified chars. More...
 
PathArrayNVGlyphs (PathNVFontTarget font_target, const GLchar *font_name, Bitfield< PathNVFontStyle > font_style, StrCRef char_codes, PathNVMissingGlyph handle_missing_glyphs, GLuint parameter_template, GLfloat em_scale)
 Creates a range of paths from specified font for specified chars. More...
 
PathArrayNVGlyphRange (PathNVFontTarget font_target, const GLchar *font_name, Bitfield< PathNVFontStyle > font_style, GLuint first_glyph, GLsizei num_glyphs, PathNVMissingGlyph handle_missing_glyphs, GLuint parameter_template, GLfloat em_scale)
 Creates a range of paths from specified font. More...
 
template<typename IndexType >
PathArrayNVGetSpacing (PathNVListMode list_mode, GLsizei num_indices, const IndexType *indices, GLfloat advance_scale, GLfloat kerning_scale, PathNVTransformType transform_type, GLfloat *returned_values)
 Queries the glyph spacing for paths in the array. More...
 
template<typename IndexType >
PathArrayNVGetSpacing (PathNVListMode list_mode, const std::vector< IndexType > &indices, GLfloat advance_scale, GLfloat kerning_scale, PathNVTransformType transform_type, std::vector< GLfloat > &returned_values)
 Queries the glyph spacing for paths in the array. More...
 
PathArrayNVGetSpacing (PathNVListMode list_mode, StrCRef indices, GLfloat advance_scale, GLfloat kerning_scale, PathNVTransformType transform_type, std::vector< GLfloat > &returned_values)
 Queries the glyph spacing for paths in the array. More...
 
template<typename IndexType >
PathArrayNVGetMetrics (Bitfield< PathNVMetricQuery > query_mask, GLsizei num_indices, const IndexType *indices, GLsizei stride, GLfloat *returned_values)
 Queries the glyph metrics associated with a sequence of path objects. More...
 
template<typename IndexType >
PathArrayNVGetMetrics (Bitfield< PathNVMetricQuery > query_mask, const std::vector< IndexType > &indices, GLsizei stride, GLfloat *returned_values)
 Queries the glyph metrics associated with a sequence of path objects. More...
 
PathArrayNVGetMetrics (Bitfield< PathNVMetricQuery > query_mask, StrCRef indices, GLsizei stride, GLfloat *returned_values)
 Queries the glyph metrics associated with a sequence of path objects. More...
 
PathArrayNVGetMetricRange (Bitfield< PathNVMetricQuery > query_mask, GLsizei num_paths, GLsizei stride, GLfloat *returned_values)
 Queries the glyph metrics associated with a range of path objects. More...
 
template<typename IndexType >
PathArrayNVStencilFillInstanced (GLsizei num_paths, const IndexType *paths, PathNVFillMode mode, GLuint mask, PathNVTransformType transform_type, const GLfloat *transform_values)
 Writes the path interiors (fill) into the stencil buffer. More...
 
template<typename IndexType >
PathArrayNVStencilFillInstanced (const std::vector< IndexType > &paths, PathNVFillMode mode, GLuint mask, PathNVTransformType transform_type, const std::vector< GLfloat > &transform_values)
 Writes the path interiors (fill) into the stencil buffer. More...
 
PathArrayNVStencilFillInstanced (StrCRef paths, PathNVFillMode mode, GLuint mask, PathNVTransformType transform_type, const std::vector< GLfloat > &transform_values)
 Writes the path interiors (fill) into the stencil buffer. More...
 
template<typename IndexType >
PathArrayNVCoverFillInstanced (GLsizei num_paths, const IndexType *paths, PathNVFillCoverMode mode, PathNVTransformType transform_type, const GLfloat *transform_values)
 Covers the path interiors (fill) More...
 
template<typename IndexType >
PathArrayNVCoverFillInstanced (const std::vector< IndexType > &paths, PathNVFillCoverMode mode, PathNVTransformType transform_type, const std::vector< GLfloat > &transform_values)
 Covers the path interiors (fill) More...
 
PathArrayNVCoverFillInstanced (StrCRef paths, PathNVFillCoverMode mode, PathNVTransformType transform_type, const std::vector< GLfloat > &transform_values)
 Covers the path interiors (fill) More...
 
template<typename IndexType >
PathArrayNVStencilStrokeInstanced (GLsizei num_paths, const IndexType *paths, GLint reference, GLuint mask, PathNVTransformType transform_type, const GLfloat *transform_values)
 Writes the path interiors strokes to the stencil buffer. More...
 
template<typename IndexType >
PathArrayNVStencilStrokeInstanced (const std::vector< IndexType > &paths, GLint reference, GLuint mask, PathNVTransformType transform_type, const std::vector< GLfloat > &transform_values)
 Writes the path interiors strokes to the stencil buffer. More...
 
PathArrayNVStencilStrokeInstanced (StrCRef paths, GLint reference, GLuint mask, PathNVTransformType transform_type, const std::vector< GLfloat > &transform_values)
 Writes the path interiors strokes to the stencil buffer. More...
 
template<typename IndexType >
PathArrayNVCoverStrokeInstanced (GLsizei num_paths, const IndexType *paths, PathNVStrokeCoverMode mode, PathNVTransformType transform_type, const GLfloat *transform_values)
 Covers the path strokes. More...
 
template<typename IndexType >
PathArrayNVCoverStrokeInstanced (const std::vector< IndexType > &paths, PathNVStrokeCoverMode mode, PathNVTransformType transform_type, const std::vector< GLfloat > &transform_values)
 Covers the path strokes. More...
 
PathArrayNVCoverStrokeInstanced (StrCRef paths, PathNVStrokeCoverMode mode, PathNVTransformType transform_type, const std::vector< GLfloat > &transform_values)
 Covers the path strokes. More...
 
bool empty (void) const
 Returns true if the array is empty.
 
std::size_t size (void) const
 Returns the number of instances in the array.
 
reference at (std::size_t index)
 Returns a reference to the i-th instance in the array.
 
const_reference at (NameT index) const
 Returns a const reference to the i-th instance in the array.
 
reference operator[] (std::size_t index)
 Returns a reference to the i-th instance in the array.
 
const_reference operator[] (std::size_t index) const
 Returns a const reference to the i-th instance in the array.
 
const_iterator begin (void) const
 Returns an iterator pointing to the first element.
 
const_iterator end (void) const
 Returns an iterator pointing past the last element.
 

Detailed Description

Array of PathNV objects and related operations.

See Also
PathNV
Examples:
standalone/003_simple_text.cpp, and standalone/004_text_rendering.cpp.

Member Function Documentation

template<typename IndexType >
PathArrayNV& oglplus::PathArrayNV::CoverFillInstanced ( GLsizei  num_paths,
const IndexType *  paths,
PathNVFillCoverMode  mode,
PathNVTransformType  transform_type,
const GLfloat *  transform_values 
)

Covers the path interiors (fill)

Related OpenGL symbols:
glCoverFillPathInstancedNV
template<typename IndexType >
PathArrayNV& oglplus::PathArrayNV::CoverFillInstanced ( const std::vector< IndexType > &  paths,
PathNVFillCoverMode  mode,
PathNVTransformType  transform_type,
const std::vector< GLfloat > &  transform_values 
)

Covers the path interiors (fill)

Related OpenGL symbols:
glCoverFillPathInstancedNV
PathArrayNV& oglplus::PathArrayNV::CoverFillInstanced ( StrCRef  paths,
PathNVFillCoverMode  mode,
PathNVTransformType  transform_type,
const std::vector< GLfloat > &  transform_values 
)

Covers the path interiors (fill)

Related OpenGL symbols:
glCoverFillPathInstancedNV

References oglplus::StrCRefTpl< Char >::c_str(), and oglplus::StrCRefTpl< Char >::size().

template<typename IndexType >
PathArrayNV& oglplus::PathArrayNV::CoverStrokeInstanced ( GLsizei  num_paths,
const IndexType *  paths,
PathNVStrokeCoverMode  mode,
PathNVTransformType  transform_type,
const GLfloat *  transform_values 
)

Covers the path strokes.

Related OpenGL symbols:
glCoverFillPathInstancedNV
template<typename IndexType >
PathArrayNV& oglplus::PathArrayNV::CoverStrokeInstanced ( const std::vector< IndexType > &  paths,
PathNVStrokeCoverMode  mode,
PathNVTransformType  transform_type,
const std::vector< GLfloat > &  transform_values 
)

Covers the path strokes.

Related OpenGL symbols:
glCoverFillPathInstancedNV
PathArrayNV& oglplus::PathArrayNV::CoverStrokeInstanced ( StrCRef  paths,
PathNVStrokeCoverMode  mode,
PathNVTransformType  transform_type,
const std::vector< GLfloat > &  transform_values 
)

Covers the path strokes.

Related OpenGL symbols:
glCoverFillPathInstancedNV

References oglplus::StrCRefTpl< Char >::c_str(), and oglplus::StrCRefTpl< Char >::size().

PathArrayNV& oglplus::PathArrayNV::GetMetricRange ( Bitfield< PathNVMetricQuery query_mask,
GLsizei  num_paths,
GLsizei  stride,
GLfloat *  returned_values 
)

Queries the glyph metrics associated with a range of path objects.

Related OpenGL symbols:
glGetPathMetricRangeNV
template<typename IndexType >
PathArrayNV& oglplus::PathArrayNV::GetMetrics ( Bitfield< PathNVMetricQuery query_mask,
GLsizei  num_indices,
const IndexType *  indices,
GLsizei  stride,
GLfloat *  returned_values 
)

Queries the glyph metrics associated with a sequence of path objects.

Related OpenGL symbols:
glGetPathMetricsNV
template<typename IndexType >
PathArrayNV& oglplus::PathArrayNV::GetMetrics ( Bitfield< PathNVMetricQuery query_mask,
const std::vector< IndexType > &  indices,
GLsizei  stride,
GLfloat *  returned_values 
)

Queries the glyph metrics associated with a sequence of path objects.

Related OpenGL symbols:
glGetPathMetricsNV
PathArrayNV& oglplus::PathArrayNV::GetMetrics ( Bitfield< PathNVMetricQuery query_mask,
StrCRef  indices,
GLsizei  stride,
GLfloat *  returned_values 
)

Queries the glyph metrics associated with a sequence of path objects.

Related OpenGL symbols:
glGetPathMetricsNV

References oglplus::StrCRefTpl< Char >::c_str(), and oglplus::StrCRefTpl< Char >::size().

template<typename IndexType >
PathArrayNV& oglplus::PathArrayNV::GetSpacing ( PathNVListMode  list_mode,
GLsizei  num_indices,
const IndexType *  indices,
GLfloat  advance_scale,
GLfloat  kerning_scale,
PathNVTransformType  transform_type,
GLfloat *  returned_values 
)

Queries the glyph spacing for paths in the array.

Related OpenGL symbols:
glGetPathSpacingNV
template<typename IndexType >
PathArrayNV& oglplus::PathArrayNV::GetSpacing ( PathNVListMode  list_mode,
const std::vector< IndexType > &  indices,
GLfloat  advance_scale,
GLfloat  kerning_scale,
PathNVTransformType  transform_type,
std::vector< GLfloat > &  returned_values 
)

Queries the glyph spacing for paths in the array.

Related OpenGL symbols:
glGetPathSpacingNV
PathArrayNV& oglplus::PathArrayNV::GetSpacing ( PathNVListMode  list_mode,
StrCRef  indices,
GLfloat  advance_scale,
GLfloat  kerning_scale,
PathNVTransformType  transform_type,
std::vector< GLfloat > &  returned_values 
)

Queries the glyph spacing for paths in the array.

Related OpenGL symbols:
glGetPathSpacingNV

References oglplus::StrCRefTpl< Char >::c_str(), and oglplus::StrCRefTpl< Char >::size().

PathArrayNV& oglplus::PathArrayNV::GlyphRange ( PathNVFontTarget  font_target,
const GLchar *  font_name,
Bitfield< PathNVFontStyle font_style,
GLuint  first_glyph,
GLsizei  num_glyphs,
PathNVMissingGlyph  handle_missing_glyphs,
GLuint  parameter_template,
GLfloat  em_scale 
)

Creates a range of paths from specified font.

Related OpenGL symbols:
glPathGlyphRangeNV
template<typename CharType >
PathArrayNV& oglplus::PathArrayNV::Glyphs ( PathNVFontTarget  font_target,
const GLchar *  font_name,
Bitfield< PathNVFontStyle font_style,
GLsizei  num_glyphs,
const CharType *  char_codes,
PathNVMissingGlyph  handle_missing_glyphs,
GLuint  parameter_template,
GLfloat  em_scale 
)

Creates a range of paths from specified font for specified chars.

Related OpenGL symbols:
glPathGlyphsNV
template<typename CharType >
PathArrayNV& oglplus::PathArrayNV::Glyphs ( PathNVFontTarget  font_target,
const GLchar *  font_name,
Bitfield< PathNVFontStyle font_style,
const std::vector< CharType > &  char_codes,
PathNVMissingGlyph  handle_missing_glyphs,
GLuint  parameter_template,
GLfloat  em_scale 
)

Creates a range of paths from specified font for specified chars.

Related OpenGL symbols:
glPathGlyphsNV
PathArrayNV& oglplus::PathArrayNV::Glyphs ( PathNVFontTarget  font_target,
const GLchar *  font_name,
Bitfield< PathNVFontStyle font_style,
StrCRef  char_codes,
PathNVMissingGlyph  handle_missing_glyphs,
GLuint  parameter_template,
GLfloat  em_scale 
)

Creates a range of paths from specified font for specified chars.

Related OpenGL symbols:
glPathGlyphsNV

References oglplus::StrCRefTpl< Char >::c_str(), and oglplus::StrCRefTpl< Char >::size().

template<typename IndexType >
PathArrayNV& oglplus::PathArrayNV::StencilFillInstanced ( GLsizei  num_paths,
const IndexType *  paths,
PathNVFillMode  mode,
GLuint  mask,
PathNVTransformType  transform_type,
const GLfloat *  transform_values 
)

Writes the path interiors (fill) into the stencil buffer.

Related OpenGL symbols:
glStencilFillPathInstancedNV
template<typename IndexType >
PathArrayNV& oglplus::PathArrayNV::StencilFillInstanced ( const std::vector< IndexType > &  paths,
PathNVFillMode  mode,
GLuint  mask,
PathNVTransformType  transform_type,
const std::vector< GLfloat > &  transform_values 
)

Writes the path interiors (fill) into the stencil buffer.

Related OpenGL symbols:
glStencilFillPathInstancedNV
PathArrayNV& oglplus::PathArrayNV::StencilFillInstanced ( StrCRef  paths,
PathNVFillMode  mode,
GLuint  mask,
PathNVTransformType  transform_type,
const std::vector< GLfloat > &  transform_values 
)

Writes the path interiors (fill) into the stencil buffer.

Related OpenGL symbols:
glStencilFillPathInstancedNV

References oglplus::StrCRefTpl< Char >::c_str(), and oglplus::StrCRefTpl< Char >::size().

template<typename IndexType >
PathArrayNV& oglplus::PathArrayNV::StencilStrokeInstanced ( GLsizei  num_paths,
const IndexType *  paths,
GLint  reference,
GLuint  mask,
PathNVTransformType  transform_type,
const GLfloat *  transform_values 
)

Writes the path interiors strokes to the stencil buffer.

Related OpenGL symbols:
glStencilStrokePathInstancedNV
template<typename IndexType >
PathArrayNV& oglplus::PathArrayNV::StencilStrokeInstanced ( const std::vector< IndexType > &  paths,
GLint  reference,
GLuint  mask,
PathNVTransformType  transform_type,
const std::vector< GLfloat > &  transform_values 
)

Writes the path interiors strokes to the stencil buffer.

Related OpenGL symbols:
glStencilStrokePathInstancedNV
PathArrayNV& oglplus::PathArrayNV::StencilStrokeInstanced ( StrCRef  paths,
GLint  reference,
GLuint  mask,
PathNVTransformType  transform_type,
const std::vector< GLfloat > &  transform_values 
)

Writes the path interiors strokes to the stencil buffer.

Related OpenGL symbols:
glStencilStrokePathInstancedNV

References oglplus::StrCRefTpl< Char >::c_str(), and oglplus::StrCRefTpl< Char >::size().


The documentation for this class was generated from the following file:
  • /home/chochlik/devel/oglplus/include/oglplus/ext/NV_path_rendering/path_array.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).