Open CASCADE Technology 6.6.0
Public Member Functions
AIS_AngleDimension Class Reference

A framework to define display of angles.
These displays are particularly useful in viewing draft prisms.
The angle displayed may define an intersection
can be between two edges or two faces of a shape
or a plane. The display consists of arrows and text.

#include <AIS_AngleDimension.hxx>

Inheritance diagram for AIS_AngleDimension:
Inheritance graph
[legend]

Public Member Functions

 AIS_AngleDimension (const TopoDS_Edge &aFirstEdge, const TopoDS_Edge &aSecondEdge, const Handle< Geom_Plane > &aPlane, const Standard_Real aVal, const TCollection_ExtendedString &aText)
 Constructs the angle display object defined by the
shapes aFShape, aSShape, the plane aPlane, the
value aVal and the text aText.
aFShape and aSShape are edges.

 AIS_AngleDimension (const TopoDS_Edge &aFirstEdge, const TopoDS_Edge &aSecondEdge, const Handle< Geom_Plane > &aPlane, const Standard_Real aVal, const TCollection_ExtendedString &aText, const gp_Pnt &aPosition, const DsgPrs_ArrowSide aSymbolPrs, const Standard_Real anArrowSize=0.0)
 Constructs the angle display object defined by the
shapes aFShape, aSShape, the plane aPlane, the
value aVal, the text aText, the point aPosition, the
type of arrow aSymbolPrs, and the arrow length anArrowSize.
aFShape and aSShape are edges.

 AIS_AngleDimension (const TopoDS_Face &aCone, const Standard_Real aVal, const TCollection_ExtendedString &aText)
 Angle of cone

 AIS_AngleDimension (const TopoDS_Face &aCone, const Standard_Real aVal, const TCollection_ExtendedString &aText, const gp_Pnt &aPosition, const DsgPrs_ArrowSide aSymbolPrs, const Standard_Real anArrowSize=0.01)
 Angle of cone

 AIS_AngleDimension (const TopoDS_Face &aFirstFace, const TopoDS_Face &aSecondFace, const gp_Ax1 &anAxis, const Standard_Real aVal, const TCollection_ExtendedString &aText)
 TwoPlanarFaceAngle dimension

 AIS_AngleDimension (const TopoDS_Face &aFirstFace, const TopoDS_Face &aSecondFace, const gp_Ax1 &anAxis, const Standard_Real aVal, const TCollection_ExtendedString &aText, const gp_Pnt &aPosition, const DsgPrs_ArrowSide aSymbolPrs, const Standard_Real anArrowSize=0.0)
 TwoPlanarFacesAngle dimension with position
and text Face can be Plane or Extrusion of line
or Offset of those

 AIS_AngleDimension (const TopoDS_Face &aFFace, const TopoDS_Face &aSFace, const Standard_Real aVal, const TCollection_ExtendedString &aText)
 Angle dimension between two curvilinear faces
Warning:
Requaired 0 <= aVal < PI,
aVal must be defined exactly.

 AIS_AngleDimension (const TopoDS_Face &aFFace, const TopoDS_Face &aSFace, const Standard_Real aVal, const TCollection_ExtendedString &aText, const gp_Pnt &aPosition, const DsgPrs_ArrowSide aSymbolPrs, const Standard_Real anArrowSize=0.001)
 Angle dimension between two curvilinear faces
with position and text. Face can be Cone, Cylinder
Offset of Cone, Offset of Cylinder

const gp_Ax1Axis () const
 Returns the axis set by the SetAxis method, which
serves to locate the angle between two faces.

void SetAxis (const gp_Ax1 &anAxis)
 Sets the axis, anAxis, which serves to locate the
angle between two faces.

void SetConeFace (const TopoDS_Face &aConeFace)
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
 Returns PLANEANGLE as the kind of dimension.

virtual Standard_Boolean IsMovable () const
 Returns true if the angle 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>.
This method should 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_AngleDimension::AIS_AngleDimension ( const TopoDS_Edge aFirstEdge,
const TopoDS_Edge aSecondEdge,
const Handle< Geom_Plane > &  aPlane,
const Standard_Real  aVal,
const TCollection_ExtendedString aText 
)
AIS_AngleDimension::AIS_AngleDimension ( const TopoDS_Edge aFirstEdge,
const TopoDS_Edge aSecondEdge,
const Handle< Geom_Plane > &  aPlane,
const Standard_Real  aVal,
const TCollection_ExtendedString aText,
const gp_Pnt aPosition,
const DsgPrs_ArrowSide  aSymbolPrs,
const Standard_Real  anArrowSize = 0.0 
)
AIS_AngleDimension::AIS_AngleDimension ( const TopoDS_Face aCone,
const Standard_Real  aVal,
const TCollection_ExtendedString aText 
)
AIS_AngleDimension::AIS_AngleDimension ( const TopoDS_Face aCone,
const Standard_Real  aVal,
const TCollection_ExtendedString aText,
const gp_Pnt aPosition,
const DsgPrs_ArrowSide  aSymbolPrs,
const Standard_Real  anArrowSize = 0.01 
)
AIS_AngleDimension::AIS_AngleDimension ( const TopoDS_Face aFirstFace,
const TopoDS_Face aSecondFace,
const gp_Ax1 anAxis,
const Standard_Real  aVal,
const TCollection_ExtendedString aText 
)
AIS_AngleDimension::AIS_AngleDimension ( const TopoDS_Face aFirstFace,
const TopoDS_Face aSecondFace,
const gp_Ax1 anAxis,
const Standard_Real  aVal,
const TCollection_ExtendedString aText,
const gp_Pnt aPosition,
const DsgPrs_ArrowSide  aSymbolPrs,
const Standard_Real  anArrowSize = 0.0 
)
AIS_AngleDimension::AIS_AngleDimension ( const TopoDS_Face aFFace,
const TopoDS_Face aSFace,
const Standard_Real  aVal,
const TCollection_ExtendedString aText 
)
AIS_AngleDimension::AIS_AngleDimension ( const TopoDS_Face aFFace,
const TopoDS_Face aSFace,
const Standard_Real  aVal,
const TCollection_ExtendedString aText,
const gp_Pnt aPosition,
const DsgPrs_ArrowSide  aSymbolPrs,
const Standard_Real  anArrowSize = 0.001 
)

Member Function Documentation

const gp_Ax1& AIS_AngleDimension::Axis ( ) const
virtual void AIS_AngleDimension::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_AngleDimension::IsMovable ( ) const [virtual]

Reimplemented from AIS_Relation.

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

Reimplemented from AIS_Relation.

void AIS_AngleDimension::SetAxis ( const gp_Ax1 anAxis)
void AIS_AngleDimension::SetConeFace ( const TopoDS_Face aConeFace)
void AIS_AngleDimension::SetFirstShape ( const TopoDS_Shape aFShape) [virtual]

Reimplemented from AIS_Relation.

void AIS_AngleDimension::SetSecondShape ( const TopoDS_Shape aSShape) [virtual]

Reimplemented from AIS_Relation.


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