SketcherGui::GenericConstraintSelection Class Reference

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
SelectionFilterFilter
 

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 SelectionFilternullPointer ()
 
static const char * nullString ()
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ GenericConstraintSelection()

SketcherGui::GenericConstraintSelection::GenericConstraintSelection ( App::DocumentObject obj)

Member Function Documentation

◆ allow()

◆ setAllowedSelTypes()

void SketcherGui::GenericConstraintSelection::setAllowedSelTypes ( unsigned int  types)

Member Data Documentation

◆ allowedSelTypes

int SketcherGui::GenericConstraintSelection::allowedSelTypes
protected

Referenced by allow(), and setAllowedSelTypes().


The documentation for this class was generated from the following file: