18 #ifndef __HUSD_MaterialUniGraph_h__
19 #define __HUSD_MaterialUniGraph_h__
28 #define HUSD_SHADER_GRAPH_CATEGORY "UsdShadeGraph"
29 #define HUSD_NODEGRAPH_NODE_TYPE "NodeGraph"
61 const std::string &in_layer,
67 bool getEditLayerContent(std::string *out_layer)
const;
69 int getMaterialIndex()
const;
80 const UNI_NodeIDList &node_ids,
81 const UNI_StickyNoteIDList ¬e_ids,
82 std::ostream &os)
const override;
100 void setName( UNI_NodeID node_id,
110 void setTags( UNI_NodeID node_id,
115 void destroy( UNI_NodeID node_id )
override;
125 void destroy( UNI_WireID wire_id )
override;
129 void setName( UNI_StickyNoteID note_id,
133 void setSize( UNI_StickyNoteID note_id,
135 void setColor( UNI_StickyNoteID note_id,
137 void setText( UNI_StickyNoteID note_id,
142 const float size )
override;
144 bool collapsed )
override;
146 bool hidden )
override;
147 void destroy( UNI_StickyNoteID note_id )
override;
149 UNI_NodeIDList &node_ids,
150 UNI_StickyNoteIDList ¬e_ids,
158 const std::string &in_layer,
164 class husd_MaterialUniGraphPrivate;
168 const int myMaterialIndex;
void setText(UNI_StickyNoteID note_id, const UT_StringHolder &text) override
Non-const methods are all protected.
void setTags(UNI_NodeID node_id, const UT_StringArray &tags) override
Non-const methods are all protected.
UNI_NodeID createNode(UNI_NodeID parent_id, const UT_StringHolder &node_name, const UT_StringHolder &node_type_name, const UT_StringHolder &signature_name=UT_StringHolder()) override
Non-const methods are all protected.
GLsizei const GLfloat * value
void setSignature(UNI_NodeID node_id, const UT_StringHolder &signature_name) override
Non-const methods are all protected.
bool pasteItems(UNI_NodeID parent_id, UNI_NodeIDList &node_ids, UNI_StickyNoteIDList ¬e_ids, std::istream &is, UT_StringMap< UT_StringHolder > *rename_map) override
Non-const methods are all protected.
void setContainerConnectPosition(UNI_NodeID parent_id, UNI_ContainerConnectType contype, const UT_Vector2D &pos) override
Non-const methods are all protected.
void setContainerConnectColor(UNI_NodeID parent_id, UNI_ContainerConnectType contype, const UT_Color &clr) override
Non-const methods are all protected.
void setSize(UNI_StickyNoteID note_id, const UT_Vector2D &size) override
Non-const methods are all protected.
std::unique_ptr< T, Deleter > UT_UniquePtr
A smart pointer for unique ownership of dynamically allocated objects.
void setCollapsed(UNI_StickyNoteID note_id, bool collapsed) override
Non-const methods are all protected.
void setComment(UNI_NodeID node_id, const UT_StringHolder &comment) override
Non-const methods are all protected.
void destroy(UNI_NodeID node_id) override
Non-const methods are all protected.
UT_StringHolder parmDialogScript(UNI_NodeID node_id) const override
void setTextSize(UNI_StickyNoteID note_id, const float size) override
Non-const methods are all protected.
void setColor(UNI_NodeID node_id, const UT_Color &clr) override
Non-const methods are all protected.
GLuint const GLchar * name
std::variant< UNI_InvalidParmValue, UNI_DefaultParmValue, bool, int64, fpreal64, UT_Vector2D, UT_Vector3D, UT_Vector4D, UT_Matrix3D, UT_Matrix4D, UT_StringHolder, UNI_RampParmValue > UNI_ParmValue
Variant data type that holds all the parm value types allowed in UNI parms.
void setWireStyle(UNI_WireStyle wire_style) override
The drawing style of the connection wires in the graph.
bool copyItems(UNI_NodeID parent_id, const UNI_NodeIDList &node_ids, const UNI_StickyNoteIDList ¬e_ids, std::ostream &os) const override
UNI_ParmValue parmValue(UNI_NodeID node_id, const UT_StringRef &parm_name) const override
Get the value of a parm on this node.
UNI_StickyNoteID createStickyNote(UNI_NodeID parent_id, const UT_StringHolder &name) override
Non-const methods are all protected.
void setTextColor(UNI_StickyNoteID note_id, const UT_Color &clr) override
Non-const methods are all protected.
std::function< const HUSD_DataHandle &()> HUSD_MaterialUniGraphDataHandleProvider
UNI_WireID createWire(UNI_PortID src, UNI_PortID dst) override
Non-const methods are all protected.
void setBackgroundHidden(UNI_StickyNoteID note_id, bool hidden) override
Non-const methods are all protected.
void setPosition(UNI_NodeID node_id, const UT_Vector2D &pos) override
Non-const methods are all protected.
void setParmValue(UNI_NodeID node_id, const UT_StringRef &parm_name, const UNI_ParmValue &value) override
Non-const methods are all protected.
void setName(UNI_NodeID node_id, const UT_StringHolder &name) override
Non-const methods are all protected.