/////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2002-2025, Open Design Alliance (the "Alliance"). // All rights reserved. // // This software and its documentation and related materials are owned by // the Alliance. The software may only be incorporated into application // programs owned by members of the Alliance, subject to a signed // Membership Agreement and Supplemental Software License Agreement with the // Alliance. The structure and organization of this software are the valuable // trade secrets of the Alliance and its suppliers. The software is also // protected by copyright law and international treaty provisions. Application // programs incorporating this software must include the following statement // with their copyright notices: // // This application incorporates Open Design Alliance software pursuant to a license // agreement with Open Design Alliance. // Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance. // All rights reserved. // // By use of this software, its documentation or related materials, you // acknowledge and accept the above terms. /////////////////////////////////////////////////////////////////////////////// #ifndef __OD_DB_UNDERLAY_HOST__ #define __OD_DB_UNDERLAY_HOST__ #include "TD_PackPush.h" #include "Gi/GiRasterImage.h" #include "DbDatabase.h" #include "DbEntity.h" #include "DbUnderlayItem.h" // classes OdUnderlayLayer, OdDbUnderlayDrawContext & OdDbUnderlayItem were moved class OdDbUnderlayDefinition; /** \details */ class UNDERLAY_EXPORT OdDbUnderlayFile : public OdRxObject { public: ODRX_DECLARE_MEMBERS(OdDbUnderlayFile); virtual int getItemCount() const = 0; virtual OdDbUnderlayItemPtr getItem(int i) const = 0; virtual OdDbUnderlayItemPtr getItem(OdString name) const = 0; }; typedef OdSmartPtr OdDbUnderlayFilePtr; // Instance of this PE should be registered for each OdDbUnderlayDefinition inheritant /** \details */ class UNDERLAY_EXPORT OdDbUnderlayHostPE : public OdRxObject { public: ODRX_DECLARE_MEMBERS(OdDbUnderlayHostPE); OdDbUnderlayHostPE(); virtual OdResult load(OdDbDatabase &pDb, OdString path, OdString password, OdDbUnderlayFilePtr& result) = 0; }; typedef OdSmartPtr OdDbUnderlayHostPEPtr; UNDERLAY_EXPORT void oddbConvertRgbToHsl(const OdGeVector3d& rgb, OdGeVector3d& hsl); UNDERLAY_EXPORT void oddbConvertHslToRgb(const OdGeVector3d& hsl, OdGeVector3d& rgb); UNDERLAY_EXPORT void oddbUnderlayHostGetAdjustedColor(OdGeVector3d& rgbResult, const OdGeVector3d& rgbInputColor, const OdGeVector3d& rgbCurrentBackgroundColor, const OdGeVector3d& hslFadedContrastColor, const OdDbUnderlayDrawContext& drawContext); // DGNUnderlay extensions #include "DbDgnUnderlayHost.h" #include "TD_PackPop.h" #endif // __OD_DB_UNDERLAY_HOST__