import org.simantics.plant3d.scenegraph.PipelineComponent;
import org.simantics.plant3d.scenegraph.controlpoint.PipeControlPoint;
import org.simantics.plant3d.scenegraph.controlpoint.PipingRules;
+import org.simantics.plant3d.scl.SCLUtil;
import org.simantics.plant3d.utils.Item.Type;
public class P3DUtil {
+ public static List<Item> getEquipments() throws DatabaseException {
+ return getEquipments(SCLUtil.getRequestProcessor());
+ }
public static List<Item> getEquipments(RequestProcessor session) throws DatabaseException {
return getEquipments(session, Plant3D.URIs.Builtin);
}
+
+ public static List<Item> getEquipments(final String libUri) throws DatabaseException {
+ return getEquipments(SCLUtil.getRequestProcessor(), libUri);
+ }
public static List<Item> getEquipments(RequestProcessor session, final String libUri) throws DatabaseException {
return session.syncRequest(new Read<List<Item>>() {
});
}
+ public static List<Item> getNozzles(String libUri) throws DatabaseException {
+ return getNozzles(SCLUtil.getRequestProcessor(), libUri);
+ }
+
public static List<Item> getNozzles(RequestProcessor session, String libUri) throws DatabaseException {
return session.syncRequest(new Read<List<Item>>() {
@Override
}
}
+ public static List<Item> getEnds(String libUri) throws DatabaseException {
+ return getEnds(SCLUtil.getRequestProcessor(), libUri);
+ }
+
public static List<Item> getEnds(RequestProcessor session, String libUri) throws DatabaseException {
return session.syncRequest(new Read<List<Item>>() {
@Override
}
});
}
+
+ public static List<Item> getTurns(String libUri) throws DatabaseException {
+ return getTurns(SCLUtil.getRequestProcessor(), libUri);
+ }
public static List<Item> getTurns(RequestProcessor session, String libUri) throws DatabaseException {
return session.syncRequest(new Read<List<Item>>() {
}
});
}
+
+ public static List<Item> getInlines(String libUri) throws DatabaseException {
+ return getInlines(SCLUtil.getRequestProcessor(), libUri);
+ }
public static List<Item> getInlines(RequestProcessor session, String libUri) throws DatabaseException {
return session.syncRequest(new Read<List<Item>>() {