Open CASCADE Technology 6.6.0
Public Member Functions
AIS_SymmetricRelation Class Reference

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>

Inheritance diagram for AIS_SymmetricRelation:
Inheritance graph
[legend]

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_ShapeGetTool () 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 !!!


Constructor & Destructor Documentation

AIS_SymmetricRelation::AIS_SymmetricRelation ( const TopoDS_Shape aSymmTool,
const TopoDS_Shape FirstShape,
const TopoDS_Shape SecondShape,
const Handle< Geom_Plane > &  aPlane 
)

Member Function Documentation

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)

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