www.mxdraw.com
内容索引主面
前一个向上下一个
McDbViewportTableRecord 类

控件中的视口类型,提供显示参数的读写接口

C++
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);
Copyright (c) 2010. All rights reserved.
你认为该帮助怎么样? 发送反馈信息!