]> gerrit.simantics Code Review - simantics/3d.git/blob - org.simantics.plant3d/src/org/simantics/plant3d/geometry/BuiltinGeometryProvider.java
Check parameter inputs in geometry providers.
[simantics/3d.git] / org.simantics.plant3d / src / org / simantics / plant3d / geometry / BuiltinGeometryProvider.java
1 package org.simantics.plant3d.geometry;
2
3 import java.util.Map;
4
5 import org.eclipse.core.runtime.IAdaptable;
6 import org.simantics.db.Resource;
7 import org.simantics.opencascade.ParametricSolidModelProvider;
8
9 public abstract class BuiltinGeometryProvider implements ParametricSolidModelProvider, IAdaptable{
10         
11         private Resource resource;
12         
13         public BuiltinGeometryProvider(Resource resource) {
14                 this.resource = resource;
15         }
16         
17         @Override
18         public Object getAdapter(Class adapter) {
19                 if (Resource.class == adapter)
20                         return resource;
21                 return null;
22         }
23         
24         @Override
25         public void updateCalculatedProperties(Map<String, Object> returnProps) {
26                 
27         }
28
29 }