CFx SDK Documentation  2023 SP0
DbUnderlayHost.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2017, Open Design Alliance (the "Alliance").
3 // All rights reserved.
4 //
5 // This software and its documentation and related materials are owned by
6 // the Alliance. The software may only be incorporated into application
7 // programs owned by members of the Alliance, subject to a signed
8 // Membership Agreement and Supplemental Software License Agreement with the
9 // Alliance. The structure and organization of this software are the valuable
10 // trade secrets of the Alliance and its suppliers. The software is also
11 // protected by copyright law and international treaty provisions. Application
12 // programs incorporating this software must include the following statement
13 // with their copyright notices:
14 //
15 // This application incorporates Teigha(R) software pursuant to a license
16 // agreement with Open Design Alliance.
17 // Teigha(R) Copyright (C) 2002-2017 by Open Design Alliance.
18 // All rights reserved.
19 //
20 // By use of this software, its documentation or related materials, you
21 // acknowledge and accept the above terms.
23 
24 
25 #ifndef __OD_DB_UNDERLAY_HOST__
26 #define __OD_DB_UNDERLAY_HOST__
27 
28 #include "TD_PackPush.h"
29 
30 #include "Gi/GiRasterImage.h"
31 #include "DbDatabase.h"
32 #include "DbEntity.h"
33 
34 #include "DbUnderlayItem.h" // classes OdUnderlayLayer, OdDbUnderlayDrawContext & OdDbUnderlayItem were moved
35 
37 
43 {
44 public:
46 
47  virtual int getItemCount() const = 0;
48  virtual OdDbUnderlayItemPtr getItem(int i) const = 0;
50 };
51 
53 
54 // Instance of this PE should be registered for each OdDbUnderlayDefinition inheritant
55 
56 
62 {
63 public:
65 
67 
68  virtual OdResult load(OdDbDatabase &pDb, OdString path, OdString password, OdDbUnderlayFilePtr& result) = 0;
69 };
70 
72 
76  const OdGeVector3d& rgbInputColor,
77  const OdGeVector3d& rgbCurrentBackgroundColor,
78  const OdGeVector3d& hslFadedContrastColor,
79  const OdDbUnderlayDrawContext& drawContext);
80 
81 // DGNUnderlay extensions
82 #include "DbDgnUnderlayHost.h"
83 
84 #include "TD_PackPop.h"
85 
86 #endif // __OD_DB_UNDERLAY_HOST__
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
TOOLKIT_EXPORT void oddbConvertRgbToHsl(const OdGeVector3d &rgb, OdGeVector3d &hsl)
OdSmartPtr< OdDbUnderlayHostPE > OdDbUnderlayHostPEPtr
TOOLKIT_EXPORT void oddbConvertHslToRgb(const OdGeVector3d &hsl, OdGeVector3d &rgb)
TOOLKIT_EXPORT void oddbUnderlayHostGetAdjustedColor(OdGeVector3d &rgbResult, const OdGeVector3d &rgbInputColor, const OdGeVector3d &rgbCurrentBackgroundColor, const OdGeVector3d &hslFadedContrastColor, const OdDbUnderlayDrawContext &drawContext)
OdSmartPtr< OdDbUnderlayFile > OdDbUnderlayFilePtr
OdResult
Definition: OdResult.h:29
virtual OdDbUnderlayItemPtr getItem(int i) const =0
ODRX_DECLARE_MEMBERS(OdDbUnderlayFile)
virtual OdDbUnderlayItemPtr getItem(OdString name) const =0
virtual int getItemCount() const =0
virtual OdResult load(OdDbDatabase &pDb, OdString path, OdString password, OdDbUnderlayFilePtr &result)=0
ODRX_DECLARE_MEMBERS(OdDbUnderlayHostPE)
GLuint const GLchar * name
Definition: gles2_ext.h:265