#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 (void) |
static void | Free (SelectionChanger *&node) |
Init | |
Bool | InitFromTag (BaseTag *targtag, PolygonObject *op=nullptr) |
Bool | InitFromSelection (BaseSelect *selection, Int32 selection_mode, PolygonObject *op=nullptr) |
Get Conversion | |
BaseSelect * | GetPointS (void) |
BaseSelect * | GetPolygonS (void) |
BaseSelect * | GetEdgeS (void) |
|
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 | ( | 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 | ( | void | ) |
Retrieves the converted selection in points mode.
BaseSelect* GetPolygonS | ( | void | ) |
Retrieves the converted selection in polygon mode.
BaseSelect* GetEdgeS | ( | void | ) |
Retrieves the converted selection in edge mode.