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
-
inline 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 Foundry::Katana::ViewerAPI::PickedAttrsMap¶
- #include <FnPickingTypes.h>
Maps picking IDs with an
Attribute
that contains information about the corresponding pickable object. This can be converted from/into aGroupAttribute
that contains a string representation of theFnPickId
numbers (map keys) as the child names and theAttribute
objects (map values) as its children.Public Functions
-
inline FnAttribute::GroupAttribute toGroupAttribute()¶
Utility function that returns a
GroupAttribute
that contains a string representation of theFnPickId
numbers (map keys) as the child names and theAttribute
objects (map values) as its children.- Returns
A
GroupAttribute
that contains a string representation of this map.
-
inline void fromGroupAttribute(FnAttribute::GroupAttribute groupAttr)¶
Utility function that fills the map with entries from a
GroupAttribute
that contains a string representation of theFnPickId
numbers (map keys) as the child names and theAttribute
objects (map values) as its children.- Parameters
groupAttr – The
GroupAttribute
to parse to fill this map.
-
inline FnAttribute::GroupAttribute toGroupAttribute()¶
-
typedef uint64_t FnPickId¶