]> gerrit.simantics Code Review - simantics/3d.git/blobdiff - org.simantics.plant3d/src/org/simantics/plant3d/scenegraph/P3DRootNode.java
Use generics type variable for mapping db object.
[simantics/3d.git] / org.simantics.plant3d / src / org / simantics / plant3d / scenegraph / P3DRootNode.java
index 4f00530e7203f2e0ca010bf8423d9e57366d3188..0fb7ed4f8d1fa9b990cb9ea54f14f5713d9038bc 100644 (file)
@@ -7,6 +7,7 @@ import java.util.Set;
 import javax.vecmath.Quat4d;
 import javax.vecmath.Vector3d;
 
+import org.simantics.db.Resource;
 import org.simantics.g3d.math.MathTools;
 import org.simantics.g3d.scenegraph.IG3DNode;
 import org.simantics.g3d.scenegraph.NodeMap;
@@ -24,7 +25,7 @@ import org.simantics.plant3d.ontology.Plant3D;
 import vtk.vtkProp;
 
 @GraphType(Plant3D.URIs.Plant)
-public class P3DRootNode extends ParentNode<INode> implements IG3DNode, NodeMapProvider<vtkProp , INode> {
+public class P3DRootNode extends ParentNode<INode> implements IG3DNode, NodeMapProvider<Resource, vtkProp , INode> {
        
        
        @RelatedElementsAdd(Plant3D.URIs.children)
@@ -51,7 +52,7 @@ public class P3DRootNode extends ParentNode<INode> implements IG3DNode, NodeMapP
        }
        
        @Override
-       public NodeMap<vtkProp, INode> getNodeMap() {
+       public NodeMap<Resource,vtkProp, INode> getNodeMap() {
                return nodeMap;
        }