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

RS_Block * RS_Entity::getBlock (  )  [inherited]

The parent block in which this entity is stored or the parent's parent block or NULL if none of the parents are stored in a block.

Definition at line 394 of file rs_entity.cpp.

References RS2::EntityBlock, RS_Entity::getBlock(), RS_Entity::parent, and RS_Entity::rtti().

Referenced by RS_Entity::getBlock().

    if (rtti()==RS2::EntityBlock) {
        return (RS_Block*)this;
    } else if (parent==NULL) {
        return NULL;
    } else {
        return parent->getBlock();

Generated by  Doxygen 1.6.0   Back to index