[TD]fix detail highlight on DrawViewDetail
This commit is contained in:
committed by
WandererFan
parent
3f4f885071
commit
bb3e637e9e
@@ -506,6 +506,13 @@ TopoDS_Shape DrawViewDetail::projectEdgesOntoFace(TopoDS_Shape edgeShape, TopoDS
|
||||
return edges;
|
||||
}
|
||||
|
||||
//we don't want to paint detail hightlights on top of detail views,
|
||||
//so tell the Gui that there are no details for this view
|
||||
std::vector<DrawViewDetail*> DrawViewDetail::getDetailRefs(void) const
|
||||
{
|
||||
std::vector<DrawViewDetail*> result;
|
||||
return result;
|
||||
}
|
||||
|
||||
double DrawViewDetail::getFudgeRadius()
|
||||
{
|
||||
|
||||
@@ -77,6 +77,8 @@ public:
|
||||
double getFudgeRadius(void);
|
||||
TopoDS_Shape projectEdgesOntoFace(TopoDS_Shape edgeShape, TopoDS_Face projFace, gp_Dir projDir);
|
||||
|
||||
virtual std::vector<DrawViewDetail*> getDetailRefs() const override;
|
||||
|
||||
protected:
|
||||
Base::Vector3d toR3(const gp_Ax2 fromSystem, const Base::Vector3d fromPoint);
|
||||
void getParameters(void);
|
||||
|
||||
@@ -936,8 +936,6 @@ Base::Vector3d DrawViewPart::getCurrentCentroid(void) const
|
||||
TopoDS_Shape shape = getSourceShape();
|
||||
gp_Ax2 cs = getProjectionCS(Base::Vector3d(0.0, 0.0, 0.0));
|
||||
Base::Vector3d center = TechDraw::findCentroidVec(shape, cs);
|
||||
Base::Console().Message("DVP::getCurrentCentroid - center: %s\n",
|
||||
DrawUtil::formatVector(center).c_str());
|
||||
return center;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user