|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
#ifndef TRASTERFXRENDERDATA_H
|
|
Toshihiro Shimizu |
890ddd |
#define TRASTERFXRENDERDATA_H
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
// TnzCore includes
|
|
Toshihiro Shimizu |
890ddd |
#include "tcommon.h"
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
#undef DVAPI
|
|
Toshihiro Shimizu |
890ddd |
#undef DVVAR
|
|
Toshihiro Shimizu |
890ddd |
#ifdef TFX_EXPORTS
|
|
Toshihiro Shimizu |
890ddd |
#define DVAPI DV_EXPORT_API
|
|
Toshihiro Shimizu |
890ddd |
#define DVVAR DV_EXPORT_VAR
|
|
Toshihiro Shimizu |
890ddd |
#else
|
|
Toshihiro Shimizu |
890ddd |
#define DVAPI DV_IMPORT_API
|
|
Toshihiro Shimizu |
890ddd |
#define DVVAR DV_IMPORT_VAR
|
|
Toshihiro Shimizu |
890ddd |
#endif
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//******************************************************************************
|
|
Toshihiro Shimizu |
890ddd |
// TRasterFxRenderData class
|
|
Toshihiro Shimizu |
890ddd |
//******************************************************************************
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//! Base class for custom data that can added by an fx to be processed in a
|
|
Toshihiro Shimizu |
890ddd |
//! downstrem fx.
|
|
Toshihiro Shimizu |
890ddd |
class DVAPI TRasterFxRenderData : public TSmartObject
|
|
Toshihiro Shimizu |
890ddd |
{
|
|
Toshihiro Shimizu |
890ddd |
public:
|
|
Toshihiro Shimizu |
890ddd |
virtual ~TRasterFxRenderData() {}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
virtual bool operator==(const TRasterFxRenderData &data) const = 0;
|
|
Toshihiro Shimizu |
890ddd |
virtual std::string toString() const = 0;
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//! Returns a value respresenting the type of a renderData instance. The type
|
|
Toshihiro Shimizu |
890ddd |
//! is used to sort renderData entries for both retrieval and processing.
|
|
Toshihiro Shimizu |
890ddd |
//! The floating return type specification is used to allow insertions between
|
|
Toshihiro Shimizu |
890ddd |
//! two close-up values, if needed.
|
|
Toshihiro Shimizu |
890ddd |
virtual float typeIndex() const = 0;
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//! Currently used by TColumnFx to find out whether a renderData instance
|
|
Toshihiro Shimizu |
890ddd |
//! will enlarge the rendering of the specified bounding box.
|
|
Toshihiro Shimizu |
890ddd |
virtual TRectD getBBoxEnlargement(const TRectD &bbox) { return bbox; }
|
|
Toshihiro Shimizu |
890ddd |
};
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//===================================================================
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
#ifdef WIN32
|
|
Toshihiro Shimizu |
890ddd |
template class DVAPI TSmartPointerT<trasterfxrenderdata>;</trasterfxrenderdata>
|
|
Toshihiro Shimizu |
890ddd |
#endif
|
|
Toshihiro Shimizu |
890ddd |
typedef TSmartPointerT<trasterfxrenderdata> TRasterFxRenderDataP;</trasterfxrenderdata>
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
#endif // TRASTERFXRENDERDATA_H
|