| #pragma once |
| |
| #ifndef TVECTORRENDERDATA_H |
| #define TVECTORRENDERDATA_H |
| |
| |
| #include "tgeometry.h" |
| #include "tpixel.h" |
| |
| #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 |
| |
| |
| |
| |
| |
| class TPalette; |
| class TColorFunction; |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| class DVAPI TVectorRenderData |
| { |
| public: |
| |
| |
| |
| struct ViewerSettings { |
| }; |
| |
| |
| |
| |
| struct ProductionSettings { |
| }; |
| |
| public: |
| const TColorFunction *m_cf; |
| const TPalette *m_palette; |
| |
| TAffine m_aff; |
| |
| TRect m_clippingRect; |
| |
| |
| TPixel m_tCheckInk; |
| TPixel m_tCheckPaint; |
| |
| int m_colorCheckIndex; |
| |
| bool m_alphaChannel, |
| m_antiAliasing, |
| m_isImagePattern, |
| m_drawRegions, |
| m_tcheckEnabled, |
| m_inkCheckEnabled, |
| m_paintCheckEnabled, |
| m_blackBgEnabled, |
| m_isIcon, |
| m_is3dView, |
| m_show0ThickStrokes, |
| m_regionAntialias, |
| m_isOfflineRender; |
| |
| |
| public: |
| TVectorRenderData(ViewerSettings, |
| const TAffine &aff, |
| const TRect &clippingRect, |
| const TPalette *palette, |
| const TColorFunction *cf = 0) |
| : m_cf(cf), m_palette(palette), m_aff(aff), m_clippingRect(clippingRect), m_tCheckInk(TPixel::Black), m_tCheckPaint(TPixel(128, 128, 128)), m_colorCheckIndex(-1), m_alphaChannel(false) |
| , |
| m_antiAliasing(true) |
| , |
| m_isImagePattern(false) |
| , |
| m_drawRegions(true) |
| , |
| m_tcheckEnabled(false) |
| , |
| m_inkCheckEnabled(false), m_paintCheckEnabled(false), m_blackBgEnabled(false), m_isIcon(false) |
| , |
| m_is3dView(false) |
| , |
| m_show0ThickStrokes(true) |
| , |
| m_regionAntialias(false) |
| |
| , |
| m_isOfflineRender(false) |
| { |
| } |
| |
| TVectorRenderData(ProductionSettings, |
| const TAffine &aff, |
| const TRect &clippingRect, |
| const TPalette *palette, |
| const TColorFunction *cf = 0) |
| : m_cf(cf), m_palette(palette), m_aff(aff), m_clippingRect(clippingRect), m_tCheckInk(TPixel::Black), m_tCheckPaint(TPixel(128, 128, 128)), m_colorCheckIndex(-1), m_alphaChannel(true) |
| , |
| m_antiAliasing(true) |
| , |
| m_isImagePattern(false) |
| , |
| m_drawRegions(true) |
| , |
| m_tcheckEnabled(false) |
| , |
| m_inkCheckEnabled(false), m_paintCheckEnabled(false), m_blackBgEnabled(false), m_isIcon(false) |
| , |
| m_is3dView(false) |
| , |
| m_show0ThickStrokes(false) |
| , |
| m_regionAntialias(true) |
| |
| , |
| m_isOfflineRender(true) |
| { |
| } |
| |
| TVectorRenderData(const TVectorRenderData &other, |
| const TAffine &aff, |
| const TRect &clippingRect, |
| const TPalette *palette, |
| const TColorFunction *cf = 0) |
| : m_cf(cf), m_palette(palette), m_aff(aff), m_clippingRect(clippingRect), m_tCheckInk(other.m_tCheckInk), m_tCheckPaint(other.m_tCheckPaint), m_colorCheckIndex(other.m_colorCheckIndex), m_alphaChannel(other.m_alphaChannel), m_antiAliasing(other.m_antiAliasing), m_isImagePattern(other.m_isImagePattern), m_drawRegions(other.m_drawRegions), m_tcheckEnabled(other.m_tcheckEnabled), m_inkCheckEnabled(other.m_inkCheckEnabled), m_paintCheckEnabled(other.m_paintCheckEnabled), m_blackBgEnabled(other.m_blackBgEnabled), m_isIcon(other.m_isIcon), m_is3dView(other.m_is3dView), m_show0ThickStrokes(other.m_show0ThickStrokes), m_regionAntialias(other.m_regionAntialias), m_isOfflineRender(other.m_isOfflineRender) {} |
| |
| |
| TVectorRenderData(const TAffine &aff, |
| const TRect &clippingRect, |
| const TPalette *palette, |
| const TColorFunction *cf, |
| bool alphaChannel = false, |
| bool antiAliasing = true, |
| bool is3dView = false) |
| : m_cf(cf), m_palette(palette), m_aff(aff), m_clippingRect(clippingRect), m_tCheckInk(TPixel::Black), m_tCheckPaint(TPixel(128, 128, 128)), m_colorCheckIndex(-1), m_alphaChannel(alphaChannel), m_antiAliasing(antiAliasing), m_isImagePattern(false), m_drawRegions(true), m_tcheckEnabled(false), m_inkCheckEnabled(false), m_paintCheckEnabled(false), m_blackBgEnabled(false), m_isIcon(false), m_is3dView(is3dView), m_show0ThickStrokes(true), m_regionAntialias(false), m_isOfflineRender(false) {} |
| |
| }; |
| |
| #endif |