FRX SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
AcDbGripData.h
Go to the documentation of this file.
1#pragma once
2
3//
4// (C) Copyright 2005-2024 by Graebert GmbH.
5//
6// Permission to use, copy, modify, and distribute this software in
7// object code form for any purpose and without fee is hereby granted,
8// provided that the above copyright notice appears in all copies and
9// that both that copyright notice and the limited warranty and
10// restricted rights notice below appear in all supporting
11// documentation.
12//
13// GRAEBERT PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
14// GRAEBERT SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
15// MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. GRAEBERT GMBH
16// DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
17// UNINTERRUPTED OR ERROR FREE.
18
19#include "..\acad\Acad.h"
20#include "AcDbDimData.h"
21
22class AcDbGripData;
23class AcDbDimData;
24class AcDbGripDataImpl;
25typedef void (*ContextMenuItemIndexPtr)( unsigned itemIndex );
33typedef const ACHAR * (*GripToolTipPtr)(AcDbGripData* pThis);
35
37 AcGePoint3d& newPoint, const AcGiViewport& viewContext, const AcDbObjectId& viewportId, bool pointComputed, int history,
38 const AcGePoint3d& lastPoint, const AcGePoint3d& rawPoint, const AcGePoint3d& grippedPoint, const AcGePoint3d& cartesianSnappedPoint,
39 const AcGePoint3d& osnappedPoint, AcDb::OsnapMask osnapMask, const AcArray<AcDbCustomOsnapMode*>& customOsnapModes, AcDb::OsnapMask osnapOverrides,
40 const AcArray<AcDbCustomOsnapMode*>& customOsnapOverrides, const AcDbObjectIdArray& pickedEntities, const AcArray< AcDbObjectIdArray,
41 AcArrayObjectCopyReallocator< AcDbObjectIdArray > >& nestedPickedEntities, const AcArray<Adesk::GsMarker>& gsSelectionMark, const AcDbObjectIdArray& keyPointEntities,
42 const AcArray< AcDbObjectIdArray, AcArrayObjectCopyReallocator< AcDbObjectIdArray > >& nestedKeyPointEntities, const AcArray<Adesk::GsMarker>& keyPointGsSelectionMark,
43 const AcArray<AcGeCurve3d*>& alignmentPaths, const AcGePoint3d& computedPoint);
44
46
48{
49 friend class AcDbGripDataImpl;
50public:
55
59
61
62 const AcGePoint3d& gripPoint() const;
66 void* appData() const;
67 void setAppData(void*);
79 unsigned int bitFlags() const;
80 void setBitFlags(unsigned int param_1);
96
97private:
98 AcGePoint3d m_gripPt;
99 AcGePoint3d* m_pAltBasePt;
100 void* m_pAppData;
101 GripToolTipPtr m_pToolTipFunc;
102 GripWorldDrawPtr m_pWorldDraw;
103 unsigned int m_bitFlags;
104
105 union {
108 } m_pRtClk;
109
110 GripOperationPtr m_pHotGripFunc;
111 GripOperationPtr m_pHoverFunc;
112 GripOpStatusPtr m_pGripOpStatFunc;
113 GripDimensionPtr m_pHoverDimensionFunc;
114 GripDimensionPtr m_pHotGripDimensionFunc;
115 GripViewportDrawPtr m_pViewportDraw;
116 GripInputPointPtr m_pInputPointFunc;
117
118 AcDbGripDataImpl* m_pImpl;
119};
AcArray< AcDbGripData *, AcArrayMemCopyReallocator< AcDbGripData * > > AcDbGripDataPtrArray
AcArray< AcDbGripData, AcArrayObjectCopyReallocator< AcDbGripData > > AcDbGripDataArray
AcDbGripOperations::ReturnValue(* GripRtClkHandler)(AcDbGripDataArray &hotGrips, const AcDbObjectIdArray &ents, ACHAR *&menuName, HMENU &menu, ContextMenuItemIndexPtr &cb)
AcDbGripOperations::ReturnValue(* GripOperationPtr)(AcDbGripData *pThis, const AcDbObjectId &entId, int contextFlags)
AcDbGripOperations::ReturnValue(* GripInputPointPtr)(AcDbGripData *pThis, const AcDbObjectId &entId, bool &changedPoint, AcGePoint3d &newPoint, const AcGiViewport &viewContext, const AcDbObjectId &viewportId, bool pointComputed, int history, const AcGePoint3d &lastPoint, const AcGePoint3d &rawPoint, const AcGePoint3d &grippedPoint, const AcGePoint3d &cartesianSnappedPoint, const AcGePoint3d &osnappedPoint, AcDb::OsnapMask osnapMask, const AcArray< AcDbCustomOsnapMode * > &customOsnapModes, AcDb::OsnapMask osnapOverrides, const AcArray< AcDbCustomOsnapMode * > &customOsnapOverrides, const AcDbObjectIdArray &pickedEntities, const AcArray< AcDbObjectIdArray, AcArrayObjectCopyReallocator< AcDbObjectIdArray > > &nestedPickedEntities, const AcArray< Adesk::GsMarker > &gsSelectionMark, const AcDbObjectIdArray &keyPointEntities, const AcArray< AcDbObjectIdArray, AcArrayObjectCopyReallocator< AcDbObjectIdArray > > &nestedKeyPointEntities, const AcArray< Adesk::GsMarker > &keyPointGsSelectionMark, const AcArray< AcGeCurve3d * > &alignmentPaths, const AcGePoint3d &computedPoint)
void(* ContextMenuItemIndexPtr)(unsigned itemIndex)
void(* GripViewportDrawPtr)(AcDbGripData *pThis, AcGiViewportDraw *pWd, const AcDbObjectId &entId, AcDbGripOperations::DrawType type, AcGePoint3d *imageGripPoint, int gripSize)
void(* GripDimensionPtr)(AcDbGripData *pThis, const AcDbObjectId &entId, double dimScale, AcDbDimDataPtrArray &dimData)
bool(* GripWorldDrawPtr)(AcDbGripData *pThis, AcGiWorldDraw *pWd, const AcDbObjectId &entId, AcDbGripOperations::DrawType type, AcGePoint3d *imageGripPoint, double dGripSize)
AcDbGripOperations::ReturnValue(* GripRightClickHandler)(AcDbGripDataArray &, const AcDbObjectIdArray &, AcRxObject *&)
void(* GripOpStatusPtr)(AcDbGripData *pThis, const AcDbObjectId &entId, AcDbGripOperations::GripStatus stat)
#define GripOperationPtr
#define GripWorldDrawPtr
#define GripViewportDrawPtr
#define GripRtClkHandler
#define GripOpStatusPtr
#define GripDimensionPtr
#define GripInputPointPtr
#define GripToolTipPtr
TCHAR ACHAR
unsigned int bitFlags() const
const AcGePoint3d & gripPoint() const
void setHotGripDimensionFunc(GripDimensionPtr)
void setBitFlags(unsigned int param_1)
void disableModeKeywords(bool)
void setHoverDimensionFunc(GripDimensionPtr)
GripWorldDrawPtr worldDraw() const
void setRtClk(GripRtClkHandler)
GripRtClkHandler rtClk() const
void setAppData(void *)
void * appData() const
void setGripPoint(const AcGePoint3d &)
GripOperationPtr hotGripFunc() const
GripRtClkHandler oldHandler
void setAppDataAcRxClass(AcRxClass *)
GripRightClickHandler newHandler
void setHotGripFunc(GripOperationPtr)
GripOperationPtr hoverFunc() const
bool areModeKeywordsDisabled() const
AcDbGripData(const AcGePoint3d &, void *, AcRxClass *, GripOperationPtr hotGrip=NULL, GripOperationPtr hoverGrip=NULL, GripRtClkHandler RtClk=NULL, GripWorldDrawPtr wd=NULL, GripViewportDrawPtr vd=NULL, GripOpStatusPtr stat=NULL, GripToolTipPtr tt=NULL, GripDimensionPtr hoverDim=NULL, GripDimensionPtr hotGripDim=NULL, unsigned int bitFlags=0, AcGePoint3d *altBasePt=NULL, GripInputPointPtr inputPointFunc=NULL)
AcDbGripData(AcDbGripData const &)
AcDbGripData & operator=(AcDbGripData const &)
void setHoverFunc(GripOperationPtr)
void setInputPointFunc(GripInputPointPtr)
void setAlternateBasePoint(AcGePoint3d *)
void setDrawAtDragImageGripPoint(bool)
bool drawAtDragImageGripPoint() const
GripToolTipPtr toolTipFunc() const
AcGePoint3d * alternateBasePoint() const
GripDimensionPtr hotGripDimensionFunc() const
void setViewportDraw(GripViewportDrawPtr)
GripDimensionPtr hoverDimensionFunc() const
AcRxClass * appDataAcRxClass() const
void setGripOpStatFunc(GripOpStatusPtr)
AcDbGripData(const AcGePoint3d &, void *, GripOperationPtr hotGrip=NULL, GripOperationPtr hoverGrip=NULL, GripRtClkHandler RtClk=NULL, GripWorldDrawPtr wd=NULL, GripViewportDrawPtr vd=NULL, GripOpStatusPtr stat=NULL, GripToolTipPtr tt=NULL, GripDimensionPtr hoverDim=NULL, GripDimensionPtr hotGripDim=NULL, unsigned int bitFlags=0, AcGePoint3d *altBasePt=NULL, GripInputPointPtr inputPointFunc=NULL)
GripViewportDrawPtr viewportDraw() const
void setToolTipFunc(GripToolTipPtr)
GripInputPointPtr inputPointFunc() const
GripOpStatusPtr gripOpStatFunc() const
void setWorldDraw(GripWorldDrawPtr)