The GenericConstraintSelection class SelectionFilterGate with changeable filters. More...
Public Member Functions | |
| bool | allow (App::Document *, App::DocumentObject *pObj, const char *sSubName) |
| GenericConstraintSelection (App::DocumentObject *obj) | |
| void | setAllowedSelTypes (unsigned int types) |
Public Member Functions inherited from Gui::SelectionFilterGate | |
| virtual bool | allow (App::Document *, App::DocumentObject *, const char *) |
| SelectionFilterGate (const char *filter) | |
| construct with the filter string More... | |
| SelectionFilterGate (SelectionFilter *filter) | |
| ~SelectionFilterGate () | |
Public Member Functions inherited from Gui::SelectionGate | |
| virtual bool | allow (App::Document *, App::DocumentObject *, const char *)=0 |
| virtual | ~SelectionGate () |
Protected Attributes | |
| int | allowedSelTypes |
Protected Attributes inherited from Gui::SelectionFilterGate | |
| SelectionFilter * | Filter |
Additional Inherited Members | |
Public Attributes inherited from Gui::SelectionGate | |
| std::string | notAllowedReason |
| notAllowedReason is a string that sets the message to be displayed in statusbar for cluing the user on why is the selection not allowed. More... | |
Protected Member Functions inherited from Gui::SelectionFilterGate | |
| SelectionFilterGate () | |
Static Protected Member Functions inherited from Gui::SelectionFilterGate | |
| static SelectionFilter * | nullPointer () |
| static const char * | nullString () |
The GenericConstraintSelection class SelectionFilterGate with changeable filters.
In a constraint creation mode like point on object, if the first selection object can be a point, the next has to be a curve for the constraint to make sense. Thus filters are changeable so that same filter can be kept on while in one mode.
| SketcherGui::GenericConstraintSelection::GenericConstraintSelection | ( | App::DocumentObject * | obj | ) |
|
virtual |
| void SketcherGui::GenericConstraintSelection::setAllowedSelTypes | ( | unsigned int | types | ) |
References allowedSelTypes.
Referenced by DrawSketchHandlerGenConstraint::releaseButton(), and DrawSketchHandlerGenConstraint::resetOngoingSequences().
|
protected |
Referenced by allow(), and setAllowedSelTypes().