Rallaz / LibreCAD

LibreCAD is a 2D CAD drawing tool based on the community edition of QCad (www.qcad.org). LibreCAD has been re-structured and ported to qt4 and works natively cross platform between OSX, Windows and Linux . See www.librecad.org
http://www.librecad.org/
Other
6 stars 1 forks source link

dwgBuffer::getCMC() #20

Open TNick opened 11 years ago

TNick commented 11 years ago

The method is needed by issue #9 . Documented in docs as 2.11 CmColor (page 13)

The encoding for the colors is different from version to version:

Rallaz commented 11 years ago

This may be implemented in DRW_Entity as:

    if (version < DRW::AC1018) //2004-
        color = buf->getBitShort();
    else
        color = buf->getCMC();

And implenent a dummy "int dwgBuffer::getCMC()" funtion until it begins to develop the support for 2004 and can be verified