Some simple svg output.

This commit is contained in:
James Grogan 2022-12-08 13:52:37 +00:00
parent 1fc730d413
commit b101a5f87c
11 changed files with 87 additions and 6 deletions

View file

@ -23,9 +23,21 @@ public:
bool isEmpty() const;
bool shouldShowMeshOutline() const
{
return mShowMeshOutline;
}
void setShowMeshOutline(bool shouldShow)
{
mShowMeshOutline = shouldShow;
}
void update(FontsManager* fontsManager = nullptr);
private:
void updateNode(AbstractVisualNode* node, FontsManager* fontsManager);
std::unique_ptr<RootNode> mRootNode;
std::vector<SceneItem*> mSceneItems;
bool mShowMeshOutline{false};
};

View file

@ -61,6 +61,7 @@ void CircleNode::update(FontsManager* fontsManager)
{
mBackgroundItem = std::make_unique<SceneModel>(std::move(mesh));
mBackgroundItem->setName(mName + "_Model");
mBackgroundItem->updateUniformColor(mFillColor);
}
else
{