const std::shared_ptr<GeomAPI_Ax3>& thePlane)
: AIS_RadiusDimension(MyDefCirc), myConstraint(theConstraint), myPlane(thePlane)
{
+ // Set default values of the presentation
myAspect = new Prs3d_DimensionAspect();
myAspect->MakeArrows3d(false);
myAspect->MakeText3d(false);
aRadius = aCenterAttr->pnt()->distance(aStartAttr->pnt());
}
std::shared_ptr<GeomAPI_Pnt> aCenter = myPlane->to3D(aCenterAttr->x(), aCenterAttr->y());
- std::shared_ptr<GeomAPI_Dir> aNormal = myPlane->norm();
+ std::shared_ptr<GeomAPI_Dir> aNormal = myPlane->normal();
GeomAPI_Circ aCircle(aCenter, aNormal, aRadius);
myAspect->SetExtensionSize(myAspect->ArrowAspect()->Length());
myAspect->SetArrowTailSize(myAspect->ArrowAspect()->Length());
+ // The value of vertical aligment is sometimes changed
+ myAspect->TextAspect()->SetVerticalJustification(Graphic3d_VTA_CENTER);
AIS_RadiusDimension::Compute(thePresentationManager, thePresentation, theMode);
}
void SketcherPrs_Radius::ComputeSelection(const Handle(SelectMgr_Selection)& aSelection,
const Standard_Integer theMode)
{
+ // Map the application selection modes to standard ones
Standard_Integer aMode;
switch (theMode) {
case 0: // we should use selection of all objects