29 #ifndef NVXIO_RENDER_3D_HPP
30 #define NVXIO_RENDER_3D_HPP
165 virtual bool flush() = 0;
170 virtual void close() = 0;
struct _vx_image * vx_image
An opaque reference to an image.
const TargetType targetType
virtual void setOnKeyboardEventCallback(OnKeyboardEventCallback callback, void *context)=0
Sets the keyboard event callback.
virtual void setProjectionMatrix(vx_matrix projection)=0
Sets the projection matrix.
vx_float32 maxDistance
Holds the maximal distance that a point can have.
struct _vx_array * vx_array
The Array Object. Array is a strongly-typed container for other data structures.
TargetType
Defines Render3D types.
Render3D(TargetType type=Render3D::UNKNOWN_RENDER, const std::string &name="Undefined")
vx_float32 minDistance
Holds the minimal distance that a plane can have.
void(* OnMouseEventCallback)(void *context, MouseButtonEvent event, vx_uint32 x, vx_uint32 y)
Callback for mouse events.
virtual void close()=0
Closes the render.
vx_float32 maxDistance
Holds the maximal distance that a plane can have.
std::unique_ptr< Render3D > createDefaultRender3D(vx_context context, int xPos, int yPos, const std::string &title, vx_uint32 width, vx_uint32 height)
Creates Render3D.
NVIDIA VisionWorks Framework and Primitives API.
virtual void putPointCloud(vx_array points, vx_matrix model, const PointCloudStyle &style)=0
Puts the point cloud to the render.
Indicates the left mouse button has been pressed down.
char vx_char
An 8 bit ASCII character.
float vx_float32
A 32-bit float value.
Holds the point cloud style.
struct _vx_context * vx_context
An opaque reference to the implementation context.
virtual void setOnMouseEventCallback(OnMouseEventCallback callback, void *context)=0
Sets mouse event callback.
Indicates a middle mouse button has been pressed down.
Indicates the middle mouse button has been released.
virtual void disableDefaultKeyboardEventCallback()=0
Disables default keyboard event handler.
virtual void putText(const std::string &text, const nvxio::Render::TextBoxStyle &style)=0
Puts a message box on the image.
Indicates the right mouse button has been released.
virtual bool flush()=0
Renders all primitives.
virtual ~Render3D()
Destructor.
The Render interface and utility functions.
virtual vx_uint32 getHeight() const =0
Gets the height.
void(* OnKeyboardEventCallback)(void *context, vx_char key, vx_uint32 x, vx_uint32 y)
Callback for keyboard events.
Indicates the mouse has been moved.
virtual void setViewMatrix(vx_matrix view)=0
Sets view matrix.
virtual void putImage(vx_image image)=0
Puts the image to the render.
virtual void getViewMatrix(vx_matrix view) const =0
Gets view matrix.
MouseButtonEvent
Defines mouse events.
const std::string renderName
virtual void enableDefaultKeyboardEventCallback()=0
Enables the default keyboard event handler.
Indicates the left mouse button has been released.
Defines the text box parameters.
uint32_t vx_uint32
A 32-bit unsigned value.
virtual bool useDefaultKeyboardEventCallback()=0
Gets the flag indicating if the default keyboard event handler is enabled.
virtual vx_uint32 getWidth() const =0
Gets the width.
vx_float32 minDistance
Holds the minimal distance that a point can have.
virtual void setDefaultFOV(float fov)=0
Sets the field of view.
struct _vx_matrix * vx_matrix
The Matrix Object. An MxN matrix of some unit type.
virtual void putPlanes(vx_array planes, vx_matrix model, const PlaneStyle &style)=0
Puts the surface to the render.
virtual void getProjectionMatrix(vx_matrix projection) const =0
Gets the projection matrix.
Indicates the right mouse button has been pressed down.