Open CASCADE Technology
6.5.4
|
A framework to display equivalent distances between
shapes and a given plane.
The distance is the length of a projection from the
shape to the plane.
These distances are used to compare shapes by this vector alone.
#include <AIS_EqualDistanceRelation.hxx>
Public Member Functions | |
AIS_EqualDistanceRelation (const TopoDS_Shape &aShape1, const TopoDS_Shape &aShape2, const TopoDS_Shape &aShape3, const TopoDS_Shape &aShape4, const Handle< Geom_Plane > &aPlane) | |
Constructs a framework to display equivalent distances between the shapes aShape1, aShape2, aShape3, aShape4 and the plane aPlane. The distance is the length of a projection from the shape to the plane. | |
void | SetShape3 (const TopoDS_Shape &aShape) |
Sets the shape aShape to be used as the shape aShape3 in the framework created at construction time. | |
const TopoDS_Shape & | Shape3 () const |
Returns the shape aShape3 from the framework created at construction time. | |
void | SetShape4 (const TopoDS_Shape &aShape) |
Sets the shape aShape to be used as the shape aShape4 in the framework created at construction time. | |
const TopoDS_Shape & | Shape4 () const |
Returns the shape aShape4 from the framework created 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 !!! | |
Static Public Member Functions | |
static void | ComputeTwoEdgesLength (const Handle< Prs3d_Presentation > &aPresentation, const Handle< AIS_Drawer > &aDrawer, 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, gp_Pnt &Position, gp_Pnt &FirstAttach, gp_Pnt &SecondAttach, gp_Pnt &FirstExtreme, gp_Pnt &SecondExtreme, DsgPrs_ArrowSide &SymbolPrs) |
Computes the location of an intreval between between two edges. FirstAttach , SecondAttach are the returned extreme points of the interval. | |
static void | ComputeTwoVerticesLength (const Handle< Prs3d_Presentation > &aPresentation, const Handle< AIS_Drawer > &aDrawer, 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, gp_Pnt &Position, gp_Pnt &FirstAttach, gp_Pnt &SecondAttach, gp_Pnt &FirstExtreme, gp_Pnt &SecondExtreme, DsgPrs_ArrowSide &SymbolPrs) |
Computes the interval position between two vertexs. FirstAttach, SecondAttach are the returned extreme points of the interval. | |
static void | ComputeOneEdgeOneVertexLength (const Handle< Prs3d_Presentation > &aPresentation, const Handle< AIS_Drawer > &aDrawer, 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, gp_Pnt &Position, gp_Pnt &FirstAttach, gp_Pnt &SecondAttach, gp_Pnt &FirstExtreme, gp_Pnt &SecondExtreme, DsgPrs_ArrowSide &SymbolPrs) |
Compute the interval location between a vertex and an edge. Edge may be a line or a circle. |
AIS_EqualDistanceRelation::AIS_EqualDistanceRelation | ( | const TopoDS_Shape & | aShape1, |
const TopoDS_Shape & | aShape2, | ||
const TopoDS_Shape & | aShape3, | ||
const TopoDS_Shape & | aShape4, | ||
const Handle< Geom_Plane > & | aPlane | ||
) |
virtual void AIS_EqualDistanceRelation::Compute | ( | const Handle< Prs3d_Projector > & | aProjector, |
const Handle< Geom_Transformation > & | aTrsf, | ||
const Handle< Prs3d_Presentation > & | aPresentation | ||
) | [virtual] |
Reimplemented from PrsMgr_PresentableObject.
static void AIS_EqualDistanceRelation::ComputeOneEdgeOneVertexLength | ( | const Handle< Prs3d_Presentation > & | aPresentation, |
const Handle< AIS_Drawer > & | aDrawer, | ||
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, | ||
gp_Pnt & | Position, | ||
gp_Pnt & | FirstAttach, | ||
gp_Pnt & | SecondAttach, | ||
gp_Pnt & | FirstExtreme, | ||
gp_Pnt & | SecondExtreme, | ||
DsgPrs_ArrowSide & | SymbolPrs | ||
) | [static] |
static void AIS_EqualDistanceRelation::ComputeTwoEdgesLength | ( | const Handle< Prs3d_Presentation > & | aPresentation, |
const Handle< AIS_Drawer > & | aDrawer, | ||
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, | ||
gp_Pnt & | Position, | ||
gp_Pnt & | FirstAttach, | ||
gp_Pnt & | SecondAttach, | ||
gp_Pnt & | FirstExtreme, | ||
gp_Pnt & | SecondExtreme, | ||
DsgPrs_ArrowSide & | SymbolPrs | ||
) | [static] |
static void AIS_EqualDistanceRelation::ComputeTwoVerticesLength | ( | const Handle< Prs3d_Presentation > & | aPresentation, |
const Handle< AIS_Drawer > & | aDrawer, | ||
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, | ||
gp_Pnt & | Position, | ||
gp_Pnt & | FirstAttach, | ||
gp_Pnt & | SecondAttach, | ||
gp_Pnt & | FirstExtreme, | ||
gp_Pnt & | SecondExtreme, | ||
DsgPrs_ArrowSide & | SymbolPrs | ||
) | [static] |
void AIS_EqualDistanceRelation::SetShape3 | ( | const TopoDS_Shape & | aShape | ) |
void AIS_EqualDistanceRelation::SetShape4 | ( | const TopoDS_Shape & | aShape | ) |
const TopoDS_Shape& AIS_EqualDistanceRelation::Shape3 | ( | ) | const |
const TopoDS_Shape& AIS_EqualDistanceRelation::Shape4 | ( | ) | const |