The interface class representing an attribute to render triangle based geometries in wireframe style. More...
#include <iwireframe_rendering_style.h>
Inherits mi::base::Interface_declare< 0x3150e667, ... >.
Public Types | |
enum | Wireframe_style { WIREFRAME_STYLE_OUTLINE = 1 , WIREFRAME_STYLE_WIREFRAME = 2 } |
Wireframe rendering styles. More... | |
Public Member Functions | |
virtual void | set_wireframe_style (Wireframe_style style)=0 |
Set the wireframe style to be used. More... | |
virtual Wireframe_style | get_wireframe_style () const =0 |
Get the current wireframe style. More... | |
virtual void | set_wireframe_width (mi::Float32 width)=0 |
Set the outline/wireframe width to be used, specified in object units. More... | |
virtual mi::Float32 | get_wireframe_width () const =0 |
Get the current outline/wireframe width, specified in object units. More... | |
virtual void | set_wireframe_color (const mi::math::Color_struct &color)=0 |
Set the outline/wireframe color to be used. More... | |
virtual mi::math::Color_struct | get_wireframe_color () const =0 |
Get the current outline/wireframe color. More... | |
The interface class representing an attribute to render triangle based geometries in wireframe style.
The class provides two different styles: outline and wireframe.
In outline style, the visible edges of the geometry will be rendered as a thin outline on top of the geometry with a given width and color.
In wireframe style, only the visible edges will be rendered as a thin wireframe model, skipping completely the triangles of the geometry model. The wireframe will use a given width and color.
By default, all edges of the geometry are visible. However, edge visibility can be specified per triangle for geometric types that support triangle flag data. (See, for example, the ITriangle_mesh class for details.)
|
pure virtual |
Get the current outline/wireframe color.
|
pure virtual |
Get the current wireframe style.
|
pure virtual |
Get the current outline/wireframe width, specified in object units.
|
pure virtual |
Set the outline/wireframe color to be used.
[in] | color | The outline/wireframe color. |
|
pure virtual |
Set the wireframe style to be used.
[in] | style | The wireframe style. |
|
pure virtual |
Set the outline/wireframe width to be used, specified in object units.
[in] | width | The outline/wireframe width. |