[TD]Refactor Dimensions for 3d upgrade

- separate validation, geometry and reference handling into
  individual files
- improve 3d reference geometry handling
- eliminate duplicate dim creation code

- add Dimension reference repair dialog

- Refactor formatting out of DrawViewDimension

- move dimension repaint control to ViewProvider
This commit is contained in:
wandererfan
2022-10-28 08:46:37 -04:00
committed by WandererFan
parent aeeb62d204
commit 1b547dff72
39 changed files with 5181 additions and 2544 deletions

View File

@@ -47,23 +47,17 @@ public:
//Cosmetic End points are stored in DVD::References2d
App::PropertyLinkSubList Source3d; //Part::Feature & SubElements TBI
App::PropertyInteger DirExtent; //Horizontal, Vertical, TBD
App::PropertyStringList CosmeticTags; //id of cosmetic end points.
App::PropertyStringList CosmeticTags; //id of cosmetic end points. obsolete!
App::DocumentObjectExecReturn *execute() override;
short mustExecute() const override;
void unsetupObject() override;
bool checkReferences2D() const override;
int getRefType() const override { return twoVertex; }
pointPair getLinearPoints() override { return getPointsTwoVerts(); }
int getRefType() const override { return extent; }
//return PyObject as DrawViewDimExtentPy
PyObject *getPyObject() override;
protected:
void onChanged(const App::Property* prop) override;
std::vector<std::string> getSubNames();
pointPair getPointsTwoVerts() override;
virtual pointPair getPointsExtent(ReferenceVector references);
bool checkReferences2D() const override;
private:
};