Loading...
Searching...
No Matches
cv::v4d::nvg Namespace Reference

Namespaces

namespace  detail
 

Classes

struct  GlyphPosition
 
struct  Paint
 
struct  TextRow
 

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 clear (const cv::Scalar &bgra=cv::Scalar(0, 0, 0, 255))
 
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 &color)
 
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)
 
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)
 

Detailed Description

In general please refer to https://github.com/memononen/nanovg/blob/master/src/nanovg.h for reference.

Function Documentation

◆ addFallbackFont()

int cv::v4d::nvg::addFallbackFont ( const char *  baseFont,
const char *  fallbackFont 
)

◆ addFallbackFontId()

int cv::v4d::nvg::addFallbackFontId ( int  baseFont,
int  fallbackFont 
)

A forward to nvgAddFallbackFontId. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h

◆ arc()

void cv::v4d::nvg::arc ( float  cx,
float  cy,
float  r,
float  a0,
float  a1,
int  dir 
)

◆ arcTo()

void cv::v4d::nvg::arcTo ( float  x1,
float  y1,
float  x2,
float  y2,
float  radius 
)

◆ beginPath()

void cv::v4d::nvg::beginPath ( )

◆ bezierTo()

void cv::v4d::nvg::bezierTo ( float  c1x,
float  c1y,
float  c2x,
float  c2y,
float  x,
float  y 
)

◆ boxGradient()

Paint cv::v4d::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::circle ( float  cx,
float  cy,
float  r 
)

◆ clear()

void cv::v4d::nvg::clear ( const cv::Scalar bgra = cv::Scalar(0, 0, 0, 255))

◆ closePath()

void cv::v4d::nvg::closePath ( )

◆ createFont()

int cv::v4d::nvg::createFont ( const char *  name,
const char *  filename 
)

◆ createFontMem()

int cv::v4d::nvg::createFontMem ( const char *  name,
unsigned char *  data,
int  ndata,
int  freeData 
)

◆ createImage()

int cv::v4d::nvg::createImage ( const char *  filename,
int  imageFlags 
)

◆ createImageMem()

int cv::v4d::nvg::createImageMem ( int  imageFlags,
unsigned char *  data,
int  ndata 
)

◆ createImageRGBA()

int cv::v4d::nvg::createImageRGBA ( int  w,
int  h,
int  imageFlags,
const unsigned char *  data 
)

◆ currentTransform()

void cv::v4d::nvg::currentTransform ( float *  xform)

A forward to nvgCurrentTransform. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h

◆ degToRad()

float cv::v4d::nvg::degToRad ( float  deg)

◆ deleteImage()

void cv::v4d::nvg::deleteImage ( int  image)

◆ ellipse()

void cv::v4d::nvg::ellipse ( float  cx,
float  cy,
float  rx,
float  ry 
)

◆ fill()

void cv::v4d::nvg::fill ( )

◆ fillColor()

void cv::v4d::nvg::fillColor ( const cv::Scalar color)

◆ fillPaint()

void cv::v4d::nvg::fillPaint ( Paint  paint)

◆ findFont()

int cv::v4d::nvg::findFont ( const char *  name)

◆ fontBlur()

void cv::v4d::nvg::fontBlur ( float  blur)

◆ fontFace()

void cv::v4d::nvg::fontFace ( const char *  font)

◆ fontFaceId()

void cv::v4d::nvg::fontFaceId ( int  font)

◆ fontSize()

void cv::v4d::nvg::fontSize ( float  size)

◆ globalAlpha()

void cv::v4d::nvg::globalAlpha ( float  alpha)

◆ imagePattern()

Paint cv::v4d::nvg::imagePattern ( float  ox,
float  oy,
float  ex,
float  ey,
float  angle,
int  image,
float  alpha 
)

◆ imageSize()

void cv::v4d::nvg::imageSize ( int  image,
int *  w,
int *  h 
)

◆ intersectScissor()

void cv::v4d::nvg::intersectScissor ( float  x,
float  y,
float  w,
float  h 
)

A forward to nvgIntersectScissor. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h

◆ linearGradient()

Paint cv::v4d::nvg::linearGradient ( float  sx,
float  sy,
float  ex,
float  ey,
const cv::Scalar icol,
const cv::Scalar ocol 
)

◆ lineCap()

void cv::v4d::nvg::lineCap ( int  cap)

◆ lineJoin()

void cv::v4d::nvg::lineJoin ( int  join)

◆ lineTo()

void cv::v4d::nvg::lineTo ( float  x,
float  y 
)

◆ miterLimit()

void cv::v4d::nvg::miterLimit ( float  limit)

◆ moveTo()

void cv::v4d::nvg::moveTo ( float  x,
float  y 
)

◆ pathWinding()

void cv::v4d::nvg::pathWinding ( int  dir)

◆ quadTo()

void cv::v4d::nvg::quadTo ( float  cx,
float  cy,
float  x,
float  y 
)

◆ radialGradient()

Paint cv::v4d::nvg::radialGradient ( float  cx,
float  cy,
float  inr,
float  outr,
const cv::Scalar icol,
const cv::Scalar ocol 
)

◆ radToDeg()

float cv::v4d::nvg::radToDeg ( float  rad)

◆ rect()

void cv::v4d::nvg::rect ( float  x,
float  y,
float  w,
float  h 
)

◆ reset()

void cv::v4d::nvg::reset ( )

◆ resetScissor()

void cv::v4d::nvg::resetScissor ( )

◆ resetTransform()

void cv::v4d::nvg::resetTransform ( )

◆ restore()

void cv::v4d::nvg::restore ( )

◆ rotate()

void cv::v4d::nvg::rotate ( float  angle)

◆ roundedRect()

void cv::v4d::nvg::roundedRect ( float  x,
float  y,
float  w,
float  h,
float  r 
)

◆ roundedRectVarying()

void cv::v4d::nvg::roundedRectVarying ( float  x,
float  y,
float  w,
float  h,
float  radTopLeft,
float  radTopRight,
float  radBottomRight,
float  radBottomLeft 
)

A forward to nvgRoundedRectVarying. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h

◆ save()

void cv::v4d::nvg::save ( )

◆ scale()

void cv::v4d::nvg::scale ( float  x,
float  y 
)

◆ scissor()

void cv::v4d::nvg::scissor ( float  x,
float  y,
float  w,
float  h 
)

◆ skewX()

void cv::v4d::nvg::skewX ( float  angle)

◆ skewY()

void cv::v4d::nvg::skewY ( float  angle)

◆ stroke()

void cv::v4d::nvg::stroke ( )

◆ strokeColor()

void cv::v4d::nvg::strokeColor ( const cv::Scalar bgra)
 A forward to nvgShapeAntiAlias. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h
‍/

CV_EXPORTS void shapeAntiAlias(int enabled); /*! A forward to nvgStrokeColor. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h

◆ strokePaint()

void cv::v4d::nvg::strokePaint ( Paint  paint)

◆ strokeWidth()

void cv::v4d::nvg::strokeWidth ( float  size)

◆ text()

float cv::v4d::nvg::text ( float  x,
float  y,
const char *  string,
const char *  end 
)

◆ textAlign()

void cv::v4d::nvg::textAlign ( int  align)

◆ textBounds()

float cv::v4d::nvg::textBounds ( float  x,
float  y,
const char *  string,
const char *  end,
float *  bounds 
)

◆ textBox()

void cv::v4d::nvg::textBox ( float  x,
float  y,
float  breakRowWidth,
const char *  string,
const char *  end 
)

◆ textBoxBounds()

void cv::v4d::nvg::textBoxBounds ( float  x,
float  y,
float  breakRowWidth,
const char *  string,
const char *  end,
float *  bounds 
)

◆ textBreakLines()

int cv::v4d::nvg::textBreakLines ( const char *  string,
const char *  end,
float  breakRowWidth,
TextRow rows,
int  maxRows 
)

◆ textGlyphPositions()

int cv::v4d::nvg::textGlyphPositions ( float  x,
float  y,
const char *  string,
const char *  end,
GlyphPosition positions,
int  maxPositions 
)

A forward to nvgTextGlyphPositions. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h

◆ textLetterSpacing()

void cv::v4d::nvg::textLetterSpacing ( float  spacing)

A forward to nvgTextLetterSpacing. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h

◆ textLineHeight()

void cv::v4d::nvg::textLineHeight ( float  lineHeight)

◆ textMetrics()

void cv::v4d::nvg::textMetrics ( float *  ascender,
float *  descender,
float *  lineh 
)

◆ transform()

void cv::v4d::nvg::transform ( float  a,
float  b,
float  c,
float  d,
float  e,
float  f 
)

◆ transformIdentity()

void cv::v4d::nvg::transformIdentity ( float *  dst)

A forward to nvgTransformIdentity. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h

◆ transformInverse()

int cv::v4d::nvg::transformInverse ( float *  dst,
const float *  src 
)

A forward to nvgTransformInverse. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h

◆ transformMultiply()

void cv::v4d::nvg::transformMultiply ( float *  dst,
const float *  src 
)

A forward to nvgTransformMultiply. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h

◆ transformPoint()

void cv::v4d::nvg::transformPoint ( float *  dstx,
float *  dsty,
const float *  xform,
float  srcx,
float  srcy 
)

◆ transformPremultiply()

void cv::v4d::nvg::transformPremultiply ( float *  dst,
const float *  src 
)

A forward to nvgTransformPremultiply. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h

◆ transformRotate()

void cv::v4d::nvg::transformRotate ( float *  dst,
float  a 
)

◆ transformScale()

void cv::v4d::nvg::transformScale ( float *  dst,
float  sx,
float  sy 
)

◆ transformSkewX()

void cv::v4d::nvg::transformSkewX ( float *  dst,
float  a 
)

◆ transformSkewY()

void cv::v4d::nvg::transformSkewY ( float *  dst,
float  a 
)

◆ transformTranslate()

void cv::v4d::nvg::transformTranslate ( float *  dst,
float  tx,
float  ty 
)

A forward to nvgTransformTranslate. See https://github.com/memononen/nanovg/blob/master/src/nanovg.h

◆ translate()

void cv::v4d::nvg::translate ( float  x,
float  y 
)

◆ updateImage()

void cv::v4d::nvg::updateImage ( int  image,
const unsigned char *  data 
)