|
|
VisionWorks Toolkit ReferenceApril 8, 2016 | 1.4 Release |
Data Structures | |
| struct | CircleStyle |
| Defines circle style. More... | |
| struct | DetectedObjectStyle |
| Defines the detected object's rectangle style. More... | |
| struct | FeatureStyle |
| Defines the features parameters. More... | |
| struct | LineStyle |
| Defines line style. More... | |
| struct | MotionFieldStyle |
| Defines motion field style. More... | |
| struct | TextBoxStyle |
| Defines the text box parameters. More... | |
Public Types | |
| enum | MouseButtonEvent { LeftButtonDown, LeftButtonUp, MiddleButtonDown, MiddleButtonUp, RightButtonDown, RightButtonUp, MouseMove } |
| Defines mouse events. More... | |
| typedef void(* | OnKeyboardEventCallback )(void *context, vx_char key, vx_uint32 x, vx_uint32 y) |
| Callback for keyboard events. More... | |
| typedef void(* | OnMouseEventCallback )(void *context, MouseButtonEvent event, vx_uint32 x, vx_uint32 y) |
| Callback for mouse events. More... | |
| enum | TargetType { UNKNOWN_RENDER, WINDOW_RENDER, VIDEO_RENDER, IMAGE_RENDER } |
| Defines the Render types. More... | |
Public Member Functions | |
| virtual void | close ()=0 |
| Closes the render. More... | |
| virtual bool | flush ()=0 |
| Renders all primitives. More... | |
| std::string | getRenderName () const |
| Gets the render name. More... | |
| TargetType | getTargetType () const |
| Gets the target type. More... | |
| virtual vx_uint32 | getViewportHeight () const =0 |
| Gets the viewport height. More... | |
| virtual vx_uint32 | getViewportWidth () const =0 |
| Gets the viewport width. More... | |
| virtual void | putArrows (vx_array old_points, vx_array new_points, const LineStyle &style)=0 |
| Puts arrows on the image. More... | |
| virtual void | putCircles (vx_array circles, const CircleStyle &style)=0 |
| Puts circles on the image. More... | |
| virtual void | putConvexPolygon (vx_array vertices, const LineStyle &style)=0 |
| Puts a convex polygon on the image. More... | |
| virtual void | putFeatures (vx_array location, const FeatureStyle &style)=0 |
| Puts features on the image. More... | |
| virtual void | putFeatures (vx_array location, vx_array styles)=0 |
| Puts features on the image. More... | |
| virtual void | putImage (vx_image image)=0 |
| Puts the image to the render. More... | |
| virtual void | putLines (vx_array lines, const LineStyle &style)=0 |
| Puts lines on the image. More... | |
| virtual void | putMotionField (vx_image field, const MotionFieldStyle &style)=0 |
| Puts motion field on the image. More... | |
| virtual void | putObjectLocation (const vx_rectangle_t &location, const DetectedObjectStyle &style)=0 |
| Puts object location on the image. More... | |
| virtual void | putTextViewport (const std::string &text, const TextBoxStyle &style)=0 |
| Puts a message box on the viewport. More... | |
| virtual void | setOnKeyboardEventCallback (OnKeyboardEventCallback callback, void *context)=0 |
| Sets the keyboard event callback. More... | |
| virtual void | setOnMouseEventCallback (OnMouseEventCallback callback, void *context)=0 |
| Sets mouse event callback. More... | |
| virtual | ~Render () |
| Destructor. More... | |
Protected Member Functions | |
| Render (TargetType type=Render::UNKNOWN_RENDER, std::string name="Undefined") | |
Protected Attributes | |
| const std::string | renderName |
| const TargetType | targetType |
| typedef void(* nvxio::Render::OnKeyboardEventCallback)(void *context, vx_char key, vx_uint32 x, vx_uint32 y) |
Callback for keyboard events.
| [in] | context | A pointer to data to be passed to the callback. |
| [in] | key | Specifies the keyboard key that corresponds to the event. |
| [in] | x | Specifies the x-coordinate of the mouse position. |
| [in] | y | Specifies the y-coordinate of the mouse position. |
Definition at line 179 of file Render.hpp.
| typedef void(* nvxio::Render::OnMouseEventCallback)(void *context, MouseButtonEvent event, vx_uint32 x, vx_uint32 y) |
Callback for mouse events.
| [in] | context | A pointer to data to be passed to the callback. |
| [in] | event | Specifies the mouse event. |
| [in] | x | Specifies the x-coordinate of the mouse position. |
| [in] | y | Specifies the y-coordinate of the mouse position. |
Definition at line 188 of file Render.hpp.
Defines mouse events.
Definition at line 161 of file Render.hpp.
Defines the Render types.
| Enumerator | |
|---|---|
| UNKNOWN_RENDER |
Indicates a stub render. |
| WINDOW_RENDER |
Indicates a window render. |
| VIDEO_RENDER |
Indicates a render for video writing. |
| IMAGE_RENDER |
Indicates a render for image writing. |
Definition at line 80 of file Render.hpp.
|
inlinevirtual |
Destructor.
Definition at line 326 of file Render.hpp.
|
inlineprotected |
Definition at line 331 of file Render.hpp.
|
pure virtual |
Closes the render.
|
pure virtual |
Renders all primitives.
true if rendering procedure is successful; returns false if render is not initialized properly or has been closed by the user.
|
inline |
|
inline |
Gets the target type.
Definition at line 297 of file Render.hpp.
|
pure virtual |
Gets the viewport height.
|
pure virtual |
Gets the viewport width.
|
pure virtual |
Puts arrows on the image.
| [in] | old_points | Specifies an array of arrow start points. |
| [in] | new_points | Specifies an array of arrow end points. |
| [in] | style | Specifies the style of the arrows's lines. |
|
pure virtual |
Puts circles on the image.
| [in] | circles | Specifies an array of circles. Each circle is encoded as a nvx_point3f_t (x, y, radius). |
| [in] | style | A reference to the style of the object location. |
|
pure virtual |
Puts a convex polygon on the image.
| [in] | vertices | Specifies an array of poligon's vertices (vx_coordinates2d_t). |
| [in] | style | A reference to the style of the polygon. |
|
pure virtual |
Puts features on the image.
| [in] | location | Specifies an array of vx_keypoint_t, nvx_point2f_t or nvx_keypointf_t structures. |
| [in] | style | A reference to the style for the features. |
Puts features on the image.
| [in] | location | Specifies an array of vx_keypoint_t, nvx_point2f_t or nvx_keypointf_t structures. |
| [in] | styles | A reference to the array of Render::FeatureStyle for the features. |
|
pure virtual |
Puts the image to the render.
| [in] | image | Specifies the image. |
Puts lines on the image.
| [in] | lines | Specifies an array of lines. Each line is encoded as nvx_point4f_t (x1, y1, x2, y2). |
| [in] | style | A reference to the style of the lines. |
|
pure virtual |
Puts motion field on the image.
| [in] | field | Specfies a 2-channel image (NVX_DF_IMAGE_2F32), each pixel corresponding to vector of motion. |
| [in] | style | A reference to the style of the motion field. |
|
pure virtual |
Puts object location on the image.
| [in] | location | A reference to the rectangle. |
| [in] | style | A reference to the style of the object location. |
|
pure virtual |
Puts a message box on the viewport.
| [in] | text | A reference to the text of the message. |
| [in] | style | A reference to the style of the message box. |
|
pure virtual |
Sets the keyboard event callback.
| [in] | callback | Specifies the callback to set. |
| [in] | context | A pointer to data to be passed to the callback. |
|
pure virtual |
Sets mouse event callback.
| [in] | callback | Callback. |
| [in] | context | A pointer to data to be passed to the callback. |
|
protected |
Definition at line 337 of file Render.hpp.
|
protected |
Definition at line 336 of file Render.hpp.