[cfe-commits] r55462 - /cfe/trunk/utils/ubiviz
Ted Kremenek
kremenek at apple.com
Wed Aug 27 22:01:37 PDT 2008
Author: kremenek
Date: Thu Aug 28 00:01:37 2008
New Revision: 55462
URL: http://llvm.org/viewvc/llvm-project?rev=55462&view=rev
Log:
Enhance ubiviz to support vertex styles.
Modified:
cfe/trunk/utils/ubiviz
Modified: cfe/trunk/utils/ubiviz
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/ubiviz?rev=55462&r1=55461&r2=55462&view=diff
==============================================================================
--- cfe/trunk/utils/ubiviz (original)
+++ cfe/trunk/utils/ubiviz Thu Aug 28 00:01:37 2008
@@ -38,6 +38,20 @@
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:
More information about the cfe-commits
mailing list