3#include <Foundation/Math/Color.h>
4#include <Foundation/Strings/String.h>
12 enum class Direction : plUInt8
20 enum class Layout : plUInt8
27 enum class NodeShape : plUInt8
35 enum class GroupType : plUInt8
42 using NodeId = plUInt32;
43 using PropertyId = plUInt32;
44 using ConnectionId = plUInt32;
49 NodeShape m_Shape = NodeShape::Rectangle;
53 plDGMLGraph(Direction graphDirection = Direction::LeftToRight, Layout graphLayout = Layout::Tree);
63 void AddNodeToGroup(NodeId node, NodeId group);
66 ConnectionId AddConnection(NodeId source, NodeId target,
plStringView sLabel = {});
72 void AddNodeProperty(NodeId node, PropertyId property,
const plFormatString& fmt);
91 PropertyId m_PropertyId;
98 GroupType m_GroupType = GroupType::None;
99 NodeId m_ParentGroup = 0xFFFFFFFF;
110 Direction m_Direction;
plColor represents an RGBA color in linear color space. Values are stored as float,...
Definition Color.h:44
static const plColor White
#FFFFFF
Definition Color.h:194
This class encapsulates building a DGML compatible graph.
Definition DGMLWriter.h:10
This class encapsulates the output of DGML compatible graphs to files and streams.
Definition DGMLWriter.h:117
Definition DynamicArray.h:81
A hybrid array uses in-place storage to handle the first few elements without any allocation....
Definition HybridArray.h:12
plStringBuilder is a class that is meant for creating and modifying strings.
Definition StringBuilder.h:35
plStringView represent a read-only sub-string of a larger string, as it can store a dedicated string ...
Definition StringView.h:34
Definition DGMLWriter.h:78
Definition DGMLWriter.h:47
Definition DGMLWriter.h:96
Definition DGMLWriter.h:85
Definition DGMLWriter.h:90
Default enum for returning failure or success, instead of using a bool.
Definition Types.h:54