# Visualization
TKV3d
AIS

# AIS_MidPointRelation Class Reference

presentation of equal distance to point myMidPoint

`#include <AIS_MidPointRelation.hxx>`

Inheritance diagram for AIS_MidPointRelation:

[legend]

## Public Member Functions

Standard_EXPORT | AIS_MidPointRelation (const TopoDS_Shape &aSymmTool, const TopoDS_Shape &FirstShape, const TopoDS_Shape &SecondShape, const Handle(Geom_Plane)&aPlane)
virtual Standard_Boolean | IsMovable () const
| Returns true if the interactive object is movable. .
void | SetTool (const TopoDS_Shape &aMidPointTool)
const TopoDS_Shape & | GetTool () const
virtual Standard_EXPORT 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 !!! .
Standard_EXPORT const | Handle (Standard_Type)&DynamicType() const

## Private Member Functions

Standard_EXPORT void | Compute (const Handle(PrsMgr_PresentationManager3d)&aPresentationManager, const Handle(Prs3d_Presentation)&aPresentation, const Standard_Integer aMode=0)
| Calculates the 3D view aPresentation and its updates. The latter are managed by aPresentationManager. aPresentableObject has the display mode aMode; this has the default value of 0, that is, the wireframe display mode. .
Standard_EXPORT void | Compute (const Handle(Prs3d_Projector)&aProjector, const Handle(Prs3d_Presentation)&aPresentation)

Calculates the 3D view aPresentation and its
updates. The latter are managed by
aPresentationManager. Each of the views in the
viewer and every modification such as rotation, for
example, entails recalculation.
It must be redefined to implement hidden line removal
for the object. The user never calls this method
himself. This is done via the InteractiveContext object
and is dependent on the point of view from which the
object is displayed.
.

Standard_EXPORT void | Compute (const Handle(PrsMgr_PresentationManager2d)&aPresentationManager, const Handle(Graphic2d_GraphicObject)&aPresentation, const Standard_Integer aMode=0)
| Calculates the 2D view aPresentation and its updates. The latter are managed by aPresentationManager. aPresentableObject has the display mode aMode; this has the default value of 0, that is, the wireframe display mode. Note that this syntax is not used in AIS as that package only concerns 3D display. .
Standard_EXPORT void | ComputeSelection (const Handle(SelectMgr_Selection)&aSelection, const Standard_Integer aMode)

Recovers and calculates any sensitive primitive,
aSelection, available in Shape mode, specified by
aMode. As a rule, these are sensitive faces.
This method is defined as virtual. This enables you to
implement it in the creation of a new class of AIS
Interactive Object. You need to do this and in so
doing, redefine this method, if you create a class
which enriches the list of signatures and types.
.

Standard_EXPORT void | ComputeFaceFromPnt (const Handle(Prs3d_Presentation)&aprs, const Standard_Boolean first)
Standard_EXPORT void | ComputeEdgeFromPnt (const Handle(Prs3d_Presentation)&aprs, const Standard_Boolean first)
Standard_EXPORT void | ComputeVertexFromPnt (const Handle(Prs3d_Presentation)&aprs, const Standard_Boolean first)
Standard_EXPORT void | ComputePointsOnLine (const gp_Lin &aLin, const Standard_Boolean first)
Standard_EXPORT void | ComputePointsOnLine (const gp_Pnt &pnt1, const gp_Pnt &pnt2, const Standard_Boolean first)
Standard_EXPORT void | ComputePointsOnCirc (const gp_Circ &aCirc, const gp_Pnt &pnt1, const gp_Pnt &pnt2, const Standard_Boolean first)
Standard_EXPORT void | ComputePointsOnElips (const gp_Elips &anEll, const gp_Pnt &pnt1, const gp_Pnt &pnt2, const Standard_Boolean first)
| ComputePointsOn... methods set myFAttach, myFirstPnt and myLastPnt from the following initial data: curve, end points, myMidPoint. End points (pnt1 & pnt2) and curve define the trimmed curve. If end points are equal, curve is not trimmed (line - special case). .------. pnt2 / \ . circle . myLastPnt | | . pnt1 . myFAttach \ arc / . myMidPoint .______. myFirstPnt .

## Private Attributes

TopoDS_Shape | myTool
gp_Pnt | myMidPoint
gp_Pnt | myFAttach
gp_Pnt | myFirstPnt1
gp_Pnt | myFirstPnt2
gp_Pnt | mySAttach
gp_Pnt | mySecondPnt1
gp_Pnt | mySecondPnt2

## Constructor & Destructor Documentation

Standard_EXPORT AIS_MidPointRelation::AIS_MidPointRelation | ( | const TopoDS_Shape & | aSymmTool,
|  | const TopoDS_Shape & | FirstShape,
|  | const TopoDS_Shape & | SecondShape,
|  | const Handle(Geom_Plane)& | aPlane
| ) |

## Member Function Documentation

Standard_EXPORT void AIS_MidPointRelation::Compute | ( | const Handle(PrsMgr_PresentationManager2d)& | aPresentationManager,
|  | const Handle(Graphic2d_GraphicObject)& | aPresentation,
|  | const Standard_Integer | aMode = `0`
| ) | `[private, virtual]`

| Reimplemented from PrsMgr_PresentableObject.

Standard_EXPORT void AIS_MidPointRelation::Compute | ( | const Handle(Prs3d_Projector)& | aProjector,
|  | const Handle(Prs3d_Presentation)& | aPresentation
| ) | `[private, virtual]`

| Reimplemented from PrsMgr_PresentableObject.

Standard_EXPORT void AIS_MidPointRelation::Compute | ( | const Handle(PrsMgr_PresentationManager3d)& | aPresentationManager,
|  | const Handle(Prs3d_Presentation)& | aPresentation,
|  | const Standard_Integer | aMode = `0`
| ) | `[private, virtual]`

| Reimplemented from PrsMgr_PresentableObject.

virtual Standard_EXPORT void AIS_MidPointRelation::Compute | ( | const Handle(Prs3d_Projector)& | aProjector,
|  | const Handle(Geom_Transformation)& | aTrsf,
|  | const Handle(Prs3d_Presentation)& | aPresentation
| ) | `[virtual]`

| Reimplemented from PrsMgr_PresentableObject.

Standard_EXPORT void AIS_MidPointRelation::ComputeEdgeFromPnt | ( | const Handle(Prs3d_Presentation)& | aprs,
|  | const Standard_Boolean | first
| ) | `[private]`

Standard_EXPORT void AIS_MidPointRelation::ComputeFaceFromPnt | ( | const Handle(Prs3d_Presentation)& | aprs,
|  | const Standard_Boolean | first
| ) | `[private]`

Standard_EXPORT void AIS_MidPointRelation::ComputePointsOnCirc | ( | const gp_Circ & | aCirc,
|  | const gp_Pnt & | pnt1,
|  | const gp_Pnt & | pnt2,
|  | const Standard_Boolean | first
| ) | `[private]`

Standard_EXPORT void AIS_MidPointRelation::ComputePointsOnElips | ( | const gp_Elips & | anEll,
|  | const gp_Pnt & | pnt1,
|  | const gp_Pnt & | pnt2,
|  | const Standard_Boolean | first
| ) | `[private]`

Standard_EXPORT void AIS_MidPointRelation::ComputePointsOnLine | ( | const gp_Pnt & | pnt1,
|  | const gp_Pnt & | pnt2,
|  | const Standard_Boolean | first
| ) | `[private]`

Standard_EXPORT void AIS_MidPointRelation::ComputePointsOnLine | ( | const gp_Lin & | aLin,
|  | const Standard_Boolean | first
| ) | `[private]`

Standard_EXPORT void AIS_MidPointRelation::ComputeSelection | ( | const Handle(SelectMgr_Selection)& | aSelection,
|  | const Standard_Integer | aMode
| ) | `[private, virtual]`

| Implements SelectMgr_SelectableObject.

Standard_EXPORT void AIS_MidPointRelation::ComputeVertexFromPnt | ( | const Handle(Prs3d_Presentation)& | aprs,
|  | const Standard_Boolean | first
| ) | `[private]`

const TopoDS_Shape & AIS_MidPointRelation::GetTool | ( |  | ) | const`[inline]`

Standard_EXPORT const AIS_MidPointRelation::Handle | ( | Standard_Type |  | ) | const

| Reimplemented from AIS_Relation.

Standard_Boolean AIS_MidPointRelation::IsMovable | ( |  | ) | const`[inline, virtual]`

| Reimplemented from AIS_Relation.

void AIS_MidPointRelation::SetTool | ( | const TopoDS_Shape & | aMidPointTool | ) | `[inline]`

## Field Documentation

gp_Pnt AIS_MidPointRelation::myFAttach `[private]`

gp_Pnt AIS_MidPointRelation::myFirstPnt1 `[private]`

gp_Pnt AIS_MidPointRelation::myFirstPnt2 `[private]`

gp_Pnt AIS_MidPointRelation::myMidPoint `[private]`

gp_Pnt AIS_MidPointRelation::mySAttach `[private]`

gp_Pnt AIS_MidPointRelation::mySecondPnt1 `[private]`

gp_Pnt AIS_MidPointRelation::mySecondPnt2 `[private]`

TopoDS_Shape AIS_MidPointRelation::myTool `[private]`

The documentation for this class was generated from the following files:

- AIS_MidPointRelation.hxx
- AIS_MidPointRelation.lxx