System Requirements
Fra 8BitWiki
Indholdsfortegnelse |
System Requirements
These system requirements and program tasks are very loosely defined and should be examined further before starting the programming.
Properties
- The Programmet must be able to graphically represent a graph structure.
- The Programmet must be able to provide overview of all abailable opcodes.
- The Programmet must be able to convert the graph structure to Csound code.
- The Programmet must be able to convert Csound code to graphical representation.
- The Programmet must be able to let the user manipulate the graph structure visually.
Program tasks
Open a Csound document
- Show a menu with the possibilty to open a .csd file.
- Examine the document. Does have information about the position of the vertices.
- IF Csound dokument indeholder oplysninger om knudernes grafiske placering på skærmen: Konverter Csound dokument til graf.
- ELSE Fordel graf over tilgængeligt skærmbillede, så overlap så vidt muligt undgås.
Save a Csound document
- Show file menu with the option to save a .csd file
- Convert graph to Csound document including information about vertex positions.
Add vertex to graph
- Select opcode in tree-menu.
- Drag and drop it onto the canvas.
Delete vertex
- IF one or more vertices are selected: push 'Delete'.
- ELSE select vertex and push 'Delete'.
- Delete vertex including its edges from graph.
Move vertex
- Select vertex
- Move vertex
- IF more than one vertex is selected: Update position of all verticesand there edges.
- ELSE Update only the vertex and its edges position
Add edge
- Select input or output on vertex.
- Move cursor to other input or output (different from first selection).
Delete edge
- Select edge
- Delete edge
Move allready created edge
- Select edge in one end
- IF cursor is moved to same or other input or output: Update edge data
- ELSE delete edge from graph
Select one or more vertices
- Select canvas outside any vertices or edges
- Move cursor over all vertices and edges to select them.