public void setHeight(double height) { this.thickness = height; notifyChangedListener(); }
public Graphics3DAddHeightMapInstruction(HeightMap heightMap, int xPointsPerSide, int yPointsPerSide, AppearanceDefinition appearance) { this.heightMap = heightMap; this.xPointsPerSide = xPointsPerSide; this.yPointsPerSide = yPointsPerSide; setAppearance(appearance); }
public Graphics3DAddModelFileInstruction(String fileName, AppearanceDefinition appearance) { this.fileName = fileName; this.submesh = null; this.centerSubmesh = false; setAppearance(appearance); }
public Graphics3DAddMeshDataInstruction(MeshDataHolder meshData, AppearanceDefinition appearance) { this.meshData = meshData; setAppearance(appearance); }
public Graphics3DAddExtrusionInstruction(String text, double thickness, AppearanceDefinition appearance) { this(); this.thickness = thickness; this.setText(text); this.setAppearance(appearance); }
/** * Create an extrusion of a BufferedImage. Black pixels of the image are extruded. * A pixel is considered black when (red+green+blue)/3 < 60 * * @param bufferedImageToExtrude BufferedImage to extrude * @param thickness Thinkness of extrusion * @param appearance Appearance */ public Graphics3DAddExtrusionInstruction(BufferedImage bufferedImageToExtrude, double thickness, AppearanceDefinition appearance) { this(); this.thickness = thickness; this.setBufferedImage(bufferedImageToExtrude); this.setAppearance(appearance); }
/** * Creates a polygon centered at the current coordinate system with the given vertices. * The points this shape is composed of must be coplanar and the order matters. Randomly * inserting points will produce unpredictable results, clockwise direction determines the * side that is drawn. * * @param polygonPoints ArrayList containing the points. * @param yoAppearance Appearance to be used with the new polygon. See {@link YoAppearance YoAppearance} for implementations. */ public PolygonGraphics3DInstruction addPolygon(ArrayList<Point3D> polygonPoints, AppearanceDefinition yoAppearance) { PolygonGraphics3DInstruction graphicsInstruction = new PolygonGraphics3DInstruction(polygonPoints); graphicsInstruction.setAppearance(yoAppearance); return graphicsInstruction; }
public void setText(String text) { instruction.setText(text); }
public void setAppearance(AppearanceDefinition appearance) { instruction.setAppearance(appearance); }
public Graphics3DAddMeshDataInstruction(MeshDataHolder meshData, AppearanceDefinition appearance) { this.meshData = meshData; setAppearance(appearance); }
public Graphics3DAddExtrusionInstruction(String text, double thickness, AppearanceDefinition appearance) { this(); this.thickness = thickness; this.setText(text); this.setAppearance(appearance); }
public void setBufferedImage(BufferedImage newImage) { this.bufferedImageToExtrude = newImage; notifyChangedListener(); }
public Graphics3DAddHeightMapInstruction(HeightMap heightMap, int xPointsPerSide, int yPointsPerSide, AppearanceDefinition appearance) { this.heightMap = heightMap; this.xPointsPerSide = xPointsPerSide; this.yPointsPerSide = yPointsPerSide; setAppearance(appearance); }
public Graphics3DAddModelFileInstruction(String fileName, AppearanceDefinition appearance) { this.fileName = fileName; this.submesh = null; this.centerSubmesh = false; setAppearance(appearance); }
public void setText(String text) { instruction.setText(text); }
public void setAppearance(AppearanceDefinition appearance) { instruction.setAppearance(appearance); }
public void updateAppearance(AppearanceDefinition appearance) { instruction.setAppearance(appearance); }
public void setBufferedImage(BufferedImage newImage) { this.bufferedImageToExtrude = newImage; notifyChangedListener(); }
public void updateAppearance(AppearanceDefinition appearance) { instruction.setAppearance(appearance); }
public void setHeight(double height) { this.thickness = height; notifyChangedListener(); }