Loading...
Searching...
No Matches
cv::v4d::nvg::detail::NVG Class Reference
#include <opencv2/v4d/nvg.hpp>
Public Member Functions | |
int | addFallbackFont (const char *baseFont, const char *fallbackFont) |
int | addFallbackFontId (int baseFont, int fallbackFont) |
void | arc (float cx, float cy, float r, float a0, float a1, int dir) |
void | arcTo (float x1, float y1, float x2, float y2, float radius) |
void | beginPath () |
void | bezierTo (float c1x, float c1y, float c2x, float c2y, float x, float y) |
Paint | boxGradient (float x, float y, float w, float h, float r, float f, const cv::Scalar &icol, const cv::Scalar &ocol) |
void | circle (float cx, float cy, float r) |
void | closePath () |
int | createFont (const char *name, const char *filename) |
int | createFontMem (const char *name, unsigned char *data, int ndata, int freeData) |
int | createImage (const char *filename, int imageFlags) |
int | createImageMem (int imageFlags, unsigned char *data, int ndata) |
int | createImageRGBA (int w, int h, int imageFlags, const unsigned char *data) |
void | currentTransform (float *xform) |
float | degToRad (float deg) |
void | deleteImage (int image) |
void | ellipse (float cx, float cy, float rx, float ry) |
void | fill () |
void | fillColor (const cv::Scalar &bgra) |
void | fillPaint (Paint paint) |
int | findFont (const char *name) |
void | fontBlur (float blur) |
void | fontFace (const char *font) |
void | fontFaceId (int font) |
void | fontSize (float size) |
NVGcontext * | getContext () |
void | globalAlpha (float alpha) |
Paint | imagePattern (float ox, float oy, float ex, float ey, float angle, int image, float alpha) |
void | imageSize (int image, int *w, int *h) |
void | intersectScissor (float x, float y, float w, float h) |
Paint | linearGradient (float sx, float sy, float ex, float ey, const cv::Scalar &icol, const cv::Scalar &ocol) |
void | lineCap (int cap) |
void | lineJoin (int join) |
void | lineTo (float x, float y) |
void | miterLimit (float limit) |
void | moveTo (float x, float y) |
void | pathWinding (int dir) |
void | quadTo (float cx, float cy, float x, float y) |
Paint | radialGradient (float cx, float cy, float inr, float outr, const cv::Scalar &icol, const cv::Scalar &ocol) |
float | radToDeg (float rad) |
void | rect (float x, float y, float w, float h) |
void | reset () |
void | resetScissor () |
void | resetTransform () |
void | restore () |
void | rotate (float angle) |
void | roundedRect (float x, float y, float w, float h, float r) |
void | roundedRectVarying (float x, float y, float w, float h, float radTopLeft, float radTopRight, float radBottomRight, float radBottomLeft) |
void | save () |
void | scale (float x, float y) |
void | scissor (float x, float y, float w, float h) |
void | skewX (float angle) |
void | skewY (float angle) |
void | stroke () |
void | strokeColor (const cv::Scalar &bgra) |
void | strokePaint (Paint paint) |
void | strokeWidth (float size) |
float | text (float x, float y, const char *string, const char *end) |
void | textAlign (int align) |
float | textBounds (float x, float y, const char *string, const char *end, float *bounds) |
void | textBox (float x, float y, float breakRowWidth, const char *string, const char *end) |
void | textBoxBounds (float x, float y, float breakRowWidth, const char *string, const char *end, float *bounds) |
int | textBreakLines (const char *string, const char *end, float breakRowWidth, TextRow *rows, int maxRows) |
int | textGlyphPositions (float x, float y, const char *string, const char *end, GlyphPosition *positions, int maxPositions) |
void | textLetterSpacing (float spacing) |
void | textLineHeight (float lineHeight) |
void | textMetrics (float *ascender, float *descender, float *lineh) |
void | transform (float a, float b, float c, float d, float e, float f) |
void | transformIdentity (float *dst) |
int | transformInverse (float *dst, const float *src) |
void | transformMultiply (float *dst, const float *src) |
void | transformPoint (float *dstx, float *dsty, const float *xform, float srcx, float srcy) |
void | transformPremultiply (float *dst, const float *src) |
void | transformRotate (float *dst, float a) |
void | transformScale (float *dst, float sx, float sy) |
void | transformSkewX (float *dst, float a) |
void | transformSkewY (float *dst, float a) |
void | transformTranslate (float *dst, float tx, float ty) |
void | translate (float x, float y) |
void | updateImage (int image, const unsigned char *data) |
Static Public Member Functions | |
static NVG * | getCurrentContext () |
static void | initializeContext (NVGcontext *ctx) |
Friends | |
class | V4D |
Detailed Description
Internal NanoVG singleton that wraps all NanoVG functions.
Member Function Documentation
◆ addFallbackFont()
int cv::v4d::nvg::detail::NVG::addFallbackFont | ( | const char * | baseFont, |
const char * | fallbackFont | ||
) |
◆ addFallbackFontId()
int cv::v4d::nvg::detail::NVG::addFallbackFontId | ( | int | baseFont, |
int | fallbackFont | ||
) |
◆ arc()
void cv::v4d::nvg::detail::NVG::arc | ( | float | cx, |
float | cy, | ||
float | r, | ||
float | a0, | ||
float | a1, | ||
int | dir | ||
) |
◆ arcTo()
void cv::v4d::nvg::detail::NVG::arcTo | ( | float | x1, |
float | y1, | ||
float | x2, | ||
float | y2, | ||
float | radius | ||
) |
◆ beginPath()
void cv::v4d::nvg::detail::NVG::beginPath | ( | ) |
◆ bezierTo()
void cv::v4d::nvg::detail::NVG::bezierTo | ( | float | c1x, |
float | c1y, | ||
float | c2x, | ||
float | c2y, | ||
float | x, | ||
float | y | ||
) |
◆ boxGradient()
Paint cv::v4d::nvg::detail::NVG::boxGradient | ( | float | x, |
float | y, | ||
float | w, | ||
float | h, | ||
float | r, | ||
float | f, | ||
const cv::Scalar & | icol, | ||
const cv::Scalar & | ocol | ||
) |
◆ circle()
void cv::v4d::nvg::detail::NVG::circle | ( | float | cx, |
float | cy, | ||
float | r | ||
) |
◆ closePath()
void cv::v4d::nvg::detail::NVG::closePath | ( | ) |
◆ createFont()
int cv::v4d::nvg::detail::NVG::createFont | ( | const char * | name, |
const char * | filename | ||
) |
◆ createFontMem()
int cv::v4d::nvg::detail::NVG::createFontMem | ( | const char * | name, |
unsigned char * | data, | ||
int | ndata, | ||
int | freeData | ||
) |
◆ createImage()
int cv::v4d::nvg::detail::NVG::createImage | ( | const char * | filename, |
int | imageFlags | ||
) |
◆ createImageMem()
int cv::v4d::nvg::detail::NVG::createImageMem | ( | int | imageFlags, |
unsigned char * | data, | ||
int | ndata | ||
) |
◆ createImageRGBA()
int cv::v4d::nvg::detail::NVG::createImageRGBA | ( | int | w, |
int | h, | ||
int | imageFlags, | ||
const unsigned char * | data | ||
) |
◆ currentTransform()
void cv::v4d::nvg::detail::NVG::currentTransform | ( | float * | xform | ) |
◆ degToRad()
float cv::v4d::nvg::detail::NVG::degToRad | ( | float | deg | ) |
◆ deleteImage()
void cv::v4d::nvg::detail::NVG::deleteImage | ( | int | image | ) |
◆ ellipse()
void cv::v4d::nvg::detail::NVG::ellipse | ( | float | cx, |
float | cy, | ||
float | rx, | ||
float | ry | ||
) |
◆ fill()
void cv::v4d::nvg::detail::NVG::fill | ( | ) |
◆ fillColor()
void cv::v4d::nvg::detail::NVG::fillColor | ( | const cv::Scalar & | bgra | ) |
◆ fillPaint()
void cv::v4d::nvg::detail::NVG::fillPaint | ( | Paint | paint | ) |
◆ findFont()
int cv::v4d::nvg::detail::NVG::findFont | ( | const char * | name | ) |
◆ fontBlur()
void cv::v4d::nvg::detail::NVG::fontBlur | ( | float | blur | ) |
◆ fontFace()
void cv::v4d::nvg::detail::NVG::fontFace | ( | const char * | font | ) |
◆ fontFaceId()
void cv::v4d::nvg::detail::NVG::fontFaceId | ( | int | font | ) |
◆ fontSize()
void cv::v4d::nvg::detail::NVG::fontSize | ( | float | size | ) |
◆ getContext()
|
inline |
Get the underlying NVGcontext.
- Returns
- The underlying NVGcontext.
◆ getCurrentContext()
|
static |
Get the current NVGcontext.
- Returns
- The current NVGcontext context.
◆ globalAlpha()
void cv::v4d::nvg::detail::NVG::globalAlpha | ( | float | alpha | ) |
◆ imagePattern()
Paint cv::v4d::nvg::detail::NVG::imagePattern | ( | float | ox, |
float | oy, | ||
float | ex, | ||
float | ey, | ||
float | angle, | ||
int | image, | ||
float | alpha | ||
) |
◆ imageSize()
void cv::v4d::nvg::detail::NVG::imageSize | ( | int | image, |
int * | w, | ||
int * | h | ||
) |
◆ initializeContext()
|
static |
◆ intersectScissor()
void cv::v4d::nvg::detail::NVG::intersectScissor | ( | float | x, |
float | y, | ||
float | w, | ||
float | h | ||
) |
◆ linearGradient()
Paint cv::v4d::nvg::detail::NVG::linearGradient | ( | float | sx, |
float | sy, | ||
float | ex, | ||
float | ey, | ||
const cv::Scalar & | icol, | ||
const cv::Scalar & | ocol | ||
) |
◆ lineCap()
void cv::v4d::nvg::detail::NVG::lineCap | ( | int | cap | ) |
◆ lineJoin()
void cv::v4d::nvg::detail::NVG::lineJoin | ( | int | join | ) |
◆ lineTo()
void cv::v4d::nvg::detail::NVG::lineTo | ( | float | x, |
float | y | ||
) |
◆ miterLimit()
void cv::v4d::nvg::detail::NVG::miterLimit | ( | float | limit | ) |
◆ moveTo()
void cv::v4d::nvg::detail::NVG::moveTo | ( | float | x, |
float | y | ||
) |
◆ pathWinding()
void cv::v4d::nvg::detail::NVG::pathWinding | ( | int | dir | ) |
◆ quadTo()
void cv::v4d::nvg::detail::NVG::quadTo | ( | float | cx, |
float | cy, | ||
float | x, | ||
float | y | ||
) |
◆ radialGradient()
Paint cv::v4d::nvg::detail::NVG::radialGradient | ( | float | cx, |
float | cy, | ||
float | inr, | ||
float | outr, | ||
const cv::Scalar & | icol, | ||
const cv::Scalar & | ocol | ||
) |
◆ radToDeg()
float cv::v4d::nvg::detail::NVG::radToDeg | ( | float | rad | ) |
◆ rect()
void cv::v4d::nvg::detail::NVG::rect | ( | float | x, |
float | y, | ||
float | w, | ||
float | h | ||
) |
◆ reset()
void cv::v4d::nvg::detail::NVG::reset | ( | ) |
◆ resetScissor()
void cv::v4d::nvg::detail::NVG::resetScissor | ( | ) |
◆ resetTransform()
void cv::v4d::nvg::detail::NVG::resetTransform | ( | ) |
◆ restore()
void cv::v4d::nvg::detail::NVG::restore | ( | ) |
◆ rotate()
void cv::v4d::nvg::detail::NVG::rotate | ( | float | angle | ) |
◆ roundedRect()
void cv::v4d::nvg::detail::NVG::roundedRect | ( | float | x, |
float | y, | ||
float | w, | ||
float | h, | ||
float | r | ||
) |
◆ roundedRectVarying()
void cv::v4d::nvg::detail::NVG::roundedRectVarying | ( | float | x, |
float | y, | ||
float | w, | ||
float | h, | ||
float | radTopLeft, | ||
float | radTopRight, | ||
float | radBottomRight, | ||
float | radBottomLeft | ||
) |
◆ save()
void cv::v4d::nvg::detail::NVG::save | ( | ) |
◆ scale()
void cv::v4d::nvg::detail::NVG::scale | ( | float | x, |
float | y | ||
) |
◆ scissor()
void cv::v4d::nvg::detail::NVG::scissor | ( | float | x, |
float | y, | ||
float | w, | ||
float | h | ||
) |
◆ skewX()
void cv::v4d::nvg::detail::NVG::skewX | ( | float | angle | ) |
◆ skewY()
void cv::v4d::nvg::detail::NVG::skewY | ( | float | angle | ) |
◆ stroke()
void cv::v4d::nvg::detail::NVG::stroke | ( | ) |
◆ strokeColor()
void cv::v4d::nvg::detail::NVG::strokeColor | ( | const cv::Scalar & | bgra | ) |
◆ strokePaint()
void cv::v4d::nvg::detail::NVG::strokePaint | ( | Paint | paint | ) |
◆ strokeWidth()
void cv::v4d::nvg::detail::NVG::strokeWidth | ( | float | size | ) |
◆ text()
float cv::v4d::nvg::detail::NVG::text | ( | float | x, |
float | y, | ||
const char * | string, | ||
const char * | end | ||
) |
◆ textAlign()
void cv::v4d::nvg::detail::NVG::textAlign | ( | int | align | ) |
◆ textBounds()
float cv::v4d::nvg::detail::NVG::textBounds | ( | float | x, |
float | y, | ||
const char * | string, | ||
const char * | end, | ||
float * | bounds | ||
) |
◆ textBox()
void cv::v4d::nvg::detail::NVG::textBox | ( | float | x, |
float | y, | ||
float | breakRowWidth, | ||
const char * | string, | ||
const char * | end | ||
) |
◆ textBoxBounds()
void cv::v4d::nvg::detail::NVG::textBoxBounds | ( | float | x, |
float | y, | ||
float | breakRowWidth, | ||
const char * | string, | ||
const char * | end, | ||
float * | bounds | ||
) |
◆ textBreakLines()
int cv::v4d::nvg::detail::NVG::textBreakLines | ( | const char * | string, |
const char * | end, | ||
float | breakRowWidth, | ||
TextRow * | rows, | ||
int | maxRows | ||
) |
◆ textGlyphPositions()
int cv::v4d::nvg::detail::NVG::textGlyphPositions | ( | float | x, |
float | y, | ||
const char * | string, | ||
const char * | end, | ||
GlyphPosition * | positions, | ||
int | maxPositions | ||
) |
◆ textLetterSpacing()
void cv::v4d::nvg::detail::NVG::textLetterSpacing | ( | float | spacing | ) |
◆ textLineHeight()
void cv::v4d::nvg::detail::NVG::textLineHeight | ( | float | lineHeight | ) |
◆ textMetrics()
void cv::v4d::nvg::detail::NVG::textMetrics | ( | float * | ascender, |
float * | descender, | ||
float * | lineh | ||
) |
◆ transform()
void cv::v4d::nvg::detail::NVG::transform | ( | float | a, |
float | b, | ||
float | c, | ||
float | d, | ||
float | e, | ||
float | f | ||
) |
◆ transformIdentity()
void cv::v4d::nvg::detail::NVG::transformIdentity | ( | float * | dst | ) |
◆ transformInverse()
int cv::v4d::nvg::detail::NVG::transformInverse | ( | float * | dst, |
const float * | src | ||
) |
◆ transformMultiply()
void cv::v4d::nvg::detail::NVG::transformMultiply | ( | float * | dst, |
const float * | src | ||
) |
◆ transformPoint()
void cv::v4d::nvg::detail::NVG::transformPoint | ( | float * | dstx, |
float * | dsty, | ||
const float * | xform, | ||
float | srcx, | ||
float | srcy | ||
) |
◆ transformPremultiply()
void cv::v4d::nvg::detail::NVG::transformPremultiply | ( | float * | dst, |
const float * | src | ||
) |
◆ transformRotate()
void cv::v4d::nvg::detail::NVG::transformRotate | ( | float * | dst, |
float | a | ||
) |
◆ transformScale()
void cv::v4d::nvg::detail::NVG::transformScale | ( | float * | dst, |
float | sx, | ||
float | sy | ||
) |
◆ transformSkewX()
void cv::v4d::nvg::detail::NVG::transformSkewX | ( | float * | dst, |
float | a | ||
) |
◆ transformSkewY()
void cv::v4d::nvg::detail::NVG::transformSkewY | ( | float * | dst, |
float | a | ||
) |
◆ transformTranslate()
void cv::v4d::nvg::detail::NVG::transformTranslate | ( | float * | dst, |
float | tx, | ||
float | ty | ||
) |
◆ translate()
void cv::v4d::nvg::detail::NVG::translate | ( | float | x, |
float | y | ||
) |
◆ updateImage()
void cv::v4d::nvg::detail::NVG::updateImage | ( | int | image, |
const unsigned char * | data | ||
) |
Friends And Related Function Documentation
◆ V4D
|
friend |
The documentation for this class was generated from the following file:
- opencv2/v4d/nvg.hpp