AIS_InteractiveContext.hxx File Reference

#include <Standard.hxx>
#include <Standard_DefineHandle.hxx>
#include <Handle_AIS_InteractiveContext.hxx>
#include <AIS_DataMapOfIOStatus.hxx>
#include <Standard_Macro.hxx>
#include <TCollection_BasicMap.hxx>
#include <Handle_AIS_InteractiveObject.hxx>
#include <Handle_AIS_GlobalStatus.hxx>
#include <Handle_AIS_DataMapNodeOfDataMapOfIOStatus.hxx>
#include <Standard_Integer.hxx>
#include <Standard_Boolean.hxx>
#include <Handle_SelectMgr_SelectionManager.hxx>
#include <Handle_PrsMgr_PresentationManager3d.hxx>
#include <Handle_V3d_Viewer.hxx>
#include <Handle_StdSelect_ViewerSelector3d.hxx>
#include <TCollection_AsciiString.hxx>
#include <Handle_SelectMgr_OrFilter.hxx>
#include <Handle_Prs3d_Drawer.hxx>
#include <Quantity_NameOfColor.hxx>
#include <Handle_AIS_LocalContext.hxx>
#include <Handle_AIS_DataMapNodeOfDataMapOfILC.hxx>
#include <Handle_V3d_View.hxx>
#include <TCollection_BaseSequence.hxx>
#include <Handle_AIS_SequenceNodeOfSequenceOfInteractive.hxx>
#include <TCollection_Sequence.lxx>
#include <MMgt_TShared.hxx>
#include <AIS_KindOfInteractive.hxx>
#include <Standard_Real.hxx>
#include <Aspect_TypeOfFacingModel.hxx>
#include <Graphic3d_NameOfMaterial.hxx>
#include <Aspect_TypeOfDegenerateModel.hxx>
#include <Quantity_Ratio.hxx>
#include <Handle_AIS_Drawer.hxx>
#include <Standard_PrimitiveTypes.hxx>
#include <Handle_Prs3d_LineAspect.hxx>
#include <Handle_Prs3d_BasicAspect.hxx>
#include <Handle_SelectMgr_EntityOwner.hxx>
#include <Handle_Standard_Transient.hxx>
#include <Handle_Geom_Transformation.hxx>
#include <Handle_SelectMgr_Filter.hxx>
#include <TopAbs_ShapeEnum.hxx>
#include <Standard_CString.hxx>

Data Structures

class  AIS_InteractiveContext
 The Interactive Context allows you to manage
graphic behavior and selection of Interactive Objects
in one or more viewers. Class methods make this
highly transparent.
It is essential to remember that an Interactive Object
which is already known by the Interactive Context
must be modified using Context methods. You can
only directly call the methods available for an
Interactive Object if it has not been loaded into an
Interactive Context.
You must distinguish two states in the Interactive Context:

  • No Open Local Context, also known as the Neutral Point.
  • One or several open local contexts, each
    representing a temporary state of selection and presentation.
    Some methods can only be used in open Local
    Context; others in closed Local Context; others do
    not have the same behavior in one state as in the other.
    The possiblities of use for local contexts are
    numerous depending on the type of operation that
    you want to perform, for example:
  • working on all visualized interactive objects,
  • working on only a few objects,
  • working on a single object.
    1. When you want ot work on one type of entity, you
    should open a local context with the option
    UseDisplayedObjects set to false. DisplayedObjects
    allows you to recover the visualized Interactive
    Objects which have a given Type and
    Signature from Neutral Point.
    2. You must keep in mind the fact that when you open
    a Local Context with default options:
  • The Interactive Objects visualized at Neutral Point
    are activated with their default selection mode. You
    must deactivate those which you do not want ot use.
  • The Shape type Interactive Objects are
    automatically decomposed into sub-shapes when
    standard activation modes are launched.
  • The "temporary" Interactive Objects present in the
    Local Contexts are not automatically taken into
    account. You have to load them manually if you
    want to use them.
  • The stages could be the following:
    • Open a Local Context with the right options;
    • Load/Visualize the required complementary
      objects with the desired activation modes.
    • Activate Standard modes if necessary
  • Create its filters and add them to the Local Context
    • Detect/Select/recover the desired entities
    • Close the Local Context with the adequate index.
  • It is useful to create an interactive editor, to which
    you pass the Interactive Context. This will take care
    of setting up the different contexts of
    selection/presentation according to the operation
    which you want to perform.
More...
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Thu Mar 3 10:39:21 2011 for Open CASCADE Technology by  doxygen 1.6.3