@Override protected Object clone() { TexCoordGenerationRetained tr = (TexCoordGenerationRetained) super.clone(); tr.planeS = new Vector4f(planeS); tr.planeT = new Vector4f(planeT); tr.planeR = new Vector4f(planeR); // other attributes is copied in super.clone() return tr; }
/** Update the "component" field of the mirror object with the given "value" */ @Override synchronized void updateMirrorObject(int component, Object value) { TexCoordGenerationRetained mirrorTc = (TexCoordGenerationRetained) mirror; mirrorTc.mirrorCompDirty = true; if ((component & ENABLE_CHANGED) != 0) { mirrorTc.enable = ((Boolean) value).booleanValue(); } else if ((component & PLANE_S_CHANGED) != 0) { mirrorTc.planeS = (Vector4f) value; } else if ((component & PLANE_T_CHANGED) != 0) { mirrorTc.planeT = (Vector4f) value; } else if ((component & PLANE_R_CHANGED) != 0) { mirrorTc.planeR = (Vector4f) value; } else if ((component & PLANE_Q_CHANGED) != 0) { mirrorTc.planeQ = (Vector4f) value; } }