-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add improved CMake buildsystem. * Delete all allocated items in destructors. * Read and write knot weights in DRW_Spline. * Add forgotten initialization for DRW_Dimension::length. * Set $DIMSCALE default value to 1.0. The old value was likely a copy-paste error. * Don't write $DIMTXSTY (handle of referenced STYLE) by default. QCad doesn't display any dimensions where it's set. * Adjust DRW_Dimstyle defaults to match DRW_Header::write. * Initialize DRW dimension type in dimension subclass constructors. * Add DRW_Entity::setWidthMm. In principle there's an algebraic relationship between the DXF line width value and line thickness in millimeters, and everything except AutoCAD accepts any value from the range, but AutoCAD ignores all values except a few chosen ones. * Don't use pure virtual functions in DRW_Interface. This forced API consumers to implement a lot of useless empty functions for no good reason. * Fix H/V align reading for MTEXT. * Remove unused DRW_Interface::setBlock. * Silence -Wunused-parameter warnings. These are all in our default implementation of DRW_Interface, which ignores everything it receives, so it's OK. * Add DRW_Dimension::{has,get,set}ActualMeasurement. * Don't add spline control points twice. This caused a double free when deallocating DRW_Hatch. * Remove dwgR::testReader(). * Implement variants of read/write functions that take std::[io]stream*. * Remove the fileName field from dwgR/dxfRW. It's more trouble than it's worth when supporting Windows. Instead, require the caller to always use the appropriate overload of std::[io]fstream constructor (possibly the wchar_t* one). * In POLYLINE, use vertex type that matches the polyline type. This makes polylines readable in AutoCAD again. * Fix type conversion warnings. * Fix GCC warning -Wmisleading-indentation. * Added more codes for colors supported by DXF. * Add support for $TDCREATE. According to documentation $TDCREATE has code 40 and contains "Local date/time of drawing creation (see “Special Handling of Date/Time Variables”)". * Fix opening files saved as DXF R10 in AutoCAD. When saving in the AC1006 format, several DIMSTYLE groups were erroneously omitted. * Up to DXF R12, the default layer "0" may be left undefined. Some standards mandate the default layer to be unused. * Use DRW_Block::layer when writing blocks. Before, the layer was hardcoded to "0" in the writer. * Misc typos: length Found via codespell and grep * Misc. source typos: compressed Found via `codespell` * Misc. typos * DRW_Coord: Simplify constructor/assignment. Having a user-specified assignment operator but default copy-constructor violates rule of 2/3/5/0. Found by clazy. * Add const-qualifiers to DRW_Dimension getters getExtrusion and getName was missing const qualifiers. * Read extrusion tags for dimension entities Dimension entities support DXF codes 210, 220, 230 and and DRW_Dimension already had a extPoint member, but the tags were never used when parsing. --------- Co-authored-by: whitequark <[email protected]> Co-authored-by: EvilSpirit <[email protected]> Co-authored-by: Roman Telezhynskyi <[email protected]> Co-authored-by: luz.paz <[email protected]> Co-authored-by: Johannes Rehnman <[email protected]>
- Loading branch information
1 parent
c84ce8e
commit 8c57f68
Showing
33 changed files
with
477 additions
and
409 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.