MacroMachines / JUCE-Graph-Component

JUCE Framework Graph editing and visualisation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JUCE Graph Component

This is a JUCE Framework set of components that allows drawing a graph by connecting nodes and edges. The component is inspired by the plugin host demo application that comes with JUCE, but this one is a different implementation.

Features

  • Each node can be scaled individually, zoom-in cmd + '+', zoom-out cmd + '-', or zoom to original scale cmd + '0'
  • Multi-select using keyboard or mouse is supported
  • Special type of node that can host any component
  • Backed by a simple graph that supports communication between nodes
  • Sample application to preview the component and how to use it
  • Very simple theming for changing the overall components look and feel

Demo Application

  • Right-click on the demo window to add example nodes, and drag pins to create edges
  • Click and drag on the window to select multiple nodes and edges
  • To scale a node, select it and hit cmd + '+', cmd + '-' or cmd + '0'
  • Delete a node or edge by selecting it and hit delete or backspace
  • Duplicate a node using cmd + 'd', duplicating host nodes is not supported yet

Building

The following steps are tested only on macOS:

  • You will need a C++14 compiler
  • Use the provided graph-viewer.jucer to generate a project for your platform or use the provided XCode project
  • If you are generating a project from the jucer file, make sure you setup the correct JUCE modules paths correctly

License

MIT

About

JUCE Framework Graph editing and visualisation

License:MIT License


Languages

Language:C++ 69.4%Language:C 25.9%Language:Objective-C++ 3.7%Language:Java 0.8%Language:Objective-C 0.2%