Package javax.media.j3d

Examples of javax.media.j3d.PointAttributes


    this.universe.getViewingPlatform().setNominalViewingTransform();

    // apearence ver�ndern
    final Appearance appear = new Appearance();

    final PointAttributes pointAttr = new PointAttributes();
    pointAttr.setPointAntialiasingEnable(true);
    appear.setPointAttributes(pointAttr);

    final LineAttributes lineAttr = new LineAttributes();
    lineAttr.setLineAntialiasingEnable(true);
    appear.setLineAttributes(lineAttr);

    final PolygonAttributes polyAttr = new PolygonAttributes();
    polyAttr.setPolygonMode(PolygonAttributes.POLYGON_FILL);
    appear.setPolygonAttributes(polyAttr);

    final Color3f orange = new Color3f(1f, 0.5f, 0f);

    final ColoringAttributes colorAttr = new ColoringAttributes();
    colorAttr.setColor(orange);
    colorAttr.setShadeModel(ColoringAttributes.NICEST);
    appear.setColoringAttributes(colorAttr);

    final Material material = new Material();
    material.setAmbientColor(orange);
    material.setDiffuseColor(orange);
    material.setSpecularColor(orange);
    material.setEmissiveColor(orange);
    appear.setMaterial(material);

    final Box box = new Box();
    box.setAppearance(appear);

    final Appearance appear2 = new Appearance();

    final PointAttributes pointAttr2 = new PointAttributes();
    pointAttr2.setPointAntialiasingEnable(true);
    appear2.setPointAttributes(pointAttr2);

    final LineAttributes lineAttr2 = new LineAttributes();
    lineAttr2.setLineAntialiasingEnable(true);
    appear2.setLineAttributes(lineAttr2);
View Full Code Here


/* 53 */     super(symbol, control);
/*    */   }
/*    */
/*    */   public void writeObject(DataOutput out) throws IOException {
/* 57 */     super.writeObject(out);
/* 58 */     PointAttributes attr = (PointAttributes)this.node;
/* 59 */     out.writeBoolean(attr.getPointAntialiasingEnable());
/* 60 */     out.writeFloat(attr.getPointSize());
/*    */   }
View Full Code Here

/* 60 */     out.writeFloat(attr.getPointSize());
/*    */   }
/*    */
/*    */   public void readObject(DataInput in) throws IOException {
/* 64 */     super.readObject(in);
/* 65 */     PointAttributes attr = (PointAttributes)this.node;
/* 66 */     attr.setPointAntialiasingEnable(in.readBoolean());
/* 67 */     attr.setPointSize(in.readFloat());
/*    */   }
View Full Code Here

/* 66 */     attr.setPointAntialiasingEnable(in.readBoolean());
/* 67 */     attr.setPointSize(in.readFloat());
/*    */   }
/*    */
/*    */   protected SceneGraphObject createNode() {
/* 71 */     return new PointAttributes();
/*    */   }
View Full Code Here

TOP

Related Classes of javax.media.j3d.PointAttributes

Copyright © 2018 www.massapicom. 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.