27 #ifndef _ODDBGRIP_INCLUDED_
28 #define _ODDBGRIP_INCLUDED_
54 class OdDbCustomOsnapMode;
215 OdDbGripData* pThis, OdDbStub* entId,
bool& changedPoint,
217 OdDbStub* viewportId,
bool pointComputed,
int history,
382 , m_pGripOpStatFunc(0)
385 , m_pInputPointFunc(0)
387 , m_pHoverDimensionFunc(0)
388 , m_pHotGripDimensionFunc(0)
395 m_pAppData = srcData.
appData();
399 m_pRtClk = srcData.
rtClk();
420 : m_pAppData(AppData)
423 , m_pAltBasePt(altBasePt)
424 , m_pHotGripFunc(hotGrip)
425 , m_pHoverFunc(hoverGrip)
427 , m_pViewportDraw(vd)
428 , m_pGripOpStatFunc(stat)
430 , m_bitFlags(bitFlags)
431 , m_pInputPointFunc(inputPointFunc)
433 , m_pHoverDimensionFunc(hoverDim)
434 , m_pHotGripDimensionFunc(hotGripDim)
448 : m_pAppData(AppData)
449 , m_pAppDataClass(pAppDataClass)
451 , m_pAltBasePt(altBasePt)
452 , m_pHotGripFunc(hotGrip)
453 , m_pHoverFunc(hoverGrip)
455 , m_pViewportDraw(vd)
456 , m_pGripOpStatFunc(stat)
458 , m_bitFlags(bitFlags)
459 , m_pInputPointFunc(inputPointFunc)
461 , m_pHoverDimensionFunc(hoverDim)
462 , m_pHotGripDimensionFunc(hotGripDim)
469 m_pAppData = rightSide.
appData();
473 m_pRtClk = rightSide.
rtClk();
500 m_pAppData = pAppData;
501 m_pAppDataClass = pAppDataClass;
502 m_pHotGripFunc = hotGrip;
503 m_pHoverFunc = hoverGrip;
506 m_pViewportDraw = vd;
507 m_pGripOpStatFunc = stat;
509 m_pHoverDimensionFunc = hoverDim;
510 m_pHotGripDimensionFunc = hotGripDim;
512 m_pAltBasePt = altBasePt;
533 m_pAppData = pAppData;
538 return m_pAppDataClass;
543 m_pAppDataClass = appDataClass;
548 return m_pHotGripFunc;
578 return m_pViewportDraw;
583 m_pViewportDraw = pf;
588 return m_pGripOpStatFunc;
593 m_pGripOpStatFunc = pf;
598 return m_pToolTipFunc;
613 m_pAltBasePt = altBasePt;
745 return m_pHoverDimensionFunc;
750 m_pHoverDimensionFunc = pf;
755 return m_pHotGripDimensionFunc;
760 m_pHotGripDimensionFunc = pf;
775 return m_pInputPointFunc;
780 m_pInputPointFunc = pf;
const OdChar *(* GripToolTipPtr)(OdDbGripData *pThis)
OdArray< OdDbGripData > OdDbGripDataArray
OdResult(* GripOperationPtr)(OdDbGripData *pThis, OdDbStub *entId, int iContextFlags)
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)
void(* GripDimensionPtr)(OdDbGripData *pThis, OdDbStub *entId, double dimScale, OdDbDimDataPtrArray &dimData)
void(* GripOpStatusPtr)(OdDbGripData *pThis, OdDbStub *entId, OdDbGripOperations::GripStatus status)
void(* ContextMenuItemIndexPtr)(unsigned itemIndex)
bool(* GripWorldDrawPtr)(OdDbGripData *pThis, OdGiWorldDraw *pWd, OdDbStub *entId, OdDbGripOperations::DrawType type, OdGePoint3d *imageGripPoint, double dGripSize)
OdArray< OdDbDimData *, OdMemoryAllocator< OdDbDimData * > > OdDbDimDataPtrArray
void(* GripViewportDrawPtr)(OdDbGripData *pThis, OdGiViewportDraw *pWd, OdDbStub *entId, OdDbGripOperations::DrawType type, OdGePoint3d *imageGripPoint, int gripSize)
OdArray< void *, OdMemoryAllocator< void * > > OdDbVoidPtrArray
OdArray< OdDbGripDataPtr > OdDbGripDataPtrArray
OdSmartPtr< OdDbCustomOsnapMode > OdDbCustomOsnapModePtr
OdSharedPtr< OdDbGripData > OdDbGripDataPtr
OdResult(* GripRtClkHandler)(OdDbGripDataArray &hotGrips, const OdDbStubPtrArray &ents, OdString &menuName, ODHMENU &menu, ContextMenuItemIndexPtr &cb)
void setHotGripDimensionFunc(GripDimensionPtr pf)
bool areModeKeywordsDisabled() const
void disableModeKeywords(bool disable)
GripDimensionPtr hoverDimensionFunc() const
GripOperationPtr hoverFunc() const
void setHoverFunc(GripOperationPtr pf)
bool gripIsPerViewport() const
bool isRubberBandLineDisabled() const
void setForcedPickOn(bool on)
unsigned bitFlags() const
bool mapGripHotToRtClk() const
void setToolTipFunc(GripToolTipPtr pf)
void setBitFlags(unsigned flags)
bool gizmosEnabled() const
void setWorldDraw(GripWorldDrawPtr pf)
GripOperationPtr hotGripFunc() const
void setRtClk(GripRtClkHandler pf)
OdRxClass * appDataOdRxClass() const
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)
void setGripOpStatFunc(GripOpStatusPtr pf)
GripViewportDrawPtr viewportDraw() const
GripDimensionPtr hotGripDimensionFunc() const
void setHotGripFunc(GripOperationPtr pf)
void setAppData(void *pAppData)
void setInputPointFunc(GripInputPointPtr pf)
OdDbGripData & operator=(const OdDbGripData &)
void setHoverDimensionFunc(GripDimensionPtr pf)
GripToolTipPtr toolTipFunc() const
void setGripIsPerViewport(bool on)
void setTriggerGrip(bool trigger)
GripRtClkHandler rtClk() const
GripInputPointPtr inputPointFunc() const
void setMapGripHotToRtClk(bool on)
void disableRubberBandLine(bool disable)
GripWorldDrawPtr worldDraw() const
void setAppDataOdRxClass(OdRxClass *pClass)
void setAlternateBasePoint(OdGePoint3d *altBasePt)
bool skipWhenShared() const
bool forcedPickOn() const
bool drawAtDragImageGripPoint() const
void setViewportDraw(GripViewportDrawPtr pf)
GripOpStatusPtr gripOpStatFunc() const
void setSkipWhenShared(bool skip)
void setGripPoint(const OdGePoint3d &pt)
const OdGePoint3d & gripPoint() const
void setDrawAtDragImageGripPoint(bool atDragPoint)
OdGePoint3d * alternateBasePoint() const
void setGizmosEnabled(bool on)
typedef void(APIENTRYP PFNGLACTIVETEXTUREPROC)(GLenum texture)
GLuint GLsizei GLsizei GLint GLenum * type
@ kDrawAtDragImageGripPoint