29 #ifndef NVXIO_RENDER_HPP
30 #define NVXIO_RENDER_HPP
258 virtual bool flush() = 0;
263 virtual void close() = 0;
370 #endif // NVXIO_RENDER_HPP
struct _vx_image * vx_image
An opaque reference to an image.
vx_uint8 color[4]
Holds the line color in RGBA format.
int thickness
Holds the line thickness.
Indicates the right mouse button has been pressed down.
virtual vx_uint32 getHeight() const =0
Gets the height.
TargetType
Defines the Render types.
virtual void putConvexPoligon(vx_array vertices, const LineStyle &style)=0
Puts a convex polygon on the image.
virtual void putFeatures(vx_array location, const FeatureStyle &style)=0
Puts features on the image.
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.
virtual bool flush()=0
Renders all primitives.
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 2D Coordinates structure.
Indicates the mouse has been moved.
Defines the features parameters.
const std::string renderName
NVIDIA VisionWorks Framework and Primitives API.
char vx_char
An 8 bit ASCII character.
vx_uint8 bgcolor[4]
Holds the background color of the box.
struct _vx_context * vx_context
An opaque reference to the implementation context.
void(* OnMouseEventCallback)(void *context, MouseButtonEvent event, vx_uint32 x, vx_uint32 y)
Callback for mouse events.
Indicates the middle mouse button has been released.
virtual vx_uint32 getWidth() const =0
Gets the width.
virtual void setOnMouseEventCallback(OnMouseEventCallback callback, void *context)=0
Sets mouse event callback.
std::string label
Holds the text label.
void(* OnKeyboardEventCallback)(void *context, vx_char key, vx_uint32 x, vx_uint32 y)
Callback for keyboard events.
virtual void putMotionField(vx_image field, const MotionFieldStyle &style)=0
Puts motion field on the image.
Indicates a render for image writing.
int thickness
Holds the thickness of the line.
vx_uint8 color[4]
Holds the text color in RGBA format.
vx_uint8 color[4]
Holds the feature color in RGBA format.
virtual void close()=0
Closes the render.
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.
virtual void putImage(vx_image image)=0
Puts the image to the render.
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.
virtual void putText(const std::string &text, const TextBoxStyle &style)=0
Puts a message box on the image.
virtual void putCircles(vx_array circles, const CircleStyle &style)=0
Puts circles on the image.
const TargetType targetType
Indicates a render for video writing.
std::string getRenderName() const
Gets the render name.
virtual void putObjectLocation(const vx_rectangle_t &location, const DetectedObjectStyle &style)=0
Puts object location on the image.
vx_uint8 color[4]
Holds the line color in RGBA format.
vx_coordinates2d_t origin
Holds the coordinates of the top-left corner of the box.
vx_uint8 color[4]
Holds the color of the motion field in RGBA format.
The rectangle data structure that is shared with the users.
The top level OpenVX Header.
Defines motion field style.
Defines the text box parameters.
Indicates the left mouse button has been pressed down.
virtual void putArrows(vx_array old_points, vx_array new_points, const LineStyle &style)=0
Puts arrows on the image.
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")
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)
Creates a Window render.
Indicates the right mouse button has been released.
virtual ~Render()
Destructor.
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)
Render factory that creates UI render with a window by default.
Defines the detected object's rectangle style.
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.
virtual void putLines(vx_array lines, const LineStyle &style)=0
Puts lines on the image.
Indicates a middle mouse button has been pressed down.
MouseButtonEvent
Defines mouse events.
virtual void setOnKeyboardEventCallback(OnKeyboardEventCallback callback, void *context)=0
Sets the keyboard event callback.
vx_uint8 thickness
Holds the line thickness.
vx_uint8 color[4]
Holds the line color in RGBA format.