Selection node This node does the complete highlighting and selection together with the viewer. More...
#include <SoFCSelection.h>
Public Types | |
enum | HighlightModes { AUTO, ON, OFF } |
enum | Selected { NOTSELECTED, SELECTED } |
enum | SelectionModes { SEL_ON, SEL_OFF } |
enum | Styles { EMISSIVE, EMISSIVE_DIFFUSE, BOX } |
Public Member Functions | |
virtual void | doAction (SoAction *action) |
virtual void | GLRender (SoGLRenderAction *action) |
virtual void | GLRenderBelowPath (SoGLRenderAction *action) |
virtual void | GLRenderInPath (SoGLRenderAction *action) |
virtual void | handleEvent (SoHandleEventAction *action) |
SbBool | isHighlighted (void) const |
SoFCSelection (void) | |
Static Public Member Functions | |
static void | finish (void) |
static void | initClass (void) |
static void | turnOffCurrentHighlight (SoGLRenderAction *action) |
Public Attributes | |
SoSFColor | colorHighlight |
SoSFColor | colorSelection |
SoSFString | documentName |
SoSFEnum | highlightMode |
SoSFString | objectName |
SoSFEnum | selected |
SoSFEnum | selectionMode |
SoSFEnum | style |
SoSFString | subElementName |
Protected Member Functions | |
virtual SbBool | readInstance (SoInput *in, unsigned short flags) |
virtual void | redrawHighlighted (SoAction *act, SbBool flag) |
virtual | ~SoFCSelection () |
Selection node This node does the complete highlighting and selection together with the viewer.
Definition at line 53 of file SoFCSelection.h.
Definition at line 63 of file SoFCSelection.h.
Definition at line 71 of file SoFCSelection.h.
Definition at line 67 of file SoFCSelection.h.
Definition at line 75 of file SoFCSelection.h.
SoFCSelection::SoFCSelection | ( | void | ) |
Constructor.
Definition at line 77 of file SoFCSelection.cpp.
References AUTO, BOX, colorHighlight, colorSelection, documentName, EMISSIVE, EMISSIVE_DIFFUSE, SketcherExample::f, highlightMode, NOTSELECTED, objectName, OFF, ON, SEL_OFF, SEL_ON, SELECTED, selected, selectionMode, style, and subElementName.
SoFCSelection::~SoFCSelection | ( | ) | [protected, virtual] |
Destructor.
Definition at line 119 of file SoFCSelection.cpp.
void SoFCSelection::doAction | ( | SoAction * | action | ) | [virtual] |
Definition at line 152 of file SoFCSelection.cpp.
References Gui::SelectionChanges::AddSelection, AUTO, Gui::SelectionChanges::ClrSelection, colorHighlight, colorSelection, Gui::SoFCDocumentObjectAction::componentName, Gui::SoFCDocumentObjectAction::documentName, Gui::SoFCDocumentAction::documentName, documentName, Gui::SoFCEnableHighlightAction::highlight, Gui::SoFCHighlightColorAction::highlightColor, highlightMode, Gui::SelectionSingleton::isSelected(), NOTSELECTED, objectName, Gui::SoFCDocumentObjectAction::objectName, OFF, Gui::SelectionChanges::pDocName, Gui::SelectionChanges::pObjectName, Gui::SelectionChanges::pSubName, Gui::SelectionChanges::RmvSelection, SEL_OFF, SEL_ON, Gui::SoFCSelectionAction::SelChange, SELECTED, selected, Gui::Selection(), Gui::SoFCEnableSelectionAction::selection, Gui::SoFCSelectionColorAction::selectionColor, selectionMode, Gui::SoFCDocumentObjectAction::setHandled(), Gui::SelectionChanges::SetSelection, subElementName, and Gui::SelectionChanges::Type.
void SoFCSelection::finish | ( | void | ) | [static] |
Definition at line 138 of file SoFCSelection.cpp.
void SoFCSelection::GLRender | ( | SoGLRenderAction * | action | ) | [virtual] |
Definition at line 653 of file SoFCSelection.cpp.
void SoFCSelection::GLRenderBelowPath | ( | SoGLRenderAction * | action | ) | [virtual] |
Definition at line 622 of file SoFCSelection.cpp.
References AUTO, highlightMode, ON, SELECTED, and selected.
void SoFCSelection::GLRenderInPath | ( | SoGLRenderAction * | action | ) | [virtual] |
Definition at line 660 of file SoFCSelection.cpp.
References AUTO, highlightMode, ON, SELECTED, and selected.
void SoFCSelection::handleEvent | ( | SoHandleEventAction * | action | ) | [virtual] |
Definition at line 310 of file SoFCSelection.cpp.
References Gui::SelectionSingleton::addSelection(), AUTO, Gui::SelectionSingleton::clearSelection(), documentName, Gui::getMainWindow(), highlightMode, isHighlighted(), Gui::SelectionSingleton::isSelected(), objectName, OFF, ON, redrawHighlighted(), Gui::SelectionSingleton::rmvPreselect(), Gui::SelectionSingleton::rmvSelection(), SEL_ON, Gui::Selection(), selectionMode, Gui::SelectionSingleton::setPreselect(), Gui::SelectionSingleton::setPreselectCoord(), Gui::MainWindow::showMessage(), and subElementName.
void SoFCSelection::initClass | ( | void | ) | [static] |
Definition at line 133 of file SoFCSelection.cpp.
Referenced by Gui::SoFCDB::init().
SbBool Gui::SoFCSelection::isHighlighted | ( | void | ) | const [inline] |
Definition at line 79 of file SoFCSelection.h.
Referenced by Gui::SoBoxSelectionRenderAction::apply(), and handleEvent().
SbBool SoFCSelection::readInstance | ( | SoInput * | in, | |
unsigned short | flags | |||
) | [protected, virtual] |
Definition at line 839 of file SoFCSelection.cpp.
void SoFCSelection::redrawHighlighted | ( | SoAction * | action, | |
SbBool | doHighlight | |||
) | [protected, virtual] |
Empty method in Coin. Can be used by subclasses to be told when status change.
Definition at line 748 of file SoFCSelection.cpp.
References AUTO, Gui::SoGLRenderActionElement::get(), Gui::SoGLWidgetElement::get(), and highlightMode.
Referenced by handleEvent().
void SoFCSelection::turnOffCurrentHighlight | ( | SoGLRenderAction * | action | ) | [static] |
Static method that can be used to turn off the current highlight.
Definition at line 147 of file SoFCSelection.cpp.
SoSFColor Gui::SoFCSelection::colorHighlight |
Definition at line 81 of file SoFCSelection.h.
Referenced by Gui::SoBoxSelectionRenderAction::apply(), Gui::ViewProviderGeometryObject::createFromSettings(), doAction(), and SoFCSelection().
SoSFColor Gui::SoFCSelection::colorSelection |
Definition at line 82 of file SoFCSelection.h.
Referenced by Gui::SoBoxSelectionRenderAction::apply(), Gui::ViewProviderGeometryObject::createFromSettings(), doAction(), and SoFCSelection().
SoSFString Gui::SoFCSelection::documentName |
Definition at line 88 of file SoFCSelection.h.
Referenced by Gui::ViewProviderVRMLObject::attach(), RobotGui::ViewProviderTrajectory::attach(), RobotGui::ViewProviderRobotObject::attach(), Gui::ViewProviderMeasureDistance::attach(), Gui::ViewProviderGeometryObject::attach(), Gui::ViewProviderAnnotation::attach(), PartGui::ViewProviderPartBase::computeEdges(), PartGui::ViewProviderPartBase::computeFaces(), PartGui::ViewProviderPartBase::computeVertices(), doAction(), handleEvent(), SoFCSelection(), and Gui::View3DInventorViewer::viewSelection().
SoSFEnum Gui::SoFCSelection::highlightMode |
Definition at line 85 of file SoFCSelection.h.
Referenced by Gui::ViewProviderGeometryObject::createFromSettings(), doAction(), GLRenderBelowPath(), GLRenderInPath(), handleEvent(), redrawHighlighted(), Gui::ViewProviderGeometryObject::setSelectable(), and SoFCSelection().
SoSFString Gui::SoFCSelection::objectName |
Definition at line 89 of file SoFCSelection.h.
Referenced by Gui::ViewProviderVRMLObject::attach(), RobotGui::ViewProviderTrajectory::attach(), RobotGui::ViewProviderRobotObject::attach(), Gui::ViewProviderMeasureDistance::attach(), Gui::ViewProviderGeometryObject::attach(), Gui::ViewProviderAnnotation::attach(), PartGui::ViewProviderPartBase::computeEdges(), PartGui::ViewProviderPartBase::computeFaces(), PartGui::ViewProviderPartBase::computeVertices(), doAction(), handleEvent(), SoFCSelection(), and Gui::View3DInventorViewer::viewSelection().
SoSFEnum Gui::SoFCSelection::selected |
Definition at line 84 of file SoFCSelection.h.
Referenced by Gui::SoBoxSelectionRenderAction::apply(), doAction(), GLRenderBelowPath(), GLRenderInPath(), Gui::ViewProviderGeometryObject::setSelectable(), and SoFCSelection().
SoSFEnum Gui::SoFCSelection::selectionMode |
Definition at line 86 of file SoFCSelection.h.
Referenced by Gui::ViewProviderGeometryObject::createFromSettings(), doAction(), handleEvent(), Gui::ViewProviderGeometryObject::setSelectable(), SoFCSelection(), and Gui::ViewProviderGeometryObject::ViewProviderGeometryObject().
SoSFEnum Gui::SoFCSelection::style |
Definition at line 83 of file SoFCSelection.h.
Referenced by Gui::SoBoxSelectionRenderAction::apply(), PartGui::ViewProviderPartBase::computeEdges(), PartGui::ViewProviderPartBase::computeFaces(), PartGui::ViewProviderPartBase::computeVertices(), and SoFCSelection().
SoSFString Gui::SoFCSelection::subElementName |
Definition at line 90 of file SoFCSelection.h.
Referenced by Gui::ViewProviderVRMLObject::attach(), RobotGui::ViewProviderTrajectory::attach(), RobotGui::ViewProviderRobotObject::attach(), Gui::ViewProviderMeasureDistance::attach(), Gui::ViewProviderGeometryObject::attach(), Gui::ViewProviderAnnotation::attach(), PartGui::ViewProviderPartBase::computeEdges(), PartGui::ViewProviderPartBase::computeFaces(), PartGui::ViewProviderPartBase::computeVertices(), doAction(), handleEvent(), and SoFCSelection().