CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
DbGrip.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2022, Open Design Alliance (the "Alliance").
3// All rights reserved.
4//
5// This software and its documentation and related materials are owned by
6// the Alliance. The software may only be incorporated into application
7// programs owned by members of the Alliance, subject to a signed
8// Membership Agreement and Supplemental Software License Agreement with the
9// Alliance. The structure and organization of this software are the valuable
10// trade secrets of the Alliance and its suppliers. The software is also
11// protected by copyright law and international treaty provisions. Application
12// programs incorporating this software must include the following statement
13// with their copyright notices:
14//
15// This application incorporates Open Design Alliance software pursuant to a license
16// agreement with Open Design Alliance.
17// Open Design Alliance Copyright (C) 2002-2022 by Open Design Alliance.
18// All rights reserved.
19//
20// By use of this software, its documentation or related materials, you
21// acknowledge and accept the above terms.
23
24
25
26
27#ifndef _ODDBGRIP_INCLUDED_
28#define _ODDBGRIP_INCLUDED_
30#include "TD_PackPush.h"
31#include "Ge/GePoint3d.h"
32#include "SharedPtr.h"
33#include "DbStubPtrArray.h"
34#include "GsMarkerArray.h"
35
36class OdDbGripData;
37template <class T> class OdSharedPtr;
38
44
50
56
57class OdDbDimData;
58
64
65class OdGiWorldDraw;
67class OdGiViewport;
68class OdDbGripData;
69class OdDbCustomOsnapMode;
70
74typedef void* ODHMENU;
75
81
87
93namespace OdDb
94{
99 {
105 kDragAbort = 2
106 };
107
112 {
119 };
120}
121
128{
133 {
142 };
143
148 {
169 };
170
175 {
193 kGripIsPerViewport = 0x100
194 };
195
200 {
204 kMultiHotGrip = 0x02
205 };
206
211 {
217 kDynamicDimMode = 0x04
218 };
219
224 {
226 kOsnapped = 0x01,
228 kPolar = 0x02,
230 kOtrack = 0x04,
232 kZdir = 0x08,
234 kKeyboard = 0x10
235 };
236}
237
243namespace OdDb
244{
249 {
251 kOsMaskEnd = 0x000001,
253 kOsMaskMid = 0x000002,
255 kOsMaskCen = 0x000004,
257 kOsMaskNode = 0x000008,
259 kOsMaskQuad = 0x000010,
261 kOsMaskInt = 0x000020,
263 kOsMaskIns = 0x000040,
265 kOsMaskPerp = 0x000080,
267 kOsMaskTan = 0x000100,
269 kOsMaskNear = 0x000200,
271 kOsMaskQuick = 0x000400,
273 kOsMaskApint = 0x000800,
277 kOsMaskAllowTan = 0x020000,
283 kOsMaskRelPolar = 0x100000,
285 kOsMaskNoneOverride = 0x200000
286 };
287}
288
293typedef bool (*GripWorldDrawPtr)(
294 OdDbGripData* pThis,
295 OdGiWorldDraw* pWd,
296 OdDbStub* entId,
298 OdGePoint3d* imageGripPoint,
299 double dGripSize );
300
306 OdDbGripData* pThis,
307 OdGiViewportDraw* pWd,
308 OdDbStub* entId,
310 OdGePoint3d* imageGripPoint,
311 int gripSize );
312
318 OdDbGripData* pThis,
319 OdDbStub* entId,
320 int iContextFlags );
321
326 OdDbGripData* pThis,
327 OdDbStub* entId,
329
333typedef const OdChar* (*GripToolTipPtr)( OdDbGripData* pThis );
334
338typedef void (*ContextMenuItemIndexPtr)( unsigned itemIndex );
339
345 OdDbGripData* pThis,
346 OdDbStub* entId,
347 double dimScale,
348 OdDbDimDataPtrArray& dimData );
349
354 OdDbGripDataArray& hotGrips,
355 const OdDbStubPtrArray& ents,
356 OdString& menuName, ODHMENU& menu,
358
364 OdDbGripData* pThis, OdDbStub* entId, bool& changedPoint,
365 OdGePoint3d& newPoint, const OdGiViewport& viewContext,
366 OdDbStub* viewportId, bool pointComputed, int history,
367 const OdGePoint3d& lastPoint, const OdGePoint3d& rawPoint,
368 const OdGePoint3d& grippedPoint, const OdGePoint3d& cartesianSnappedPoint,
369 const OdGePoint3d& osnappedPoint, OdDb::OsnapMask osnapMask,
370 const OdArray<OdDbCustomOsnapModePtr>& customOsnapModes,
371 OdDb::OsnapMask osnapOverrides,
372 const OdArray<OdDbCustomOsnapModePtr>& customOsnapOverrides,
373 const OdDbStubPtrArray& pickedEntities,
374 const OdArray<OdDbStubPtrArray>& nestedPickedEntities,
375 const OdGsMarkerArray& gsSelectionMark,
376 const OdDbStubPtrArray& keyPointEntities,
377 const OdArray<OdDbStubPtrArray>& nestedKeyPointEntities,
378 const OdGsMarkerArray& keyPointGsSelectionMark,
379 const OdArray<OdSharedPtr<OdGeCurve3d> >& alignmentPaths, const OdGePoint3d& computedPoint);
380
391{
392public:
393 //DOM-IGNORE-BEGIN
395 //DOM-IGNORE-END
396
400 OdDbGripData();
401
409
435 OdDbGripData(const OdGePoint3d& pt, void* AppData,
436 GripOperationPtr hotGrip, GripOperationPtr hoverGrip,
439 GripToolTipPtr tt, GripDimensionPtr hoverDim,
440 GripDimensionPtr hotGripDim,
441 unsigned bitFlags, OdGePoint3d* altBasePt,
443
471 OdDbGripData(const OdGePoint3d& pt, void* AppData,
472 OdRxClass* pAppDataClass,
473 GripOperationPtr hotGrip, GripOperationPtr hoverGrip,
476 GripToolTipPtr tt, GripDimensionPtr hoverDim,
477 GripDimensionPtr hotGripDim,
478 unsigned bitFlags, OdGePoint3d* altBasePt,
480
507 void setAllData(const OdGePoint3d& pt, void* AppData,
508 GripOperationPtr hotGrip, GripOperationPtr hoverGrip,
511 GripToolTipPtr tt, GripDimensionPtr hoverDim,
512 GripDimensionPtr hotGripDim,
513 unsigned bitFlags, OdGePoint3d* altBasePt,
515 OdRxClass* pAppDataClass);
516
527
531 const OdGePoint3d& gripPoint() const;
532
538 void setGripPoint( const OdGePoint3d& pt );
539
543 void* appData() const;
544
550 void setAppData( void* pAppData );
551
556
563 void setAppDataOdRxClass(OdRxClass* pClass);
564
570
579
585
594
600
609
615
624
630
639
645
654
659
665 void setAlternateBasePoint( OdGePoint3d* altBasePt );
666
673 unsigned bitFlags() const;
674
683 void setBitFlags( unsigned flags );
684
694 bool skipWhenShared() const;
695
704 void setSkipWhenShared( bool skip );
705
715 bool isRubberBandLineDisabled() const;
716
725 void disableRubberBandLine( bool disable );
726
736 bool areModeKeywordsDisabled() const;
737
746 void disableModeKeywords( bool disable );
747
757 bool drawAtDragImageGripPoint() const;
758
767 void setDrawAtDragImageGripPoint( bool atDragPoint );
768
778 bool triggerGrip() const;
779
788 void setTriggerGrip( bool trigger );
789
799 bool forcedPickOn() const;
800
809 void setForcedPickOn( bool on );
810
820 bool mapGripHotToRtClk() const;
821
830 void setMapGripHotToRtClk( bool on );
831
841 bool gizmosEnabled() const;
842
851 void setGizmosEnabled( bool on );
852
862 bool gripIsPerViewport() const;
863
872 void setGripIsPerViewport(bool on);
873
879
888
894
903
908 GripRtClkHandler rtClk() const;
909
917 void setRtClk( GripRtClkHandler pf );
918
925
935
936private:
937 void* m_pAppData;
938 OdRxClass* m_pAppDataClass;
939 OdGePoint3d m_gripPt;
940 OdGePoint3d* m_pAltBasePt;
941 GripOperationPtr m_pHotGripFunc;
942 GripOperationPtr m_pHoverFunc;
943 GripWorldDrawPtr m_pWorldDraw;
944 GripViewportDrawPtr m_pViewportDraw;
945 GripOpStatusPtr m_pGripOpStatFunc;
946 GripToolTipPtr m_pToolTipFunc;
947 unsigned m_bitFlags;
948 GripInputPointPtr m_pInputPointFunc;
949 GripRtClkHandler m_pRtClk;
950 GripDimensionPtr m_pHoverDimensionFunc;
951 GripDimensionPtr m_pHotGripDimensionFunc;
952};
953
954//
955// Inline methods
956//
957
959 : m_pAppData(0)
960 , m_pAppDataClass(0)
961 , m_pAltBasePt(0)
962 , m_pHotGripFunc(0)
963 , m_pHoverFunc(0)
964 , m_pWorldDraw(0)
965 , m_pViewportDraw(0)
966 , m_pGripOpStatFunc(0)
967 , m_pToolTipFunc(0)
968 , m_bitFlags(0)
969 , m_pInputPointFunc(0)
970 , m_pRtClk(0)
971 , m_pHoverDimensionFunc(0)
972 , m_pHotGripDimensionFunc(0)
973{
974}
975
977{
978 m_gripPt = srcData.gripPoint();
979 m_pAppData = srcData.appData();
980 m_pAppDataClass = srcData.appDataOdRxClass();
981 m_pHotGripFunc = srcData.hotGripFunc();
982 m_pHoverFunc = srcData.hoverFunc();
983 m_pRtClk = srcData.rtClk();
984 m_pWorldDraw = srcData.worldDraw();
985 m_pViewportDraw = srcData.viewportDraw();
986 m_pGripOpStatFunc = srcData.gripOpStatFunc();
987 m_pToolTipFunc = srcData.toolTipFunc();
988 m_pHoverDimensionFunc = srcData.hoverDimensionFunc();
989 m_pHotGripDimensionFunc = srcData.hotGripDimensionFunc();
990 m_bitFlags = srcData.bitFlags();
991 m_pAltBasePt = srcData.alternateBasePoint();
992 m_pInputPointFunc = srcData.inputPointFunc();
993}
994
995inline
997 GripOperationPtr hotGrip, GripOperationPtr hoverGrip,
1000 GripToolTipPtr tt, GripDimensionPtr hoverDim,
1001 GripDimensionPtr hotGripDim,
1002 unsigned bitFlags, OdGePoint3d* altBasePt,
1003 GripInputPointPtr inputPointFunc)
1004 : m_pAppData(AppData)
1005 , m_pAppDataClass(0)
1006 , m_gripPt(pt)
1007 , m_pAltBasePt(altBasePt)
1008 , m_pHotGripFunc(hotGrip)
1009 , m_pHoverFunc(hoverGrip)
1010 , m_pWorldDraw(wd)
1011 , m_pViewportDraw(vd)
1012 , m_pGripOpStatFunc(stat)
1013 , m_pToolTipFunc(tt)
1014 , m_bitFlags(bitFlags)
1015 , m_pInputPointFunc(inputPointFunc)
1016 , m_pRtClk(RtClk)
1017 , m_pHoverDimensionFunc(hoverDim)
1018 , m_pHotGripDimensionFunc(hotGripDim)
1019{
1020}
1021
1022inline
1024 OdRxClass* pAppDataClass,
1025 GripOperationPtr hotGrip, GripOperationPtr hoverGrip,
1028 GripToolTipPtr tt, GripDimensionPtr hoverDim,
1029 GripDimensionPtr hotGripDim,
1030 unsigned bitFlags, OdGePoint3d* altBasePt,
1031 GripInputPointPtr inputPointFunc)
1032 : m_pAppData(AppData)
1033 , m_pAppDataClass(pAppDataClass)
1034 , m_gripPt(pt)
1035 , m_pAltBasePt(altBasePt)
1036 , m_pHotGripFunc(hotGrip)
1037 , m_pHoverFunc(hoverGrip)
1038 , m_pWorldDraw(wd)
1039 , m_pViewportDraw(vd)
1040 , m_pGripOpStatFunc(stat)
1041 , m_pToolTipFunc(tt)
1042 , m_bitFlags(bitFlags)
1043 , m_pInputPointFunc(inputPointFunc)
1044 , m_pRtClk(RtClk)
1045 , m_pHoverDimensionFunc(hoverDim)
1046 , m_pHotGripDimensionFunc(hotGripDim)
1047{
1048}
1049
1051{
1052 m_gripPt = rightSide.gripPoint();
1053 m_pAppData = rightSide.appData();
1054 m_pAppDataClass = rightSide.appDataOdRxClass();
1055 m_pHotGripFunc = rightSide.hotGripFunc();
1056 m_pHoverFunc = rightSide.hoverFunc();
1057 m_pRtClk = rightSide.rtClk();
1058 m_pWorldDraw = rightSide.worldDraw();
1059 m_pViewportDraw = rightSide.viewportDraw();
1060 m_pGripOpStatFunc = rightSide.gripOpStatFunc();
1061 m_pToolTipFunc = rightSide.toolTipFunc();
1062 m_pHoverDimensionFunc = rightSide.hoverDimensionFunc();
1063 m_pHotGripDimensionFunc = rightSide.hotGripDimensionFunc();
1064 m_bitFlags = rightSide.bitFlags();
1065 m_pAltBasePt = rightSide.alternateBasePoint();
1066 m_pInputPointFunc = rightSide.inputPointFunc();
1067
1068 return *this;
1069}
1070
1071
1072inline void
1073OdDbGripData::setAllData(const OdGePoint3d& pt, void* pAppData,
1074 GripOperationPtr hotGrip, GripOperationPtr hoverGrip,
1077 GripToolTipPtr tt, GripDimensionPtr hoverDim,
1078 GripDimensionPtr hotGripDim,
1079 unsigned bitFlags, OdGePoint3d* altBasePt,
1080 GripInputPointPtr inputPointFunc,
1081 OdRxClass* pAppDataClass)
1082{
1083 m_gripPt = pt;
1084 m_pAppData = pAppData;
1085 m_pAppDataClass = pAppDataClass;
1086 m_pHotGripFunc = hotGrip;
1087 m_pHoverFunc = hoverGrip;
1088 m_pRtClk = RtClk;
1089 m_pWorldDraw = wd;
1090 m_pViewportDraw = vd;
1091 m_pGripOpStatFunc = stat;
1092 m_pToolTipFunc= tt;
1093 m_pHoverDimensionFunc = hoverDim;
1094 m_pHotGripDimensionFunc = hotGripDim;
1095 m_bitFlags = bitFlags;
1096 m_pAltBasePt = altBasePt;
1097 m_pInputPointFunc = inputPointFunc;
1098}
1099
1101{
1102 return m_gripPt;
1103}
1104
1106{
1107 m_gripPt = pt;
1108}
1109
1110inline void* OdDbGripData::appData() const
1111{
1112 return m_pAppData;
1113}
1114
1115inline void OdDbGripData::setAppData( void* pAppData )
1116{
1117 m_pAppData = pAppData;
1118}
1119
1121{
1122 return m_pAppDataClass;
1123}
1124
1126{
1127 m_pAppDataClass = appDataClass;
1128}
1129
1131{
1132 return m_pHotGripFunc;
1133}
1134
1136{
1137 m_pHotGripFunc = pf;
1138}
1139
1141{
1142 return m_pHoverFunc;
1143}
1144
1146{
1147 m_pHoverFunc = pf;
1148}
1149
1151{
1152 return m_pWorldDraw;
1153}
1154
1156{
1157 m_pWorldDraw = pf;
1158}
1159
1161{
1162 return m_pViewportDraw;
1163}
1164
1166{
1167 m_pViewportDraw = pf;
1168}
1169
1171{
1172 return m_pGripOpStatFunc;
1173}
1174
1176{
1177 m_pGripOpStatFunc = pf;
1178}
1179
1181{
1182 return m_pToolTipFunc;
1183}
1184
1186{
1187 m_pToolTipFunc = pf;
1188}
1189
1191{
1192 return m_pAltBasePt;
1193}
1194
1196{
1197 m_pAltBasePt = altBasePt;
1198}
1199
1200inline unsigned OdDbGripData::bitFlags() const
1201{
1202 return m_bitFlags;
1203}
1204
1205inline void OdDbGripData::setBitFlags( unsigned flags )
1206{
1207 m_bitFlags = flags;
1208}
1209
1211{
1212 return 0 != (m_bitFlags & OdDbGripOperations::kSkipWhenShared);
1213}
1214
1215inline void OdDbGripData::setSkipWhenShared( bool skip )
1216{
1217 if (skip)
1219 else
1220 m_bitFlags &= ~OdDbGripOperations::kSkipWhenShared;
1221}
1222
1224{
1225 return 0 != (m_bitFlags & OdDbGripOperations::kDisableRubberBandLine);
1226}
1227
1228inline void OdDbGripData::disableRubberBandLine( bool disable )
1229{
1230 if (disable)
1232 else
1233 m_bitFlags &= ~OdDbGripOperations::kDisableRubberBandLine;
1234}
1235
1237{
1238 return 0 != (m_bitFlags & OdDbGripOperations::kDisableModeKeywords);
1239}
1240
1241inline void OdDbGripData::disableModeKeywords( bool disable )
1242{
1243 if (disable)
1245 else
1246 m_bitFlags &= ~OdDbGripOperations::kDisableModeKeywords;
1247}
1248
1250{
1251 return 0 != (m_bitFlags & OdDbGripOperations::kDrawAtDragImageGripPoint);
1252}
1253
1254inline void OdDbGripData::setDrawAtDragImageGripPoint( bool atDragPoint )
1255{
1256 if (atDragPoint)
1258 else
1259 m_bitFlags &= ~OdDbGripOperations::kDrawAtDragImageGripPoint;
1260}
1261
1262inline bool OdDbGripData::triggerGrip() const
1263{
1264 return 0 != (m_bitFlags & OdDbGripOperations::kTriggerGrip);
1265}
1266
1267inline void OdDbGripData::setTriggerGrip( bool trigger )
1268{
1269 if (trigger)
1271 else
1273}
1274
1276{
1277 return 0 != (m_bitFlags & OdDbGripOperations::kTurnOnForcedPick);
1278}
1279
1280inline void OdDbGripData::setForcedPickOn( bool on )
1281{
1282 if (on)
1284 else
1285 m_bitFlags &= ~OdDbGripOperations::kTurnOnForcedPick;
1286}
1287
1289{
1290 return 0 != (m_bitFlags & OdDbGripOperations::kMapGripHotToRtClk);
1291}
1292
1294{
1295 if (on)
1297 else
1298 m_bitFlags &= ~OdDbGripOperations::kMapGripHotToRtClk;
1299}
1300
1302{
1303 return 0 != (m_bitFlags & OdDbGripOperations::kGizmosEnabled);
1304}
1305
1307{
1308 if (on)
1310 else
1311 m_bitFlags &= ~OdDbGripOperations::kGizmosEnabled;
1312}
1313
1315{
1316 return 0 != (m_bitFlags & OdDbGripOperations::kGripIsPerViewport);
1317}
1318
1320{
1321 if (on)
1323 else
1324 m_bitFlags &= ~OdDbGripOperations::kGripIsPerViewport;
1325}
1326
1328{
1329 return m_pHoverDimensionFunc;
1330}
1331
1333{
1334 m_pHoverDimensionFunc = pf;
1335}
1336
1338{
1339 return m_pHotGripDimensionFunc;
1340}
1341
1343{
1344 m_pHotGripDimensionFunc = pf;
1345}
1346
1348{
1349 return m_pRtClk;
1350}
1351
1353{
1354 m_pRtClk = pf;
1355}
1356
1358{
1359 return m_pInputPointFunc;
1360}
1361
1363{
1364 m_pInputPointFunc = pf;
1365}
1366
1367#include "TD_PackPop.h"
1368
1369#endif // _ODDBGRIP_INCLUDED_
OdArray< OdDbGripData > OdDbGripDataArray
Definition: DbGrip.h:80
OdResult(* GripOperationPtr)(OdDbGripData *pThis, OdDbStub *entId, int iContextFlags)
Definition: DbGrip.h:317
OdResult(* GripInputPointPtr)(OdDbGripData *pThis, OdDbStub *entId, bool &changedPoint, OdGePoint3d &newPoint, const OdGiViewport &viewContext, OdDbStub *viewportId, bool pointComputed, int history, const OdGePoint3d &lastPoint, const OdGePoint3d &rawPoint, const OdGePoint3d &grippedPoint, const OdGePoint3d &cartesianSnappedPoint, const OdGePoint3d &osnappedPoint, OdDb::OsnapMask osnapMask, const OdArray< OdDbCustomOsnapModePtr > &customOsnapModes, OdDb::OsnapMask osnapOverrides, const OdArray< OdDbCustomOsnapModePtr > &customOsnapOverrides, const OdDbStubPtrArray &pickedEntities, const OdArray< OdDbStubPtrArray > &nestedPickedEntities, const OdGsMarkerArray &gsSelectionMark, const OdDbStubPtrArray &keyPointEntities, const OdArray< OdDbStubPtrArray > &nestedKeyPointEntities, const OdGsMarkerArray &keyPointGsSelectionMark, const OdArray< OdSharedPtr< OdGeCurve3d > > &alignmentPaths, const OdGePoint3d &computedPoint)
Definition: DbGrip.h:363
void(* GripDimensionPtr)(OdDbGripData *pThis, OdDbStub *entId, double dimScale, OdDbDimDataPtrArray &dimData)
Definition: DbGrip.h:344
void(* GripOpStatusPtr)(OdDbGripData *pThis, OdDbStub *entId, OdDbGripOperations::GripStatus status)
Definition: DbGrip.h:325
void(* ContextMenuItemIndexPtr)(unsigned itemIndex)
Definition: DbGrip.h:338
bool(* GripWorldDrawPtr)(OdDbGripData *pThis, OdGiWorldDraw *pWd, OdDbStub *entId, OdDbGripOperations::DrawType type, OdGePoint3d *imageGripPoint, double dGripSize)
Definition: DbGrip.h:293
OdArray< OdDbDimData *, OdMemoryAllocator< OdDbDimData * > > OdDbDimDataPtrArray
Definition: DbGrip.h:63
void(* GripViewportDrawPtr)(OdDbGripData *pThis, OdGiViewportDraw *pWd, OdDbStub *entId, OdDbGripOperations::DrawType type, OdGePoint3d *imageGripPoint, int gripSize)
Definition: DbGrip.h:305
OdArray< void *, OdMemoryAllocator< void * > > OdDbVoidPtrArray
Definition: DbGrip.h:55
const OdChar *(* GripToolTipPtr)(OdDbGripData *pThis)
Definition: DbGrip.h:333
OdArray< OdDbGripDataPtr > OdDbGripDataPtrArray
Definition: DbGrip.h:49
OdSmartPtr< OdDbCustomOsnapMode > OdDbCustomOsnapModePtr
Definition: DbGrip.h:86
OdSharedPtr< OdDbGripData > OdDbGripDataPtr
Definition: DbGrip.h:43
void * ODHMENU
Definition: DbGrip.h:74
OdResult(* GripRtClkHandler)(OdDbGripDataArray &hotGrips, const OdDbStubPtrArray &ents, OdString &menuName, ODHMENU &menu, ContextMenuItemIndexPtr &cb)
Definition: DbGrip.h:353
wchar_t OdChar
OdResult
Definition: OdResult.h:29
void setHotGripDimensionFunc(GripDimensionPtr pf)
Definition: DbGrip.h:1342
bool areModeKeywordsDisabled() const
Definition: DbGrip.h:1236
void disableModeKeywords(bool disable)
Definition: DbGrip.h:1241
GripDimensionPtr hoverDimensionFunc() const
Definition: DbGrip.h:1327
GripOperationPtr hoverFunc() const
Definition: DbGrip.h:1140
void setHoverFunc(GripOperationPtr pf)
Definition: DbGrip.h:1145
bool gripIsPerViewport() const
Definition: DbGrip.h:1314
bool isRubberBandLineDisabled() const
Definition: DbGrip.h:1223
void setForcedPickOn(bool on)
Definition: DbGrip.h:1280
unsigned bitFlags() const
Definition: DbGrip.h:1200
bool mapGripHotToRtClk() const
Definition: DbGrip.h:1288
void setToolTipFunc(GripToolTipPtr pf)
Definition: DbGrip.h:1185
void setBitFlags(unsigned flags)
Definition: DbGrip.h:1205
bool gizmosEnabled() const
Definition: DbGrip.h:1301
void setWorldDraw(GripWorldDrawPtr pf)
Definition: DbGrip.h:1155
GripOperationPtr hotGripFunc() const
Definition: DbGrip.h:1130
void setRtClk(GripRtClkHandler pf)
Definition: DbGrip.h:1352
OdRxClass * appDataOdRxClass() const
Definition: DbGrip.h:1120
void * appData() const
Definition: DbGrip.h:1110
void setAllData(const OdGePoint3d &pt, void *AppData, GripOperationPtr hotGrip, GripOperationPtr hoverGrip, GripRtClkHandler RtClk, GripWorldDrawPtr wd, GripViewportDrawPtr vd, GripOpStatusPtr stat, GripToolTipPtr tt, GripDimensionPtr hoverDim, GripDimensionPtr hotGripDim, unsigned bitFlags, OdGePoint3d *altBasePt, GripInputPointPtr inputPointFunc, OdRxClass *pAppDataClass)
Definition: DbGrip.h:1073
void setGripOpStatFunc(GripOpStatusPtr pf)
Definition: DbGrip.h:1175
GripViewportDrawPtr viewportDraw() const
Definition: DbGrip.h:1160
GripDimensionPtr hotGripDimensionFunc() const
Definition: DbGrip.h:1337
void setHotGripFunc(GripOperationPtr pf)
Definition: DbGrip.h:1135
void setAppData(void *pAppData)
Definition: DbGrip.h:1115
void setInputPointFunc(GripInputPointPtr pf)
Definition: DbGrip.h:1362
OdDbGripData & operator=(const OdDbGripData &)
Definition: DbGrip.h:1050
void setHoverDimensionFunc(GripDimensionPtr pf)
Definition: DbGrip.h:1332
GripToolTipPtr toolTipFunc() const
Definition: DbGrip.h:1180
void setGripIsPerViewport(bool on)
Definition: DbGrip.h:1319
void setTriggerGrip(bool trigger)
Definition: DbGrip.h:1267
GripRtClkHandler rtClk() const
Definition: DbGrip.h:1347
GripInputPointPtr inputPointFunc() const
Definition: DbGrip.h:1357
OdDbGripData()
Definition: DbGrip.h:958
void setMapGripHotToRtClk(bool on)
Definition: DbGrip.h:1293
void disableRubberBandLine(bool disable)
Definition: DbGrip.h:1228
GripWorldDrawPtr worldDraw() const
Definition: DbGrip.h:1150
void setAppDataOdRxClass(OdRxClass *pClass)
Definition: DbGrip.h:1125
void setAlternateBasePoint(OdGePoint3d *altBasePt)
Definition: DbGrip.h:1195
bool skipWhenShared() const
Definition: DbGrip.h:1210
bool forcedPickOn() const
Definition: DbGrip.h:1275
bool drawAtDragImageGripPoint() const
Definition: DbGrip.h:1249
void setViewportDraw(GripViewportDrawPtr pf)
Definition: DbGrip.h:1165
GripOpStatusPtr gripOpStatFunc() const
Definition: DbGrip.h:1170
void setSkipWhenShared(bool skip)
Definition: DbGrip.h:1215
void setGripPoint(const OdGePoint3d &pt)
Definition: DbGrip.h:1105
const OdGePoint3d & gripPoint() const
Definition: DbGrip.h:1100
void setDrawAtDragImageGripPoint(bool atDragPoint)
Definition: DbGrip.h:1254
OdGePoint3d * alternateBasePoint() const
Definition: DbGrip.h:1190
void setGizmosEnabled(bool on)
Definition: DbGrip.h:1306
bool triggerGrip() const
Definition: DbGrip.h:1262
typedef void(APIENTRYP PFNGLACTIVETEXTUREPROC)(GLenum texture)
GLuint GLsizei GLsizei GLint GLenum * type
Definition: gles2_ext.h:274
@ kDisableRubberBandLine
Definition: DbGrip.h:179
@ kDrawAtDragImageGripPoint
Definition: DbGrip.h:183
GripStat
Definition: DbGrip.h:112
@ kGripsDone
Definition: DbGrip.h:114
@ kDimDataToBeDeleted
Definition: DbGrip.h:118
@ kGripsToBeDeleted
Definition: DbGrip.h:116
OsnapMask
Definition: DbGrip.h:249
@ kOsMaskRelPolar
Definition: DbGrip.h:283
@ kOsMaskQuick
Definition: DbGrip.h:271
@ kOsMaskQuad
Definition: DbGrip.h:259
@ kOsMaskCen
Definition: DbGrip.h:255
@ kOsMaskApint
Definition: DbGrip.h:273
@ kOsMaskPerp
Definition: DbGrip.h:265
@ kOsMaskRelCartesian
Definition: DbGrip.h:281
@ kOsMaskInt
Definition: DbGrip.h:261
@ kOsMaskImmediate
Definition: DbGrip.h:275
@ kOsMaskDisablePerp
Definition: DbGrip.h:279
@ kOsMaskNoneOverride
Definition: DbGrip.h:285
@ kOsMaskNode
Definition: DbGrip.h:257
@ kOsMaskEnd
Definition: DbGrip.h:251
@ kOsMaskTan
Definition: DbGrip.h:267
@ kOsMaskIns
Definition: DbGrip.h:263
@ kOsMaskAllowTan
Definition: DbGrip.h:277
@ kOsMaskNear
Definition: DbGrip.h:269
@ kOsMaskMid
Definition: DbGrip.h:253
DragStat
Definition: DbGrip.h:99
@ kDragStart
Definition: DbGrip.h:101
@ kDragAbort
Definition: DbGrip.h:105
@ kDragEnd
Definition: DbGrip.h:103