Constraint2dManager.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
10 
15 BEGIN_CONSTRAINT2D_NAMESPACE
16 
18 
19 typedef bmap <ElementRefP, EditElementHandleP> T_ModifiedElementMap;
20 
21 //=======================================================================================
22 //
23 // @struct Constraint2dManager A structure contains a set of static methods of handling parametric profile.
24 //
25 // @bsiclass Bentley Systems
26 //=======================================================================================
28 {
29 public:
37  CONSTRAINT2DELEMENT_EXPORT static StatusInt AddSolverData (ElementHandleCR eh, Constraint2dSolverDataCR solverData);
45  CONSTRAINT2DELEMENT_EXPORT static StatusInt GetSolverData(Constraint2dSolverDataR solverData, ElementHandleCR eh, bool includingDeleted = false);
46  static StatusInt GetSolverDataForRemap (Constraint2dSolverDataR solverData, ElementHandleCR eh);
47 
48  // Returns true if geometry updated successfully and resulted in changed geometry. Returns false if failed to evaluate/update or if resultant geometry is unchanged.
50  CONSTRAINT2DELEMENT_EXPORT static bool EvaluateAndUpdate(Constraint2dSolverDataCR solverData, DgnModelR dgnModel, bvector<ElementRefP> const& directChanges, bool isDynamic = false, ElementAgendaP results = NULL, bset<Constraint2dData>* inconsistentConstraints = NULL);
51 
52 };//Constraint2dManager
53 
54 
55 
56 
57 END_CONSTRAINT2D_NAMESPACE
58 
Definition: Constraint2dManager.h:27
static CONSTRAINT2DELEMENT_EXPORT StatusInt AddSolverData(ElementHandleCR eh, Constraint2dSolverDataCR solverData)
Store constraints data.
#define CONSTRAINT2DELEMENT_EXPORT
Definition: Constraint2dElementAPI.h:16
Definition: ConstraintHandlerBase.h:43
#define NULL
Definition: Bentley.h:157
bmap< ElementRefP, EditElementHandleP > T_ModifiedElementMap
Definition: Constraint2dManager.h:17
A DgnModel represents a DgnModel in memory.
Definition: DgnModel.h:236
A bvector of EditElementHandle entries to be used for operating on groups of elements.
Definition: ElementAgenda.h:257
static CONSTRAINT2DELEMENT_EXPORT bool EvaluateAndUpdate(Constraint2dSolverDataCR solverData, DgnModelR dgnModel, bvector< ElementRefP > const &directChanges, bool isDynamic=false, ElementAgendaP results=NULL, bset< Constraint2dData > *inconsistentConstraints=NULL)
static CONSTRAINT2DELEMENT_EXPORT StatusInt GetSolverData(Constraint2dSolverDataR solverData, ElementHandleCR eh, bool includingDeleted=false)
Get constraint data of the specified profile.
int StatusInt
Definition: Bentley.h:222
struct DgnPlatform::ElementHandle const & ElementHandleCR
Definition: DgnPlatform.h:260
static StatusInt GetSolverDataForRemap(Constraint2dSolverDataR solverData, ElementHandleCR eh)

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