Open CASCADE Technology 6.6.0
|
A framework to display tangency constraints between
two or more Interactive Objects of the datum type.
The datums are normally faces or edges.
#include <AIS_TangentRelation.hxx>
Public Member Functions | |
AIS_TangentRelation (const TopoDS_Shape &aFShape, const TopoDS_Shape &aSShape, const Handle< Geom_Plane > &aPlane, const Standard_Integer anExternRef=0) | |
TwoFacesTangent or TwoEdgesTangent relation //! Constructs an object to display tangency constraints. This object is defined by the first shape aFShape, the second shape aSShape, the plane aPlane and the index anExternRef. aPlane serves as an optional axis. anExternRef set to 0 indicates that there is no relation. | |
Standard_Integer | ExternRef () |
Returns the external reference for tangency. The values are as follows: | |
void | SetExternRef (const Standard_Integer aRef) |
Sets the external reference for tangency, aRef. The values are as follows: | |
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_TangentRelation::AIS_TangentRelation | ( | const TopoDS_Shape & | aFShape, |
const TopoDS_Shape & | aSShape, | ||
const Handle< Geom_Plane > & | aPlane, | ||
const Standard_Integer | anExternRef = 0 |
||
) |
virtual void AIS_TangentRelation::Compute | ( | const Handle< Prs3d_Projector > & | aProjector, |
const Handle< Geom_Transformation > & | aTrsf, | ||
const Handle< Prs3d_Presentation > & | aPresentation | ||
) | [virtual] |
Reimplemented from PrsMgr_PresentableObject.
Standard_Integer AIS_TangentRelation::ExternRef | ( | ) |
void AIS_TangentRelation::SetExternRef | ( | const Standard_Integer | aRef | ) |