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

int RS_Entity::getGraphicVariableInt ( const RS_String &  key,
int  def 
) [inherited]

A safe member function to return the given variable.

key Variable name (e.g. "$DIMASZ")
def Default value
value of variable or default value if the given variable doesn't exist.

Definition at line 533 of file rs_entity.cpp.

References RS_Entity::getGraphic(), and RS_Graphic::getVariableInt().

Referenced by RS_DimAngular::getMeasuredLabel(), and RS_Spline::update().

    RS_Graphic* graphic = getGraphic();
    int ret=def;
    if (graphic!=NULL) {
        ret = graphic->getVariableInt(key, def);
    return ret;

Generated by  Doxygen 1.6.0   Back to index