Beispiel #1
0
 public TransformationNode(int ID, Element3D parent)
     : base(ID, parent)
 {
     Rotation    = new M3D.Model.Utils.Vector3(0.0f, 0.0f, 0.0f);
     Scale       = new M3D.Model.Utils.Vector3(1f, 1f, 1f);
     Translation = new M3D.Model.Utils.Vector3(0.0f, 0.0f, 0.0f);
 }
Beispiel #2
0
 public CustomShape(int ID, Element3D parent)
     : base(ID, parent)
 {
     ambient   = new Color4(0.05f, 0.05f, 0.05f, 1f);
     diffuse   = new Color4(1f, 1f, 1f, 1f);
     specular  = new Color4(1f, 1f, 1f, 1f);
     shininess = 100f;
 }
Beispiel #3
0
 public virtual void AddChildElement(Element3D child)
 {
     child.parent = this;
     child.SetBaseParent(this);
     lock (child_list3D)
     {
         child_list3D.Add(child);
     }
 }
Beispiel #4
0
        public virtual void RemoveChildElement(Element3D child)
        {
            if (child == null)
            {
                return;
            }

            child.parent = null;
            if (child_list3D == null)
            {
                return;
            }

            lock (child_list3D)
            {
                child_list3D.Remove(child);
            }
        }
Beispiel #5
0
 public TexturedFloorNode(int ID, Element3D parent)
     : base(ID, parent)
 {
 }
Beispiel #6
0
 public Element3D(int ID, Element3D parent)
     : base(ID, parent)
 {
     this.parent  = parent;
     child_list3D = new List <Element3D>();
 }
Beispiel #7
0
 public FrontFacingPlaneNode(int ID, Element3D parent)
     : base(ID, parent)
 {
 }
Beispiel #8
0
 public Model3DNode(int ID, Element3D parent)
     : base(ID, parent)
 {
     Brightness = 1f;
 }
Beispiel #9
0
 public LightNode(int ID, Element3D parent)
     : base(ID, parent)
 {
 }
Beispiel #10
0
 public virtual void RemoveChildElement3D(Element3D child)
 {
     origin.RemoveChildElement(child);
 }
Beispiel #11
0
 public virtual void AddChildElement3D(Element3D child)
 {
     origin.AddChildElement(child);
 }