92 const std::vector<MiniMapNodeEntry>&
GetNodes()
const;
ComponentTypeID GetComponentTypeID_Static()
Singleton mini-map providing normalised graph overview data.
const std::vector< MiniMapNodeEntry > & GetNodes() const
Returns the normalised node positions for rendering.
std::vector< MiniMapNodeEntry > m_Nodes
bool HandleClick(float clickNX, float clickNY, float &outScrollX, float &outScrollY) const
Converts a click on the mini-map into a graph-scroll target.
static MiniMapPanel & Get()
Returns the single shared instance.
static constexpr float PANEL_HEIGHT
Default panel height in screen px.
void GetViewportRect(float &outX, float &outY, float &outW, float &outH) const
Returns the normalised viewport rectangle.
void SetGraphBounds(float minX, float maxX, float minY, float maxY)
Sets the full bounds of the graph in graph space.
static constexpr float PANEL_WIDTH
Default panel width in screen px.
void SetViewport(float minX, float maxX, float minY, float maxY)
Sets the currently visible viewport in graph space.
bool IsVisible() const
Returns true when the mini-map has valid data to display.
void UpdateNodePositions(const std::vector< std::pair< int, std::pair< float, float > > > &rawPositions)
Updates the normalised node positions from raw (id, x, y) triples.
float Normalise(float value, float minVal, float maxVal) const
< Provides AssetID and INVALID_ASSET_ID
A node represented in the mini-map (normalised coords).
float nx
Normalised X [0..1].
float ny
Normalised Y [0..1].