CFx SDK Documentation
2020SP3
SDK
CFx
dd_inc
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
36
class
OdDbUnderlayDefinition
;
37
42
class
TOOLKIT_EXPORT
OdDbUnderlayFile
:
public
OdRxObject
43
{
44
public
:
45
ODRX_DECLARE_MEMBERS
(
OdDbUnderlayFile
);
46
47
virtual
int
getItemCount
()
const
= 0;
48
virtual
OdDbUnderlayItemPtr
getItem
(
int
i)
const
= 0;
49
virtual
OdDbUnderlayItemPtr
getItem
(
OdString
name
)
const
= 0;
50
};
51
52
typedef
OdSmartPtr<OdDbUnderlayFile>
OdDbUnderlayFilePtr
;
53
54
// Instance of this PE should be registered for each OdDbUnderlayDefinition inheritant
55
56
61
class
TOOLKIT_EXPORT
OdDbUnderlayHostPE
:
public
OdRxObject
62
{
63
public
:
64
ODRX_DECLARE_MEMBERS
(
OdDbUnderlayHostPE
);
65
66
OdDbUnderlayHostPE
();
67
68
virtual
OdResult
load
(
OdDbDatabase
&pDb,
OdString
path,
OdString
password,
OdDbUnderlayFilePtr
& result) = 0;
69
};
70
71
typedef
OdSmartPtr<OdDbUnderlayHostPE>
OdDbUnderlayHostPEPtr
;
72
73
TOOLKIT_EXPORT
void
oddbConvertRgbToHsl
(
const
OdGeVector3d
& rgb,
OdGeVector3d
& hsl);
74
TOOLKIT_EXPORT
void
oddbConvertHslToRgb
(
const
OdGeVector3d
& hsl,
OdGeVector3d
& rgb);
75
TOOLKIT_EXPORT
void
oddbUnderlayHostGetAdjustedColor
(
OdGeVector3d
& rgbResult,
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__
OdResult
OdResult
Definition:
OdResult.h:29
OdDbUnderlayFile::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdDbUnderlayFile)
OdGeVector3d
Definition:
GeVector3d.h:54
OdString
Definition:
OdString.h:95
OdDbDatabase
Definition:
DbDatabase.h:421
OdDbUnderlayDefinition
Definition:
DbUnderlayDefinition.h:38
GiRasterImage.h
oddbConvertHslToRgb
TOOLKIT_EXPORT void oddbConvertHslToRgb(const OdGeVector3d &hsl, OdGeVector3d &rgb)
OdDbUnderlayHostPE::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdDbUnderlayHostPE)
name
GLuint const GLchar * name
Definition:
gles2_ext.h:265
OdDbUnderlayHostPEPtr
OdSmartPtr< OdDbUnderlayHostPE > OdDbUnderlayHostPEPtr
Definition:
DbUnderlayHost.h:71
OdRxObject
Definition:
RxObject.h:564
oddbConvertRgbToHsl
TOOLKIT_EXPORT void oddbConvertRgbToHsl(const OdGeVector3d &rgb, OdGeVector3d &hsl)
TD_PackPop.h
DbDgnUnderlayHost.h
OdDbUnderlayDrawContext
Definition:
DbUnderlayItem.h:72
OdDbUnderlayFile::getItem
virtual OdDbUnderlayItemPtr getItem(OdString name) const =0
OdSmartPtr
Definition:
SmartPtr.h:58
DbEntity.h
DbDatabase.h
OdDbUnderlayFilePtr
OdSmartPtr< OdDbUnderlayFile > OdDbUnderlayFilePtr
Definition:
DbUnderlayHost.h:52
TD_PackPush.h
oddbUnderlayHostGetAdjustedColor
TOOLKIT_EXPORT void oddbUnderlayHostGetAdjustedColor(OdGeVector3d &rgbResult, const OdGeVector3d &rgbInputColor, const OdGeVector3d &rgbCurrentBackgroundColor, const OdGeVector3d &hslFadedContrastColor, const OdDbUnderlayDrawContext &drawContext)
OdDbUnderlayHostPE::OdDbUnderlayHostPE
OdDbUnderlayHostPE()
OdDbUnderlayHostPE::load
virtual OdResult load(OdDbDatabase &pDb, OdString path, OdString password, OdDbUnderlayFilePtr &result)=0
OdDbUnderlayFile::getItem
virtual OdDbUnderlayItemPtr getItem(int i) const =0
DbUnderlayItem.h
OdDbUnderlayFile
Definition:
DbUnderlayHost.h:43
TOOLKIT_EXPORT
#define TOOLKIT_EXPORT
Definition:
DbExport.h:40
OdDbUnderlayHostPE
Definition:
DbUnderlayHost.h:62
OdDbUnderlayFile::getItemCount
virtual int getItemCount() const =0
Generated on Mon Oct 12 2020 11:49:31