ComponentTypeID GetComponentTypeID_Static()
Singleton cache mapping connection IDs to Bezier control points.
std::map< int, BezierPoints > m_Cache
BezierPoints m_DefaultBezier
Returned when ID is not in cache.
bool HasCached(int connectionId) const
Returns true if Bezier points are stored for connectionId.
void SetBezier(int connectionId, const BezierPoints &pts)
Stores or overwrites the Bezier points for connectionId.
static ConnectionCache & Get()
Returns the single shared instance.
size_t GetCacheSize() const
Returns the number of entries currently in the cache.
void InvalidateAll()
Clears all cached entries.
void Invalidate(int connectionId)
Removes the cached entry for connectionId.
const BezierPoints & GetBezier(int connectionId) const
Returns the cached Bezier points for connectionId.
< Provides AssetID and INVALID_ASSET_ID
Four cubic Bezier control points (P0..P3).
float p2y
Second control point.
float p1y
First control point.