Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Olympe::NodeGraph::ILayoutEngine Class Referenceabstract

Abstract interface for layout engines. More...

#include <ILayoutEngine.h>

Public Member Functions

virtual ~ILayoutEngine ()=default
 
virtual std::vector< NodeLayoutComputeLayout (const GraphDocument *graph, const LayoutParams &params)=0
 Compute layout for all nodes in graph.
 
virtual std::string GetName () const =0
 Get name of layout engine.
 

Detailed Description

Abstract interface for layout engines.

Definition at line 60 of file ILayoutEngine.h.

Constructor & Destructor Documentation

◆ ~ILayoutEngine()

virtual Olympe::NodeGraph::ILayoutEngine::~ILayoutEngine ( )
virtualdefault

Member Function Documentation

◆ ComputeLayout()

virtual std::vector< NodeLayout > Olympe::NodeGraph::ILayoutEngine::ComputeLayout ( const GraphDocument graph,
const LayoutParams params 
)
pure virtual

Compute layout for all nodes in graph.

Parameters
graphGraph document
paramsLayout parameters
Returns
Vector of node layouts

◆ GetName()

virtual std::string Olympe::NodeGraph::ILayoutEngine::GetName ( ) const
pure virtual

Get name of layout engine.

Returns
Engine name

The documentation for this class was generated from the following file: