DisplayPath.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 
10 #include "DgnPlatform.h"
11 
13 
14 /*=================================================================================**/
39 {
40 private:
41  virtual void MakeClassAbstract() = 0;
42 public:
43 public:
44 
46  DGNPLATFORM_EXPORT DgnModelRefP GetRoot () const;
47 
49  DGNPLATFORM_EXPORT int GetCount () const;
50 
53  DGNPLATFORM_EXPORT ElementRefP GetPathElem (int index) const;
54 
57  DGNPLATFORM_EXPORT ElementRefP GetHeadElem () const;
58 
62  DGNPLATFORM_EXPORT ElementRefP GetTailElem () const;
63 
66  DGNPLATFORM_EXPORT ElementRefP GetCursorElem () const;
67 
73  DGNPLATFORM_EXPORT ElementRefP GetComponentElem () const;
74 
81  DGNPLATFORM_EXPORT ElementRefP GetChildElem (ExposeChildrenReason reason = ExposeChildrenReason::Query) const;
82 
89  DGNPLATFORM_EXPORT ElementRefP GetSharedChildElem (ExposeChildrenReason reason = ExposeChildrenReason::Query) const;
90 
92  DGNPLATFORM_EXPORT void SetRoot (DgnModelRefP ref);
93 
95  DGNPLATFORM_EXPORT void PushPathElem (ElementRefP elRef);
96 
98  DGNPLATFORM_EXPORT ElementRefP PopPathElem ();
99 
101  DGNPLATFORM_EXPORT void SetCursorIndex (int index);
102 
104  DGNPLATFORM_EXPORT static DisplayPathPtr Create ();
105 
106 }; // DisplayPath
107 
109 
#define END_BENTLEY_DGNPLATFORM_NAMESPACE
Definition: DgnPlatformBaseType.r.h:69
ExposeChildrenReason
The reasons an application can ask a handler for an iterator to look at its "public" children...
Definition: Handler.h:79
#define DGNPLATFORM_EXPORT
Definition: DgnPlatform/ExportMacros.h:58
Definition: DisplayPath.h:38
#define CLRPUBLIC
Definition: DgnPlatform/ExportMacros.h:12
A DgnModelRef provides access to a model in a Bentley::DgnPlatform::DgnFile.
Definition: DgnModelRef.h:172
A shared pointer template for reference-counted objects.
Definition: RefCounted.h:119
Interface that provides direct and efficient access to element data.
Definition: ElementRefBase.h:120
#define BEGIN_BENTLEY_DGNPLATFORM_NAMESPACE
Definition: DgnPlatformBaseType.r.h:68
Concrete class that can be used to implement the reference-counting pattern.
Definition: RefCounted.h:109

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