Open CASCADE Technology
6.5.4
|
A framework to display diameter dimensions.
A diameter is displayed with arrows and text. The
text gives the length of the diameter.
The algorithm takes a length along a face and
analyzes it as an arc. It then reconstructs the circle
corresponding to the arc and calculates the
diameter of this circle. This diameter serves as a
relational reference in 3d presentations of the surface.
#include <AIS_DiameterDimension.hxx>
Public Member Functions | |
AIS_DiameterDimension (const TopoDS_Shape &aShape, const Standard_Real aVal, const TCollection_ExtendedString &aText) | |
Constructs a diameter display object defined by the shape aFShape, the dimension aVal and the text aText. | |
AIS_DiameterDimension (const TopoDS_Shape &aShape, const Standard_Real aVal, const TCollection_ExtendedString &aText, const gp_Pnt &aPosition, const DsgPrs_ArrowSide aSymbolPrs, const Standard_Boolean aDiamSymbol, const Standard_Real anArrowSize=0.0) | |
Constructs a diameter display object defined by the shape aFShape, the dimension aVal and the text aText, the point of origin of the diameter aPosition, and the type of arrow aSymbolPrs with the size anArrowSize. If the Boolean aDiamSymbol is true. | |
virtual AIS_KindOfDimension | KindOfDimension () const |
Indicates that we are concerned with a length. | |
virtual Standard_Boolean | IsMovable () const |
Returns true if the diameter dimension is movable | |
Standard_Boolean | DiamSymbol () |
Returns the symbol for diameter dimension. This will be either arrow, text, or a combination of both. | |
void | SetDiamSymbol (const Standard_Boolean aDiamSymbol) |
Sets the symbol for diameter dimension aDiamSymbol. This can be an arrow, a text or both. | |
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_DiameterDimension::AIS_DiameterDimension | ( | const TopoDS_Shape & | aShape, |
const Standard_Real | aVal, | ||
const TCollection_ExtendedString & | aText | ||
) |
AIS_DiameterDimension::AIS_DiameterDimension | ( | const TopoDS_Shape & | aShape, |
const Standard_Real | aVal, | ||
const TCollection_ExtendedString & | aText, | ||
const gp_Pnt & | aPosition, | ||
const DsgPrs_ArrowSide | aSymbolPrs, | ||
const Standard_Boolean | aDiamSymbol, | ||
const Standard_Real | anArrowSize = 0.0 |
||
) |
virtual void AIS_DiameterDimension::Compute | ( | const Handle< Prs3d_Projector > & | aProjector, |
const Handle< Geom_Transformation > & | aTrsf, | ||
const Handle< Prs3d_Presentation > & | aPresentation | ||
) | [virtual] |
Reimplemented from PrsMgr_PresentableObject.
virtual Standard_Boolean AIS_DiameterDimension::IsMovable | ( | ) | const [virtual] |
Reimplemented from AIS_Relation.
virtual AIS_KindOfDimension AIS_DiameterDimension::KindOfDimension | ( | ) | const [virtual] |
Reimplemented from AIS_Relation.
void AIS_DiameterDimension::SetDiamSymbol | ( | const Standard_Boolean | aDiamSymbol | ) |