#include <lib_selectionchanger.h>
Convenience class for changing a selection type i.e. polygon selection to edge selection. The class owns all returned selections. Must be initialized before use.
Private Member Functions | |
SelectionChanger () | |
~SelectionChanger () | |
Alloc/Free | |
static SelectionChanger * | Alloc () |
static void | Free (SelectionChanger *&node) |
Init | |
Bool | InitFromTag (BaseTag *targtag, PolygonObject *op=nullptr) |
Bool | InitFromSelection (const BaseSelect *selection, Int32 selection_mode, PolygonObject *op=nullptr) |
Get Conversion | |
BaseSelect * | GetPointS () |
BaseSelect * | GetPolygonS () |
BaseSelect * | GetEdgeS () |
|
private |
|
private |
|
static |
|
static |
Bool InitFromTag | ( | BaseTag * | targtag, |
PolygonObject * | op = nullptr |
||
) |
Initializes the selection changer from a selection tag.
[in] | targtag | The selection tag used for input. The caller owns the pointed tag. |
[in] | op | The object the tag is on. Generally required for most transformations to take place. The caller owns the pointed object. |
Bool InitFromSelection | ( | const BaseSelect * | selection, |
Int32 | selection_mode, | ||
PolygonObject * | op = nullptr |
||
) |
Initializes the selection changer from a selection object and a specific selection mode.
[in] | selection | The selection used for input. |
[in] | selection_mode | The mode of the selection: Mpoints or Mpolygons or Medges. |
[in] | op | The object the tag is on. Generally required if the selection is on a polygon object (but not on a spline object). |
BaseSelect* GetPointS | ( | ) |
Retrieves the converted selection in points mode.
BaseSelect* GetPolygonS | ( | ) |
Retrieves the converted selection in polygon mode.
BaseSelect* GetEdgeS | ( | ) |
Retrieves the converted selection in edge mode.