Open CASCADE Technology 6.6.0
Public Member Functions
AIS_OffsetDimension Class Reference

A framework to display dimensions of offsets.
The relation between the offset and the basis shape
is indicated. This relation is displayed with arrows and
text. The text gives the dsitance between the offset
and the basis shape.

#include <AIS_OffsetDimension.hxx>

Inheritance diagram for AIS_OffsetDimension:
Inheritance graph
[legend]

Public Member Functions

 AIS_OffsetDimension (const TopoDS_Shape &FistShape, const TopoDS_Shape &SecondShape, const Standard_Real aVal, const TCollection_ExtendedString &aText)
 Constructs the offset display object defined by the
first shape aFShape, the second shape aSShape, the
dimension aVal, and the text aText.

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

virtual AIS_KindOfDimension KindOfDimension () const
 Indicates that the dimension we are concerned with is an offset.

virtual Standard_Boolean IsMovable () const
 Returns true if the offset datum is movable.

void SetRelativePos (const gp_Trsf &aTrsf)
 Sets a transformation aTrsf for presentation and
selection to a relative position.


Constructor & Destructor Documentation

AIS_OffsetDimension::AIS_OffsetDimension ( const TopoDS_Shape FistShape,
const TopoDS_Shape SecondShape,
const Standard_Real  aVal,
const TCollection_ExtendedString aText 
)

Member Function Documentation

virtual void AIS_OffsetDimension::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_OffsetDimension::IsMovable ( ) const [virtual]

Reimplemented from AIS_Relation.

virtual AIS_KindOfDimension AIS_OffsetDimension::KindOfDimension ( ) const [virtual]

Reimplemented from AIS_Relation.

void AIS_OffsetDimension::SetRelativePos ( const gp_Trsf aTrsf)

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