public void SetSceneElement(SceneElement sceneElement)
 {
     if (sceneElement is Sphere) {
         SetSphere((Sphere)sceneElement);
     }
 }
 public void SetSceneElement(SceneElement sceneElement)
 {
     if (sceneElement is PerspectiveCamera) {
         SetCamera((PerspectiveCamera)sceneElement);
     }
 }
 public void SetSceneElement(SceneElement sceneElement)
 {
     if (sceneElement is OrthographicCamera) {
         SetCamera((OrthographicCamera)sceneElement);
     }
 }
Esempio n. 4
0
 public SceneElementNode(SceneElement sceneElement)
     : base(sceneElement.Name)
 {
     this.sceneElement = sceneElement;
 }
Esempio n. 5
0
 private void OnNameUpdated(SceneElement sceneElement)
 {
     NotifySceneElementNameUpdated(sceneElement);
 }
Esempio n. 6
0
 private void NotifySceneElementNameUpdated(SceneElement sceneElement)
 {
     if (sceneElementNameUpdated != null) {
         sceneElementNameUpdated.Invoke(this, sceneElement);
     }
 }
 public void SetSceneElement(SceneElement sceneElement)
 {
     if (sceneElement is Cylinder) {
         SetCylinder((Cylinder)sceneElement);
     }
 }