pla.setCoordinates(0, plaPts); PointAttributes a_point_just_bigger=new PointAttributes(); a_point_just_bigger.setPointSize(10.0f);//10 pixel-wide point a_point_just_bigger.setPointAntialiasingEnable(true);//now points are sphere-like(not a cube) app.setPointAttributes(a_point_just_bigger);
vertexGroup.setUserData(ud); PointAttributes attr = new PointAttributes(); attr.setPointSize(VERTEX_THICKNESS); PointAttributes treePointAttr = new PointAttributes(); treePointAttr.setPointSize(TREE_POINT_THICKNESS); Appearance appear = new Appearance(); appear.setPointAttributes(attr);
appearance.setCapability(Appearance.ALLOW_LINE_ATTRIBUTES_READ); final PointAttributes pointAttrib = new PointAttributes(); pointAttrib.setCapability(PointAttributes.ALLOW_ANTIALIASING_WRITE); pointAttrib.setCapability(PointAttributes.ALLOW_SIZE_WRITE); pointAttrib.setPointSize(pointsize); appearance.setPointAttributes(pointAttrib);
@Override public void readObject( DataInput in ) throws IOException { super.readObject( in ); PointAttributes attr = (PointAttributes)node; attr.setPointAntialiasingEnable( in.readBoolean() ); attr.setPointSize( in.readFloat() ); }
/** * @deprecated replaced with cloneNodeComponent(boolean forceDuplicate) */ @Override public NodeComponent cloneNodeComponent() { PointAttributes pa = new PointAttributes(); pa.duplicateNodeComponent(this); return pa; }
@Override protected org.scijava.java3d.SceneGraphObject createNode() { return new PointAttributes(); }
public void setPointSize(final float pointsize) { this.pointsize = pointsize; getAppearance().getPointAttributes().setPointSize(pointsize); }
/** * Sets the point size for this appearance component object. * @param pointSize the size, in pixels, of point primitives * @exception CapabilityNotSetException if appropriate capability is * not set and this object is part of live or compiled scene graph */ public void setPointSize(float pointSize) { if (isLiveOrCompiled()) if(!this.getCapability(ALLOW_SIZE_WRITE)) throw new CapabilityNotSetException(J3dI18N.getString("PointAttributes0")); if (isLive()) ((PointAttributesRetained)this.retained).setPointSize(pointSize); else ((PointAttributesRetained)this.retained).initPointSize(pointSize); }
public void setAntiAliasing(final boolean b) { getAppearance().getPointAttributes().setPointAntialiasingEnable(b); }
/** * Gets the point size for this appearance component object. * @return the size, in pixels, of point primitives * @exception CapabilityNotSetException if appropriate capability is * not set and this object is part of live or compiled scene graph */ public float getPointSize() { if (isLiveOrCompiled()) if(!this.getCapability(ALLOW_SIZE_READ)) throw new CapabilityNotSetException(J3dI18N.getString("PointAttributes1")); return ((PointAttributesRetained)this.retained).getPointSize(); }
@Override public void writeObject( DataOutput out ) throws IOException { super.writeObject( out ); PointAttributes attr = (PointAttributes)node; out.writeBoolean( attr.getPointAntialiasingEnable() ); out.writeFloat( attr.getPointSize() ); }
new ColoringAttributes(surf.getColor(), ColoringAttributes.FASTEST); PointAttributes pointStyle = new PointAttributes(); pointStyle.setPointSize(1);
/** * Enables or disables point antialiasing * for this appearance component object. * <p> * If antialiasing is enabled, the points are considered transparent * for rendering purposes. They are rendered with all the other * transparent objects and adhere to the other transparency settings * such as the View transparency sorting policy and the View depth * buffer freeze transparent enable. * </p> * @param state true or false to enable or disable point antialiasing * @exception CapabilityNotSetException if appropriate capability is * not set and this object is part of live or compiled scene graph * @see View */ public void setPointAntialiasingEnable(boolean state) { if (isLiveOrCompiled()) if(!this.getCapability(ALLOW_ANTIALIASING_WRITE)) throw new CapabilityNotSetException(J3dI18N.getString("PointAttributes2")); if (isLive()) ((PointAttributesRetained)this.retained).setPointAntialiasingEnable(state); else ((PointAttributesRetained)this.retained).initPointAntialiasingEnable(state); }
/** * Retrieves the state of the point antialiasing flag. * @return true if point antialiasing is enabled, * false if point antialiasing is disabled * @exception CapabilityNotSetException if appropriate capability is * not set and this object is part of live or compiled scene graph */ public boolean getPointAntialiasingEnable() { if (isLiveOrCompiled()) if(!this.getCapability(ALLOW_ANTIALIASING_READ)) throw new CapabilityNotSetException(J3dI18N.getString("PointAttributes3")); return ((PointAttributesRetained)this.retained).getPointAntialiasingEnable(); }
PointAttributes a_point_just_bigger=new PointAttributes(); a_point_just_bigger.setPointSize(10.0f);//10 pixel-wide point a_point_just_bigger.setPointAntialiasingEnable(true);//now points are sphere-like(not a cube) app.setPointAttributes(a_point_just_bigger);
PointAttributes a_point_just_bigger=new PointAttributes(); a_point_just_bigger.setPointSize(10.0f);//10 pixel-wide point a_point_just_bigger.setPointAntialiasingEnable(true);//now points are sphere-like(not a cube) app.setPointAttributes(a_point_just_bigger); PolygonAttributes la=new PolygonAttributes();