HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UNI_GraphUtils.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: UNI_GraphUtils.h ( UN Library, C++)
7  *
8  * COMMENTS:
9  *
10  */
11 
12 #ifndef __UNI_GraphUtils_h__
13 #define __UNI_GraphUtils_h__
14 
15 #include "UNI_API.h"
16 #include "UNI_Graph.h"
17 #include <UT/UT_StringHolder.h>
18 #include <UT/UT_Vector2.h>
19 
20 namespace UNI_GraphUtils
21 {
22  UNI_API UNI_NodeIDList
23  descendentNodes(const UNI_Graph &graph, UNI_NodeID cwd);
24 
25  UNI_API UNI_StickyNoteIDList
26  descendentStickyNotes(const UNI_Graph &graph, UNI_NodeID cwd);
27 
28  UNI_API UNI_NodeIDList
29  globPatterns(const UNI_Graph &graph, UNI_NodeID cwd,
30  const UT_StringRef &patterns,
31  bool ignore_case = false,
32  bool include_subnet_children = false);
33 
34  UNI_API UNI_NodeIDList
35  recursiveGlobPatterns(const UNI_Graph &graph, UNI_NodeID cwd,
36  const UT_StringRef &patterns, bool ignore_case,
37  bool include_subnet_children);
38 
39  UNI_API UNI_NodeIDList
40  recursiveInputs(const UNI_Graph &graph, UNI_NodeID cwd,
41  bool follow_subnets);
42 
44  getGoodPosition(const UNI_Graph &graph, UNI_PortID anchor_port_id);
45 
47  getLayoutPositions(const UNI_Graph &graph,
48  UNI_NodeID parent_id,
49  UT_Vector2D spacing,
51  const UNI_NodeIDList &child_ids);
52 }
53 
54 #endif
55 
std::string ignore_case(std::string item)
Helper function to allow ignore_case to be passed to IsMember or Transform.
Definition: CLI11.h:3456
UNI_API UT_Array< UT_Vector2D > getLayoutPositions(const UNI_Graph &graph, UNI_NodeID parent_id, UT_Vector2D spacing, UT_Vector2D offset, const UNI_NodeIDList &child_ids)
#define UNI_API
Definition: UNI_API.h:11
GLintptr offset
Definition: glcorearb.h:665
UNI_API UNI_NodeIDList recursiveInputs(const UNI_Graph &graph, UNI_NodeID cwd, bool follow_subnets)
UNI_API UNI_NodeIDList descendentNodes(const UNI_Graph &graph, UNI_NodeID cwd)
UNI_API UNI_NodeIDList globPatterns(const UNI_Graph &graph, UNI_NodeID cwd, const UT_StringRef &patterns, bool ignore_case=false, bool include_subnet_children=false)
UNI_API UT_Vector2D getGoodPosition(const UNI_Graph &graph, UNI_PortID anchor_port_id)
UNI_API UNI_NodeIDList recursiveGlobPatterns(const UNI_Graph &graph, UNI_NodeID cwd, const UT_StringRef &patterns, bool ignore_case, bool include_subnet_children)
UNI_API UNI_StickyNoteIDList descendentStickyNotes(const UNI_Graph &graph, UNI_NodeID cwd)