Icons are common means for annotating a 3D scene using images. More...
#include <iicon.h>
Inherits mi::base::Interface_declare< 0xfea64c6d, ... >.
Public Member Functions | |
virtual void | set_geometry (const mi::math::Vector_struct< mi::Float32, 3 > &position, const mi::math::Vector_struct< mi::Float32, 2 > &right_vector, const mi::math::Vector_struct< mi::Float32, 2 > &up_vector, mi::Float32 height, mi::Float32 width=-1.0f)=0 |
The position of the icon is defined in its local coordinate system by the anchor point that lies inside the plane that the icon lies in and defines the icon's lower left corner. More... | |
virtual void | get_geometry (mi::math::Vector_struct< mi::Float32, 3 > &position, mi::math::Vector_struct< mi::Float32, 2 > &right_vector, mi::math::Vector_struct< mi::Float32, 2 > &up_vector, mi::Float32 &height, mi::Float32 &width) const =0 |
The position of the icon is defined in its local coordinate system by the anchor point that lies inside plane that the icon lies in and defines the icon's lower left corner. More... | |
Icons are common means for annotating a 3D scene using images.
The 2D icon is defined in image space and always faces towards the viewer, similar to a billboard; the label is parallel to the view plane. The size is defined in 2D image space (screen space) in pixel.
|
pure virtual |
The position of the icon is defined in its local coordinate system by the anchor point that lies inside plane that the icon lies in and defines the icon's lower left corner.
The orientation of the icon is defined by a right and an up vector. Both these vectors are defined in 2D image space.
[out] | position | The position defines the lower left corner of the icon. |
[out] | right_vector | The right vector of the icon together with the up vector defines the orientation of the icon in 2D space. |
[out] | up_vector | The up vector of the icon together with the right vector defines the orientation of the icon in 2D space. |
[in] | height | The height of the icon along the up vector in image space, pixel. |
[in] | width | The width of the icon along the right vector in image space, pixel. |
|
pure virtual |
The position of the icon is defined in its local coordinate system by the anchor point that lies inside the plane that the icon lies in and defines the icon's lower left corner.
The orientation of the icon is defined by a right and an up vector. Both these vectors are defined in 2D image space.
[in] | position | The position defines the lower left corner of the icon. |
[in] | right_vector | The right vector of the icon together with the up vector defines the orientation of the icon in 2D image space. |
[in] | up_vector | The up vector of the icon together with the right vector defines the orientation of the icon in 2D image space. |
[in] | height | The height of the icon along the up vector in image space, pixel. |
[in] | width | The width of the icon along the right vector in image space, pixel. If the width is not set (or set a negative value) then the width of the icon will be computed by the rendering system. |