Open CASCADE Technology 6.6.0
|
A framework to define display of radii.
These displays serve as relational references in 3D
presentations of surfaces, and are particularly useful
in viewing fillets. The display consists of arrows and
text giving the length of a radius. This display is
recalculated if the applicative owner shape changes
in dimension, and the text gives the modified length.
The algorithm analyzes a length along a face as an
arc. It then reconstructs the circle corresponding to
the arc and calculates the radius of this circle.
#include <AIS_RadiusDimension.hxx>
Public Member Functions | |
AIS_RadiusDimension (const TopoDS_Shape &aShape, const Standard_Real aVal, const TCollection_ExtendedString &aText) | |
Constructs the radius display object defined by the shape aShape, the dimension aVal, and the text aText. | |
AIS_RadiusDimension (const TopoDS_Shape &aShape, const Standard_Real aVal, const TCollection_ExtendedString &aText, const gp_Pnt &aPosition, const DsgPrs_ArrowSide aSymbolPrs, const Standard_Real anArrowSize=0.0) | |
Constructs radius display object defined by the shape aShape, the dimension aVal, the position aPosition, the type of arrow aSymbolPrs, the arrow length anArrowSize and the text aText. | |
void | SetFirstShape (const TopoDS_Shape &aFShape) |
virtual AIS_KindOfDimension | KindOfDimension () const |
Indicates that the dimension selected is a radius. | |
virtual Standard_Boolean | IsMovable () const |
Returns true if the radius selected is movable. | |
Standard_Boolean | DrawFromCenter () const |
Draws an arrowhead pointing towards the center of the shape aShape defined at construction time if false, and away from the center if true. | |
void | SetDrawFromCenter (const Standard_Boolean drawfromcenter) |
Sets the Boolean drawfromcenter to true or false. If drawfromcenter is false, the arrowhead will point towards the center of the shape aShape defined at construction time. | |
virtual void | Compute (const Handle< Prs3d_Projector > &aProjector, const Handle< Geom_Transformation > &aTrsf, const Handle< Prs3d_Presentation > &aPresentation) |
computes the presentation according to a point of view given by <aProjector>. To be Used when the associated degenerated Presentations have been transformed by <aTrsf> which is not a Pure Translation. The HLR Prs can't be deducted automatically WARNING :<aTrsf> must be applied to the object to display before computation !!! |
AIS_RadiusDimension::AIS_RadiusDimension | ( | const TopoDS_Shape & | aShape, |
const Standard_Real | aVal, | ||
const TCollection_ExtendedString & | aText | ||
) |
AIS_RadiusDimension::AIS_RadiusDimension | ( | const TopoDS_Shape & | aShape, |
const Standard_Real | aVal, | ||
const TCollection_ExtendedString & | aText, | ||
const gp_Pnt & | aPosition, | ||
const DsgPrs_ArrowSide | aSymbolPrs, | ||
const Standard_Real | anArrowSize = 0.0 |
||
) |
virtual void AIS_RadiusDimension::Compute | ( | const Handle< Prs3d_Projector > & | aProjector, |
const Handle< Geom_Transformation > & | aTrsf, | ||
const Handle< Prs3d_Presentation > & | aPresentation | ||
) | [virtual] |
Reimplemented from PrsMgr_PresentableObject.
Standard_Boolean AIS_RadiusDimension::DrawFromCenter | ( | ) | const |
virtual Standard_Boolean AIS_RadiusDimension::IsMovable | ( | ) | const [virtual] |
Reimplemented from AIS_Relation.
virtual AIS_KindOfDimension AIS_RadiusDimension::KindOfDimension | ( | ) | const [virtual] |
Reimplemented from AIS_Relation.
void AIS_RadiusDimension::SetDrawFromCenter | ( | const Standard_Boolean | drawfromcenter | ) |
void AIS_RadiusDimension::SetFirstShape | ( | const TopoDS_Shape & | aFShape | ) | [virtual] |
Reimplemented from AIS_Relation.