public CompatibilityModelClass[] createModelClassesCompatibility(AbstractEngine engine) {
compatibilityModelClasses = new CompatibilityModelClass[4];
int classIds = 0;
//NODE
compatibilityModelClasses[0] = new CompatibilityModelClass("NODE", true, true, true, false, false);
compatibilityModelClasses[0].setClassId(classIds++);
CompatibilityNodeSphereModeler modeler3d = new CompatibilityNodeSphereModeler(engine);
CompatibilityNodeDiskModeler modeler2d = new CompatibilityNodeDiskModeler(engine);
CompatibilityNodeRectangleModeler modelerRect = new CompatibilityNodeRectangleModeler(engine);
compatibilityModelClasses[0].addModeler(modeler3d);
compatibilityModelClasses[0].addModeler(modeler2d);
compatibilityModelClasses[0].addModeler(modelerRect);
if (VizController.getInstance().getVizModel().isUse3d()) {
compatibilityModelClasses[0].setCurrentModeler(modeler3d);
} else {
compatibilityModelClasses[0].setCurrentModeler(modeler2d);
}
//EDGE
compatibilityModelClasses[1] = new CompatibilityModelClass("EDGE", false, true, false, false, false);
compatibilityModelClasses[1].setClassId(classIds++);
CompatibilityEdgeModeler edgeModeler = new CompatibilityEdgeModeler();
compatibilityModelClasses[1].addModeler(edgeModeler);
compatibilityModelClasses[1].setCurrentModeler(edgeModeler);
//ARROW
compatibilityModelClasses[2] = new CompatibilityModelClass("ARROW", true, false, false, false, false);
compatibilityModelClasses[2].setClassId(classIds++);
CompatibilityArrowModeler arrowModeler = new CompatibilityArrowModeler(engine);
compatibilityModelClasses[2].addModeler(arrowModeler);
compatibilityModelClasses[2].setCurrentModeler(arrowModeler);
//POTATO
compatibilityModelClasses[3] = new CompatibilityModelClass("POTATO", false, true, true, true, true);
compatibilityModelClasses[3].setClassId(classIds++);
CompatibilityHullModeler hullModeler = new CompatibilityHullModeler();
compatibilityModelClasses[3].addModeler(hullModeler);
compatibilityModelClasses[3].setCurrentModeler(hullModeler);
//modelClasses[3] = new CompatibilityModelClass("POTATO", false, true, true);