Loading...
Searching...
No Matches
cv::v4d::detail::NanoVGContext Class Reference

#include <opencv2/v4d/detail/nanovgcontext.hpp>

Inheritance diagram for cv::v4d::detail::NanoVGContext:
cv::v4d::detail::V4DContext

Classes

class  Scope
 

Public Member Functions

 NanoVGContext (cv::Ptr< FrameBufferContext > fbContext)
 
virtual ~NanoVGContext ()
 
virtual void execute (std::function< void()> fn) override
 
cv::Ptr< FrameBufferContextfbCtx ()
 
- Public Member Functions inherited from cv::v4d::detail::V4DContext
virtual ~V4DContext ()
 
virtual void execute (std::function< void()> fn)=0
 

Detailed Description

Used to setup a nanovg context

Constructor & Destructor Documentation

◆ NanoVGContext()

cv::v4d::detail::NanoVGContext::NanoVGContext ( cv::Ptr< FrameBufferContext fbContext)

Creates a NanoVGContext

Parameters
v4dThe V4D object used in conjunction with this context
contextThe native NVGContext
fbContextThe framebuffer context

◆ ~NanoVGContext()

virtual cv::v4d::detail::NanoVGContext::~NanoVGContext ( )
inlinevirtual

Member Function Documentation

◆ execute()

virtual void cv::v4d::detail::NanoVGContext::execute ( std::function< void()>  fn)
overridevirtual

Execute function object fn inside a nanovg context. The context takes care of setting up opengl and nanovg states. A function object passed like that can use the functions in cv::viz::nvg.

Parameters
fnA function that is passed the size of the framebuffer and performs drawing using cv::viz::nvg

Implements cv::v4d::detail::V4DContext.

◆ fbCtx()

cv::Ptr< FrameBufferContext > cv::v4d::detail::NanoVGContext::fbCtx ( )

The documentation for this class was generated from the following file: