Logo Search packages:      
Sourcecode: qcad version File versions  Download package

RS2::Unit RS_Entity::getGraphicUnit (  )  [inherited]

The unit the parent graphic works on or None if there's no parent graphic.

Definition at line 569 of file rs_entity.cpp.

References RS_Entity::getGraphic(), RS_Graphic::getUnit(), and RS2::None.

Referenced by RS_Dimension::getGraphicVariable().

    RS_Graphic* graphic = getGraphic();
    RS2::Unit ret = RS2::None;
    if (graphic!=NULL) {
        ret = graphic->getUnit();
    return ret;

Generated by  Doxygen 1.6.0   Back to index