Open CASCADE Technology 6.6.0
|
A framework to display lengths.
These can be lengths along a face or edge, or
between two faces or two edges.
The value of the length is given in a text figuring in this display.
#include <AIS_LengthDimension.hxx>
Public Member Functions | |
AIS_LengthDimension (const TopoDS_Face &aFirstFace, const TopoDS_Face &aSecondFace, const Standard_Real aVal, const TCollection_ExtendedString &aText) | |
Constructs a length display object defined by the first face aFShape, the second face aSShape, the dimension aVal, and the text aText. | |
AIS_LengthDimension (const TopoDS_Face &aFirstFace, const TopoDS_Face &aSecondFace, const Standard_Real aVal, const TCollection_ExtendedString &aText, const gp_Pnt &aPosition, const DsgPrs_ArrowSide aSymbolPrs, const Standard_Real anArrowSize=0.0) | |
Constructs a length display object defined by the first face aFShape, the second face aSShape, the dimension aVal, the position aPosition, the arrow aSymbolPrs with the size anArrowSize and the text aText. | |
AIS_LengthDimension (const TopoDS_Face &Face, const TopoDS_Edge &Edge, const Standard_Real Val, const TCollection_ExtendedString &Text) | |
Constructs a length display object defined by the first edge or vertex aFShape, the second edge or vertex aSShape, the dimension aVal,and the plane aPlane. | |
AIS_LengthDimension (const TopoDS_Shape &aFShape, const TopoDS_Shape &aSShape, const Handle< Geom_Plane > &aPlane, const Standard_Real aVal, const TCollection_ExtendedString &aText) | |
AIS_LengthDimension (const TopoDS_Shape &aFShape, const TopoDS_Shape &aSShape, const Handle< Geom_Plane > &aPlane, const Standard_Real aVal, const TCollection_ExtendedString &aText, const gp_Pnt &aPosition, const DsgPrs_ArrowSide aSymbolPrs, const AIS_TypeOfDist aTypeDist, const Standard_Real anArrowSize=0.0) | |
Constructs a length display object defined by the first edge or vertex aFShape, the second edge or vertex aSShape, the dimension aVal, the position aPosition, the type of distance aTypeDist, the type of arrow aSymbolPrs with the size anArrowSize, and the plane aPlane. | |
void | SetFirstShape (const TopoDS_Shape &aFShape) |
void | SetSecondShape (const TopoDS_Shape &aSShape) |
Allows you to identify the second shape aSShape relative to the first. | |
virtual AIS_KindOfDimension | KindOfDimension () const |
Indicates that we are concerned with a length. | |
virtual Standard_Boolean | IsMovable () const |
Returns true if the length dimension is movable. | |
AIS_TypeOfDist | TypeOfDist () const |
Returns the type of distance of the length primitive. | |
void | SetTypeOfDist (const AIS_TypeOfDist aTypeDist) |
Returns true if the length dimension is movable. | |
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 !!! | |
Static Public Member Functions | |
static void | ComputeTwoEdgesLength (const Handle< Prs3d_Presentation > &aPresentation, const Handle< AIS_Drawer > &aDrawer, const TCollection_ExtendedString &aText, const Standard_Real ArrowSize, const TopoDS_Edge &FirstEdge, const TopoDS_Edge &SecondEdge, const Handle< Geom_Plane > &Plane, const Standard_Boolean AutomaticPos, const Standard_Boolean IsSetBndBox, const Bnd_Box &BndBox, Standard_Integer &ExtShape, Standard_Real &Val, gp_Dir &DirAttach, gp_Pnt &Position, gp_Pnt &FirstAttach, gp_Pnt &SecondAttach, DsgPrs_ArrowSide &SymbolPrs) |
static void | ComputeOneEdgeOneVertexLength (const Handle< Prs3d_Presentation > &aPresentation, const Handle< AIS_Drawer > &aDrawer, const TCollection_ExtendedString &aText, const Standard_Real ArrowSize, const TopoDS_Shape &FirstShape, const TopoDS_Shape &SecondShape, const Handle< Geom_Plane > &Plane, const Standard_Boolean AutomaticPos, const Standard_Boolean IsSetBndBox, const Bnd_Box &BndBox, Standard_Integer &ExtShape, Standard_Real &Val, gp_Dir &DirAttach, gp_Pnt &Position, gp_Pnt &FirstAttach, gp_Pnt &SecondAttach, DsgPrs_ArrowSide &SymbolPrs) |
static void | ComputeTwoVerticesLength (const Handle< Prs3d_Presentation > &aPresentation, const Handle< AIS_Drawer > &aDrawer, const TCollection_ExtendedString &aText, const Standard_Real ArrowSize, const TopoDS_Vertex &FirstVertex, const TopoDS_Vertex &SecondVertex, const Handle< Geom_Plane > &Plane, const Standard_Boolean AutomaticPos, const Standard_Boolean IsSetBndBox, const Bnd_Box &BndBox, const AIS_TypeOfDist TypeDist, Standard_Integer &ExtShape, Standard_Real &Val, gp_Dir &DirAttach, gp_Pnt &Position, gp_Pnt &FirstAttach, gp_Pnt &SecondAttach, DsgPrs_ArrowSide &SymbolPrs) |
AIS_LengthDimension::AIS_LengthDimension | ( | const TopoDS_Face & | aFirstFace, |
const TopoDS_Face & | aSecondFace, | ||
const Standard_Real | aVal, | ||
const TCollection_ExtendedString & | aText | ||
) |
AIS_LengthDimension::AIS_LengthDimension | ( | const TopoDS_Face & | aFirstFace, |
const TopoDS_Face & | aSecondFace, | ||
const Standard_Real | aVal, | ||
const TCollection_ExtendedString & | aText, | ||
const gp_Pnt & | aPosition, | ||
const DsgPrs_ArrowSide | aSymbolPrs, | ||
const Standard_Real | anArrowSize = 0.0 |
||
) |
AIS_LengthDimension::AIS_LengthDimension | ( | const TopoDS_Face & | Face, |
const TopoDS_Edge & | Edge, | ||
const Standard_Real | Val, | ||
const TCollection_ExtendedString & | Text | ||
) |
AIS_LengthDimension::AIS_LengthDimension | ( | const TopoDS_Shape & | aFShape, |
const TopoDS_Shape & | aSShape, | ||
const Handle< Geom_Plane > & | aPlane, | ||
const Standard_Real | aVal, | ||
const TCollection_ExtendedString & | aText | ||
) |
-- Constructs a length display object defined by the first
edge or vertex aFShape, the second edge or vertex
aSShape, the dimension aVal,and the plane aPlane.
AIS_LengthDimension::AIS_LengthDimension | ( | const TopoDS_Shape & | aFShape, |
const TopoDS_Shape & | aSShape, | ||
const Handle< Geom_Plane > & | aPlane, | ||
const Standard_Real | aVal, | ||
const TCollection_ExtendedString & | aText, | ||
const gp_Pnt & | aPosition, | ||
const DsgPrs_ArrowSide | aSymbolPrs, | ||
const AIS_TypeOfDist | aTypeDist, | ||
const Standard_Real | anArrowSize = 0.0 |
||
) |
virtual void AIS_LengthDimension::Compute | ( | const Handle< Prs3d_Projector > & | aProjector, |
const Handle< Geom_Transformation > & | aTrsf, | ||
const Handle< Prs3d_Presentation > & | aPresentation | ||
) | [virtual] |
Reimplemented from PrsMgr_PresentableObject.
static void AIS_LengthDimension::ComputeOneEdgeOneVertexLength | ( | const Handle< Prs3d_Presentation > & | aPresentation, |
const Handle< AIS_Drawer > & | aDrawer, | ||
const TCollection_ExtendedString & | aText, | ||
const Standard_Real | ArrowSize, | ||
const TopoDS_Shape & | FirstShape, | ||
const TopoDS_Shape & | SecondShape, | ||
const Handle< Geom_Plane > & | Plane, | ||
const Standard_Boolean | AutomaticPos, | ||
const Standard_Boolean | IsSetBndBox, | ||
const Bnd_Box & | BndBox, | ||
Standard_Integer & | ExtShape, | ||
Standard_Real & | Val, | ||
gp_Dir & | DirAttach, | ||
gp_Pnt & | Position, | ||
gp_Pnt & | FirstAttach, | ||
gp_Pnt & | SecondAttach, | ||
DsgPrs_ArrowSide & | SymbolPrs | ||
) | [static] |
static void AIS_LengthDimension::ComputeTwoEdgesLength | ( | const Handle< Prs3d_Presentation > & | aPresentation, |
const Handle< AIS_Drawer > & | aDrawer, | ||
const TCollection_ExtendedString & | aText, | ||
const Standard_Real | ArrowSize, | ||
const TopoDS_Edge & | FirstEdge, | ||
const TopoDS_Edge & | SecondEdge, | ||
const Handle< Geom_Plane > & | Plane, | ||
const Standard_Boolean | AutomaticPos, | ||
const Standard_Boolean | IsSetBndBox, | ||
const Bnd_Box & | BndBox, | ||
Standard_Integer & | ExtShape, | ||
Standard_Real & | Val, | ||
gp_Dir & | DirAttach, | ||
gp_Pnt & | Position, | ||
gp_Pnt & | FirstAttach, | ||
gp_Pnt & | SecondAttach, | ||
DsgPrs_ArrowSide & | SymbolPrs | ||
) | [static] |
static void AIS_LengthDimension::ComputeTwoVerticesLength | ( | const Handle< Prs3d_Presentation > & | aPresentation, |
const Handle< AIS_Drawer > & | aDrawer, | ||
const TCollection_ExtendedString & | aText, | ||
const Standard_Real | ArrowSize, | ||
const TopoDS_Vertex & | FirstVertex, | ||
const TopoDS_Vertex & | SecondVertex, | ||
const Handle< Geom_Plane > & | Plane, | ||
const Standard_Boolean | AutomaticPos, | ||
const Standard_Boolean | IsSetBndBox, | ||
const Bnd_Box & | BndBox, | ||
const AIS_TypeOfDist | TypeDist, | ||
Standard_Integer & | ExtShape, | ||
Standard_Real & | Val, | ||
gp_Dir & | DirAttach, | ||
gp_Pnt & | Position, | ||
gp_Pnt & | FirstAttach, | ||
gp_Pnt & | SecondAttach, | ||
DsgPrs_ArrowSide & | SymbolPrs | ||
) | [static] |
virtual Standard_Boolean AIS_LengthDimension::IsMovable | ( | ) | const [virtual] |
Reimplemented from AIS_Relation.
virtual AIS_KindOfDimension AIS_LengthDimension::KindOfDimension | ( | ) | const [virtual] |
Reimplemented from AIS_Relation.
void AIS_LengthDimension::SetFirstShape | ( | const TopoDS_Shape & | aFShape | ) | [virtual] |
Reimplemented from AIS_Relation.
void AIS_LengthDimension::SetSecondShape | ( | const TopoDS_Shape & | aSShape | ) | [virtual] |
Reimplemented from AIS_Relation.
void AIS_LengthDimension::SetTypeOfDist | ( | const AIS_TypeOfDist | aTypeDist | ) |
AIS_TypeOfDist AIS_LengthDimension::TypeOfDist | ( | ) | const |