]> gerrit.simantics Code Review - simantics/3d.git/blobdiff - org.simantics.plant3d/src/org/simantics/plant3d/geometry/BuiltinGeometryProvider.java
Publish Plant3D feature
[simantics/3d.git] / org.simantics.plant3d / src / org / simantics / plant3d / geometry / BuiltinGeometryProvider.java
diff --git a/org.simantics.plant3d/src/org/simantics/plant3d/geometry/BuiltinGeometryProvider.java b/org.simantics.plant3d/src/org/simantics/plant3d/geometry/BuiltinGeometryProvider.java
new file mode 100644 (file)
index 0000000..5250cc9
--- /dev/null
@@ -0,0 +1,29 @@
+package org.simantics.plant3d.geometry;
+
+import java.util.Map;
+
+import org.eclipse.core.runtime.IAdaptable;
+import org.simantics.db.Resource;
+import org.simantics.opencascade.ParametricSolidModelProvider;
+
+public abstract class BuiltinGeometryProvider implements ParametricSolidModelProvider, IAdaptable{
+       
+       private Resource resource;
+       
+       public BuiltinGeometryProvider(Resource resource) {
+               this.resource = resource;
+       }
+       
+       @Override
+       public Object getAdapter(Class adapter) {
+               if (Resource.class == adapter)
+                       return resource;
+               return null;
+       }
+       
+       @Override
+       public void updateCalculatedProperties(Map<String, Object> returnProps) {
+               
+       }
+
+}