1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-12-22 02:49:06 +00:00
plantuml/src/smetana/core/Z.java

557 lines
16 KiB
Java
Raw Normal View History

2016-03-06 16:47:34 +00:00
/* ========================================================================
* PlantUML : a free UML diagram generator
* ========================================================================
*
* Project Info: http://plantuml.com
*
2017-03-15 19:13:31 +00:00
* If you like this project or if you find it useful, you can support us at:
*
* http://plantuml.com/patreon (only 1$ per month!)
* http://plantuml.com/paypal
*
2016-03-06 16:47:34 +00:00
* This file is part of Smetana.
* Smetana is a partial translation of Graphviz/Dot sources from C to Java.
*
2019-01-16 18:34:41 +00:00
* (C) Copyright 2009-2020, Arnaud Roques
2016-03-06 16:47:34 +00:00
*
* This translation is distributed under the same Licence as the original C program.
*
* THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC
* LICENSE ("AGREEMENT"). [Eclipse Public License - v 1.0]
*
* ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES
* RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
*
* You may obtain a copy of the License at
*
* http://www.eclipse.org/legal/epl-v10.html
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package smetana.core;
2020-12-01 21:39:27 +00:00
import static smetana.core.Macro.ARR_TYPE_BOX;
import static smetana.core.Macro.ARR_TYPE_CROW;
import static smetana.core.Macro.ARR_TYPE_CURVE;
import static smetana.core.Macro.ARR_TYPE_DIAMOND;
import static smetana.core.Macro.ARR_TYPE_DOT;
import static smetana.core.Macro.ARR_TYPE_GAP;
import static smetana.core.Macro.ARR_TYPE_NORM;
import static smetana.core.Macro.ARR_TYPE_TEE;
2020-11-21 17:33:24 +00:00
import java.util.HashMap;
import java.util.LinkedList;
import java.util.Map;
2016-03-06 16:47:34 +00:00
import gen.lib.cdt.dttree__c;
import gen.lib.cgraph.attr__c;
import gen.lib.cgraph.edge__c;
import gen.lib.cgraph.graph__c;
import gen.lib.cgraph.id__c;
import gen.lib.cgraph.mem__c;
import gen.lib.cgraph.node__c;
import gen.lib.cgraph.utils__c;
import gen.lib.common.arrows__c;
import gen.lib.common.shapes__c;
import gen.lib.dotgen.dotsplines__c;
2017-10-07 09:46:53 +00:00
import gen.lib.label.xlabels__c;
2017-07-03 17:59:53 +00:00
import h.ST_Agdesc_s;
2018-10-21 19:44:14 +00:00
import h.ST_Agedge_s;
2017-07-03 17:59:53 +00:00
import h.ST_Agiddisc_s;
import h.ST_Agmemdisc_s;
2018-10-21 19:44:14 +00:00
import h.ST_Agnode_s;
import h.ST_Agraph_s;
import h.ST_Agsubnode_s;
import h.ST_Agsym_s;
import h.ST_Agtag_s;
import h.ST_Pedge_t;
2017-07-03 17:59:53 +00:00
import h.ST_arrowname_t;
import h.ST_arrowtype_t;
2018-10-21 19:44:14 +00:00
import h.ST_boxf;
import h.ST_deque_t;
import h.ST_dt_s;
2017-07-03 17:59:53 +00:00
import h.ST_dtdisc_s;
import h.ST_dtmethod_s;
import h.ST_elist;
import h.ST_nlist_t;
import h.ST_pointf;
2018-10-21 19:44:14 +00:00
import h.ST_pointnlink_t;
import h.ST_polygon_t;
2017-07-03 17:59:53 +00:00
import h.ST_port;
2018-10-21 19:44:14 +00:00
import h.ST_shape_desc;
import h.ST_shape_functions;
import h.ST_splineInfo;
import h.ST_textfont_t;
import h.ST_tna_t;
import h.ST_triangle_t;
2016-03-06 16:47:34 +00:00
public class Z {
2020-12-01 21:39:27 +00:00
2016-03-06 16:47:34 +00:00
private static final ThreadLocal<LinkedList<Z>> instances2 = new ThreadLocal<LinkedList<Z>>();
2016-04-04 19:05:10 +00:00
public final Map<Integer, CString> all = new HashMap<Integer, CString>();
2016-03-06 16:47:34 +00:00
2017-07-03 17:59:53 +00:00
public final ST_dtmethod_s _Dttree = new ST_dtmethod_s();
2018-10-21 19:44:14 +00:00
public final ST_dtmethod_s Dttree = _Dttree;
2016-03-06 16:47:34 +00:00
2017-10-07 09:46:53 +00:00
public final ST_dtmethod_s _Dtobag = new ST_dtmethod_s();
2018-10-21 19:44:14 +00:00
public final ST_dtmethod_s Dtobag = _Dtobag;
2017-10-07 09:46:53 +00:00
2017-07-03 17:59:53 +00:00
public final ST_dtdisc_s AgDataDictDisc = new ST_dtdisc_s();
2016-03-06 16:47:34 +00:00
2017-07-03 17:59:53 +00:00
public final ST_Agdesc_s ProtoDesc = new ST_Agdesc_s();
2016-03-06 16:47:34 +00:00
2018-10-21 19:44:14 +00:00
public ST_Agraph_s ProtoGraph;
2016-03-06 16:47:34 +00:00
2018-10-21 19:44:14 +00:00
public final ST_Agtag_s Tag = new ST_Agtag_s();
2016-03-06 16:47:34 +00:00
2017-07-03 17:59:53 +00:00
public final ST_dtdisc_s Ag_mainedge_seq_disc = new ST_dtdisc_s();
2016-03-06 16:47:34 +00:00
2017-07-03 17:59:53 +00:00
public final ST_dtdisc_s Ag_subedge_seq_disc = new ST_dtdisc_s();
2016-03-06 16:47:34 +00:00
2017-07-03 17:59:53 +00:00
public final ST_dtdisc_s Ag_subedge_id_disc = new ST_dtdisc_s();
2016-03-06 16:47:34 +00:00
2017-07-03 17:59:53 +00:00
public final ST_dtdisc_s Ag_subgraph_id_disc = new ST_dtdisc_s();
2016-03-06 16:47:34 +00:00
2017-07-03 17:59:53 +00:00
public final ST_Agiddisc_s AgIdDisc = new ST_Agiddisc_s();
2016-03-06 16:47:34 +00:00
2017-07-03 17:59:53 +00:00
public final ST_Agmemdisc_s AgMemDisc = new ST_Agmemdisc_s();
2016-03-06 16:47:34 +00:00
2017-07-03 17:59:53 +00:00
public final ST_dtdisc_s Ag_subnode_id_disc = new ST_dtdisc_s();
2016-03-06 16:47:34 +00:00
2017-07-03 17:59:53 +00:00
public final ST_dtdisc_s Ag_subnode_seq_disc = new ST_dtdisc_s();
2016-03-06 16:47:34 +00:00
public int HTML_BIT;
public int CNT_BITS;
2017-07-03 17:59:53 +00:00
public final ST_dtdisc_s Refstrdisc = new ST_dtdisc_s();
2017-10-07 09:46:53 +00:00
public final ST_dtdisc_s Hdisc = new ST_dtdisc_s();
2016-03-06 16:47:34 +00:00
2018-10-21 19:44:14 +00:00
public ST_dt_s Refdict_default;
2016-03-06 16:47:34 +00:00
2018-10-21 19:44:14 +00:00
public ST_Agraph_s Ag_dictop_G;
2020-12-01 21:39:27 +00:00
public final ST_arrowname_t Arrowsynonyms[] = new ST_arrowname_t[] { create_arrowname_t(null, 0) };
public final ST_arrowname_t Arrownames[] = new ST_arrowname_t[] {
create_arrowname_t("normal", ARR_TYPE_NORM),
create_arrowname_t("none", ARR_TYPE_GAP),
create_arrowname_t(null, 0) };
public final ST_arrowname_t Arrowmods[] = new ST_arrowname_t[] { create_arrowname_t(null, 0) };
public final ST_arrowtype_t Arrowtypes[] = new ST_arrowtype_t[] {
createArrowtypes(ARR_TYPE_NORM, 1.0, arrows__c.arrow_type_normal),
createArrowtypes(ARR_TYPE_CROW, 1.0, arrows__c.arrow_type_crow),
createArrowtypes(ARR_TYPE_TEE, 0.5, arrows__c.arrow_type_tee),
createArrowtypes(ARR_TYPE_BOX, 1.0, arrows__c.arrow_type_box),
createArrowtypes(ARR_TYPE_DIAMOND, 1.2, arrows__c.arrow_type_diamond),
createArrowtypes(ARR_TYPE_DOT, 0.8, arrows__c.arrow_type_dot),
createArrowtypes(ARR_TYPE_CURVE, 1.0, arrows__c.arrow_type_curve),
createArrowtypes(ARR_TYPE_GAP, 0.5, arrows__c.arrow_type_gap),
createArrowtypes(0, 0.0, null)};
2016-03-06 16:47:34 +00:00
public __ptr__ Show_boxes;
public int CL_type;
public boolean Concentrate;
public int MaxIter;
public int State;
public int EdgeLabelsDone;
public double Initial_dist;
2018-10-21 19:44:14 +00:00
public ST_Agsym_s G_activepencolor, G_activefillcolor, G_selectedpencolor, G_selectedfillcolor, G_visitedpencolor,
2016-03-06 16:47:34 +00:00
G_visitedfillcolor, G_deletedpencolor, G_deletedfillcolor, G_ordering, G_peripheries, G_penwidth,
G_gradientangle, G_margin;
2018-10-21 19:44:14 +00:00
public ST_Agsym_s N_height, N_width, N_shape, N_color, N_fillcolor, N_activepencolor, N_activefillcolor,
2016-03-06 16:47:34 +00:00
N_selectedpencolor, N_selectedfillcolor, N_visitedpencolor, N_visitedfillcolor, N_deletedpencolor,
N_deletedfillcolor, N_fontsize, N_fontname, N_fontcolor, N_margin, N_label, N_xlabel, N_nojustify, N_style,
N_showboxes, N_sides, N_peripheries, N_ordering, N_orientation, N_skew, N_distortion, N_fixed,
N_imagescale, N_layer, N_group, N_comment, N_vertices, N_z, N_penwidth, N_gradientangle;
2018-10-21 19:44:14 +00:00
public ST_Agsym_s E_weight, E_minlen, E_color, E_fillcolor, E_activepencolor, E_activefillcolor, E_selectedpencolor,
2016-03-06 16:47:34 +00:00
E_selectedfillcolor, E_visitedpencolor, E_visitedfillcolor, E_deletedpencolor, E_deletedfillcolor,
E_fontsize, E_fontname, E_fontcolor, E_label, E_xlabel, E_dir, E_style, E_decorate, E_showboxes, E_arrowsz,
E_constr, E_layer, E_comment, E_label_float, E_samehead, E_sametail, E_arrowhead, E_arrowtail, E_headlabel,
E_taillabel, E_labelfontsize, E_labelfontname, E_labelfontcolor, E_labeldistance, E_labelangle, E_tailclip,
E_headclip, E_penwidth;
public int N_nodes, N_edges;
public int Minrank, Maxrank;
public int S_i;
public int Search_size;
2017-07-03 17:59:53 +00:00
public final ST_nlist_t Tree_node = new ST_nlist_t();
2016-03-06 16:47:34 +00:00
2017-07-03 17:59:53 +00:00
public final ST_elist Tree_edge = new ST_elist();
2016-03-06 16:47:34 +00:00
2018-10-21 19:44:14 +00:00
public ST_Agedge_s Enter;
2016-03-06 16:47:34 +00:00
public int Low, Lim, Slack;
public int Rankdir;
public boolean Flip;
2017-07-03 17:59:53 +00:00
public final ST_pointf Offset = new ST_pointf();
2016-03-06 16:47:34 +00:00
public int nedges, nboxes;
public int routeinit;
2020-12-01 21:39:27 +00:00
public CArray<ST_pointf> ps;
2016-03-06 16:47:34 +00:00
public int maxpn;
2020-12-01 21:39:27 +00:00
public CArray<ST_pointf> polypoints;
2016-03-06 16:47:34 +00:00
public int polypointn;
2020-12-01 21:39:27 +00:00
public CArray<ST_Pedge_t> edges;
2016-03-06 16:47:34 +00:00
public int edgen;
2018-10-21 19:44:14 +00:00
public final ST_boxf[] boxes = ST_boxf.malloc(1000);
2016-03-06 16:47:34 +00:00
public int MinQuit;
public double Convergence;
2018-10-21 19:44:14 +00:00
public ST_Agraph_s Root;
2016-03-06 16:47:34 +00:00
public int GlobalMinRank, GlobalMaxRank;
public boolean ReMincross;
2020-12-01 21:39:27 +00:00
public CArrayOfStar<ST_Agedge_s> TE_list;
2016-03-06 16:47:34 +00:00
2020-11-21 17:33:24 +00:00
public int TI_list[];
2016-03-06 16:47:34 +00:00
2018-10-21 19:44:14 +00:00
public ST_Agnode_s Last_node_decomp;
public ST_Agnode_s Last_node_rank;
2016-03-06 16:47:34 +00:00
public char Cmark;
public int trin, tril;
2020-12-01 21:39:27 +00:00
public CArray<ST_triangle_t> tris;
2016-03-06 16:47:34 +00:00
public int pnln, pnll;
2018-10-21 19:44:14 +00:00
public ST_pointnlink_t pnls[];
public ST_pointnlink_t pnlps[];
2016-03-06 16:47:34 +00:00
2017-07-03 17:59:53 +00:00
public final ST_port Center = new ST_port();
2016-03-06 16:47:34 +00:00
2018-10-21 19:44:14 +00:00
public final ST_polygon_t p_ellipse = new ST_polygon_t();
2016-03-06 16:47:34 +00:00
2018-10-21 19:44:14 +00:00
public final ST_polygon_t p_box = new ST_polygon_t();
2016-03-06 16:47:34 +00:00
2018-10-21 19:44:14 +00:00
public final ST_shape_functions poly_fns = new ST_shape_functions();
2016-03-06 16:47:34 +00:00
2020-11-21 17:33:24 +00:00
public final ST_shape_functions record_fns = new ST_shape_functions();
2020-12-01 21:39:27 +00:00
public CArray<ST_tna_t> tnas;
2016-03-06 16:47:34 +00:00
public int tnan;
2020-11-21 17:33:24 +00:00
public final ST_shape_desc Shapes[] = {
__Shapes__("box", poly_fns, p_box),
__Shapes__("ellipse", poly_fns, p_ellipse),
__Shapes__("record", record_fns, null),
__Shapes__(null, null, null) };
2016-03-06 16:47:34 +00:00
2017-07-03 17:59:53 +00:00
public final ST_dtdisc_s Ag_mainedge_id_disc = new ST_dtdisc_s();
2016-03-06 16:47:34 +00:00
2018-10-21 19:44:14 +00:00
public final ST_deque_t dq = new ST_deque_t();
2016-03-06 16:47:34 +00:00
2017-07-03 17:59:53 +00:00
public final ST_Agdesc_s Agdirected = new ST_Agdesc_s();
2016-03-06 16:47:34 +00:00
2018-10-21 19:44:14 +00:00
public final ST_splineInfo sinfo = new ST_splineInfo();
2016-03-06 16:47:34 +00:00
2018-10-21 19:44:14 +00:00
public ST_Agnode_s lastn; /* last node argument */
public ST_polygon_t poly;
2016-03-06 16:47:34 +00:00
public int last, outp, sides;
2018-10-21 19:44:14 +00:00
public final ST_pointf O = new ST_pointf(); /* point (0,0) */
2020-12-01 21:39:27 +00:00
public CArray<ST_pointf> vertex;
2016-03-06 16:47:34 +00:00
public double xsize, ysize, scalex, scaley, box_URx, box_URy;
2018-10-21 19:44:14 +00:00
public final ST_textfont_t tf = new ST_textfont_t();
2016-03-06 16:47:34 +00:00
2020-12-01 21:39:27 +00:00
public CArray<ST_pointf> pointfs;
public CArray<ST_pointf> pointfs2;
2016-03-06 16:47:34 +00:00
public int numpts;
public int numpts2;
2020-11-21 17:33:24 +00:00
public int[] Count;
2016-03-06 16:47:34 +00:00
public int C;
public int ctr = 1;
2018-10-21 19:44:14 +00:00
public final ST_Agsubnode_s template = new ST_Agsubnode_s();
public final ST_Agnode_s dummy = new ST_Agnode_s();
2016-03-06 16:47:34 +00:00
2018-10-21 19:44:14 +00:00
public ST_Agraph_s G_ns;
public ST_Agraph_s G_decomp;
2016-03-06 16:47:34 +00:00
public int opl;
public int opn_route;
public int opn_shortest;
2020-12-01 21:39:27 +00:00
public CArray<ST_pointf> ops_route;
public CArray<ST_pointf> ops_shortest;
2020-11-21 17:33:24 +00:00
public CString reclblp;
2016-03-06 16:47:34 +00:00
2020-12-06 21:43:09 +00:00
public int isz;
public CArray<ST_pointf> ispline;
2016-05-11 21:31:47 +00:00
public static Z z() {
2016-03-06 16:47:34 +00:00
return instances2.get().peekFirst();
}
public static void open() {
LinkedList<Z> list = instances2.get();
if (list == null) {
list = new LinkedList<Z>();
instances2.set(list);
}
list.addFirst(new Z());
}
public static void close() {
instances2.get().removeFirst();
}
2018-10-21 19:44:14 +00:00
private ST_shape_desc __Shapes__(String s, ST_shape_functions shape_functions, ST_polygon_t polygon) {
ST_shape_desc result = new ST_shape_desc();
2020-12-01 21:39:27 +00:00
result.name = s == null ? null : new CString(s);
result.fns = shape_functions;
result.polygon = polygon;
2016-03-06 16:47:34 +00:00
return result;
}
2020-12-01 21:39:27 +00:00
private final static ST_arrowtype_t createArrowtypes(int type, double lenfact, CFunction function) {
2017-07-03 17:59:53 +00:00
final ST_arrowtype_t result = new ST_arrowtype_t();
result.type = type;
result.lenfact = lenfact;
result.gen = function;
2016-03-06 16:47:34 +00:00
return result;
}
2020-12-01 21:39:27 +00:00
private final static ST_arrowname_t create_arrowname_t(String name, int type) {
2017-07-03 17:59:53 +00:00
final ST_arrowname_t result = new ST_arrowname_t();
result.name = name == null ? null : new CString(name);
result.type = type;
2016-03-06 16:47:34 +00:00
return result;
}
private Z() {
2020-12-01 21:39:27 +00:00
_Dttree.searchf = dttree__c.dttree;
2017-07-03 17:59:53 +00:00
_Dttree.type = 0000004;
2020-12-01 21:39:27 +00:00
_Dtobag.searchf = dttree__c.dttree;
2017-10-07 09:46:53 +00:00
_Dtobag.type = 0000010;
2020-12-01 21:39:27 +00:00
AgDataDictDisc.key = ST_Agsym_s.createOFFSET("name");
2017-07-03 17:59:53 +00:00
AgDataDictDisc.size = -1;
2020-12-01 21:39:27 +00:00
AgDataDictDisc.link = ST_Agsym_s.createOFFSET("link");
2017-07-03 17:59:53 +00:00
AgDataDictDisc.makef = null;
2020-12-01 21:39:27 +00:00
AgDataDictDisc.freef = attr__c.freesym;
2017-07-03 17:59:53 +00:00
AgDataDictDisc.comparf = null;
AgDataDictDisc.hashf = null;
ProtoDesc.directed = 1;
ProtoDesc.strict = 0;
ProtoDesc.no_loop = 1;
ProtoDesc.maingraph = 0;
ProtoDesc.flatlock = 1;
ProtoDesc.no_write = 1;
2020-12-01 21:39:27 +00:00
Ag_mainedge_seq_disc.key = OFFSET.zero();
2017-07-03 17:59:53 +00:00
Ag_mainedge_seq_disc.size = 0;
2020-12-01 21:39:27 +00:00
Ag_mainedge_seq_disc.link = new OFFSET("seq_link"); // seq_link is the third
2017-07-03 17:59:53 +00:00
// field in Agedge_t
Ag_mainedge_seq_disc.makef = null;
Ag_mainedge_seq_disc.freef = null;
2020-12-01 21:39:27 +00:00
Ag_mainedge_seq_disc.comparf = edge__c.agedgeseqcmpf;
2017-07-03 17:59:53 +00:00
Ag_mainedge_seq_disc.hashf = null;
2020-12-01 21:39:27 +00:00
Ag_mainedge_seq_disc.memoryf = utils__c.agdictobjmem;
2017-07-03 17:59:53 +00:00
Ag_mainedge_seq_disc.eventf = null;
2020-12-01 21:39:27 +00:00
Ag_subedge_seq_disc.key = OFFSET.zero();
2017-07-03 17:59:53 +00:00
Ag_subedge_seq_disc.size = 0;
2020-12-01 21:39:27 +00:00
Ag_subedge_seq_disc.link = OFFSET.externalHolder();
2017-07-03 17:59:53 +00:00
Ag_subedge_seq_disc.makef = null;
Ag_subedge_seq_disc.freef = null;
2020-12-01 21:39:27 +00:00
Ag_subedge_seq_disc.comparf = edge__c.agedgeseqcmpf;
2017-07-03 17:59:53 +00:00
Ag_subedge_seq_disc.hashf = null;
2020-12-01 21:39:27 +00:00
Ag_subedge_seq_disc.memoryf = utils__c.agdictobjmem;
2017-07-03 17:59:53 +00:00
Ag_subedge_seq_disc.eventf = null;
2020-12-01 21:39:27 +00:00
Ag_subedge_id_disc.key = OFFSET.zero();
2017-07-03 17:59:53 +00:00
Ag_subedge_id_disc.size = 0;
2020-12-01 21:39:27 +00:00
Ag_subedge_id_disc.link = OFFSET.externalHolder();
2017-07-03 17:59:53 +00:00
Ag_subedge_id_disc.makef = null;
Ag_subedge_id_disc.freef = null;
2020-12-01 21:39:27 +00:00
Ag_subedge_id_disc.comparf = edge__c.agedgeidcmpf;
2017-07-03 17:59:53 +00:00
Ag_subedge_id_disc.hashf = null;
2020-12-01 21:39:27 +00:00
Ag_subedge_id_disc.memoryf = utils__c.agdictobjmem;
2017-07-03 17:59:53 +00:00
Ag_subedge_id_disc.eventf = null;
2020-12-01 21:39:27 +00:00
Ag_subgraph_id_disc.key = OFFSET.zero();
2017-07-03 17:59:53 +00:00
Ag_subgraph_id_disc.size = 0;
2020-12-01 21:39:27 +00:00
Ag_subgraph_id_disc.link = new OFFSET("link"); // link is the third field in
2017-07-03 17:59:53 +00:00
// Agraph_t
Ag_subgraph_id_disc.makef = null;
Ag_subgraph_id_disc.freef = null;
2020-12-01 21:39:27 +00:00
Ag_subgraph_id_disc.comparf = graph__c.agraphidcmpf;
2017-07-03 17:59:53 +00:00
Ag_subgraph_id_disc.hashf = null;
2020-12-01 21:39:27 +00:00
Ag_subgraph_id_disc.memoryf = utils__c.agdictobjmem;
2017-07-03 17:59:53 +00:00
Ag_subgraph_id_disc.eventf = null;
2020-12-01 21:39:27 +00:00
AgIdDisc.open = id__c.idopen;
AgIdDisc.map = id__c.idmap;
AgIdDisc.alloc = id__c.idalloc;
AgIdDisc.free = id__c.idfree;
AgIdDisc.print = id__c.idprint;
AgIdDisc.close = id__c.idclose;
AgIdDisc.idregister = id__c.idregister;
AgMemDisc.open = mem__c.memopen;
AgMemDisc.alloc = mem__c.memalloc;
AgMemDisc.resize = mem__c.memresize;
AgMemDisc.free = mem__c.memfree;
2017-07-03 17:59:53 +00:00
AgMemDisc.close = null;
2020-12-01 21:39:27 +00:00
Ag_subnode_id_disc.key = OFFSET.zero();
2017-07-03 17:59:53 +00:00
Ag_subnode_id_disc.size = 0;
2020-12-01 21:39:27 +00:00
Ag_subnode_id_disc.link = new OFFSET("id_link"); // id_link is the second
2017-07-03 17:59:53 +00:00
// field in Agsubnode_t
Ag_subnode_id_disc.makef = null;
Ag_subnode_id_disc.freef = null;
2020-12-01 21:39:27 +00:00
Ag_subnode_id_disc.comparf = node__c.agsubnodeidcmpf;
2017-07-03 17:59:53 +00:00
Ag_subnode_id_disc.hashf = null;
2020-12-01 21:39:27 +00:00
Ag_subnode_id_disc.memoryf = utils__c.agdictobjmem;
2017-07-03 17:59:53 +00:00
Ag_subnode_id_disc.eventf = null;
2020-12-01 21:39:27 +00:00
Ag_subnode_seq_disc.key = OFFSET.zero();
2017-07-03 17:59:53 +00:00
Ag_subnode_seq_disc.size = 0;
2020-12-01 21:39:27 +00:00
Ag_subnode_seq_disc.link = new OFFSET("seq_link"); // link is the first
2017-07-03 17:59:53 +00:00
// field in
// Agsubnode_t
Ag_subnode_seq_disc.makef = null;
2020-12-01 21:39:27 +00:00
Ag_subnode_seq_disc.freef = node__c.free_subnode;
Ag_subnode_seq_disc.comparf = node__c.agsubnodeseqcmpf;
2017-07-03 17:59:53 +00:00
Ag_subnode_seq_disc.hashf = null;
2020-12-01 21:39:27 +00:00
Ag_subnode_seq_disc.memoryf = utils__c.agdictobjmem;
2017-07-03 17:59:53 +00:00
Ag_subnode_seq_disc.eventf = null;
2020-12-01 21:39:27 +00:00
Refstrdisc.key = new OFFSET("s"); // *s is the third field in refstr_t
2017-07-03 17:59:53 +00:00
Refstrdisc.size = -1;
2020-12-01 21:39:27 +00:00
Refstrdisc.link = OFFSET.zero();
2017-07-03 17:59:53 +00:00
Refstrdisc.makef = null;
2020-12-01 21:39:27 +00:00
Refstrdisc.freef = utils__c.agdictobjfree;
2017-07-03 17:59:53 +00:00
Refstrdisc.comparf = null;
Refstrdisc.hashf = null;
2020-12-01 21:39:27 +00:00
Refstrdisc.memoryf = utils__c.agdictobjmem;
2017-07-03 17:59:53 +00:00
Refstrdisc.eventf = null;
2016-03-06 16:47:34 +00:00
2020-12-01 21:39:27 +00:00
Hdisc.key = new OFFSET("key");
2017-10-07 09:46:53 +00:00
Hdisc.size = 4;
2020-12-01 21:39:27 +00:00
Hdisc.link = OFFSET.externalHolder();
2017-10-07 09:46:53 +00:00
Hdisc.makef = null;
Hdisc.freef = null;
2020-12-01 21:39:27 +00:00
Hdisc.comparf = xlabels__c.icompare;
2017-10-07 09:46:53 +00:00
Hdisc.hashf = null;
Hdisc.memoryf = null;
Hdisc.eventf = null;
2016-03-06 16:47:34 +00:00
2017-07-03 17:59:53 +00:00
Center.p.x = 0;
Center.p.y = 0;
Center.theta = -1;
Center.bp = null;
2020-11-21 17:33:24 +00:00
Center.defined = false;
Center.constrained = false;
Center.clip = true;
Center.dyna = false;
2017-07-03 17:59:53 +00:00
Center.order = 0;
Center.side = 0;
2016-03-06 16:47:34 +00:00
2020-12-01 21:39:27 +00:00
p_ellipse.regular = false;
p_ellipse.peripheries = 1;
p_ellipse.sides = 1;
p_ellipse.orientation = 0.;
p_ellipse.distortion = 0.;
p_ellipse.skew = 0.;
p_box.regular = false;
p_box.peripheries = 1;
p_box.sides = 4;
p_box.orientation = 0.;
p_box.distortion = 0.;
p_box.skew = 0.;
poly_fns.initfn = shapes__c.poly_init;
poly_fns.freefn = shapes__c.poly_free;
poly_fns.portfn = shapes__c.poly_port;
poly_fns.insidefn = shapes__c.poly_inside;
poly_fns.pboxfn = shapes__c.poly_path;
poly_fns.codefn = shapes__c.poly_gencode;
record_fns.initfn = shapes__c.record_init;
record_fns.freefn = shapes__c.record_free;
record_fns.portfn = shapes__c.record_port;
record_fns.insidefn = shapes__c.record_inside;
record_fns.pboxfn = shapes__c.record_path;
record_fns.codefn = shapes__c.record_gencode;
Ag_mainedge_id_disc.key = OFFSET.zero();
2017-07-03 17:59:53 +00:00
Ag_mainedge_id_disc.size = 0;
2020-12-01 21:39:27 +00:00
Ag_mainedge_id_disc.link = new OFFSET("id_link"); // id_link is the second
2017-07-03 17:59:53 +00:00
// field in Agedge_t
Ag_mainedge_id_disc.makef = null;
Ag_mainedge_id_disc.freef = null;
2020-12-01 21:39:27 +00:00
Ag_mainedge_id_disc.comparf = edge__c.agedgeidcmpf;
2017-07-03 17:59:53 +00:00
Ag_mainedge_id_disc.hashf = null;
2020-12-01 21:39:27 +00:00
Ag_mainedge_id_disc.memoryf = utils__c.agdictobjmem;
2017-07-03 17:59:53 +00:00
Ag_mainedge_id_disc.eventf = null;
Agdirected.directed = 1;
Agdirected.strict = 0;
Agdirected.no_loop = 0;
Agdirected.maingraph = 1;
2016-03-06 16:47:34 +00:00
2020-12-01 21:39:27 +00:00
sinfo.swapEnds = dotsplines__c.swap_ends_p;
sinfo.splineMerge = dotsplines__c.spline_merge;
2020-12-06 21:43:09 +00:00
ispline = null;
isz = 0;
2016-03-06 16:47:34 +00:00
}
}