CFx SDK Documentation  2023 SP0
DbGrip.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2017, 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 Teigha(R) software pursuant to a license
16 // agreement with Open Design Alliance.
17 // Teigha(R) Copyright (C) 2002-2017 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 
36 class OdDbGripData;
37 template <class T> class OdSharedPtr;
39 
44 
46 
47 class OdDbDimData;
49 
50 class OdGiWorldDraw;
51 class OdGiViewportDraw;
52 class OdGiViewport;
53 class OdDbGripData;
54 class OdDbCustomOsnapMode;
55 typedef void* ODHMENU;
56 
61 
63 
70 namespace OdDb
71 {
72  enum DragStat
73  {
75  kDragEnd = 1,
76  kDragAbort = 2
77  };
78 
79  enum GripStat
80  {
84  };
85 }
86 
88 {
89  enum DrawType
90  {
91  kWarmGrip = 0,
95  };
96 
98  {
108  kPopUpMenu
109  };
110 
112  {
117  kTriggerGrip = 0x010,
120  kGizmosEnabled = 0x080,
121  kGripIsPerViewport = 0x100
122  };
123 
125  {
126  kSharedGrip = 0x01,
127  kMultiHotGrip = 0x02
128  };
129 
131  {
134  kDynamicDimMode = 0x04
135  };
136 
138  {
139  kOsnapped = 0x01,
140  kPolar = 0x02,
141  kOtrack = 0x04,
142  kZdir = 0x08,
143  kKeyboard = 0x10
144  };
145 }
146 
147 namespace OdDb
148 {
150  {
151  kOsMaskEnd = 0x000001,
152  kOsMaskMid = 0x000002,
153  kOsMaskCen = 0x000004,
154  kOsMaskNode = 0x000008,
155  kOsMaskQuad = 0x000010,
156  kOsMaskInt = 0x000020,
157  kOsMaskIns = 0x000040,
158  kOsMaskPerp = 0x000080,
159  kOsMaskTan = 0x000100,
160  kOsMaskNear = 0x000200,
161  kOsMaskQuick = 0x000400,
162  kOsMaskApint = 0x000800,
163  kOsMaskImmediate = 0x010000,
164  kOsMaskAllowTan = 0x020000,
165  kOsMaskDisablePerp = 0x040000,
167  kOsMaskRelPolar = 0x100000,
168  kOsMaskNoneOverride = 0x200000
169  };
170 }
171 
172 typedef bool (*GripWorldDrawPtr)(
173  OdDbGripData* pThis,
174  OdGiWorldDraw* pWd,
175  OdDbStub* entId,
177  OdGePoint3d* imageGripPoint,
178  double dGripSize );
179 
181  OdDbGripData* pThis,
182  OdGiViewportDraw* pWd,
183  OdDbStub* entId,
185  OdGePoint3d* imageGripPoint,
186  int gripSize );
187 
189  OdDbGripData* pThis,
190  OdDbStub* entId,
191  int iContextFlags );
192 
194  OdDbGripData* pThis,
195  OdDbStub* entId,
197 
198 typedef const OdChar* (*GripToolTipPtr)( OdDbGripData* pThis );
199 
200 typedef void (*ContextMenuItemIndexPtr)( unsigned itemIndex );
201 
203  OdDbGripData* pThis,
204  OdDbStub* entId,
205  double dimScale,
206  OdDbDimDataPtrArray& dimData );
207 
209  OdDbGripDataArray& hotGrips,
210  const OdDbStubPtrArray& ents,
211  OdString& menuName, ODHMENU& menu,
213 
215  OdDbGripData* pThis, OdDbStub* entId, bool& changedPoint,
216  OdGePoint3d& newPoint, const OdGiViewport& viewContext,
217  OdDbStub* viewportId, bool pointComputed, int history,
218  const OdGePoint3d& lastPoint, const OdGePoint3d& rawPoint,
219  const OdGePoint3d& grippedPoint, const OdGePoint3d& cartesianSnappedPoint,
220  const OdGePoint3d& osnappedPoint, OdDb::OsnapMask osnapMask,
221  const OdArray<OdDbCustomOsnapModePtr>& customOsnapModes,
222  OdDb::OsnapMask osnapOverrides,
223  const OdArray<OdDbCustomOsnapModePtr>& customOsnapOverrides,
224  const OdDbStubPtrArray& pickedEntities,
225  const OdArray<OdDbStubPtrArray>& nestedPickedEntities,
226  const OdGsMarkerArray& gsSelectionMark,
227  const OdDbStubPtrArray& keyPointEntities,
228  const OdArray<OdDbStubPtrArray>& nestedKeyPointEntities,
229  const OdGsMarkerArray& keyPointGsSelectionMark,
230  const OdArray<OdSharedPtr<OdGeCurve3d> >& alignmentPaths, const OdGePoint3d& computedPoint);
231 
241 {
242 public:
244 
245  OdDbGripData();
246 
247  OdDbGripData(const OdDbGripData&);
248 
249  OdDbGripData(const OdGePoint3d& pt, void* AppData,
250  GripOperationPtr hotGrip, GripOperationPtr hoverGrip,
253  GripToolTipPtr tt, GripDimensionPtr hoverDim,
254  GripDimensionPtr hotGripDim,
255  unsigned bitFlags, OdGePoint3d* altBasePt,
257 
258  OdDbGripData(const OdGePoint3d& pt, void* AppData,
259  OdRxClass* pAppDataClass,
260  GripOperationPtr hotGrip, GripOperationPtr hoverGrip,
263  GripToolTipPtr tt, GripDimensionPtr hoverDim,
264  GripDimensionPtr hotGripDim,
265  unsigned bitFlags, OdGePoint3d* altBasePt,
267 
268  void setAllData(const OdGePoint3d& pt, void* AppData,
269  GripOperationPtr hotGrip, GripOperationPtr hoverGrip,
272  GripToolTipPtr tt, GripDimensionPtr hoverDim,
273  GripDimensionPtr hotGripDim,
274  unsigned bitFlags, OdGePoint3d* altBasePt,
276  OdRxClass* pAppDataClass);
277 
279 
280  const OdGePoint3d& gripPoint() const;
281  void setGripPoint( const OdGePoint3d& pt );
282 
283  void* appData() const;
284  void setAppData( void* pAppData );
285 
286  OdRxClass* appDataOdRxClass() const;
287  void setAppDataOdRxClass(OdRxClass* pClass);
288 
290  void setHotGripFunc( GripOperationPtr pf );
291 
292  GripOperationPtr hoverFunc() const;
293  void setHoverFunc( GripOperationPtr pf );
294 
295  GripWorldDrawPtr worldDraw() const;
296  void setWorldDraw( GripWorldDrawPtr pf );
297 
300 
303 
304  GripToolTipPtr toolTipFunc() const;
305  void setToolTipFunc( GripToolTipPtr pf );
306 
308  void setAlternateBasePoint( OdGePoint3d* altBasePt );
309 
310  unsigned bitFlags() const;
311  void setBitFlags( unsigned flags );
312 
313  bool skipWhenShared() const;
314  void setSkipWhenShared( bool skip );
315 
316  bool isRubberBandLineDisabled() const;
317  void disableRubberBandLine( bool disable );
318 
319  bool areModeKeywordsDisabled() const;
320  void disableModeKeywords( bool disable );
321 
322  bool drawAtDragImageGripPoint() const;
323  void setDrawAtDragImageGripPoint( bool atDragPoint );
324 
325  bool triggerGrip() const;
326  void setTriggerGrip( bool trigger );
327 
328  bool forcedPickOn() const;
329  void setForcedPickOn( bool on );
330 
331  bool mapGripHotToRtClk() const;
332  void setMapGripHotToRtClk( bool on );
333 
334  bool gizmosEnabled() const;
335  void setGizmosEnabled( bool on );
336 
337  bool gripIsPerViewport() const;
338  void setGripIsPerViewport(bool on);
339 
342 
345 
346  GripRtClkHandler rtClk() const;
347  void setRtClk( GripRtClkHandler pf );
348 
351 
352 private:
353  void* m_pAppData;
354  OdRxClass* m_pAppDataClass;
355  OdGePoint3d m_gripPt;
356  OdGePoint3d* m_pAltBasePt;
357  GripOperationPtr m_pHotGripFunc;
358  GripOperationPtr m_pHoverFunc;
359  GripWorldDrawPtr m_pWorldDraw;
360  GripViewportDrawPtr m_pViewportDraw;
361  GripOpStatusPtr m_pGripOpStatFunc;
362  GripToolTipPtr m_pToolTipFunc;
363  unsigned m_bitFlags;
364  GripInputPointPtr m_pInputPointFunc;
365  GripRtClkHandler m_pRtClk;
366  GripDimensionPtr m_pHoverDimensionFunc;
367  GripDimensionPtr m_pHotGripDimensionFunc;
368 };
369 
370 //
371 // Inline methods
372 //
373 
375  : m_pAppData(0)
376  , m_pAppDataClass(0)
377  , m_pAltBasePt(0)
378  , m_pHotGripFunc(0)
379  , m_pHoverFunc(0)
380  , m_pWorldDraw(0)
381  , m_pViewportDraw(0)
382  , m_pGripOpStatFunc(0)
383  , m_pToolTipFunc(0)
384  , m_bitFlags(0)
385  , m_pInputPointFunc(0)
386  , m_pRtClk(0)
387  , m_pHoverDimensionFunc(0)
388  , m_pHotGripDimensionFunc(0)
389 {
390 }
391 
393 {
394  m_gripPt = srcData.gripPoint();
395  m_pAppData = srcData.appData();
396  m_pAppDataClass = srcData.appDataOdRxClass();
397  m_pHotGripFunc = srcData.hotGripFunc();
398  m_pHoverFunc = srcData.hoverFunc();
399  m_pRtClk = srcData.rtClk();
400  m_pWorldDraw = srcData.worldDraw();
401  m_pViewportDraw = srcData.viewportDraw();
402  m_pGripOpStatFunc = srcData.gripOpStatFunc();
403  m_pToolTipFunc = srcData.toolTipFunc();
404  m_pHoverDimensionFunc = srcData.hoverDimensionFunc();
405  m_pHotGripDimensionFunc = srcData.hotGripDimensionFunc();
406  m_bitFlags = srcData.bitFlags();
407  m_pAltBasePt = srcData.alternateBasePoint();
408  m_pInputPointFunc = srcData.inputPointFunc();
409 }
410 
411 inline
412 OdDbGripData::OdDbGripData(const OdGePoint3d& pt, void* AppData,
413  GripOperationPtr hotGrip, GripOperationPtr hoverGrip,
416  GripToolTipPtr tt, GripDimensionPtr hoverDim,
417  GripDimensionPtr hotGripDim,
418  unsigned bitFlags, OdGePoint3d* altBasePt,
419  GripInputPointPtr inputPointFunc)
420  : m_pAppData(AppData)
421  , m_pAppDataClass(0)
422  , m_gripPt(pt)
423  , m_pAltBasePt(altBasePt)
424  , m_pHotGripFunc(hotGrip)
425  , m_pHoverFunc(hoverGrip)
426  , m_pWorldDraw(wd)
427  , m_pViewportDraw(vd)
428  , m_pGripOpStatFunc(stat)
429  , m_pToolTipFunc(tt)
430  , m_bitFlags(bitFlags)
431  , m_pInputPointFunc(inputPointFunc)
432  , m_pRtClk(RtClk)
433  , m_pHoverDimensionFunc(hoverDim)
434  , m_pHotGripDimensionFunc(hotGripDim)
435 {
436 }
437 
438 inline
439 OdDbGripData::OdDbGripData(const OdGePoint3d& pt, void* AppData,
440  OdRxClass* pAppDataClass,
441  GripOperationPtr hotGrip, GripOperationPtr hoverGrip,
444  GripToolTipPtr tt, GripDimensionPtr hoverDim,
445  GripDimensionPtr hotGripDim,
446  unsigned bitFlags, OdGePoint3d* altBasePt,
447  GripInputPointPtr inputPointFunc)
448  : m_pAppData(AppData)
449  , m_pAppDataClass(pAppDataClass)
450  , m_gripPt(pt)
451  , m_pAltBasePt(altBasePt)
452  , m_pHotGripFunc(hotGrip)
453  , m_pHoverFunc(hoverGrip)
454  , m_pWorldDraw(wd)
455  , m_pViewportDraw(vd)
456  , m_pGripOpStatFunc(stat)
457  , m_pToolTipFunc(tt)
458  , m_bitFlags(bitFlags)
459  , m_pInputPointFunc(inputPointFunc)
460  , m_pRtClk(RtClk)
461  , m_pHoverDimensionFunc(hoverDim)
462  , m_pHotGripDimensionFunc(hotGripDim)
463 {
464 }
465 
467 {
468  m_gripPt = rightSide.gripPoint();
469  m_pAppData = rightSide.appData();
470  m_pAppDataClass = rightSide.appDataOdRxClass();
471  m_pHotGripFunc = rightSide.hotGripFunc();
472  m_pHoverFunc = rightSide.hoverFunc();
473  m_pRtClk = rightSide.rtClk();
474  m_pWorldDraw = rightSide.worldDraw();
475  m_pViewportDraw = rightSide.viewportDraw();
476  m_pGripOpStatFunc = rightSide.gripOpStatFunc();
477  m_pToolTipFunc = rightSide.toolTipFunc();
478  m_pHoverDimensionFunc = rightSide.hoverDimensionFunc();
479  m_pHotGripDimensionFunc = rightSide.hotGripDimensionFunc();
480  m_bitFlags = rightSide.bitFlags();
481  m_pAltBasePt = rightSide.alternateBasePoint();
482  m_pInputPointFunc = rightSide.inputPointFunc();
483 
484  return *this;
485 }
486 
487 
488 inline void
489 OdDbGripData::setAllData(const OdGePoint3d& pt, void* pAppData,
490  GripOperationPtr hotGrip, GripOperationPtr hoverGrip,
493  GripToolTipPtr tt, GripDimensionPtr hoverDim,
494  GripDimensionPtr hotGripDim,
495  unsigned bitFlags, OdGePoint3d* altBasePt,
496  GripInputPointPtr inputPointFunc,
497  OdRxClass* pAppDataClass)
498 {
499  m_gripPt = pt;
500  m_pAppData = pAppData;
501  m_pAppDataClass = pAppDataClass;
502  m_pHotGripFunc = hotGrip;
503  m_pHoverFunc = hoverGrip;
504  m_pRtClk = RtClk;
505  m_pWorldDraw = wd;
506  m_pViewportDraw = vd;
507  m_pGripOpStatFunc = stat;
508  m_pToolTipFunc= tt;
509  m_pHoverDimensionFunc = hoverDim;
510  m_pHotGripDimensionFunc = hotGripDim;
511  m_bitFlags = bitFlags;
512  m_pAltBasePt = altBasePt;
513  m_pInputPointFunc = inputPointFunc;
514 }
515 
517 {
518  return m_gripPt;
519 }
520 
521 inline void OdDbGripData::setGripPoint( const OdGePoint3d& pt )
522 {
523  m_gripPt = pt;
524 }
525 
526 inline void* OdDbGripData::appData() const
527 {
528  return m_pAppData;
529 }
530 
531 inline void OdDbGripData::setAppData( void* pAppData )
532 {
533  m_pAppData = pAppData;
534 }
535 
537 {
538  return m_pAppDataClass;
539 }
540 
542 {
543  m_pAppDataClass = appDataClass;
544 }
545 
547 {
548  return m_pHotGripFunc;
549 }
550 
552 {
553  m_pHotGripFunc = pf;
554 }
555 
557 {
558  return m_pHoverFunc;
559 }
560 
562 {
563  m_pHoverFunc = pf;
564 }
565 
567 {
568  return m_pWorldDraw;
569 }
570 
572 {
573  m_pWorldDraw = pf;
574 }
575 
577 {
578  return m_pViewportDraw;
579 }
580 
582 {
583  m_pViewportDraw = pf;
584 }
585 
587 {
588  return m_pGripOpStatFunc;
589 }
590 
592 {
593  m_pGripOpStatFunc = pf;
594 }
595 
597 {
598  return m_pToolTipFunc;
599 }
600 
602 {
603  m_pToolTipFunc = pf;
604 }
605 
607 {
608  return m_pAltBasePt;
609 }
610 
612 {
613  m_pAltBasePt = altBasePt;
614 }
615 
616 inline unsigned OdDbGripData::bitFlags() const
617 {
618  return m_bitFlags;
619 }
620 
621 inline void OdDbGripData::setBitFlags( unsigned flags )
622 {
623  m_bitFlags = flags;
624 }
625 
626 inline bool OdDbGripData::skipWhenShared() const
627 {
628  return 0 != (m_bitFlags & OdDbGripOperations::kSkipWhenShared);
629 }
630 
631 inline void OdDbGripData::setSkipWhenShared( bool skip )
632 {
633  if (skip)
635  else
637 }
638 
640 {
641  return 0 != (m_bitFlags & OdDbGripOperations::kDisableRubberBandLine);
642 }
643 
644 inline void OdDbGripData::disableRubberBandLine( bool disable )
645 {
646  if (disable)
648  else
650 }
651 
653 {
654  return 0 != (m_bitFlags & OdDbGripOperations::kDisableModeKeywords);
655 }
656 
657 inline void OdDbGripData::disableModeKeywords( bool disable )
658 {
659  if (disable)
661  else
663 }
664 
666 {
667  return 0 != (m_bitFlags & OdDbGripOperations::kDrawAtDragImageGripPoint);
668 }
669 
670 inline void OdDbGripData::setDrawAtDragImageGripPoint( bool atDragPoint )
671 {
672  if (atDragPoint)
674  else
676 }
677 
678 inline bool OdDbGripData::triggerGrip() const
679 {
680  return 0 != (m_bitFlags & OdDbGripOperations::kTriggerGrip);
681 }
682 
683 inline void OdDbGripData::setTriggerGrip( bool trigger )
684 {
685  if (trigger)
687  else
689 }
690 
691 inline bool OdDbGripData::forcedPickOn() const
692 {
693  return 0 != (m_bitFlags & OdDbGripOperations::kTurnOnForcedPick);
694 }
695 
696 inline void OdDbGripData::setForcedPickOn( bool on )
697 {
698  if (on)
700  else
702 }
703 
705 {
706  return 0 != (m_bitFlags & OdDbGripOperations::kMapGripHotToRtClk);
707 }
708 
710 {
711  if (on)
713  else
715 }
716 
717 inline bool OdDbGripData::gizmosEnabled() const
718 {
719  return 0 != (m_bitFlags & OdDbGripOperations::kGizmosEnabled);
720 }
721 
722 inline void OdDbGripData::setGizmosEnabled( bool on )
723 {
724  if (on)
726  else
727  m_bitFlags &= ~OdDbGripOperations::kGizmosEnabled;
728 }
729 
731 {
732  return 0 != (m_bitFlags & OdDbGripOperations::kGripIsPerViewport);
733 }
734 
736 {
737  if (on)
739  else
741 }
742 
744 {
745  return m_pHoverDimensionFunc;
746 }
747 
749 {
750  m_pHoverDimensionFunc = pf;
751 }
752 
754 {
755  return m_pHotGripDimensionFunc;
756 }
757 
759 {
760  m_pHotGripDimensionFunc = pf;
761 }
762 
764 {
765  return m_pRtClk;
766 }
767 
769 {
770  m_pRtClk = pf;
771 }
772 
774 {
775  return m_pInputPointFunc;
776 }
777 
779 {
780  m_pInputPointFunc = pf;
781 }
782 
783 #include "TD_PackPop.h"
784 
785 #endif // _ODDBGRIP_INCLUDED_
const OdChar *(* GripToolTipPtr)(OdDbGripData *pThis)
Definition: DbGrip.h:198
OdArray< OdDbGripData > OdDbGripDataArray
Definition: DbGrip.h:60
OdResult(* GripOperationPtr)(OdDbGripData *pThis, OdDbStub *entId, int iContextFlags)
Definition: DbGrip.h:188
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:214
void(* GripDimensionPtr)(OdDbGripData *pThis, OdDbStub *entId, double dimScale, OdDbDimDataPtrArray &dimData)
Definition: DbGrip.h:202
void(* GripOpStatusPtr)(OdDbGripData *pThis, OdDbStub *entId, OdDbGripOperations::GripStatus status)
Definition: DbGrip.h:193
void(* ContextMenuItemIndexPtr)(unsigned itemIndex)
Definition: DbGrip.h:200
bool(* GripWorldDrawPtr)(OdDbGripData *pThis, OdGiWorldDraw *pWd, OdDbStub *entId, OdDbGripOperations::DrawType type, OdGePoint3d *imageGripPoint, double dGripSize)
Definition: DbGrip.h:172
OdArray< OdDbDimData *, OdMemoryAllocator< OdDbDimData * > > OdDbDimDataPtrArray
Definition: DbGrip.h:47
void(* GripViewportDrawPtr)(OdDbGripData *pThis, OdGiViewportDraw *pWd, OdDbStub *entId, OdDbGripOperations::DrawType type, OdGePoint3d *imageGripPoint, int gripSize)
Definition: DbGrip.h:180
OdArray< void *, OdMemoryAllocator< void * > > OdDbVoidPtrArray
Definition: DbGrip.h:45
OdArray< OdDbGripDataPtr > OdDbGripDataPtrArray
Definition: DbGrip.h:43
OdSmartPtr< OdDbCustomOsnapMode > OdDbCustomOsnapModePtr
Definition: DbGrip.h:62
OdSharedPtr< OdDbGripData > OdDbGripDataPtr
Definition: DbGrip.h:37
void * ODHMENU
Definition: DbGrip.h:54
OdResult(* GripRtClkHandler)(OdDbGripDataArray &hotGrips, const OdDbStubPtrArray &ents, OdString &menuName, ODHMENU &menu, ContextMenuItemIndexPtr &cb)
Definition: DbGrip.h:208
wchar_t OdChar
OdResult
Definition: OdResult.h:29
void setHotGripDimensionFunc(GripDimensionPtr pf)
Definition: DbGrip.h:758
bool areModeKeywordsDisabled() const
Definition: DbGrip.h:652
void disableModeKeywords(bool disable)
Definition: DbGrip.h:657
GripDimensionPtr hoverDimensionFunc() const
Definition: DbGrip.h:743
GripOperationPtr hoverFunc() const
Definition: DbGrip.h:556
void setHoverFunc(GripOperationPtr pf)
Definition: DbGrip.h:561
bool gripIsPerViewport() const
Definition: DbGrip.h:730
bool isRubberBandLineDisabled() const
Definition: DbGrip.h:639
void setForcedPickOn(bool on)
Definition: DbGrip.h:696
unsigned bitFlags() const
Definition: DbGrip.h:616
bool mapGripHotToRtClk() const
Definition: DbGrip.h:704
void setToolTipFunc(GripToolTipPtr pf)
Definition: DbGrip.h:601
void setBitFlags(unsigned flags)
Definition: DbGrip.h:621
bool gizmosEnabled() const
Definition: DbGrip.h:717
void setWorldDraw(GripWorldDrawPtr pf)
Definition: DbGrip.h:571
GripOperationPtr hotGripFunc() const
Definition: DbGrip.h:546
void setRtClk(GripRtClkHandler pf)
Definition: DbGrip.h:768
OdRxClass * appDataOdRxClass() const
Definition: DbGrip.h:536
void * appData() const
Definition: DbGrip.h:526
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:489
void setGripOpStatFunc(GripOpStatusPtr pf)
Definition: DbGrip.h:591
GripViewportDrawPtr viewportDraw() const
Definition: DbGrip.h:576
GripDimensionPtr hotGripDimensionFunc() const
Definition: DbGrip.h:753
void setHotGripFunc(GripOperationPtr pf)
Definition: DbGrip.h:551
void setAppData(void *pAppData)
Definition: DbGrip.h:531
void setInputPointFunc(GripInputPointPtr pf)
Definition: DbGrip.h:778
OdDbGripData & operator=(const OdDbGripData &)
Definition: DbGrip.h:466
void setHoverDimensionFunc(GripDimensionPtr pf)
Definition: DbGrip.h:748
GripToolTipPtr toolTipFunc() const
Definition: DbGrip.h:596
void setGripIsPerViewport(bool on)
Definition: DbGrip.h:735
void setTriggerGrip(bool trigger)
Definition: DbGrip.h:683
GripRtClkHandler rtClk() const
Definition: DbGrip.h:763
GripInputPointPtr inputPointFunc() const
Definition: DbGrip.h:773
OdDbGripData()
Definition: DbGrip.h:374
void setMapGripHotToRtClk(bool on)
Definition: DbGrip.h:709
void disableRubberBandLine(bool disable)
Definition: DbGrip.h:644
GripWorldDrawPtr worldDraw() const
Definition: DbGrip.h:566
void setAppDataOdRxClass(OdRxClass *pClass)
Definition: DbGrip.h:541
void setAlternateBasePoint(OdGePoint3d *altBasePt)
Definition: DbGrip.h:611
bool skipWhenShared() const
Definition: DbGrip.h:626
bool forcedPickOn() const
Definition: DbGrip.h:691
bool drawAtDragImageGripPoint() const
Definition: DbGrip.h:665
void setViewportDraw(GripViewportDrawPtr pf)
Definition: DbGrip.h:581
GripOpStatusPtr gripOpStatFunc() const
Definition: DbGrip.h:586
void setSkipWhenShared(bool skip)
Definition: DbGrip.h:631
void setGripPoint(const OdGePoint3d &pt)
Definition: DbGrip.h:521
const OdGePoint3d & gripPoint() const
Definition: DbGrip.h:516
void setDrawAtDragImageGripPoint(bool atDragPoint)
Definition: DbGrip.h:670
OdGePoint3d * alternateBasePoint() const
Definition: DbGrip.h:606
void setGizmosEnabled(bool on)
Definition: DbGrip.h:722
bool triggerGrip() const
Definition: DbGrip.h:678
typedef void(APIENTRYP PFNGLACTIVETEXTUREPROC)(GLenum texture)
GLuint GLsizei GLsizei GLint GLenum * type
Definition: gles2_ext.h:274
@ kDisableRubberBandLine
Definition: DbGrip.h:114
@ kDrawAtDragImageGripPoint
Definition: DbGrip.h:116
GripStat
Definition: DbGrip.h:80
@ kGripsDone
Definition: DbGrip.h:81
@ kDimDataToBeDeleted
Definition: DbGrip.h:83
@ kGripsToBeDeleted
Definition: DbGrip.h:82
OsnapMask
Definition: DbGrip.h:150
@ kOsMaskRelPolar
Definition: DbGrip.h:167
@ kOsMaskQuick
Definition: DbGrip.h:161
@ kOsMaskQuad
Definition: DbGrip.h:155
@ kOsMaskCen
Definition: DbGrip.h:153
@ kOsMaskApint
Definition: DbGrip.h:162
@ kOsMaskPerp
Definition: DbGrip.h:158
@ kOsMaskRelCartesian
Definition: DbGrip.h:166
@ kOsMaskInt
Definition: DbGrip.h:156
@ kOsMaskImmediate
Definition: DbGrip.h:163
@ kOsMaskDisablePerp
Definition: DbGrip.h:165
@ kOsMaskNoneOverride
Definition: DbGrip.h:168
@ kOsMaskNode
Definition: DbGrip.h:154
@ kOsMaskEnd
Definition: DbGrip.h:151
@ kOsMaskTan
Definition: DbGrip.h:159
@ kOsMaskIns
Definition: DbGrip.h:157
@ kOsMaskAllowTan
Definition: DbGrip.h:164
@ kOsMaskNear
Definition: DbGrip.h:160
@ kOsMaskMid
Definition: DbGrip.h:152
DragStat
Definition: DbGrip.h:73
@ kDragStart
Definition: DbGrip.h:74
@ kDragAbort
Definition: DbGrip.h:76
@ kDragEnd
Definition: DbGrip.h:75