Unified Selection node This is the new selection node for the 3D Viewer which will gradually remove all the low level selection nodes in the view provider. More...
#include <SoFCUnifiedSelection.h>
Public Types | |
enum | HighlightModes { AUTO, ON, OFF } |
Public Member Functions | |
void | applySettings () |
virtual void | doAction (SoAction *action) |
const char * | getFileFormatName (void) const |
virtual void | handleEvent (SoHandleEventAction *action) |
SoFCUnifiedSelection (void) | |
Static Public Member Functions | |
static void | finish (void) |
static void | initClass (void) |
Public Attributes | |
SoSFColor | colorHighlight |
SoSFColor | colorSelection |
SoSFEnum | highlightMode |
SoSFEnum | selectionMode |
SoSFBool | selectionRole |
Protected Member Functions | |
virtual | ~SoFCUnifiedSelection () |
Protected Attributes | |
View3DInventorViewer * | viewer |
Friends | |
class | View3DInventorViewer |
Unified Selection node This is the new selection node for the 3D Viewer which will gradually remove all the low level selection nodes in the view provider.
The handling of the highlighting and the selection will be unified here.
Definition at line 58 of file SoFCUnifiedSelection.h.
Definition at line 69 of file SoFCUnifiedSelection.h.
SoFCUnifiedSelection::SoFCUnifiedSelection | ( | void | ) |
Constructor.
Definition at line 92 of file SoFCUnifiedSelection.cpp.
References AUTO, colorHighlight, colorSelection, SketcherExample::f, highlightMode, OFF, ON, selectionMode, and selectionRole.
SoFCUnifiedSelection::~SoFCUnifiedSelection | ( | ) | [protected, virtual] |
Destructor.
Definition at line 115 of file SoFCUnifiedSelection.cpp.
void SoFCUnifiedSelection::applySettings | ( | ) |
Definition at line 137 of file SoFCUnifiedSelection.cpp.
References colorHighlight, colorSelection, Gui::WindowParameter::getDefaultParameter(), highlightMode, Py::long, OFF, and selectionMode.
Referenced by Gui::View3DInventorViewer::View3DInventorViewer().
void SoFCUnifiedSelection::doAction | ( | SoAction * | action | ) | [virtual] |
Definition at line 212 of file SoFCUnifiedSelection.cpp.
References Gui::SelectionChanges::AddSelection, Gui::SoSelectionElementAction::All, AUTO, Gui::SelectionChanges::ClrSelection, colorHighlight, colorSelection, App::GetApplication(), Gui::ViewProviderDocumentObject::getClassTypeId(), App::Application::getDocument(), Gui::ViewProviderDocumentObject::getObject(), App::Document::getObject(), Gui::ViewProvider::getRoot(), Gui::Application::getViewProvider(), Gui::View3DInventorViewer::getViewProvidersOfType(), Gui::SoFCEnableHighlightAction::highlight, Gui::SoFCHighlightColorAction::highlightColor, highlightMode, Gui::Application::Instance, Gui::ViewProvider::isSelectable(), Gui::SelectionSingleton::isSelected(), Gui::SoSelectionElementAction::None, OFF, ON, Gui::SelectionChanges::pDocName, Gui::SelectionChanges::pObjectName, Gui::SelectionChanges::RmvSelection, Gui::SoFCSelectionAction::SelChange, Gui::Selection(), Gui::SoFCEnableSelectionAction::selection, Gui::SoFCSelectionColorAction::selectionColor, selectionMode, Gui::SoSelectionElementAction::setColor(), Gui::SelectionChanges::SetSelection, Py::type(), Gui::SelectionChanges::Type, Gui::ViewProvider::useNewSelectionModel(), and viewer.
void SoFCUnifiedSelection::finish | ( | void | ) | [static] |
Definition at line 132 of file SoFCUnifiedSelection.cpp.
const char * SoFCUnifiedSelection::getFileFormatName | ( | void | ) | const |
Definition at line 167 of file SoFCUnifiedSelection.cpp.
void SoFCUnifiedSelection::handleEvent | ( | SoHandleEventAction * | action | ) | [virtual] |
Definition at line 292 of file SoFCUnifiedSelection.cpp.
References Gui::SelectionSingleton::addSelection(), Gui::SoSelectionElementAction::All, Gui::SoSelectionElementAction::Append, AUTO, Gui::SelectionSingleton::clearSelection(), colorHighlight, colorSelection, Gui::ViewProviderDocumentObject::getClassTypeId(), App::DocumentObject::getDocument(), Gui::ViewProvider::getElement(), Gui::getMainWindow(), App::Document::getName(), App::DocumentObject::getNameInDocument(), Gui::ViewProviderDocumentObject::getObject(), Gui::ViewProvider::getRoot(), Gui::View3DInventorViewer::getViewProviderByPathFromTail(), highlightMode, Base::BaseClass::isDerivedFrom(), Gui::ViewProvider::isSelectable(), Gui::SoSelectionElementAction::None, OFF, ON, Gui::SoSelectionElementAction::Remove, Gui::SelectionSingleton::rmvSelection(), Gui::Selection(), selectionMode, selectionRole, Gui::SoSelectionElementAction::setColor(), Gui::SoHighlightElementAction::setColor(), Gui::SoSelectionElementAction::setElement(), Gui::SoHighlightElementAction::setElement(), Gui::SoHighlightElementAction::setHighlighted(), Gui::MainWindow::showMessage(), Py::type(), Gui::ViewProvider::useNewSelectionModel(), and viewer.
void SoFCUnifiedSelection::initClass | ( | void | ) | [static] |
Definition at line 127 of file SoFCUnifiedSelection.cpp.
Referenced by Gui::SoFCDB::init().
friend class View3DInventorViewer [friend] |
Definition at line 89 of file SoFCUnifiedSelection.h.
Definition at line 75 of file SoFCUnifiedSelection.h.
Referenced by applySettings(), doAction(), handleEvent(), and SoFCUnifiedSelection().
Definition at line 76 of file SoFCUnifiedSelection.h.
Referenced by applySettings(), doAction(), handleEvent(), and SoFCUnifiedSelection().
Definition at line 77 of file SoFCUnifiedSelection.h.
Referenced by applySettings(), doAction(), handleEvent(), and SoFCUnifiedSelection().
Definition at line 78 of file SoFCUnifiedSelection.h.
Referenced by applySettings(), doAction(), handleEvent(), and SoFCUnifiedSelection().
Definition at line 79 of file SoFCUnifiedSelection.h.
Referenced by handleEvent(), and SoFCUnifiedSelection().
View3DInventorViewer* Gui::SoFCUnifiedSelection::viewer [protected] |
Definition at line 95 of file SoFCUnifiedSelection.h.
Referenced by doAction(), handleEvent(), and Gui::View3DInventorViewer::View3DInventorViewer().