NXOpen .NET Reference  12.0.0
Classes | Public Member Functions | Protected Member Functions | List of all members
NXOpen.SelectionSubscriber Class Reference

Defines a SelectionSubscriber for managing selection events More...

Inheritance diagram for NXOpen.SelectionSubscriber:

Classes

class  _SelectionSubscriberOnSelectionChangeCallbackAdapter
 

Public Member Functions

delegate void OnSelectionChangeCallback (bool clearAll, NXOpen.TaggedObject[] deselectedObjects, NXOpen.TaggedObject[] selectedObjects)
 Prototype for a callback which is called at the end of a series of changes to the set of selected objects. More...
 
unsafe void Activate ()
 Activate the subscriber so that it will receive selection change notifications. More...
 
unsafe void Deactivate ()
 Deactivate the subscriber so that it will not receive selection change notifications. More...
 
unsafe bool IsActive ()
 Is the subscriber active? More...
 
unsafe void RegisterOnSelectionChangeCallback (NXOpen.SelectionSubscriber.OnSelectionChangeCallback callbackToRegister)
 Register a callback which is called at the end of a series of changes to the set of selected objects. More...
 

Protected Member Functions

override void FreeResource ()
 Releases resources allocated by the selection subscriber. More...
 

Detailed Description

Defines a SelectionSubscriber for managing selection events

To create a new instance of this class, use NXOpen.Selection.CreateSelectionSubscriber

Created in NX11.0.0

Member Function Documentation

unsafe void NXOpen.SelectionSubscriber.Activate ( )

Activate the subscriber so that it will receive selection change notifications.

Created in NX11.0.0

License requirements: None.

unsafe void NXOpen.SelectionSubscriber.Deactivate ( )

Deactivate the subscriber so that it will not receive selection change notifications.

Created in NX11.0.0

License requirements: None.

override void NXOpen.SelectionSubscriber.FreeResource ( )
protected

Releases resources allocated by the selection subscriber.

Call this method when you are done with your selection operations.

Created in NX11.0.0

License requirements: None.

unsafe bool NXOpen.SelectionSubscriber.IsActive ( )

Is the subscriber active?

Created in NX11.0.0

License requirements: None.

Returns
delegate void NXOpen.SelectionSubscriber.OnSelectionChangeCallback ( bool  clearAll,
NXOpen.TaggedObject[]  deselectedObjects,
NXOpen.TaggedObject[]  selectedObjects 
)

Prototype for a callback which is called at the end of a series of changes to the set of selected objects.

The series of changes are all of the changes which occur as part of the response to a single user action.

Created in NX11.0.0

License requirements: None.

Parameters
clearAllIf true, all previously selected objects are no longer selected. In this case, the Deselected Objects list will be empty, and the Selected Objects list is the set of objects that are currently selected.
deselectedObjectsObjects deselected by the user action.
selectedObjectsObjects selected by the user action.
unsafe void NXOpen.SelectionSubscriber.RegisterOnSelectionChangeCallback ( NXOpen.SelectionSubscriber.OnSelectionChangeCallback  callbackToRegister)

Register a callback which is called at the end of a series of changes to the set of selected objects.

The series of changes are all of the changes which occur as part of the response to a single user action.

Created in NX11.0.0

License requirements: None.

Parameters
callbackToRegisterCallback

The documentation for this class was generated from the following file:
Copyright 2017 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.