CFx SDK Documentation  2023 SP0
AECDisplayManager.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 #ifndef __AECDISPLAYMANAGER_H__
25 #define __AECDISPLAYMANAGER_H__
26 
27 #include "AECBase.h"
28 #include <DbDatabase.h>
29 #include <DbDictionary.h>
30 
36 class AECBASE_API AECDisplayManager
37 {
38  public:
43 
47  virtual ~AECDisplayManager();
48 
49  public:
59  bool bCreateIfNotFound = true ) const;
60 
70  bool bCreateIfNotFound = true ) const;
71 
81  bool bCreateIfNotFound = true ) const;
82 
91 
101  const OdDbObjectId& idViewport ) const;
102 
122  const OdString& strExtendedName = OdString::kEmpty ) const;
123 
143  const OdString& strExtendedName = OdString::kEmpty );
144 
157  OdRxClass* pDisplayRepresentationType );
158 
164  OdRxClass* pEntityType );
165 
174  void GetDisplayProperties( const OdDbObjectId& idEntity,
175  const OdGeVector3d& vViewDirection,
176  std::vector< std::pair<OdDbObjectId,OdDbObjectId> >& aResult ) const;
177 
187  void GetDisplayProperties( const OdDbObjectId& idEntity,
188  const OdGeVector3d& vViewDirection, const OdDbObjectId& idViewport,
189  std::vector< std::pair<OdDbObjectId,OdDbObjectId> >& aResult ) const;
190 
191  private:
192  OdDbDatabase* m_pDb;
193  static const char* pRepPropMap[][3];
194 };
195 
196 #endif //__AECDISPLAYMANAGER_H__
AECDisplayManager(OdDbDatabase *dDb)
OdDbObjectId GetCurrentDisplayConfiguration() const
OdDbObjectId GetDisplayConfigurationDictionaryId(bool bCreateIfNotFound=true) const
OdDbObjectId UpdateDisplayRepresentation(OdRxClass *pDesc, const OdString &strExtendedName=OdString::kEmpty)
OdDbObjectId GetCurrentDisplayConfiguration(const OdDbObjectId &idViewport) const
OdDbObjectId GetDisplayRepresentation(OdRxClass *pDesc, const OdString &strExtendedName=OdString::kEmpty) const
static OdRxClass * GetModelDisplayRepresentation(OdRxClass *pEntityType)
OdDbObjectId GetDisplayRepresentationDictionaryId(bool bCreateIfNotFound=true) const
void GetDisplayProperties(const OdDbObjectId &idEntity, const OdGeVector3d &vViewDirection, std::vector< std::pair< OdDbObjectId, OdDbObjectId > > &aResult) const
OdDbObjectId GetDisplaySetDictionaryId(bool bCreateIfNotFound=true) const
static OdRxClass * GetDisplayPropertiesType(OdRxClass *pDisplayRepresentationType)
void GetDisplayProperties(const OdDbObjectId &idEntity, const OdGeVector3d &vViewDirection, const OdDbObjectId &idViewport, std::vector< std::pair< OdDbObjectId, OdDbObjectId > > &aResult) const
virtual ~AECDisplayManager()
FIRSTDLL_EXPORT_STATIC static const OdString kEmpty
Definition: OdString.h:98