NVIDIA IndeX provides scene elements that enable annotating 3D scenes or implementing 3D user-interface widgets. More...
#include <iellipse.h>
Inherits mi::base::Interface_declare< 0x570a1c6e, ... >.
Public Types | |
enum | Fill_style { FILL_EMPTY = 0 , FILL_SOLID = 1 } |
The inner part of an ellipse is defined to be empty or can be filled. More... | |
Public Member Functions | |
virtual void | set_geometry (const mi::math::Vector_struct< mi::Float32, 3 > ¢er, mi::Float32 radius_x, mi::Float32 radius_y, mi::Float32 rotation=0.f)=0 |
An ellipse is defined by its center and two radii plus a rotation in screen space. More... | |
virtual void | get_geometry (mi::math::Vector_struct< mi::Float32, 3 > ¢er, mi::Float32 &radius_x, mi::Float32 &radius_y, mi::Float32 &rotation) const =0 |
An ellipse is defined by its center and two radii plus a rotation in screen space. More... | |
virtual void | set_outline_style (const mi::math::Color_struct &line_color, mi::Float32 line_width=1.5f)=0 |
An ellipse's outline can have a style defined by the line color and a line width. More... | |
virtual void | get_outline_style (mi::math::Color_struct &line_color, mi::Float32 &line_width) const =0 |
An ellipse's outline can have a style defined by the line color and a line width. More... | |
virtual void | set_fill_style (const mi::math::Color_struct &fill_color, Fill_style fill_style)=0 |
The inner part of a ellipse can be filled using a fill color or may be empty. More... | |
virtual void | get_fill_style (mi::math::Color_struct &fill_color, Fill_style &fill_style) const =0 |
The inner part of a ellipse can be filled using a fill color or may be empty. More... | |
NVIDIA IndeX provides scene elements that enable annotating 3D scenes or implementing 3D user-interface widgets.
The annotations and widgets should be composed as part of the scene description. Such additional scene elements, which include for instance the following 2D ellipse, integrate seamlessly into the regular 3D large-scale data rendering, i.e., the depth-correct rendering of all opaque of semi-transparent elements is ensured by NVIDIA IndeX rendering. A 2D ellipse represents a screen-space shape commonly used to annotating a scene or to build widgets. The ellipse is defined in image space, i.e., an ellipse is parallel to the view plane and always faces towards the viewer.
|
pure virtual |
The inner part of a ellipse can be filled using a fill color or may be empty.
The following method allows getting the fill style and sets the solid fill color.
[out] | fill_color | The color of the ellipse's fill color. |
[out] | fill_style | The ellipse's fill style. |
|
pure virtual |
An ellipse is defined by its center and two radii plus a rotation in screen space.
The radii are always defined in screen space and given in pixels while the center of an ellipse is defined by a 3D coordinate. The rotation is a counter clock-wise rotation in screen space defined by an angle in radians. The following method gets the center of the ellipse as well as its screen space radii and rotation.
[out] | center | The center position of the ellipse defined in the ellipses local 3D space. |
[out] | radius_x | The radius in pixels along ellipse's x (horizontal) axis. |
[out] | radius_y | The radius in pixels along ellipse's y (vertical) axis. |
[out] | rotation | The rotation angle in radians around it's center counter clock wise. |
|
pure virtual |
An ellipse's outline can have a style defined by the line color and a line width.
The following method gets the line color and the width in screen space.
[out] | line_color | The color of the ellipse's outline. |
[out] | line_width | The width of the ellipse's outline defined in pixels. |
|
pure virtual |
The inner part of a ellipse can be filled using a fill color or may be empty.
The following method allows setting the fill style and sets the solid fill color.
[in] | fill_color | The color of the ellipse's fill color. |
[in] | fill_style | The ellipse's fill style. |
|
pure virtual |
An ellipse is defined by its center and two radii plus a rotation in screen space.
The radii are always defined in screen space and given in pixels while the center of an ellipse is defined by a 3D coordinate. The rotation is a counter clock-wise rotation in screen space defined by an angle in radians. The following method sets the center of the ellipse as well as its screen space radii and rotation.
[in] | center | The center position of the ellipse defined in the ellipses local 3D space. |
[in] | radius_x | The radius in pixels along ellipse's x (horizontal) axis. |
[in] | radius_y | The radius in pixels along ellipse's y (vertical) axis. |
[in] | rotation | The rotation angle in radians around it's center counter clock wise. |
|
pure virtual |
An ellipse's outline can have a style defined by the line color and a line width.
The following method sets the line color and the width in screen space.
[in] | line_color | The color of the ellipse's outline. |
[in] | line_width | The width of the ellipse's outline defined in pixels. |