INamedViewElementHandler.h
Go to the documentation of this file.
1 /*--------------------------------------------------------------------------------------+
2 |
3 | Supplied under applicable software license agreement.
4 |
5 | Copyright (c) 2018 Bentley Systems, Incorporated. All rights reserved.
6 |
7 +---------------------------------------------------------------------------------------*/
8 #pragma once
9 
11 
13 
14 /*=================================================================================**/
22 {
23 protected:
24 
28 DGNPLATFORM_EXPORT virtual NamedViewPtr _CreateView (DgnFileR destinationFile) const = 0;
29 
33 DGNPLATFORM_EXPORT virtual NamedViewPtr _CreateView (ElementHandleCR elemHandle) const = 0;
34 
41 DGNPLATFORM_EXPORT virtual NamedViewPtr _CreateView (ViewInfoCR viewInfo, ViewPortInfoCR viewPortInfo, DgnFileR destinationFile, WCharCP viewName) const = 0;
42 
45 DGNPLATFORM_EXPORT virtual bool _IsExpectedRootModelType (DgnModelType modelType) const = 0;
46 
48 DGNPLATFORM_EXPORT virtual bool _IsInternalViewType () const = 0;
49 
50  // Call this method to query a translatable string that can be displayed in the UI to represent the type of named view.
53 DGNPLATFORM_EXPORT virtual WString _GetViewTypeName () const = 0;
54 
55  // Call this method to query a nontranslatable string that can be stored in dgn file.
58 DGNPLATFORM_EXPORT virtual WString _GetViewTypeNameForPersistence() const = 0;
59 
60 public:
64 DGNPLATFORM_EXPORT NamedViewPtr CreateView (DgnFileR destinationFile);
65 
69 DGNPLATFORM_EXPORT NamedViewPtr CreateView (ElementHandleCR elemHandle);
70 
77 DGNPLATFORM_EXPORT NamedViewPtr CreateView (ViewInfoCR viewInfo, ViewPortInfoCR viewPortInfo, DgnFileR destinationFile, WCharCP viewName);
78 
79  // Call this method to query a translatable string that can be displayed in the UI to represent the type of named view.
82 DGNPLATFORM_EXPORT WString GetViewTypeName () const;
83 
84  // Call this method to query a nontranslatable string that can be stored in dgn file.
87 DGNPLATFORM_EXPORT WString GetViewTypeNameForPersistence () const;
88 
89 
90 }; // INamedViewElementHandler
91 
93 
94 
#define END_BENTLEY_DGNPLATFORM_NAMESPACE
Definition: DgnPlatformBaseType.r.h:69
Interface adopted by an Element Handler that represents a Named View.
Definition: INamedViewElementHandler.h:21
#define DGNPLATFORM_EXPORT
Definition: DgnPlatform/ExportMacros.h:58
A DgnFile is an in-memory representation of a physical file, regardless of its format.
Definition: DgnFile.h:308
wchar_t const * WCharCP
Definition: Bentley.h:224
struct DgnPlatform::ViewInfo const & ViewInfoCR
Definition: DgnPlatform.h:478
DgnModelType
Identifies the type or purpose of a model.
Definition: DgnPlatform.r.h:367
A shared pointer template for reference-counted objects.
Definition: RefCounted.h:119
struct DgnPlatform::ViewPortInfo const & ViewPortInfoCR
Definition: DgnPlatform.h:479
#define BEGIN_BENTLEY_DGNPLATFORM_NAMESPACE
Definition: DgnPlatformBaseType.r.h:68
struct DgnPlatform::ElementHandle const & ElementHandleCR
Definition: DgnPlatform.h:260
A string class that has many of the same capabilities as std::string, plus additional functions such ...
Definition: WString.h:51

Copyright © 2017 Bentley Systems, Incorporated. All rights reserved.