Picking Types¶
-
group
FnPickingTypes Typedefs
-
typedef uint64_t
FnPickId¶ An integer that identifies a pickable object.
See
pickIdToColor()to see how this can be converted into an ID color that can be used inViewport::pickerDraw()andViewportLayer::pickerDraw().
Functions
-
void
pickIdToColor(FnPickId pickId, Vec4i &color)¶ Updates the given color with values that represent the given pick ID.
Given a pick ID, this returns a color that should be used when rendering the IDs for picking in the functions
Viewport::pickerDraw()andViewportLayer::pickerDraw(). Since this is a 64bit ID, this color will refer only to its first 32 lower bits.
-
class
PickedAttrsMap¶ - #include <FnPickingTypes.h>
Maps picking IDs with an
Attributethat contains information about the corresponding pickable object. This can be converted from/into aGroupAttributethat contains a string representation of theFnPickIdnumbers (map keys) as the child names and theAttributeobjects (map values) as its children.Public Functions
-
FnAttribute::GroupAttribute
toGroupAttribute()¶ Utility function that returns a
GroupAttributethat contains a string representation of theFnPickIdnumbers (map keys) as the child names and theAttributeobjects (map values) as its children.- Return
- A
GroupAttributethat contains a string representation of this map.
-
void
fromGroupAttribute(FnAttribute::GroupAttribute groupAttr)¶ Utility function that fills the map with entries from a
GroupAttributethat contains a string representation of theFnPickIdnumbers (map keys) as the child names and theAttributeobjects (map values) as its children.- Parameters
groupAttr-The
GroupAttributeto parse to fill this map.
-
FnAttribute::GroupAttribute
-
typedef uint64_t