CFx SDK Documentation  2023 SP0
FxGripPointsPE.h
Go to the documentation of this file.
1 //
2 // (C) Copyright 2005-2022 by Graebert GmbH.
3 //
4 // Permission to use, copy, modify, and distribute this software in
5 // object code form for any purpose and without fee is hereby granted,
6 // provided that the above copyright notice appears in all copies and
7 // that both that copyright notice and the limited warranty and
8 // restricted rights notice below appear in all supporting
9 // documentation.
10 //
11 // GRAEBERT PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
12 // GRAEBERT SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
13 // MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. GRAEBERT GMBH
14 // DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
15 // UNINTERRUPTED OR ERROR FREE.
16 
17 #pragma once
18 
19 #include "FxPragmaPush.h"
20 
21 #include "DDKERNEL.h"
22 
23 #include <DbGripPoints.h>
24 
31 {
33 
34 public:
35 
52  const OdDbEntity* pEntity,
53  OdDb::OsnapMode osnapMode,
54  OdGsMarker gsSelectionMark,
55  const OdGePoint3d& pickPoint,
56  const OdGePoint3d& lastPoint,
57  const OdGeMatrix3d& xWorldToEye,
58  OdGePoint3dArray& snapPoints,
59  bool abortAllowed);
60 
64  virtual int getObjectCount() const = 0;
65 
66 protected:
67  // should only be used in getOsnapPoints and not in getGripPoints
68  static bool abort();
69 
71  const OdDbEntity* pEntity,
72  OdDb::OsnapMode osnapMode,
73  OdGsMarker gsSelectionMark,
74  const OdGePoint3d& pickPoint,
75  const OdGePoint3d& lastPoint,
76  const OdGeMatrix3d& xWorldToEye,
77  OdGePoint3dArray& snapPoints,
78  bool abortAllowed) const = 0;
79 
80 private:
82  const OdDbEntity* pEntity,
83  OdDb::OsnapMode osnapMode,
84  OdGsMarker gsSelectionMark,
85  const OdGePoint3d& pickPoint,
86  const OdGePoint3d& lastPoint,
87  const OdGeMatrix3d& xWorldToEye,
88  OdGePoint3dArray& snapPoints ) const override;
89 
90  static bool s_bAbortAllowed;
91 };
92 
94 
95 #include "FxPragmaPop.h"
#define DDKERNEL_API
Definition: DDKERNEL.h:32
OdSmartPtr< CFxGripPointsPE > CFxGripPointsPEPtr
ptrdiff_t OdGsMarker
OdResult
Definition: OdResult.h:29
static OdResult getOsnapPoints(const OdDbEntity *pEntity, OdDb::OsnapMode osnapMode, OdGsMarker gsSelectionMark, const OdGePoint3d &pickPoint, const OdGePoint3d &lastPoint, const OdGeMatrix3d &xWorldToEye, OdGePoint3dArray &snapPoints, bool abortAllowed)
virtual int getObjectCount() const =0
static bool abort()
virtual OdResult getOsnapPointsImpl(const OdDbEntity *pEntity, OdDb::OsnapMode osnapMode, OdGsMarker gsSelectionMark, const OdGePoint3d &pickPoint, const OdGePoint3d &lastPoint, const OdGeMatrix3d &xWorldToEye, OdGePoint3dArray &snapPoints, bool abortAllowed) const =0
ODRX_DECLARE_MEMBERS(OdDbGripPointsPE)
virtual OdResult getOsnapPoints(const OdDbEntity *pEntity, OdDb::OsnapMode osnapMode, OdGsMarker gsSelectionMark, const OdGePoint3d &pickPoint, const OdGePoint3d &lastPoint, const OdGeMatrix3d &xWorldToEye, OdGePoint3dArray &snapPoints) const
OsnapMode
Definition: OdaDefs.h:480