Clean project structure.
This commit is contained in:
parent
78a4fa99ff
commit
947bf937fd
496 changed files with 206 additions and 137 deletions
|
@ -1,36 +0,0 @@
|
|||
#pragma once
|
||||
|
||||
#include "MaterialNode.h"
|
||||
#include "Color.h"
|
||||
|
||||
class GridNode : public MaterialNode
|
||||
{
|
||||
|
||||
public:
|
||||
GridNode(const Point& location);
|
||||
|
||||
void setNumX(std::size_t numX);
|
||||
|
||||
void setNumY(std::size_t numY);
|
||||
|
||||
void setData(const std::vector<Color>& colors);
|
||||
|
||||
SceneItem* getSceneItem(std::size_t idx) const override;
|
||||
std::size_t getNumSceneItems() const override;
|
||||
|
||||
void update(SceneInfo* sceneInfo) override;
|
||||
|
||||
void setWidth(double width);
|
||||
void setHeight(double height);
|
||||
|
||||
private:
|
||||
std::size_t mNumberX{5};
|
||||
std::size_t mNumberY{5};
|
||||
double mWidth{1};
|
||||
double 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