www.mxdraw.com
|
控件中的视口类型,提供显示参数的读写接口
class McDbViewportTableRecord : public McDbAbstractViewTableRecord;
McDbSymbolTable.h
例如:设置视口数据
McDbObjectPointer<McDbViewportTableRecord> spViewport(Mx::ActiveArxDoc()->GetAcitveViewportId(), McDb::kForWrite); if(spViewport.openStatus() != Mcad::eOk) { return false; } spViewport->setWidth(dDocW); spViewport->setHeight(dDocH); spViewport->setCenterPoint(cenPt.convertXYPlanar2d() ); spViewport->setViewTwist(dRotate);