IEditActionSource.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 #pragma once
10 
12 #include <ECPresentation/auiitem.h>
16 #include <DgnPlatform/HitPath.h>
17 
18 DGNPLATFORM_TYPEDEFS (IEditAction);
19 DGNPLATFORM_TYPEDEFS (DgnActionItemContext);
20 
21 
23 
24 /*=================================================================================**/
28 struct IEditAction : public Bentley::ECN::IUICommand
29 {
30 };
32 /*---------------------------------------------------------------------------------**/
36 struct DgnActionItemContext: public Bentley::ECN::IAUIDataContext
37  {
41  //This indicates the user is requesting EditActions that apply to the view.
42  DGNPLATFORM_EXPORT HitPathCP GetHitPath() const;
44  DGNPLATFORM_EXPORT ViewportP GetView() const;
46  DGNPLATFORM_EXPORT DPoint3dCP GetPoint () const;
49  DGNPLATFORM_EXPORT DgnECInstanceIterable GetDgnInstanceIterable () const;
51  DGNPLATFORM_EXPORT ElementHandle GetRootElement () const;
52  };
53 
54 /*=================================================================================**/
58 struct IEditActionSource : public Bentley::ECN::ECPresentationCommandProvider
59 {
60 /*---------------------------------------------------------------------------------**/
68 virtual void _GetCommand (bvector<IEditActionPtr>&cmds, DgnActionItemContextCR context, int purpose) = 0;
69 
70 
71 }; // IEditActionSource
72 
73 
75 
76 
Applications should implement this interface to become an EditActionSource for right mouse clicks in ...
Definition: IEditActionSource.h:58
RefCountedPtr< DgnPlatform::IEditAction > IEditActionPtr
Definition: IEditActionSource.h:31
Definition: IEditActionSource.h:36
A readonly "handle" to an element.
Definition: ElementHandle.h:113
#define END_BENTLEY_DGNPLATFORM_NAMESPACE
Definition: DgnPlatformBaseType.r.h:69
struct DPoint3d const * DPoint3dCP
Definition: msgeomstructs_typedefs.h:79
#define DGNPLATFORM_EXPORT
Definition: DgnPlatform/ExportMacros.h:58
Applications should implement this interface for the EditActions they supply via an DgnPlatform::IEdi...
Definition: IEditActionSource.h:28
struct DgnPlatform::HitPath const * HitPathCP
Definition: DgnPlatform.h:274
A shared pointer template for reference-counted objects.
Definition: RefCounted.h:119
DGNPLATFORM_TYPEDEFS(IEditAction)
#define BEGIN_BENTLEY_DGNPLATFORM_NAMESPACE
Definition: DgnPlatformBaseType.r.h:68
! Used to return results from DgnECManager::FindInstances.
Definition: DgnECInstance.h:601
Definition: DgnViewport.h:186

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