2013-08-23 22:51:27 +00:00
|
|
|
#ifndef EDITING_TEXTURES_PREVIEWLAYERLOOK_H
|
|
|
|
#define EDITING_TEXTURES_PREVIEWLAYERLOOK_H
|
|
|
|
|
|
|
|
#include "editing/common/previewrenderer.h"
|
|
|
|
|
|
|
|
class BasePreview;
|
2013-11-07 08:37:11 +00:00
|
|
|
class TexturesDefinition;
|
2013-08-23 22:51:27 +00:00
|
|
|
|
|
|
|
class PreviewLayerLook : public PreviewRenderer
|
|
|
|
{
|
|
|
|
public:
|
2013-10-03 21:28:09 +00:00
|
|
|
explicit PreviewLayerLook(QObject *parent = 0):
|
|
|
|
PreviewRenderer(parent),textures(0){}
|
|
|
|
|
2013-08-23 22:51:27 +00:00
|
|
|
void setTextures(TexturesDefinition* textures);
|
|
|
|
void setLayer(int layer);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual void bindEvent(BasePreview* preview);
|
|
|
|
virtual void updateEvent();
|
|
|
|
virtual Color getColor2D(double x, double y, double scaling);
|
|
|
|
|
|
|
|
private:
|
2013-10-03 21:28:09 +00:00
|
|
|
TexturesDefinition* textures;
|
2013-08-23 22:51:27 +00:00
|
|
|
int layer;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|