/** * Constructs a ColoringAttributes node with default parameters. * The default values are as follows: * <ul> * color = white (1,1,1)<br> * shade model = SHADE_GOURAUD<br> * </ul> */ public ColoringAttributes() { // Just use default attributes // set default read capabilities setDefaultReadCapabilities(readCapabilities); }
/** * Construct ColoringAttributes object with specified values. * @param color the intrisic color * @param shadeModel the shade model used; one of FASTEST, NICEST, * SHADE_FLAT, or SHADE_GOURAUD */ public ColoringAttributes(Color3f color, int shadeModel) { // set default read capabilities setDefaultReadCapabilities(readCapabilities); ((ColoringAttributesRetained)this.retained).initColor(color); ((ColoringAttributesRetained)this.retained).initShadeModel(shadeModel); }
/** * Construct ColoringAttributes object with specified values. * @param red red component of the intrisic color * @param green green component of the intrisic color * @param blue blue component of the intrisic color * @param shadeModel the shade model used; one of FASTEST, NICEST, * SHADE_FLAT, or SHADE_GOURAUD */ public ColoringAttributes(float red, float green, float blue, int shadeModel) { // set default read capabilities setDefaultReadCapabilities(readCapabilities); ((ColoringAttributesRetained)this.retained).initColor(red, green,blue); ((ColoringAttributesRetained)this.retained).initShadeModel(shadeModel); }