Open CASCADE Technology 6.6.0
Public Member Functions
AIS_TangentRelation Class Reference

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>

Inheritance diagram for AIS_TangentRelation:
Inheritance graph
[legend]

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 !!!


Constructor & Destructor Documentation

AIS_TangentRelation::AIS_TangentRelation ( const TopoDS_Shape aFShape,
const TopoDS_Shape aSShape,
const Handle< Geom_Plane > &  aPlane,
const Standard_Integer  anExternRef = 0 
)

Member Function Documentation

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 ( )
  • 0 - there is no connection;
  • 1 - there is a connection to the first shape;
  • 2 - there is a connection to the second shape.
    This reference is defined at construction time.
void AIS_TangentRelation::SetExternRef ( const Standard_Integer  aRef)
  • 0 - there is no connection;
  • 1 - there is a connection to the first shape;
  • 2 - there is a connection to the second shape.
    This reference is initially defined at construction time.

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines