CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
DbSortentsTable.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2024, 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 Open Design Alliance software pursuant to a license
16// agreement with Open Design Alliance.
17// Open Design Alliance Copyright (C) 2002-2024 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
26
27#ifndef OD_DBSORTENTSTABLE_H
28#define OD_DBSORTENTSTABLE_H
29
30#include "TD_PackPush.h"
31
32#include "DbObject.h"
33
34#define STL_USING_UTILITY
35#include "OdaSTL.h"
36
40typedef std::pair<OdDbHandle, OdDbObjectId> HandlePair;
41
46
47
63{
64public:
66
68
72 void getSortHandle(const OdDbObjectId& id, OdDbHandle& h) const;
73
80 const OdDbObjectIdArray& entityIds);
81
88 const OdDbObjectIdArray& entityIds);
89
97 const OdDbObjectIdArray& entityIds,
98 OdDbObjectId targetId);
99
107 const OdDbObjectIdArray& entityIds,
108 OdDbObjectId targetId);
109
117 OdDbObjectId firstId,
118 OdDbObjectId secondId);
119
124
127
138 OdDbObjectId firstID,
139 OdDbObjectId secondID) const;
140
158 OdDbObjectIdArray& entityIds,
159 OdUInt8 honorSortentsMask = 0) const;
160
177 OdDbObjectIdArray& entityIds,
178 OdUInt8 honorSortentsMask = 0) const;
179
180
192 const OdDbObjectIdArray& entityIds);
193
203 const HandlePairsArray& handlePairs);
204
214 HandlePairsArray& handlePairs);
215
217 OdDbDwgFiler* pFiler);
218
219 virtual void dwgOutFields(
220 OdDbDwgFiler* pFiler) const;
221
223 OdDbDxfFiler* pFiler);
224
225 virtual void dxfOutFields(
226 OdDbDxfFiler* pFiler) const;
227
229 void* pClsid) const;
230
231 //FELIX_CHANGE_BEGIN
232 // DESKTOP-91012: Consolidating common functionality into one
233 private:
241 void moveAround(
242 const OdDbObjectIdArray& entityIds,
243 OdDbObjectId targetId,
244 bool movingAbove);
245 //FELIX_CHANGE_END
246};
247
252
253//FELIX_CHANGE_BEGIN
254//issue: 38372
257//FELIX_CHANGE_END
258
259#include "TD_PackPop.h"
260
261#endif //OD_DBSORTENTSTABLE_H
262
OdSmartPtr< OdDbSortentsTable > OdDbSortentsTablePtr
#define TOOLKIT_EXPORT
Definition DbExport.h:40
TOOLKIT_EXPORT OdDbObjectId fxGetTop(OdDbSortentsTablePtr p, const OdDbObjectIdArray &objects)
TOOLKIT_EXPORT OdDbObjectId fxGetBottom(OdDbSortentsTablePtr p, const OdDbObjectIdArray &objects)
std::pair< OdDbHandle, OdDbObjectId > HandlePair
OdArray< HandlePair, OdMemoryAllocator< HandlePair > > HandlePairsArray
OdArray< OdDbObjectId, OdClrMemAllocator< OdDbObjectId > > OdDbObjectIdArray
Definition IdArrays.h:53
unsigned char OdUInt8
OdResult
Definition OdResult.h:29
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
void getRelativeDrawOrder(OdDbObjectIdArray &entityIds, OdUInt8 honorSortentsMask=0) const
bool firstEntityIsDrawnBeforeSecond(OdDbObjectId firstID, OdDbObjectId secondID) const
ODDB_DECLARE_MEMBERS(OdDbSortentsTable)
void setAbsoluteDrawOrder(const HandlePairsArray &handlePairs)
void setRelativeDrawOrder(const OdDbObjectIdArray &entityIds)
void moveToTop(const OdDbObjectIdArray &entityIds)
void getSortHandle(const OdDbObjectId &id, OdDbHandle &h) const
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
void getAbsoluteDrawOrder(HandlePairsArray &handlePairs)
void moveToBottom(const OdDbObjectIdArray &entityIds)
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
void moveAbove(const OdDbObjectIdArray &entityIds, OdDbObjectId targetId)
void swapOrder(OdDbObjectId firstId, OdDbObjectId secondId)
void moveBelow(const OdDbObjectIdArray &entityIds, OdDbObjectId targetId)
void getFullDrawOrder(OdDbObjectIdArray &entityIds, OdUInt8 honorSortentsMask=0) const
virtual OdResult subGetClassID(void *pClsid) const
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
OdDbObjectId blockId() const