#pragma once

#include "AbstractVisualNode.h"

#include "Plot.h"

class TextNode;
class EquationNode;

class PlotCaptionNode : public AbstractVisualNode
{
public: 
	PlotCaptionNode(const Transform& transform = {});

	void setContent(const PlotCaption& content);

private:
	PlotCaption mContent;
	bool mContentDirty{ true };

	std::vector<std::unique_ptr<TextNode> > mTextContent;
	std::vector<std::unique_ptr<EquationNode> > mEquationContent;
};