Classes |
|
class | C4DObjectList |
Macros |
|
#define | LIBRARY_OBJECTLIST |
函数 |
|
Bool | SelectionListCreate ( BaseDocument *doc, BaseObject *parent, BaseDraw *bd, Float mx, Float my, LassoSelection *ls, C4DObjectList *list, Bool use_selection_filter=true, Bool use_display_filter=true) |
Bool | FilteredSelectionListCreate ( BaseDocument *doc, AtomArray *arr, BaseDraw *bd, Float mx, Float my, LassoSelection *ls, C4DObjectList *list, Bool use_selection_filter=true, Bool use_display_filter=true) |
Int32 | SelectionListShowMenu ( BaseDocument *doc, Float screenx, Float screeny, C4DObjectList *list) |
#define LIBRARY_OBJECTLIST |
Editor Tools / C4DObjectList library ID.
Bool SelectionListCreate | ( | BaseDocument * | doc , |
BaseObject * | parent , | ||
BaseDraw * | bd , | ||
Float | mx , | ||
Float | my , | ||
LassoSelection * | ls , | ||
C4DObjectList * | list , | ||
Bool |
use_selection_filter
=
true
,
|
||
Bool |
use_display_filter
=
true
|
||
) |
Creates a valid object list for the given coordinate ( mx , my ) and specific base draw by adding objects to the provided list.
[in] | doc | The document. The caller owns the pointed document. |
[in] | parent |
An optional parent object or
nullptr
. The caller owns the pointed object.
When this is provided the search is limited to the parent and its descendants. |
[in] | bd | The base draw for the search. The caller owns the pointed base draw. |
[in] | mx | The screen X coordinate. |
[in] | my | The screen Y coordinate. |
[in] | ls |
An optional initialized lasso selection object or
nullptr
. The caller owns the pointed object.
When this is provided the search is extended to include all objects that are within the lasso selection. |
[in,out] | list | The list to fill. The found objects are sorted by Z distance so that the first object is the closest. The caller owns the pointed list. |
[in] | use_selection_filter | 使用 Cinema 4D 's selection filter. |
[in] | use_display_filter | 使用 Cinema 4D 's display filter. |
Bool FilteredSelectionListCreate | ( | BaseDocument * | doc , |
AtomArray * | arr , | ||
BaseDraw * | bd , | ||
Float | mx , | ||
Float | my , | ||
LassoSelection * | ls , | ||
C4DObjectList * | list , | ||
Bool |
use_selection_filter
=
true
,
|
||
Bool |
use_display_filter
=
true
|
||
) |
Creates a valid object list for a number of objects included in arr for the given coordinate ( mx , my ) for a specific base draw by adding objects to the provided list.
[in] | doc | The document. The caller owns the pointed document. |
[in] | arr | The array of objects to limit the search. The caller owns the pointed array. |
[in] | bd | The base draw for the search. The caller owns the pointed base draw. |
[in] | mx | The screen X coordinate. |
[in] | my | The screen Y coordinate. |
[in] | ls |
An optional initialized lasso selection object or
nullptr
. The caller owns the pointed object.
When this is provided the search is extended to include all objects that are within the lasso selection. |
[in,out] | list | The list to fill. The found objects are sorted by Z distance so that the first object is the closest. The caller owns the pointed list. |
[in] | use_selection_filter | 使用 Cinema 4D 's selection filter. |
[in] | use_display_filter | 使用 Cinema 4D 's display filter. |
Int32 SelectionListShowMenu | ( | BaseDocument * | doc , |
Float | screenx , | ||
Float | screeny , | ||
C4DObjectList * | list | ||
) |
Shows a popup menu with the given object list and lets the user choose an object.
[in] | doc | The document. The caller owns the pointed document. |
[in] | screenx | The screen X coordinate of the menu or MOUSEPOS for the current mouse coordinates. |
[in] | screeny | The screen Y coordinate of the menu or MOUSEPOS for the current mouse coordinates. |
[in] | list | The list to build the menu from. The caller owns the pointed list. |