29 #ifndef NVXIO_RENDER_HPP
30 #define NVXIO_RENDER_HPP
36 #include <NVXIO/Export.hpp>
195 virtual void setOnKeyboardEventCallback(OnKeyboardEventCallback callback,
void* context) = 0;
202 virtual void setOnMouseEventCallback(OnMouseEventCallback callback,
void* context) = 0;
209 virtual void putImage(
vx_image image) = 0;
216 virtual void putTextViewport(
const std::string& text,
const TextBoxStyle& style) = 0;
285 virtual bool flush() = 0;
290 virtual void close() = 0;
315 virtual vx_uint32 getViewportWidth()
const = 0;
321 virtual vx_uint32 getViewportHeight()
const = 0;
430 #endif // NVXIO_RENDER_HPP
struct _vx_image * vx_image
An opaque reference to an image.
int thickness
Holds the line thickness.
Indicates the right mouse button has been pressed down.
TargetType
Defines the Render types.
float radius
Holds the radius of the feature.
uint8_t vx_uint8
An 8-bit unsigned value.
struct _vx_array * vx_array
The Array Object. Array is a strongly-typed container for other data structures.
NVXIO_EXPORT std::unique_ptr< Render > createDefaultRender(vx_context context, const std::string &title, vx_uint32 width, vx_uint32 height, vx_uint32 format=VX_DF_IMAGE_RGBX, bool doScale=true, bool fullScreen=nvxio::Application::get().getFullScreenFlag())
Render factory that creates UI render with a window by default.
bool isHalfTransparent
Holds a flag indicating whether the detected object should be filled with half-transparent color...
TargetType getTargetType() const
Gets the target type.
The Application interface.
The 2D Coordinates structure.
Defines the features parameters.
const std::string renderName
char vx_char
An 8 bit ASCII character.
struct _vx_context * vx_context
An opaque reference to the implementation context.
Indicates the middle mouse button has been released.
std::string label
Holds the text label.
int thickness
Holds the thickness of the line.
Indicates a window render.
A single plane of 32-bit pixel as 4 interleaved 8-bit units of R then G then B data, then a don't care byte. This uses the BT709 full range by default.
NVXIO_EXPORT std::unique_ptr< Render > createImageRender(vx_context context, const std::string &path, vx_uint32 width, vx_uint32 height, vx_uint32 format=VX_DF_IMAGE_RGBX)
Creates a render for image sequence.
const TargetType targetType
Indicates a render for video writing.
std::string getRenderName() const
Gets the render name.
NVXIO_EXPORT std::unique_ptr< Render > createWindowRender(vx_context context, const std::string &title, vx_uint32 width, vx_uint32 height, vx_uint32 format=VX_DF_IMAGE_RGBX, bool doScale=true, bool fullscreen=nvxio::Application::get().getFullScreenFlag())
Creates a Window render.
vx_coordinates2d_t origin
Holds the coordinates of the top-left corner of the box.
The rectangle data structure that is shared with the users.
The top level OpenVX Header.
NVXIO_EXPORT std::unique_ptr< Render > createVideoRender(vx_context context, const std::string &path, vx_uint32 width, vx_uint32 height, vx_uint32 format=VX_DF_IMAGE_RGBX)
Creates a render for writing video.
Defines motion field style.
Defines the text box parameters.
Indicates the left mouse button has been pressed down.
Indicates the left mouse button has been released.
uint32_t vx_uint32
A 32-bit unsigned value.
Render(TargetType type=Render::UNKNOWN_RENDER, std::string name="Undefined")
Indicates the right mouse button has been released.
virtual ~Render()
Destructor.
Defines the detected object's rectangle style.
static Application & get()
Returns the reference to the object.
Indicates a middle mouse button has been pressed down.
vx_uint8 radius
Holds the radius of the corners.
MouseButtonEvent
Defines mouse events.
vx_uint8 thickness
Holds the line thickness.