Transport the changes of the Selection This class transports closer information what was changed in the selection. More...
#include <Selection.h>
Public Types | |
enum | MsgType { AddSelection, RmvSelection, SetSelection, ClrSelection, SetPreselect, RmvPreselect, SetPreselectSignal, PickedListChanged, ShowSelection, HideSelection, RmvPreselectSignal, MovePreselect } |
Public Member Functions | |
SelectionChanges & | operator= (const SelectionChanges &other) |
SelectionChanges & | operator= (SelectionChanges &&other) |
SelectionChanges (const SelectionChanges &other) | |
SelectionChanges (MsgType type, const std::string &docName, const std::string &objName, const std::string &subName, const std::string &typeName=std::string(), float x=0, float y=0, float z=0, int subtype=0) | |
SelectionChanges (MsgType type=ClrSelection, const char *docName=0, const char *objName=0, const char *subName=0, const char *typeName=0, float x=0, float y=0, float z=0, int subtype=0) | |
SelectionChanges (SelectionChanges &&other) | |
Public Attributes | |
App::SubObjectT | Object |
const char * | pDocName |
const char * | pObjectName |
const SelectionChanges * | pOriginalMsg = 0 |
const char * | pSubName |
const char * | pTypeName |
int | SubType |
MsgType | Type |
std::string | TypeName |
float | x |
float | y |
float | z |
Detailed Description
Transport the changes of the Selection This class transports closer information what was changed in the selection.
It's an optional information and not all commands set this information. If not set all observer of the selection assume a full change and update everything (e.g 3D view). This is not a very good idea if, e.g. only a small parameter has changed. Therefore one can use this class and make the update of the document much faster!
- See also
- Base::Observer
Member Enumeration Documentation
◆ MsgType
Constructor & Destructor Documentation
◆ SelectionChanges() [1/4]
Gui::SelectionChanges::SelectionChanges | ( | MsgType | type = ClrSelection , |
const char * | docName = 0 , |
||
const char * | objName = 0 , |
||
const char * | subName = 0 , |
||
const char * | typeName = 0 , |
||
float | x = 0 , |
||
float | y = 0 , |
||
float | z = 0 , |
||
int | subtype = 0 |
||
) |
◆ SelectionChanges() [2/4]
Gui::SelectionChanges::SelectionChanges | ( | MsgType | type, |
const std::string & | docName, | ||
const std::string & | objName, | ||
const std::string & | subName, | ||
const std::string & | typeName = std::string() , |
||
float | x = 0 , |
||
float | y = 0 , |
||
float | z = 0 , |
||
int | subtype = 0 |
||
) |
◆ SelectionChanges() [3/4]
Gui::SelectionChanges::SelectionChanges | ( | const SelectionChanges & | other | ) |
◆ SelectionChanges() [4/4]
Gui::SelectionChanges::SelectionChanges | ( | SelectionChanges && | other | ) |
Member Function Documentation
◆ operator=() [1/2]
SelectionChanges& Gui::SelectionChanges::operator= | ( | const SelectionChanges & | other | ) |
◆ operator=() [2/2]
SelectionChanges& Gui::SelectionChanges::operator= | ( | SelectionChanges && | other | ) |
References Type.
Member Data Documentation
◆ Object
App::SubObjectT Gui::SelectionChanges::Object |
Referenced by DraftLayer.ViewProviderLayer::activate(), ArchPanel.CommandPanelSheet::Activated(), draftviewproviders.view_draftlink.ViewProviderDraftLink::attach(), OpenSCADFeatures.ViewProviderTree::attach(), PathScripts.PathCopy.ViewProviderPathCopy::attach(), PathScripts.PathHop.ViewProviderPathHop::attach(), PathScripts.PathOpGui.ViewProvider::attach(), draftviewproviders.view_base.ViewProviderDraft::attach(), PathScripts.PathArray.ViewProviderArray::attach(), draftviewproviders.view_dimension.ViewProviderLinearDimension::attach(), PathScripts.PathDressupDragknife.ViewProviderDressup::attach(), draftviewproviders.view_dimension.ViewProviderAngularDimension::attach(), ArchSite.Compass::buildCoordinates(), ArchReference.ViewProviderArchReference::checkChanges(), draftviewproviders.view_draftlink.ViewProviderDraftLink::claimChildren(), femviewprovider.view_result_mechanical.VPResultMechanical::claimChildren(), OpenSCADFeatures.ViewProviderTree::claimChildren(), draftviewproviders.view_draft_annotation.ViewProviderDraftAnnotation::claimChildren(), BOPTools.SplitFeatures.ViewProviderBooleanFragments::claimChildren(), draftviewproviders.view_wire.ViewProviderWire::claimChildren(), BOPTools.JoinFeatures.ViewProviderConnect::claimChildren(), femviewprovider.view_mesh_gmsh.VPMeshGmsh::claimChildren(), DraftLayer.ViewProviderLayer::claimChildren(), PathScripts.PathArray.ViewProviderArray::claimChildren(), BOPTools.SplitFeatures.ViewProviderSlice::claimChildren(), BOPTools.JoinFeatures.ViewProviderEmbed::claimChildren(), BOPTools.JoinFeatures.ViewProviderCutout::claimChildren(), BOPTools.SplitFeatures.ViewProviderXOR::claimChildren(), PathScripts.PathDressupDragknife.ViewProviderDressup::claimChildren(), draftviewproviders.view_base.ViewProviderDraft::claimChildren(), Spreadsheet_legacy.ViewProviderSpreadsheet::claimChildren(), ArchComponent.ViewProviderComponent::claimChildren(), PathScripts.PathOpGui.ViewProvider::clearTaskPanel(), ArchBuildingPart.ViewProviderBuildingPart::cloneUp(), ArchStructure.StructureTaskPanel::connectNodes(), ArchBuildingPart.ViewProviderBuildingPart::createGroup(), femviewprovider.view_mesh_gmsh.VPMeshGmsh::doubleClicked(), BOPTools.SplitFeatures.ViewProviderBooleanFragments::dragObject(), BOPTools.JoinFeatures.ViewProviderConnect::dragObject(), femviewprovider.view_mesh_gmsh.VPMeshGmsh::dragObject(), BOPTools.SplitFeatures.ViewProviderXOR::dragObject(), BOPTools.SplitFeatures.ViewProviderBooleanFragments::dropObject(), BOPTools.JoinFeatures.ViewProviderConnect::dropObject(), femviewprovider.view_mesh_gmsh.VPMeshGmsh::dropObject(), BOPTools.SplitFeatures.ViewProviderXOR::dropObject(), ArchStructure.StructureTaskPanel::extendNodes(), draftviewproviders.view_wire.ViewProviderWire::flatten(), Mod.Show.Containers.Container::getCSChildren(), Mod.Show.Containers.Container::getDynamicChildren(), draftviewproviders.view_array.ViewProviderDraftArray::getIcon(), femviewprovider.view_material_common.VPMaterialCommon::getIcon(), draftviewproviders.view_draftlink.ViewProviderDraftLink::getIcon(), femviewprovider.view_base_femobject.VPBaseFemObject::getIcon(), OpenSCADFeatures.ViewProviderTree::getIcon(), PathScripts.PathOpGui.ViewProvider::getIcon(), draftviewproviders.view_dimension.ViewProviderDimensionBase::getIcon(), draftviewproviders.view_base.ViewProviderDraft::getIcon(), ArchBuildingPart.ViewProviderBuildingPart::getIcon(), ArchComponent.ViewProviderComponent::getIcon(), Mod.Show.Containers.Container::getStaticChildren(), Mod.Show.Containers.Container::getVisGroupChildren(), Mod.Show.Containers.Container::hasObjectRecursive(), Gui::SelectionSingleton::hasPreselection(), draftviewproviders.view_dimension.ViewProviderLinearDimension::is_linked_to_circle(), Mod.Show.Containers.Container::isACS(), ArchSchedule.CommandArchSchedule::IsActive(), Mod.Show.Containers.Container::isAVisGroup(), Mod.Show.Containers.Container::isChildVisible(), DraftLayer.ViewProviderLayerContainer::mergeByName(), Gui::SelectionSingleton::notify(), draftviewproviders.view_base.ViewProviderDraft::onChanged(), BOPTools.JoinFeatures.ViewProviderEmbed::onDelete(), BOPTools.JoinFeatures.ViewProviderCutout::onDelete(), ArchReference.ViewProviderArchReference::onOpen(), ArchReference.ViewProviderArchReference::onReload(), operator=(), ArchBuildingPart.ViewProviderBuildingPart::reorder(), ArchStructure.StructureTaskPanel::resetNodes(), DraftLayer.ViewProviderLayer::selectcontents(), Mod.Show.Containers.Container::self_check(), draftviewproviders.view_label.ViewProviderLabel::set_properties(), ArchComponent.ViewProviderComponent::setDisplayMode(), Mod.PartDesign.SprocketFeature.ViewProviderSprocket::setEdit(), ArchComponent.ViewProviderComponent::setEdit(), Gui::SelectionSingleton::setPreselectCoord(), PathScripts.PathOpGui.ViewProvider::setupTaskPanel(), ArchBuildingPart.ViewProviderBuildingPart::setWorkingPlane(), Gui::SelectionSingleton::slotSelectionChanged(), femviewprovider.view_result_mechanical.VPResultMechanical::unsetEdit(), draftviewproviders.view_wpproxy.ViewProviderWorkingPlaneProxy::writeCamera(), ArchBuildingPart.ViewProviderBuildingPart::writeCamera(), ArchBuildingPart.ViewProviderBuildingPart::writeInventor(), and draftviewproviders.view_wpproxy.ViewProviderWorkingPlaneProxy::writeState().
◆ pDocName
const char* Gui::SelectionChanges::pDocName |
Referenced by Gui::SelectionSingleton::addSelection(), Gui::SelectionSingleton::addSelections(), Gui::View3DInventorViewer::checkGroupOnTop(), Gui::SoFCUnifiedSelection::doAction(), Gui::SoFCSelection::doAction(), Gui::SelectionSingleton::setPreselectCoord(), and Gui::SelectionSingleton::updateSelection().
◆ pObjectName
const char* Gui::SelectionChanges::pObjectName |
Referenced by Gui::SelectionSingleton::addSelection(), Gui::SelectionSingleton::addSelections(), Gui::View3DInventorViewer::checkGroupOnTop(), Gui::SoFCUnifiedSelection::doAction(), Gui::SoFCSelection::doAction(), Gui::SelectionSingleton::setPreselectCoord(), and Gui::SelectionSingleton::updateSelection().
◆ pOriginalMsg
const SelectionChanges* Gui::SelectionChanges::pOriginalMsg = 0 |
Referenced by operator=(), and Gui::SelectionSingleton::slotSelectionChanged().
◆ pSubName
const char* Gui::SelectionChanges::pSubName |
Referenced by Gui::SelectionSingleton::addSelection(), Gui::SelectionSingleton::addSelections(), Gui::View3DInventorViewer::checkGroupOnTop(), Gui::SoFCUnifiedSelection::doAction(), Gui::SoFCSelection::doAction(), Gui::SelectionSingleton::setPreselectCoord(), Gui::SelectionSingleton::slotSelectionChanged(), and Gui::SelectionSingleton::updateSelection().
◆ pTypeName
const char* Gui::SelectionChanges::pTypeName |
◆ SubType
int Gui::SelectionChanges::SubType |
Referenced by operator=().
◆ Type
MsgType Gui::SelectionChanges::Type |
Referenced by ArchPanel.CommandPanelSheet::Activated(), ArchStructure.StructSelectionObserver::addSelection(), ArchSite.Compass::buildCoordinates(), Gui::View3DInventorViewer::checkGroupOnTop(), Gui::Dialog::DefaultTransformStrategy::DefaultTransformStrategy(), Gui::SoFCUnifiedSelection::doAction(), Gui::SoFCSelection::doAction(), ArchComponent.Component::execute(), DraftLayer.LayerContainer::execute(), ArchSchedule.CommandArchSchedule::IsActive(), ArchAxis.CommandArchGrid::IsActive(), Gui::SelectionSingleton::notify(), draftobjects.draft_annotation.DraftAnnotation::onDocumentRestored(), operator=(), Gui::SelectionSingleton::setPreselect(), ArchReference.ArchReference::setProperties(), and DraftLayer.Layer::setProperties().
◆ TypeName
std::string Gui::SelectionChanges::TypeName |
Referenced by operator=().
◆ x
float Gui::SelectionChanges::x |
Referenced by Mod.PartDesign.Scripts.FilletArc.Vector::add(), DraftGui.DraftToolBar::changeAngleValue(), DraftGui.DraftToolBar::changeXValue(), importSVG.svgHandler::characters(), DraftGui.DraftToolBar::checkSpecialChars(), PathScripts.PathInspect.GCodeEditorDialog::cleanup(), Mod.PartDesign.Scripts.FilletArc.Vector::cross(), Gui::SoFCUnifiedSelection::doAction(), PathScripts.PostUtils.GCodeEditorDialog::done(), Mod.PartDesign.Scripts.FilletArc.Vector::dot(), Mod.PartDesign.Scripts.FilletArc.Vector::length(), Mod.PartDesign.Scripts.FilletArc.Vector::mult(), Mod.PartDesign.Scripts.FilletArc.Vector::norm(), operator=(), PathScripts.PathDressupHoldingTags.Tag::originAt(), DraftGui.DraftToolBar::pointUi(), Gui::SelectionSingleton::setPreselectCoord(), Mod.PartDesign.Scripts.FilletArc.Vector::sub(), DraftGui.DraftToolBar::taskUi(), DraftGui.DraftToolBar::updateSnapper(), DraftGui.DraftToolBar::validatePoint(), and automotive_design.right_angular_wedge::wr1().
◆ y
float Gui::SelectionChanges::y |
Referenced by Mod.PartDesign.Scripts.FilletArc.Vector::add(), DraftGui.DraftToolBar::changeAngleValue(), DraftGui.DraftToolBar::changeYValue(), importSVG.svgHandler::characters(), DraftGui.DraftToolBar::checkSpecialChars(), PathScripts.PathInspect.GCodeEditorDialog::cleanup(), Mod.PartDesign.Scripts.FilletArc.Vector::cross(), Gui::SoFCUnifiedSelection::doAction(), PathScripts.PostUtils.GCodeEditorDialog::done(), Mod.PartDesign.Scripts.FilletArc.Vector::dot(), Mod.PartDesign.Scripts.FilletArc.Vector::length(), Mod.PartDesign.Scripts.FilletArc.Vector::mult(), Mod.PartDesign.Scripts.FilletArc.Vector::norm(), operator=(), PathScripts.PathDressupHoldingTags.Tag::originAt(), DraftGui.DraftToolBar::pointUi(), Gui::SelectionSingleton::setPreselectCoord(), Mod.PartDesign.Scripts.FilletArc.Vector::sub(), DraftGui.DraftToolBar::taskUi(), DraftGui.DraftToolBar::updateSnapper(), and DraftGui.DraftToolBar::validatePoint().
◆ z
float Gui::SelectionChanges::z |
Referenced by Mod.PartDesign.Scripts.FilletArc.Vector::add(), automotive_design.revolved_area_solid::axis_line(), automotive_design.surface_of_revolution::axis_line(), automotive_design.revolved_face_solid::axis_line(), ifc4.ifcrevolvedareasolid::axisdirectioninxy(), ifc2x3.ifcsurfaceofrevolution::axisline(), ifc4.ifcsurfaceofrevolution::axisline(), ifc2x3.ifcrevolvedareasolid::axisline(), ifc4.ifcrevolvedareasolid::axisline(), PathScripts.PathDressupHoldingTags.Tag::bottom(), DraftGui.DraftToolBar::changeAngleValue(), DraftGui.DraftToolBar::changeZValue(), DraftGui.DraftToolBar::checkSpecialChars(), PathScripts.PathDressupTag.TagSolid::cloneAt(), PathScripts.PathDressupHoldingTags.Tag::createSolidsAt(), Mod.PartDesign.Scripts.FilletArc.Vector::cross(), Gui::SoFCUnifiedSelection::doAction(), Mod.PartDesign.Scripts.FilletArc.Vector::dot(), Mod.PartDesign.Scripts.FilletArc.Vector::length(), Mod.PartDesign.Scripts.FilletArc.Vector::mult(), Mod.PartDesign.Scripts.FilletArc.Vector::norm(), operator=(), DraftGui.DraftToolBar::pointUi(), Gui::SelectionSingleton::setPreselectCoord(), importSH3D.SH3DHandler::startElement(), Mod.PartDesign.Scripts.FilletArc.Vector::sub(), DraftGui.DraftToolBar::taskUi(), PathScripts.PathDressupHoldingTags.Tag::top(), DraftGui.DraftToolBar::updateSnapper(), DraftGui.DraftToolBar::validatePoint(), and ifc2x3.ifcrevolvedareasolid::wr32().
The documentation for this class was generated from the following file:
- src/Gui/Selection.h