Gui: Rename SoFCEnableHighlightAction to preselection terminology.
This commit is contained in:
@@ -296,7 +296,7 @@ void SoFCEnableSelectionAction::finish()
|
||||
|
||||
|
||||
SoFCEnableSelectionAction::SoFCEnableSelectionAction (const SbBool& sel)
|
||||
: selection(sel)
|
||||
: enabled(sel)
|
||||
{
|
||||
SO_ACTION_CONSTRUCTOR(SoFCEnableSelectionAction);
|
||||
}
|
||||
@@ -317,7 +317,7 @@ void SoFCEnableSelectionAction::callDoAction(SoAction *action,SoNode *node)
|
||||
|
||||
// ---------------------------------------------------------------
|
||||
|
||||
SO_ACTION_SOURCE(SoFCEnableHighlightAction)
|
||||
SO_ACTION_SOURCE(SoFCEnablePreselectionAction)
|
||||
|
||||
/**
|
||||
* The order of the defined SO_ACTION_ADD_METHOD statements is very important. First the base
|
||||
@@ -327,28 +327,28 @@ SO_ACTION_SOURCE(SoFCEnableHighlightAction)
|
||||
* This means that \c SoSwitch must be listed after \c SoGroup and \c SoFCSelection after
|
||||
* \c SoSeparator because both classes inherits the others.
|
||||
*/
|
||||
void SoFCEnableHighlightAction::initClass()
|
||||
void SoFCEnablePreselectionAction::initClass()
|
||||
{
|
||||
SO_ACTION_INIT_CLASS(SoFCEnableHighlightAction,SoAction);
|
||||
SO_ACTION_INIT_CLASS(SoFCEnablePreselectionAction,SoAction);
|
||||
|
||||
SO_ENABLE(SoFCEnableHighlightAction, SoSwitchElement);
|
||||
SO_ENABLE(SoFCEnablePreselectionAction, SoSwitchElement);
|
||||
|
||||
SO_ACTION_ADD_METHOD(SoNode,nullAction);
|
||||
|
||||
SO_ENABLE(SoFCEnableHighlightAction, SoModelMatrixElement);
|
||||
SO_ENABLE(SoFCEnableHighlightAction, SoShapeStyleElement);
|
||||
SO_ENABLE(SoFCEnableHighlightAction, SoComplexityElement);
|
||||
SO_ENABLE(SoFCEnableHighlightAction, SoComplexityTypeElement);
|
||||
SO_ENABLE(SoFCEnableHighlightAction, SoCoordinateElement);
|
||||
SO_ENABLE(SoFCEnableHighlightAction, SoFontNameElement);
|
||||
SO_ENABLE(SoFCEnableHighlightAction, SoFontSizeElement);
|
||||
SO_ENABLE(SoFCEnableHighlightAction, SoProfileCoordinateElement);
|
||||
SO_ENABLE(SoFCEnableHighlightAction, SoProfileElement);
|
||||
SO_ENABLE(SoFCEnableHighlightAction, SoSwitchElement);
|
||||
SO_ENABLE(SoFCEnableHighlightAction, SoUnitsElement);
|
||||
SO_ENABLE(SoFCEnableHighlightAction, SoViewVolumeElement);
|
||||
SO_ENABLE(SoFCEnableHighlightAction, SoViewingMatrixElement);
|
||||
SO_ENABLE(SoFCEnableHighlightAction, SoViewportRegionElement);
|
||||
SO_ENABLE(SoFCEnablePreselectionAction, SoModelMatrixElement);
|
||||
SO_ENABLE(SoFCEnablePreselectionAction, SoShapeStyleElement);
|
||||
SO_ENABLE(SoFCEnablePreselectionAction, SoComplexityElement);
|
||||
SO_ENABLE(SoFCEnablePreselectionAction, SoComplexityTypeElement);
|
||||
SO_ENABLE(SoFCEnablePreselectionAction, SoCoordinateElement);
|
||||
SO_ENABLE(SoFCEnablePreselectionAction, SoFontNameElement);
|
||||
SO_ENABLE(SoFCEnablePreselectionAction, SoFontSizeElement);
|
||||
SO_ENABLE(SoFCEnablePreselectionAction, SoProfileCoordinateElement);
|
||||
SO_ENABLE(SoFCEnablePreselectionAction, SoProfileElement);
|
||||
SO_ENABLE(SoFCEnablePreselectionAction, SoSwitchElement);
|
||||
SO_ENABLE(SoFCEnablePreselectionAction, SoUnitsElement);
|
||||
SO_ENABLE(SoFCEnablePreselectionAction, SoViewVolumeElement);
|
||||
SO_ENABLE(SoFCEnablePreselectionAction, SoViewingMatrixElement);
|
||||
SO_ENABLE(SoFCEnablePreselectionAction, SoViewportRegionElement);
|
||||
|
||||
|
||||
|
||||
@@ -369,28 +369,28 @@ void SoFCEnableHighlightAction::initClass()
|
||||
SO_ACTION_ADD_METHOD(SoFCSelection,callDoAction);
|
||||
}
|
||||
|
||||
void SoFCEnableHighlightAction::finish()
|
||||
void SoFCEnablePreselectionAction::finish()
|
||||
{
|
||||
atexit_cleanup();
|
||||
}
|
||||
|
||||
|
||||
SoFCEnableHighlightAction::SoFCEnableHighlightAction (const SbBool& sel)
|
||||
: highlight(sel)
|
||||
SoFCEnablePreselectionAction::SoFCEnablePreselectionAction (const SbBool& sel)
|
||||
: enabled(sel)
|
||||
{
|
||||
SO_ACTION_CONSTRUCTOR(SoFCEnableHighlightAction);
|
||||
SO_ACTION_CONSTRUCTOR(SoFCEnablePreselectionAction);
|
||||
}
|
||||
|
||||
|
||||
SoFCEnableHighlightAction::~SoFCEnableHighlightAction() = default;
|
||||
SoFCEnablePreselectionAction::~SoFCEnablePreselectionAction() = default;
|
||||
|
||||
|
||||
void SoFCEnableHighlightAction::beginTraversal(SoNode *node)
|
||||
void SoFCEnablePreselectionAction::beginTraversal(SoNode *node)
|
||||
{
|
||||
traverse(node);
|
||||
}
|
||||
|
||||
void SoFCEnableHighlightAction::callDoAction(SoAction *action,SoNode *node)
|
||||
void SoFCEnablePreselectionAction::callDoAction(SoAction *action,SoNode *node)
|
||||
{
|
||||
node->doAction(action);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user