All Frameworks  Class Hierarchy  This Framework  Previous  Next  Indexes

VisualizationBase Notification CATContext

System.IUnknown
  |
  +---System.IDispatch
    |
    +---System.CATBaseUnknown
      |
      +---System.CATNotification
        |
        +---VisualizationBase.CATVueNotification
          |
          +---VisualizationBase.CATManipulatorNotification
            |
            +---CATContext
 

Usage: you must use this class as is. You should never derive it.


public class CATContext

Class to notify that a contextual action is asked on a manipulator.
Role: This notification sent by a CATManipulator indicates that the mouse button 3 is pressed above the representation controlled by the manipulator. It can be received by any CATCommand class by means of the callback through the CATCommand.AddAnalyseNotificationCB method.


Constructor and Destructor Index


o CATContext(CATNotification*,CATDlgContextualMenu*)
Constructs a CATContext notification.
o ~CATContext()

Method Index


o GetContextualMenu()
Returns the associated context menu.

Constructor and Destructor


o CATContext
public CATContext(CATNotification* iNotification,
CATDlgContextualMenu* menu=NULL)
Constructs a CATContext notification.
Parameters:
iNotification
The device event notification. This notification contains the manipulation device parameters like mouse position.
menu
The associated context menu.
o ~CATContext
public virtual ~CATContext()

Methods


o GetContextualMenu
public CATDlgContextualMenu * GetContextualMenu()const
Returns the associated context menu. An application can subscribe to this notfication to put specific items in the context menu associated to manipulator. The contextual menu is specific to each manipulator and is redefined each time a contextual action is asked on a manipulator.

This object is included in the file: CATContext.h
If needed, your Imakefile.mk should include the module: CATViz

Copyright © 2003, Dassault Systèmes. All rights reserved.