13 #ifndef __OPUI_GraphBadge__
14 #define __OPUI_GraphBadge__
56 explicit operator bool()
const;
58 const UN_ConstNode *
get()
const {
return myUnNode.get(); }
59 const UN_ConstNode *
operator->()
const {
return myUnNode.get(); }
60 const UN_ConstNode &
operator*()
const {
return *myUnNode; }
71 using Node = std::variant<OP_Node*, OPUI_UnNodeHolder>;
75 auto p = std::get_if<OP_Node*>(&myItem);
76 return p ? *p :
nullptr;
81 auto p =std::get_if<OPUI_UnNodeHolder>(&myItem);
82 return p ? p->get() :
nullptr;
112 {
return myPreferenceName; }
114 {
return myPreferenceCategory; }
116 {
return myDescription; }
120 {
return myDefaultVisibility; }
122 {
return myBadgeTest; }
124 {
return myThreadSafe; }
127 {
return myVisibility; }
129 { myVisibility = vis; }
static const UT_StringHolder theCommentPref
OPUI_GraphBadgeVisibility getVisibility() const
static const UT_StringHolder theNodeDiveablePref
bool getThreadSafe() const
static const UT_StringHolder the64bitPref
cvex test(vector P=0;int unbound=3;export float s=0;export vector Cf=0;)
static const UT_StringHolder theParametersBadgeCategory
static const UT_StringHolder theLopDebugPref
static const UT_StringHolder theKinematicsPref
static const UT_StringHolder theLoadFromDiskPref
static const UT_StringHolder theHDALockedPref
UT_ErrorSeverity myErrorSeverity
static const UT_StringHolder theLopUnloadedPayloadsPref
static const UT_StringHolder theConstraintsPref
const UT_StringHolder & getPreferenceName() const
static const UT_StringHolder theNodeHasDataPref
OPUI_GraphBadgeVisibility getDefaultVisibility() const
const UT_StringHolder & getDescription() const
UT_Array< OPUI_GraphBadge > OPUI_GraphBadgeArray
std::unique_ptr< T, Deleter > UT_UniquePtr
A smart pointer for unique ownership of dynamically allocated objects.
static const UT_StringHolder theNotCompilablePref
static const UT_StringHolder theErrorPref
static const UT_StringHolder theHasTakeDataPref
static const UT_StringHolder theContinuousCookPref
static const UT_StringHolder theLopPopulationMaskPref
OPUI_GraphBadgeTest getBadgeTest() const
void setVisibility(OPUI_GraphBadgeVisibility vis)
static const UT_StringHolder theMainBadgeCategory
static const UT_StringHolder theChildErrorPref
OPUI_GraphBadgeVisibility
const UT_StringHolder & getIcon() const
static const UT_StringHolder theNodeUnloadPref
static const UT_StringHolder theNeedsCookPref
static const UT_StringHolder theMessagePref
static const UT_StringHolder theDynamicTOPPref
static const UT_StringHolder theTimeDepPref
const UN_ConstNode * operator->() const
LeafData & operator=(const LeafData &)=delete
static const UT_StringHolder theMQClientsAuthPref
static const UT_StringHolder theTagsPref
const UT_StringHolder & getPreferenceCategory() const
const UN_ConstNode * unNode() const
static const UT_StringHolder theContextSpecificBadgeCategory
static const UT_StringHolder theHDAUnlockedPref
static const UT_StringHolder theMQServerAuthPref
static const UT_StringHolder theHDADelaySyncPref
static const UT_StringHolder theVexCachePref
static const UT_StringHolder theWarningPref
bool(* OPUI_GraphBadgeTest)(const OPUI_GraphBadgeInfo &info, OPUI_GraphBadgeVisibility visibility, OP_Context &context, UT_StringHolder &icon, UT_Color &clr)
static const UT_StringHolder theNodeLockedPref
static const UT_StringHolder theLiveRenderPref
const UN_ConstNode & operator*() const