Open CASCADE Technology
6.5.4
|
Defines an Interactive Object by gathering together
several object presentations. This is done through a
list of interactive objects. These can also be
Connected objects. That way memory-costly
calculations of presentation are avoided.
#include <AIS_MultipleConnectedInteractive.hxx>
Public Member Functions | |
AIS_MultipleConnectedInteractive (const PrsMgr_TypeOfPresentation3d aTypeOfPresentation3d=PrsMgr_TOP_AllView) | |
Initializes the Interactive Object with multiple presentation connections. If aTypeOfPresentation3d does not have the affectation PrsMgr_TOP_AllView, it is projector dependent. | |
void | Connect (const Handle< AIS_InteractiveObject > &anotherIObj) |
Add anotherIObj in the presentation of me | |
virtual AIS_KindOfInteractive | Type () const |
Returns the kind of Interactive Object: | |
virtual Standard_Integer | Signature () const |
Specifies additional characteristics of Interactive Objects. A signature is, in fact, an index with integer values assigned different properties. This method is frequently used in conjuction with Type to give a particular type and signature to an Interactive Object. By default, the Interactive Object has a None type and a signature of 0. Among the datums, this signature is attributed to the shape The remaining datums have the following default signatures: | |
Standard_Boolean | HasConnection () const |
Returns true if the object is connected to others. | |
const AIS_SequenceOfInteractive & | ConnectedTo () const |
Returns the connection references of the previous Interactive Objects in view. | |
void | Disconnect (const Handle< AIS_InteractiveObject > &anotherIObj) |
Removes the connection anotherIObj to an entity. | |
void | DisconnectAll () |
Clears all the connections to objects. | |
virtual 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. | |
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 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. |
AIS_MultipleConnectedInteractive::AIS_MultipleConnectedInteractive | ( | const PrsMgr_TypeOfPresentation3d | aTypeOfPresentation3d = PrsMgr_TOP_AllView | ) |
virtual void AIS_MultipleConnectedInteractive::Compute | ( | const Handle< PrsMgr_PresentationManager2d > & | aPresentationManager, |
const Handle< Graphic2d_GraphicObject > & | aPresentation, | ||
const Standard_Integer | aMode = 0 |
||
) | [virtual] |
Reimplemented from PrsMgr_PresentableObject.
Reimplemented in AIS_MultipleConnectedShape.
virtual void AIS_MultipleConnectedInteractive::Compute | ( | const Handle< Prs3d_Projector > & | aProjector, |
const Handle< Geom_Transformation > & | aTrsf, | ||
const Handle< Prs3d_Presentation > & | aPresentation | ||
) | [virtual] |
Reimplemented from PrsMgr_PresentableObject.
Reimplemented in AIS_MultipleConnectedShape.
virtual void AIS_MultipleConnectedInteractive::Compute | ( | const Handle< Prs3d_Projector > & | aProjector, |
const Handle< Prs3d_Presentation > & | aPresentation | ||
) | [virtual] |
Reimplemented from PrsMgr_PresentableObject.
Reimplemented in AIS_MultipleConnectedShape.
void AIS_MultipleConnectedInteractive::Connect | ( | const Handle< AIS_InteractiveObject > & | anotherIObj | ) |
void AIS_MultipleConnectedInteractive::Disconnect | ( | const Handle< AIS_InteractiveObject > & | anotherIObj | ) |
virtual Standard_Integer AIS_MultipleConnectedInteractive::Signature | ( | ) | const [virtual] |
Reimplemented from AIS_InteractiveObject.
Reimplemented in AIS_MultipleConnectedShape.
virtual AIS_KindOfInteractive AIS_MultipleConnectedInteractive::Type | ( | ) | const [virtual] |
Reimplemented from AIS_InteractiveObject.
Reimplemented in AIS_MultipleConnectedShape.