[TD]remove unused code dvp & sections

This commit is contained in:
wandererfan
2023-07-04 15:38:22 -04:00
committed by WandererFan
parent 5df5be3774
commit 08237b6c2c
6 changed files with 256 additions and 405 deletions

View File

@@ -118,10 +118,13 @@ public:
static TopoDS_Shape centerScaleRotate(DrawViewPart* dvp, TopoDS_Shape& inOutShape,
Base::Vector3d centroid);
std::vector<TechDraw::DrawHatch*> getHatches() const;
std::vector<TechDraw::DrawGeomHatch*> getGeomHatches() const;
std::vector<TechDraw::DrawViewDimension*> getDimensions() const;
std::vector<TechDraw::DrawViewBalloon*> getBalloons() const;
virtual std::vector<DrawViewSection*> getSectionRefs() const;
virtual std::vector<DrawViewDetail*> getDetailRefs() const;
const std::vector<TechDraw::VertexPtr> getVertexGeometry() const;
const BaseGeomPtrVector getEdgeGeometry() const;
@@ -135,27 +138,29 @@ public:
TechDraw::BaseGeomPtr getEdge(std::string edgeName) const;
TechDraw::FacePtr getFace(std::string faceName) const;
TechDraw::BaseGeomPtr
getGeomByIndex(int idx) const;//get existing geom for edge idx in projection
TechDraw::VertexPtr
getProjVertexByIndex(int idx) const;//get existing geom for vertex idx in projection
//get existing geom for edge idx in projection
TechDraw::BaseGeomPtr getGeomByIndex(int idx) const;
//get existing geom for vertex idx in projection
TechDraw::VertexPtr getProjVertexByIndex(int idx) const;
// get existing geom for vertex by unique tag
TechDraw::VertexPtr getProjVertexByCosTag(std::string cosTag);
std::vector<TechDraw::BaseGeomPtr>
getFaceEdgesByIndex(int idx) const;//get edges for face idx in projection
//get edges for face idx in projection
std::vector<TechDraw::BaseGeomPtr> getFaceEdgesByIndex(int idx) const;
// get the wires that define face idx
virtual std::vector<TopoDS_Wire> getWireForFace(int idx) const;
//returns a compound of all the visible projected edges
TopoDS_Shape getEdgeCompound() const;
// projected geometry measurements
virtual Base::BoundBox3d getBoundingBox() const;
double getBoxX() const;
double getBoxY() const;
QRectF getRect() const override;
virtual std::vector<DrawViewSection*>
getSectionRefs() const;//are there ViewSections based on this ViewPart?
virtual std::vector<DrawViewDetail*> getDetailRefs() const;
double getSizeAlongVector(Base::Vector3d alignmentVector);
// ancillary projection routines
virtual Base::Vector3d projectPoint(const Base::Vector3d& pt, bool invert = true) const;
virtual BaseGeomPtr projectEdge(const TopoDS_Edge& e) const;
virtual BaseGeomPtrVector projectWire(const TopoDS_Wire& inWire) const;
virtual gp_Ax2 getViewAxis(const Base::Vector3d& pt, const Base::Vector3d& direction,
const bool flip = true) const;
@@ -166,32 +171,33 @@ public:
virtual Base::Vector3d getCurrentCentroid() const;
virtual Base::Vector3d getLegacyX(const Base::Vector3d& pt, const Base::Vector3d& axis,
const bool flip = true) const;
gp_Ax2 localVectorToCS(const Base::Vector3d localUnit) const;
Base::Vector3d localVectorToDirection(const Base::Vector3d localUnit) const;
Base::Vector3d getLocalOrigin3d() const;
Base::Vector3d getLocalOrigin2d() const;
// switches
bool handleFaces();
bool newFaceFinder();
bool isUnsetting() { return nowUnsetting; }
virtual std::vector<TopoDS_Wire> getWireForFace(int idx) const;
virtual TopoDS_Shape getSourceShape() const;
virtual TopoDS_Shape getSourceShapeFused() const;
virtual std::vector<TopoDS_Shape> getSourceShape2d() const;
virtual TopoDS_Shape getSourceShape(bool fuse = false) const;
virtual TopoDS_Shape getShapeForDetail() const;
std::vector<App::DocumentObject*> getAllSources() const;
TopoDS_Shape getShape() const;
double getSizeAlongVector(Base::Vector3d alignmentVector);
// debug routines
void dumpVerts(const std::string text);
void dumpCosVerts(const std::string text);
void dumpCosEdges(const std::string text);
virtual void postHlrTasks(void);
virtual void postFaceExtractionTasks(void);
bool isIso() const;
// routines related to landmark dimensions (obs?)
std::string addReferenceVertex(Base::Vector3d v);
void addReferencesToGeom();
void removeReferenceVertex(std::string tag);
void updateReferenceVert(std::string tag, Base::Vector3d loc2d);
void removeAllReferencesFromGeom();
void resetReferenceVerts();
// routines related to cosmetic features
void clearCosmeticVertexes();
void refreshCVGeoms();
void addCosmeticVertexesToGeom();
@@ -210,25 +216,14 @@ public:
void clearGeomFormats();
void dumpVerts(const std::string text);
void dumpCosVerts(const std::string text);
void dumpCosEdges(const std::string text);
std::string addReferenceVertex(Base::Vector3d v);
void addReferencesToGeom();
void removeReferenceVertex(std::string tag);
void updateReferenceVert(std::string tag, Base::Vector3d loc2d);
void removeAllReferencesFromGeom();
void resetReferenceVerts();
std::vector<App::DocumentObject*> getAllSources() const;
// routines related to multi-threading
virtual void postHlrTasks(void);
virtual void postFaceExtractionTasks(void);
bool waitingForFaces() const { return m_waitingForFaces; }
void waitingForFaces(bool s) { m_waitingForFaces = s; }
bool waitingForHlr() const { return m_waitingForHlr; }
void waitingForHlr(bool s) { m_waitingForHlr = s; }
virtual bool waitingForResult() const;
void progressValueChanged(int v);
public Q_SLOTS:
@@ -252,28 +247,16 @@ protected:
virtual void addShapes2d(void);
void extractFaces();
void findFacesNew(const std::vector<TechDraw::BaseGeomPtr>& goEdges);
void findFacesOld(const std::vector<TechDraw::BaseGeomPtr>& goEdges);
Base::Vector3d shapeCentroid;
void getRunControl();
bool m_handleFaces;
TopoDS_Shape m_saveShape; //TODO: make this a Property. Part::TopoShapeProperty??
Base::Vector3d m_saveCentroid;//centroid before centering shape in origin
void handleChangedPropertyName(Base::XMLReader& reader, const char* TypeName,
const char* PropName) override;
bool prefHardViz();
bool prefSeamViz();
bool prefSmoothViz();
bool prefIsoViz();
bool prefHardHid();
bool prefSeamHid();
bool prefSmoothHid();
bool prefIsoHid();
int prefIsoCount();
std::vector<TechDraw::VertexPtr> m_referenceVerts;
private: