diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-08-28 05:01:37 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-08-28 05:01:37 +0000 |
commit | f1f17006b2213d90d24cd0b77239da448297b48c (patch) | |
tree | c8017edfc4a077dc738f39c7a6447250b55c50bc | |
parent | c56f34a1c1779de15330bdb3eec39b3418802d47 (diff) |
Enhance ubiviz to support vertex styles.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55462 91177308-0d34-0410-b5e6-96231b3b80d8
-rwxr-xr-x | utils/ubiviz | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/utils/ubiviz b/utils/ubiviz index 687e8c007a..1582797c63 100755 --- a/utils/ubiviz +++ b/utils/ubiviz @@ -38,6 +38,20 @@ def Display(G, data): edge = G.new_edge(src,dst) for attribute in data[3:]: G.set_edge_attribute(edge, attribute[0], attribute[1]) + elif action == "vertex_style": + style_id = data[1] + parent_id = data[2] + G.new_vertex_style_w_id(style_id, parent_id) + for attribute in data[3:]: + G.set_vertex_style_attribute(style_id, attribute[0], attribute[1]) + elif action == "vertex_style_attribute": + style_id = data[1] + for attribute in data[2:]: + G.set_vertex_style_attribute(style_id, attribute[0], attribute[1]) + elif action == "change_vertex_style": + vertex_id = data[1] + style_id = data[2] + G.change_vertex_style(vertex_id,style_id) def main(args): if len(args) == 0: |