Examples of ColoringAttributes


Examples of javax.media.j3d.ColoringAttributes

/* 54 */     super(symbol, control);
/*    */   }
/*    */
/*    */   public void writeObject(DataOutput out) throws IOException {
/* 58 */     super.writeObject(out);
/* 59 */     ColoringAttributes attr = (ColoringAttributes)this.node;
/* 60 */     Color3f clr = new Color3f();
/* 61 */     attr.getColor(clr);
/* 62 */     this.control.writeColor3f(out, clr);
/* 63 */     out.writeInt(attr.getShadeModel());
/*    */   }
View Full Code Here

Examples of javax.media.j3d.ColoringAttributes

/* 63 */     out.writeInt(attr.getShadeModel());
/*    */   }
/*    */
/*    */   public void readObject(DataInput in) throws IOException {
/* 67 */     super.readObject(in);
/* 68 */     ColoringAttributes attr = (ColoringAttributes)this.node;
/* 69 */     attr.setColor(this.control.readColor3f(in));
/* 70 */     attr.setShadeModel(in.readInt());
/*    */   }
View Full Code Here

Examples of javax.media.j3d.ColoringAttributes

/* 69 */     attr.setColor(this.control.readColor3f(in));
/* 70 */     attr.setShadeModel(in.readInt());
/*    */   }
/*    */
/*    */   protected SceneGraphObject createNode() {
/* 74 */     return new ColoringAttributes();
/*    */   }
View Full Code Here

Examples of javax.media.j3d.ColoringAttributes

     *
     * @param appearance the appearance
     * @param color the color
     */
    public static void setColorWithColoringAttributes(Appearance appearance, Color3f color) {
        ColoringAttributes coloringAttributes = new ColoringAttributes();
        coloringAttributes.setColor(color);
        appearance.setColoringAttributes(coloringAttributes);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.