Open CASCADE Technology
6.5.4
|
A framework to display constraints of symmetricity
between two or more datum Interactive Objects.
A plane serves as the axis of symmetry between the
shapes of which the datums are parts.
#include <AIS_SymmetricRelation.hxx>
Public Member Functions | |
AIS_SymmetricRelation (const TopoDS_Shape &aSymmTool, const TopoDS_Shape &FirstShape, const TopoDS_Shape &SecondShape, const Handle< Geom_Plane > &aPlane) | |
Constructs an object to display constraints of symmetricity. This object is defined by a tool aSymmTool, a first shape FirstShape, a second shape SecondShape, and a plane aPlane. aPlane serves as the axis of symmetry. aSymmTool is the shape composed of FirstShape SecondShape and aPlane. It may be queried and edited using the functions GetTool and SetTool. The two shapes are typically two edges, two vertices or two points. | |
virtual Standard_Boolean | IsMovable () const |
Returns true if the symmetric constraint display is movable. | |
void | SetTool (const TopoDS_Shape &aSymmetricTool) |
Sets the tool aSymmetricTool composed of a first shape, a second shape, and a plane. This tool is initially created at construction time. | |
const TopoDS_Shape & | GetTool () const |
Returns the tool composed of a first shape, a second shape, and a plane. This tool is 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 !!! |
AIS_SymmetricRelation::AIS_SymmetricRelation | ( | const TopoDS_Shape & | aSymmTool, |
const TopoDS_Shape & | FirstShape, | ||
const TopoDS_Shape & | SecondShape, | ||
const Handle< Geom_Plane > & | aPlane | ||
) |
virtual void AIS_SymmetricRelation::Compute | ( | const Handle< Prs3d_Projector > & | aProjector, |
const Handle< Geom_Transformation > & | aTrsf, | ||
const Handle< Prs3d_Presentation > & | aPresentation | ||
) | [virtual] |
Reimplemented from PrsMgr_PresentableObject.
const TopoDS_Shape& AIS_SymmetricRelation::GetTool | ( | ) | const |
virtual Standard_Boolean AIS_SymmetricRelation::IsMovable | ( | ) | const [virtual] |
Reimplemented from AIS_Relation.
void AIS_SymmetricRelation::SetTool | ( | const TopoDS_Shape & | aSymmetricTool | ) |