API Documentation > Interface Classes > Class pfcSelectionBuffer
Class pfcSelectionBuffer

# include <pfcSelect.h>

class
pfcSelectionBuffer
: public virtual
pfcChild
{
xaideclare(pfcSelectionBuffer)
...
};


Description
This class represents a selection buffer, where items preselected by the user are stored to be used by tools and popupmenus.
User Guide References:
Methods Inherited from Class pfcChild::
Method Summary
void
Add an item to the selection buffer.
void
Clear the selection buffer of all contents.
Contents of the active selection buffer.
void
RemoveSelection (xint IndexToRemove)
Removes the selection at the indicated location from the selection tool.
Method Detail
Contents of the active selection buffer.
Exceptions thrown (but not limited to):
pfcXToolkitCantAccess - There is no Object/Action selection tool active.
pfcXToolkitNotFound - There are no objects in the current selection tool.
User Guide References:
void
AddSelection
Add an item to the selection buffer.
Exceptions thrown (but not limited to):
pfcXToolkitCantAccess - There is no Object/Action selection tool active.
pfcXToolkitInvalidItem - The selection does not correctly reference the current model.
pfcXToolkitNotDisplayed - The item is not currently displayed and so cannot be added to the buffer.
pfcXToolkitBadContext - The selection cannot be added to the buffer in combination with one or more objects that are already in the buffer (e.g. geometry and features selected at the same time).
pfcXToolkitCantModify - Buffer modification is prohibited.
User Guide References:
Parameters:
ToAdd
Selection to be added to the buffer.
Returns:
void
RemoveSelection
(xint IndexToRemove)
Removes the selection at the indicated location from the selection tool.
Exceptions thrown (but not limited to):
pfcXToolkitCantAccess - There is no Object/Action selection tool active.
pfcXToolkitCantModify - Buffer modification is prohibited.
User Guide References:
Parameters:
IndexToRemove
Index of the item to remove from the currently active selection tool.
Returns:
void
Clear
()
Clear the selection buffer of all contents.
Exceptions thrown (but not limited to):
pfcXToolkitCantAccess - There is no Object/Action selection tool active.
pfcXToolkitCantModify - Buffer modification is prohibited.
User Guide References:
Returns:
Was this helpful?