2016-05-17 03:04:11 +12:00
|
|
|
#pragma once
|
2016-03-19 06:57:51 +13:00
|
|
|
|
|
|
|
#ifndef TSIMPLECOLORSTYLES_H
|
|
|
|
#define TSIMPLECOLORSTYLES_H
|
|
|
|
|
|
|
|
// TnzCore includes
|
|
|
|
#include "tcolorstyles.h"
|
|
|
|
#include "tlevel.h"
|
|
|
|
#include "traster.h"
|
|
|
|
#include "tstrokeoutline.h"
|
|
|
|
|
|
|
|
// Qt includes
|
|
|
|
#include <QCoreApplication>
|
|
|
|
|
|
|
|
#undef DVAPI
|
|
|
|
#undef DVVAR
|
|
|
|
|
|
|
|
#ifdef TVRENDER_EXPORTS
|
|
|
|
#define DVAPI DV_EXPORT_API
|
|
|
|
#define DVVAR DV_EXPORT_VAR
|
|
|
|
#else
|
|
|
|
#define DVAPI DV_IMPORT_API
|
|
|
|
#define DVVAR DV_IMPORT_VAR
|
|
|
|
#endif
|
|
|
|
|
|
|
|
//=================================================
|
|
|
|
|
|
|
|
// Forward declarations
|
|
|
|
|
|
|
|
class TStrokeProp;
|
|
|
|
class TRegionProp;
|
|
|
|
class TRegionOutline;
|
|
|
|
class TTessellator;
|
|
|
|
class TColorFunction;
|
|
|
|
class TFlash;
|
|
|
|
class TVectorImage;
|
|
|
|
|
|
|
|
//=================================================
|
|
|
|
|
|
|
|
//**********************************************************************************
|
|
|
|
// TSimpleStrokeStyle declaration
|
|
|
|
//**********************************************************************************
|
|
|
|
|
|
|
|
/*!
|
|
|
|
Base classs for stroke color styles.
|
|
|
|
*/
|
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
class DVAPI TSimpleStrokeStyle : public TColorStyle {
|
2016-03-19 06:57:51 +13:00
|
|
|
public:
|
2016-06-19 20:06:29 +12:00
|
|
|
bool isRegionStyle() const override { return false; }
|
|
|
|
bool isStrokeStyle() const override { return true; }
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-19 20:06:29 +12:00
|
|
|
TStrokeProp *makeStrokeProp(const TStroke *stroke) override;
|
|
|
|
|
|
|
|
TRegionProp *makeRegionProp(const TRegion *) override {
|
2016-06-15 18:43:10 +12:00
|
|
|
assert(false);
|
|
|
|
return 0;
|
|
|
|
}
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
virtual void drawStroke(const TColorFunction *cf,
|
|
|
|
const TStroke *stroke) const = 0;
|
2016-03-19 06:57:51 +13:00
|
|
|
};
|
|
|
|
|
|
|
|
//**********************************************************************************
|
|
|
|
// TOutlineStyle declaration
|
|
|
|
//**********************************************************************************
|
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
class DVAPI TOutlineStyle : public TColorStyle {
|
2016-03-19 06:57:51 +13:00
|
|
|
public:
|
2016-06-15 18:43:10 +12:00
|
|
|
class StrokeOutlineModifier {
|
|
|
|
public:
|
|
|
|
StrokeOutlineModifier() {}
|
|
|
|
virtual ~StrokeOutlineModifier() {}
|
|
|
|
virtual StrokeOutlineModifier *clone() const = 0;
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
virtual void modify(TStrokeOutline &outline) const = 0;
|
|
|
|
};
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
class RegionOutlineModifier {
|
|
|
|
public:
|
|
|
|
RegionOutlineModifier() {}
|
|
|
|
virtual ~RegionOutlineModifier() {}
|
|
|
|
virtual RegionOutlineModifier *clone() const = 0;
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
virtual void modify(TRegionOutline &outline) const = 0;
|
|
|
|
};
|
2016-03-19 06:57:51 +13:00
|
|
|
|
|
|
|
protected:
|
2016-06-15 18:43:10 +12:00
|
|
|
// StrokeOutlineModifier *m_strokeOutlineModifier;
|
|
|
|
RegionOutlineModifier *m_regionOutlineModifier;
|
2016-03-19 06:57:51 +13:00
|
|
|
|
|
|
|
public:
|
2016-06-15 18:43:10 +12:00
|
|
|
TOutlineStyle();
|
|
|
|
TOutlineStyle(const TOutlineStyle &);
|
|
|
|
virtual ~TOutlineStyle();
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
// StrokeOutlineModifier* getStrokeOutlineModifier() const { return
|
|
|
|
// m_strokeOutlineModifier; }
|
|
|
|
// void setStrokeOutlineModifier(StrokeOutlineModifier *modifier);
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
RegionOutlineModifier *getRegionOutlineModifier() const {
|
|
|
|
return m_regionOutlineModifier;
|
|
|
|
}
|
|
|
|
void setRegionOutlineModifier(RegionOutlineModifier *modifier);
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-19 20:06:29 +12:00
|
|
|
bool isRegionStyle() const override { return true; }
|
|
|
|
bool isStrokeStyle() const override { return true; }
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
virtual void computeOutline(const TStroke *stroke, TStrokeOutline &outline,
|
|
|
|
TOutlineUtil::OutlineParameter param) const;
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-19 20:06:29 +12:00
|
|
|
TStrokeProp *makeStrokeProp(const TStroke *stroke) override;
|
|
|
|
TRegionProp *makeRegionProp(const TRegion *region) override;
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
// virtual void drawRegion( const TVectorRenderData &rd, TRegionOutline
|
|
|
|
// &outline ) const =0 ;
|
|
|
|
virtual void drawRegion(const TColorFunction *cf, const bool antiAliasing,
|
|
|
|
TRegionOutline &outline) const = 0;
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
virtual void drawRegion(TFlash &, const TRegion *) const {};
|
|
|
|
virtual void drawStroke(const TColorFunction *cf, TStrokeOutline *outline,
|
|
|
|
const TStroke *stroke) const = 0;
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-19 20:06:29 +12:00
|
|
|
void drawStroke(TFlash &flash, const TStroke *stroke) const override {
|
2016-06-15 18:43:10 +12:00
|
|
|
TColorStyle::drawStroke(flash, stroke);
|
|
|
|
}
|
|
|
|
virtual void setFill(TFlash &) const {};
|
2016-03-19 06:57:51 +13:00
|
|
|
|
|
|
|
protected:
|
2016-06-15 18:43:10 +12:00
|
|
|
// Not assignable
|
|
|
|
TOutlineStyle &operator=(const TOutlineStyle &);
|
2016-03-19 06:57:51 +13:00
|
|
|
};
|
|
|
|
|
|
|
|
//-------------------------------------------------------------------
|
|
|
|
|
|
|
|
typedef TSmartPointerT<TOutlineStyle> TOutlineStyleP;
|
|
|
|
|
|
|
|
//**********************************************************************************
|
|
|
|
// TSolidColorStyle declaration
|
|
|
|
//**********************************************************************************
|
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
class DVAPI TSolidColorStyle : public TOutlineStyle {
|
|
|
|
TPixel32 m_color;
|
|
|
|
TTessellator *m_tessellator;
|
2016-03-19 06:57:51 +13:00
|
|
|
|
|
|
|
protected:
|
2016-06-19 20:06:29 +12:00
|
|
|
void makeIcon(const TDimension &d) override;
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-19 20:06:29 +12:00
|
|
|
void loadData(TInputStreamInterface &) override;
|
|
|
|
void saveData(TOutputStreamInterface &) const override;
|
2016-03-19 06:57:51 +13:00
|
|
|
|
|
|
|
public:
|
2016-06-15 18:43:10 +12:00
|
|
|
TSolidColorStyle(const TPixel32 &color = TPixel32::Black);
|
|
|
|
TSolidColorStyle(const TSolidColorStyle &);
|
|
|
|
~TSolidColorStyle();
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-19 20:06:29 +12:00
|
|
|
TColorStyle *clone() const override;
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-19 20:06:29 +12:00
|
|
|
QString getDescription() const override;
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-19 20:06:29 +12:00
|
|
|
bool hasMainColor() const override { return true; }
|
|
|
|
TPixel32 getMainColor() const override { return m_color; }
|
|
|
|
void setMainColor(const TPixel32 &color) override { m_color = color; }
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
void drawRegion(const TColorFunction *cf, const bool antiAliasing,
|
2016-06-19 20:06:29 +12:00
|
|
|
TRegionOutline &outline) const override;
|
|
|
|
void drawRegion(TFlash &flash, const TRegion *r) const override;
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
void drawStroke(const TColorFunction *cf, TStrokeOutline *outline,
|
2016-06-19 20:06:29 +12:00
|
|
|
const TStroke *s) const override;
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-19 20:06:29 +12:00
|
|
|
void setFill(TFlash &flash) const override;
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-19 20:06:29 +12:00
|
|
|
int getTagId() const override;
|
2016-03-19 06:57:51 +13:00
|
|
|
|
|
|
|
private:
|
2016-06-15 18:43:10 +12:00
|
|
|
// Not assignable
|
|
|
|
TSolidColorStyle &operator=(const TSolidColorStyle &);
|
2016-03-19 06:57:51 +13:00
|
|
|
};
|
|
|
|
|
|
|
|
//**********************************************************************************
|
|
|
|
// TCenterLineStrokeStyle declaration
|
|
|
|
//**********************************************************************************
|
|
|
|
|
|
|
|
/*!
|
|
|
|
Constant thickness stroke style.
|
|
|
|
*/
|
|
|
|
|
2016-06-29 18:17:12 +12:00
|
|
|
class DVAPI TCenterLineStrokeStyle final : public TSimpleStrokeStyle {
|
2016-06-15 18:43:10 +12:00
|
|
|
TPixel32 m_color;
|
|
|
|
USHORT m_stipple;
|
|
|
|
double m_width;
|
2016-03-19 06:57:51 +13:00
|
|
|
|
|
|
|
public:
|
2016-06-15 18:43:10 +12:00
|
|
|
TCenterLineStrokeStyle(const TPixel32 &color = TPixel32(0, 0, 0, 255),
|
|
|
|
USHORT stipple = 0x0, double width = 1.0);
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-19 20:06:29 +12:00
|
|
|
TColorStyle *clone() const override;
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-19 20:06:29 +12:00
|
|
|
QString getDescription() const override;
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
TPixel32 getColor() const { return m_color; }
|
|
|
|
USHORT getStipple() const { return m_stipple; }
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-20 14:23:05 +12:00
|
|
|
void drawStroke(const TColorFunction *cf,
|
|
|
|
const TStroke *stroke) const override;
|
2016-06-19 20:06:29 +12:00
|
|
|
void drawStroke(TFlash &flash, const TStroke *s) const override;
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-19 20:06:29 +12:00
|
|
|
bool hasMainColor() const override { return true; }
|
|
|
|
TPixel32 getMainColor() const override { return m_color; }
|
|
|
|
void setMainColor(const TPixel32 &color) override { m_color = color; }
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-19 20:06:29 +12:00
|
|
|
int getParamCount() const override;
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-19 20:06:29 +12:00
|
|
|
TColorStyle::ParamType getParamType(int index) const override;
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-19 20:06:29 +12:00
|
|
|
QString getParamNames(int index) const override;
|
|
|
|
void getParamRange(int index, double &min, double &max) const override;
|
|
|
|
double getParamValue(TColorStyle::double_tag, int index) const override;
|
|
|
|
void setParamValue(int index, double value) override;
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-19 20:06:29 +12:00
|
|
|
int getTagId() const override;
|
2016-03-19 06:57:51 +13:00
|
|
|
|
|
|
|
protected:
|
2016-06-19 20:06:29 +12:00
|
|
|
void loadData(TInputStreamInterface &) override;
|
|
|
|
void saveData(TOutputStreamInterface &) const override;
|
2016-03-19 06:57:51 +13:00
|
|
|
|
|
|
|
private:
|
2016-06-15 18:43:10 +12:00
|
|
|
// Not assignable
|
|
|
|
TCenterLineStrokeStyle &operator=(const TCenterLineStrokeStyle &);
|
2016-03-19 06:57:51 +13:00
|
|
|
};
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
//**********************************************************************************
|
|
|
|
// TRasterImagePatternStrokeStyle declaration
|
|
|
|
//**********************************************************************************
|
|
|
|
|
2016-06-29 18:17:12 +12:00
|
|
|
class DVAPI TRasterImagePatternStrokeStyle final : public TColorStyle {
|
2016-06-15 18:43:10 +12:00
|
|
|
static TFilePath m_rootDir;
|
2016-03-19 06:57:51 +13:00
|
|
|
|
|
|
|
protected:
|
2016-06-15 18:43:10 +12:00
|
|
|
TLevelP m_level;
|
|
|
|
std::string m_name;
|
|
|
|
double m_space, m_rotation;
|
2016-03-19 06:57:51 +13:00
|
|
|
|
|
|
|
public:
|
2016-06-15 18:43:10 +12:00
|
|
|
TRasterImagePatternStrokeStyle();
|
|
|
|
TRasterImagePatternStrokeStyle(const std::string &patternName);
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-19 20:06:29 +12:00
|
|
|
bool isRegionStyle() const override { return false; }
|
|
|
|
bool isStrokeStyle() const override { return true; }
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
int getLevelFrameCount() { return m_level->getFrameCount(); }
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
void computeTransformations(std::vector<TAffine> &positions,
|
|
|
|
const TStroke *stroke) const;
|
|
|
|
void drawStroke(const TVectorRenderData &rd,
|
|
|
|
const std::vector<TAffine> &positions,
|
|
|
|
const TStroke *stroke) const;
|
2016-06-19 20:06:29 +12:00
|
|
|
void drawStroke(TFlash &flash, const TStroke *stroke) const override;
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
void invalidate(){};
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-19 20:06:29 +12:00
|
|
|
TColorStyle *clone() const override;
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-20 14:23:05 +12:00
|
|
|
QString getDescription() const override {
|
|
|
|
return "TRasterImagePatternStrokeStyle";
|
|
|
|
}
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-19 20:06:29 +12:00
|
|
|
bool hasMainColor() const override { return false; }
|
|
|
|
TPixel32 getMainColor() const override { return TPixel32::Black; }
|
|
|
|
void setMainColor(const TPixel32 &) override {}
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-19 20:06:29 +12:00
|
|
|
TStrokeProp *makeStrokeProp(const TStroke *stroke) override;
|
|
|
|
TRegionProp *makeRegionProp(const TRegion *) override {
|
2016-06-15 18:43:10 +12:00
|
|
|
assert(false);
|
|
|
|
return 0;
|
|
|
|
};
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-19 20:06:29 +12:00
|
|
|
int getTagId() const override { return 2000; };
|
|
|
|
void getObsoleteTagIds(std::vector<int> &ids) const override;
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
void loadLevel(const std::string &patternName);
|
|
|
|
static TFilePath getRootDir();
|
|
|
|
static void setRootDir(const TFilePath &path) {
|
|
|
|
m_rootDir = path + "custom styles";
|
|
|
|
}
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-19 20:06:29 +12:00
|
|
|
int getParamCount() const override;
|
|
|
|
TColorStyle::ParamType getParamType(int index) const override;
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-19 20:06:29 +12:00
|
|
|
QString getParamNames(int index) const override;
|
|
|
|
void getParamRange(int index, double &min, double &max) const override;
|
|
|
|
double getParamValue(TColorStyle::double_tag, int index) const override;
|
|
|
|
void setParamValue(int index, double value) override;
|
2016-03-19 06:57:51 +13:00
|
|
|
|
|
|
|
protected:
|
2016-06-19 20:06:29 +12:00
|
|
|
void makeIcon(const TDimension &d) override;
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-19 20:06:29 +12:00
|
|
|
void loadData(TInputStreamInterface &) override;
|
|
|
|
void loadData(int oldId, TInputStreamInterface &) override;
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-19 20:06:29 +12:00
|
|
|
void saveData(TOutputStreamInterface &) const override;
|
2016-03-19 06:57:51 +13:00
|
|
|
|
|
|
|
private:
|
2016-06-15 18:43:10 +12:00
|
|
|
// Not assignable
|
|
|
|
TRasterImagePatternStrokeStyle &operator=(
|
|
|
|
const TRasterImagePatternStrokeStyle &);
|
2016-03-19 06:57:51 +13:00
|
|
|
};
|
|
|
|
|
|
|
|
//**********************************************************************************
|
|
|
|
// TVectorImagePatternStrokeStyle declaration
|
|
|
|
//**********************************************************************************
|
|
|
|
|
2016-06-29 18:17:12 +12:00
|
|
|
class DVAPI TVectorImagePatternStrokeStyle final : public TColorStyle {
|
2016-06-15 18:43:10 +12:00
|
|
|
static TFilePath m_rootDir;
|
2016-03-19 06:57:51 +13:00
|
|
|
|
|
|
|
protected:
|
2016-06-15 18:43:10 +12:00
|
|
|
TLevelP m_level;
|
|
|
|
std::string m_name;
|
|
|
|
double m_space, m_rotation;
|
2016-03-19 06:57:51 +13:00
|
|
|
|
|
|
|
public:
|
2016-06-15 18:43:10 +12:00
|
|
|
TVectorImagePatternStrokeStyle();
|
|
|
|
TVectorImagePatternStrokeStyle(const std::string &patternName);
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-19 20:06:29 +12:00
|
|
|
bool isRegionStyle() const override { return false; }
|
|
|
|
bool isStrokeStyle() const override { return true; }
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
int getLevelFrameCount() { return m_level->getFrameCount(); }
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
void computeTransformations(std::vector<TAffine> &positions,
|
|
|
|
const TStroke *stroke) const;
|
|
|
|
void drawStroke(const TVectorRenderData &rd,
|
|
|
|
const std::vector<TAffine> &positions,
|
|
|
|
const TStroke *stroke) const;
|
2016-06-19 20:06:29 +12:00
|
|
|
void drawStroke(TFlash &flash, const TStroke *stroke) const override;
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
void invalidate(){};
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-19 20:06:29 +12:00
|
|
|
TColorStyle *clone() const override;
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-20 14:23:05 +12:00
|
|
|
QString getDescription() const override {
|
|
|
|
return "TVectorImagePatternStrokeStyle";
|
|
|
|
}
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-19 20:06:29 +12:00
|
|
|
bool hasMainColor() const override { return false; }
|
|
|
|
TPixel32 getMainColor() const override { return TPixel32::Black; }
|
|
|
|
void setMainColor(const TPixel32 &) override {}
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-19 20:06:29 +12:00
|
|
|
TStrokeProp *makeStrokeProp(const TStroke *stroke) override;
|
|
|
|
TRegionProp *makeRegionProp(const TRegion *) override {
|
2016-06-15 18:43:10 +12:00
|
|
|
assert(false);
|
|
|
|
return 0;
|
|
|
|
};
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-19 20:06:29 +12:00
|
|
|
int getTagId() const override { return 2800; };
|
|
|
|
void getObsoleteTagIds(std::vector<int> &ids) const override;
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
void loadLevel(const std::string &patternName);
|
|
|
|
static TFilePath getRootDir();
|
|
|
|
static void setRootDir(const TFilePath &path) {
|
|
|
|
m_rootDir = path + "custom styles";
|
|
|
|
}
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-19 20:06:29 +12:00
|
|
|
int getParamCount() const override;
|
|
|
|
TColorStyle::ParamType getParamType(int index) const override;
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-19 20:06:29 +12:00
|
|
|
QString getParamNames(int index) const override;
|
|
|
|
void getParamRange(int index, double &min, double &max) const override;
|
|
|
|
double getParamValue(TColorStyle::double_tag, int index) const override;
|
|
|
|
void setParamValue(int index, double value) override;
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
static void clearGlDisplayLists();
|
2016-03-19 06:57:51 +13:00
|
|
|
|
|
|
|
protected:
|
2016-06-19 20:06:29 +12:00
|
|
|
void makeIcon(const TDimension &d) override;
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-19 20:06:29 +12:00
|
|
|
void loadData(TInputStreamInterface &) override;
|
|
|
|
void loadData(int oldId, TInputStreamInterface &) override;
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-19 20:06:29 +12:00
|
|
|
void saveData(TOutputStreamInterface &) const override;
|
2016-03-19 06:57:51 +13:00
|
|
|
|
|
|
|
private:
|
2016-06-15 18:43:10 +12:00
|
|
|
// Not assignable
|
|
|
|
TVectorImagePatternStrokeStyle &operator=(
|
|
|
|
const TVectorImagePatternStrokeStyle &);
|
2016-03-19 06:57:51 +13:00
|
|
|
};
|
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
#endif // TSIMPLECOLORSTYLES_H
|