Introduce new command-line tools for generating visual previews (in SVG and PNG formats) and exporting city layout data into a CSV file from the output of the placing phase, enhancing the toolchain's versatility for previewing, debugging, and integration purposes.
New Tools Overview
SVG Preview Generator
Description: Develop a tool that generates an SVG image representing the city's top view. This should include different annotations for various building types (e.g., floor, cellar, ground) using a customizable color scheme.
Features:
Command-line argument for specifying the color scheme.
Visualization should accurately reflect the city layout and building types.
PNG Preview Generator
Description: Similar to the SVG generator, this tool will create a PNG image from the placing phase output, showcasing the city's layout with different colors for building types.
Features:
Ability to set the scale of the preview, with a default block size of 1 pixel.
Command-line argument for color scheme customization.
CSV Export Tool
Description: Create a tool for exporting building data from the placing phase into a CSV file. This file should list buildings by their containment paths, with graphical attributes of buildings (e.g., floors, gardens) represented in columns.
Features:
First column dedicated to building IDs.
Header row includes all possible graphical attributes for buildings.
Empty cells for buildings lacking specific attributes.
Aimed at facilitating debugging and potential integration with other tools or workflows.
Action Items
[ ] Design and implement the SVG preview generator tool with customizable color schemes.
[ ] Develop the PNG preview generator with scale and color scheme options.
[ ] Create the CSV export tool for detailed building attributes and containment paths.
[ ] Ensure each tool includes comprehensive command-line argument support for customization and flexibility.
[ ] Validate the output of each tool for accuracy and usability in intended applications (previewing, debugging, integration).
Goal
By introducing these tools, we aim to expand the toolchain's functionality, providing users with flexible options for visualizing and exporting city layouts. These enhancements are intended to improve the user experience for developers and designers by offering quick previews and detailed data exports for further analysis or integration.
Objective
Introduce new command-line tools for generating visual previews (in SVG and PNG formats) and exporting city layout data into a CSV file from the output of the placing phase, enhancing the toolchain's versatility for previewing, debugging, and integration purposes.
New Tools Overview
SVG Preview Generator
PNG Preview Generator
CSV Export Tool
Action Items
Goal
By introducing these tools, we aim to expand the toolchain's functionality, providing users with flexible options for visualizing and exporting city layouts. These enhancements are intended to improve the user experience for developers and designers by offering quick previews and detailed data exports for further analysis or integration.