From: Svjatoslav Agejenko Date: Sun, 22 Jan 2017 21:12:30 +0000 (+0200) Subject: Code visualization X-Git-Tag: sixth-3d-1.2~60 X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=commitdiff_plain;h=bb7dfe2d2e0838efa8bc1c2c31a514040fb48880;p=sixth-3d.git Code visualization --- diff --git a/doc/code graph/.thumbnails/gui (2C27AF7B).jpeg b/doc/code graph/.thumbnails/gui (2C27AF7B).jpeg new file mode 100644 index 0000000..22acc80 Binary files /dev/null and b/doc/code graph/.thumbnails/gui (2C27AF7B).jpeg differ diff --git a/doc/code graph/.thumbnails/gui (572F58CF).jpeg b/doc/code graph/.thumbnails/gui (572F58CF).jpeg new file mode 100644 index 0000000..449edc7 Binary files /dev/null and b/doc/code graph/.thumbnails/gui (572F58CF).jpeg differ diff --git a/doc/code graph/.thumbnails/gui (D68ADBAD).jpeg b/doc/code graph/.thumbnails/gui (D68ADBAD).jpeg new file mode 100644 index 0000000..3bc2e66 Binary files /dev/null and b/doc/code graph/.thumbnails/gui (D68ADBAD).jpeg differ diff --git a/doc/code graph/.thumbnails/metadata_6.dat b/doc/code graph/.thumbnails/metadata_6.dat new file mode 100644 index 0000000..b3f553e Binary files /dev/null and b/doc/code graph/.thumbnails/metadata_6.dat differ diff --git a/doc/code graph/.thumbnails/raster engine (7A403C30).jpeg b/doc/code graph/.thumbnails/raster engine (7A403C30).jpeg new file mode 100644 index 0000000..c29574e Binary files /dev/null and b/doc/code graph/.thumbnails/raster engine (7A403C30).jpeg differ diff --git a/doc/code graph/.thumbnails/raster engine (BAF082F6).jpeg b/doc/code graph/.thumbnails/raster engine (BAF082F6).jpeg new file mode 100644 index 0000000..dccdbe7 Binary files /dev/null and b/doc/code graph/.thumbnails/raster engine (BAF082F6).jpeg differ diff --git a/doc/code graph/.thumbnails/raster engine (CCF2A95F).jpeg b/doc/code graph/.thumbnails/raster engine (CCF2A95F).jpeg new file mode 100644 index 0000000..093d23f Binary files /dev/null and b/doc/code graph/.thumbnails/raster engine (CCF2A95F).jpeg differ diff --git a/doc/code graph/gui.png b/doc/code graph/gui.png new file mode 100644 index 0000000..48e0751 Binary files /dev/null and b/doc/code graph/gui.png differ diff --git a/doc/code graph/index.html b/doc/code graph/index.html new file mode 100644 index 0000000..2c3030f --- /dev/null +++ b/doc/code graph/index.html @@ -0,0 +1,21 @@ + + + + + + + + +

Gallery

+

+ + + +

+
+
+gui
(3360x3016, 1680x1508, 840x754) +
+
+raster engine
(2845x4041, 1422x2020, 711x1010) +
diff --git a/doc/code graph/raster engine.png b/doc/code graph/raster engine.png new file mode 100644 index 0000000..90c63cf Binary files /dev/null and b/doc/code graph/raster engine.png differ diff --git a/src/test/java/eu/svjatoslav/sixth/e3d/VisualizeCode.java b/src/test/java/eu/svjatoslav/sixth/e3d/VisualizeCode.java new file mode 100644 index 0000000..bd96a75 --- /dev/null +++ b/src/test/java/eu/svjatoslav/sixth/e3d/VisualizeCode.java @@ -0,0 +1,26 @@ +package eu.svjatoslav.sixth.e3d; + +import eu.svjatoslav.inspector.java.structure.ClassGraph; + +public class VisualizeCode { + + public static void main(String[] args) { + renderGui(); + renderRasterGrphicsEngine(); + } + + private static void renderGui() { + final ClassGraph graph = new ClassGraph(); + graph.addProject("./src/main/"); + graph.whitelistClassPattern("eu.svjatoslav.sixth.e3d.gui.*"); + graph.generateGraph("gui"); + } + + private static void renderRasterGrphicsEngine() { + final ClassGraph graph = new ClassGraph(); + graph.addProject("./src/main/"); + graph.whitelistClassPattern("eu.svjatoslav.sixth.e3d.renderer.raster.*"); + graph.generateGraph("raster engine"); + } + +}