Clean up of scene nodes to support 2d and non int positioning.
This commit is contained in:
parent
1eeaebd0a9
commit
672b31b603
45 changed files with 341 additions and 200 deletions
|
@ -1,36 +0,0 @@
|
|||
#pragma once
|
||||
|
||||
#include "MaterialNode.h"
|
||||
#include "Color.h"
|
||||
|
||||
class GridNode : public MaterialNode
|
||||
{
|
||||
|
||||
public:
|
||||
GridNode(const DiscretePoint& location);
|
||||
|
||||
void setNumX(unsigned numX);
|
||||
|
||||
void setNumY(unsigned numY);
|
||||
|
||||
void setData(const std::vector<Color>& colors);
|
||||
|
||||
SceneItem* getSceneItem(std::size_t idx) const override;
|
||||
unsigned getNumSceneItems() const override;
|
||||
|
||||
void update(FontsManager* fontsManager) override;
|
||||
|
||||
void setWidth(unsigned width);
|
||||
void setHeight(unsigned height);
|
||||
|
||||
private:
|
||||
unsigned mNumberX{5};
|
||||
unsigned mNumberY{5};
|
||||
unsigned mWidth{1};
|
||||
unsigned mHeight{1};
|
||||
bool mDataDirty = true;
|
||||
std::vector<Color> mData;
|
||||
|
||||
std::unique_ptr<SceneModel> mBackgroundModel;
|
||||
std::unique_ptr<SceneModel> mOutlineModel;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue