Eliminate m_measurement_inch to clean up logic for priority of MEASUREMENT and INSUNITS. Save the actual scaling factor rather than the scaling enum so a switch statement is not executed for each call to mm() Add to CDxfRead the work to handle dxfScaling option, ImpExpDxfRead just has to set it up now. Get the scaling factor from a lookup table rather than a switch statement Display a message explaining what the scaling factor is and where it comes from Remove large amount of Lint.
24 lines
669 B
C++
24 lines
669 B
C++
// AreaDxf.h
|
|
// Copyright (c) 2011, Dan Heeks
|
|
// This program is released under the BSD license. See the file COPYING for details.
|
|
|
|
#pragma once
|
|
|
|
#include "dxf.h"
|
|
|
|
class CSketch;
|
|
class CArea;
|
|
class CCurve;
|
|
|
|
class AreaDxfRead : public CDxfRead{
|
|
void StartCurveIfNecessary(const Base::Vector3d& startPoint) const;
|
|
|
|
public:
|
|
CArea* m_area;
|
|
AreaDxfRead(CArea* area, const char* filepath);
|
|
|
|
// AreaDxfRead's virtual functions
|
|
void OnReadLine(const Base::Vector3d& start, const Base::Vector3d& end, bool /*hidden*/) override;
|
|
void OnReadArc(const Base::Vector3d& start, const Base::Vector3d& end, const Base::Vector3d& center, bool dir, bool /*hidden*/) override;
|
|
};
|