ObjectARX, AutoCAD. Среда программирования библиотеки C++


Фильтр Точки ввода и Пример Монитора


Следующий пример демонстрирует использование фильтров точки ввода и мониторов.

#include "adslib.h"

#include "aced.h’

#include "dbmain.h"

#include "acdbabb.h"

#include "adeskabb.h"

#include "rxregsvc.h"

#include "acgi.h"

#include "acdocman.h"

#include "acedinpt.h"

#include "dbapserv.h"

class IPM : public AcEdInputPointMonitor

{

public:

virtual Acad::ErrorStatus

monitorInputPoint(

// Output. If changedTooltipStr is kTrue, newTooltipString

// has the new ToolTip string in it.

//

bool& appendToTooltipStr,

char*& additionalTooltipString,

// Input/Output

//

AcGiViewportDraw* drawContext,

// Input parameters:

//

AcApDocument* document,

bool pointComputed,

int history,

const AcGePoint3d& lastPoint,

const AcGePoint3d& rawPoint,

const AcGePoint3d& grippedPoint,

const AcGePoint3d& cartesianSnappedPoint,

const AcGePoint3d& osnappedPoint,

AcDb::OsnapMask osnapMasks,

// const AcArray<AcDbCustomOsnapMode>& customOsnapModes

const AcArray<AcDbObjectId>& apertureEntities,

const AcArray< AcDbObjectIdArray,

AcArrayObjectCopyReallocator< AcDbObjectIdArray > >&

nestedPickedEntities,

int gsSelectionMark,

const AcArray<AcDbObjectId>& keyPointEntities,

const AcArray<AcGeCurve3d*>& alignmentPaths,

const AcGePoint3d& computedPoint,

const char* tooltipString);

};

 

Acad::ErrorStatus

IPM::monitorInputPoint(

// Output. If changedTooltipStr is kTrue, then newTooltipString

// has the new ToolTip string in it.

//

bool& appendToTooltipStr,

char*& additionalTooltipString,

// Input/Output

//

AcGiViewportDraw* pDrawContext,

// Input parameters:

//

AcApDocument* document,

bool pointComputed,

int history,

const AcGePoint3d& lastPoint,

const AcGePoint3d& rawPoint,

const AcGePoint3d& grippedPoint,

const AcGePoint3d& cartesianSnappedPoint,




Начало  Назад  Вперед



Книжный магазин