Clean up of scene nodes to support 2d and non int positioning.

This commit is contained in:
jmsgrogan 2023-01-11 10:21:18 +00:00
parent 1eeaebd0a9
commit 672b31b603
45 changed files with 341 additions and 200 deletions

View file

@ -2,7 +2,7 @@
#include "CircleNode.h"
BlochSphereNode::BlochSphereNode(const DiscretePoint& location)
BlochSphereNode::BlochSphereNode(const Point& location)
: AbstractVisualNode(location, "BlochSphereNode")
{
@ -23,7 +23,7 @@ void BlochSphereNode::setSize(double size)
}
}
void BlochSphereNode::update(FontsManager* fontsManager)
void BlochSphereNode::update(SceneInfo* sceneInfo)
{
if (!mContentDirty)
{

View file

@ -11,11 +11,11 @@ class LineNode;
class BlochSphereNode : public AbstractVisualNode
{
public:
BlochSphereNode(const DiscretePoint& location);
BlochSphereNode(const Point& location);
void setContent(BlochSphere* content);
void update(FontsManager* fontsManager) override;
void update(SceneInfo* sceneInfo) override;
void setSize(double size);
private: