OCC Main Page | Visualization | Toolkits | Packages | Class Hierarchy | Data Structures | File List | Data Fields | Globals

Visualization
TKV3d
AIS


AIS_MultipleConnectedInteractive Class Reference

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>

Inheritance diagram for AIS_MultipleConnectedInteractive:

Inheritance graph
[legend]

Public Member Functions

Standard_EXPORT 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.
.
Standard_EXPORT void Connect (const Handle(AIS_InteractiveObject)&anotherIObj)
 Add anotherIObj in the presentation of me
.
virtual Standard_EXPORT AIS_KindOfInteractive Type () const
 Returns the kind of Interactive Object:
- None
- Datum
- Relation
- Object
By default, the interactive object has a None type.
Because specific shapes entail different behavior
according to their sub-shapes, you may need to
create a Local Context. This will allow you to
specify the additional characteristics which you
need to handle these shapes.
.
virtual Standard_EXPORT 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:
- Point signature 1
- Axis signature 2
- Trihedron signature 3
- PlaneTrihedron signature 4
- Line signature 5
- Circle signature 6
- Plane signature 7.
.
Standard_EXPORT Standard_Boolean HasConnection () const
 Returns true if the object is connected to others.
.
const AIS_SequenceOfInteractiveConnectedTo () const
 Returns the connection references of the previous
Interactive Objects in view.
.
Standard_EXPORT void Disconnect (const Handle(AIS_InteractiveObject)&anotherIObj)
 Removes the connection anotherIObj to an entity.
.
Standard_EXPORT void DisconnectAll ()
 Clears all the connections to objects.
.
virtual 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.
.
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 !!!

virtual 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 const Handle (Standard_Type)&DynamicType() const

Private Member Functions

virtual Standard_EXPORT void Compute (const Handle(PrsMgr_PresentationManager3d)&aPresentationManager, const Handle(Prs3d_Presentation)&aPresentation, const Standard_Integer aMode=0)
 this method is redefined virtual;
when the instance is connected to another
InteractiveObject,this method doesn't
compute anything, but just uses the
presentation of this last object, with
a transformation if there's one stored.

virtual 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.
.

Private Attributes

AIS_SequenceOfInteractive myReferences
AIS_SequenceOfInteractive myPreviousReferences

Constructor & Destructor Documentation

Standard_EXPORT AIS_MultipleConnectedInteractive::AIS_MultipleConnectedInteractive const PrsMgr_TypeOfPresentation3d  aTypeOfPresentation3d = PrsMgr_TOP_AllView  ) 
 


Member Function Documentation

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

Reimplemented from PrsMgr_PresentableObject.

Reimplemented in AIS_MultipleConnectedShape.

virtual Standard_EXPORT void AIS_MultipleConnectedInteractive::Compute const Handle(Prs3d_Projector)&  aProjector,
const Handle(Prs3d_Presentation)&  aPresentation
[virtual]
 

Reimplemented from PrsMgr_PresentableObject.

Reimplemented in AIS_MultipleConnectedShape.

virtual Standard_EXPORT 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 Standard_EXPORT 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 Standard_EXPORT void AIS_MultipleConnectedInteractive::ComputeSelection const Handle(SelectMgr_Selection)&  aSelection,
const Standard_Integer  aMode
[private, virtual]
 

Implements SelectMgr_SelectableObject.

Reimplemented in AIS_MultipleConnectedShape.

Standard_EXPORT void AIS_MultipleConnectedInteractive::Connect const Handle(AIS_InteractiveObject)&  anotherIObj  ) 
 

const AIS_SequenceOfInteractive & AIS_MultipleConnectedInteractive::ConnectedTo  )  const [inline]
 

Standard_EXPORT void AIS_MultipleConnectedInteractive::Disconnect const Handle(AIS_InteractiveObject)&  anotherIObj  ) 
 

Standard_EXPORT void AIS_MultipleConnectedInteractive::DisconnectAll  ) 
 

Standard_EXPORT const AIS_MultipleConnectedInteractive::Handle Standard_Type   )  const
 

Reimplemented from AIS_InteractiveObject.

Reimplemented in AIS_MultipleConnectedShape.

Standard_EXPORT Standard_Boolean AIS_MultipleConnectedInteractive::HasConnection  )  const
 

virtual Standard_EXPORT Standard_Integer AIS_MultipleConnectedInteractive::Signature  )  const [virtual]
 

Reimplemented from AIS_InteractiveObject.

Reimplemented in AIS_MultipleConnectedShape.

virtual Standard_EXPORT AIS_KindOfInteractive AIS_MultipleConnectedInteractive::Type  )  const [virtual]
 

Reimplemented from AIS_InteractiveObject.

Reimplemented in AIS_MultipleConnectedShape.


Field Documentation

AIS_SequenceOfInteractive AIS_MultipleConnectedInteractive::myPreviousReferences [private]
 

AIS_SequenceOfInteractive AIS_MultipleConnectedInteractive::myReferences [private]
 


The documentation for this class was generated from the following files:
Generated on Mon Aug 25 13:55:14 2008 for OpenCASCADE by  doxygen 1.4.1