A Python wrapper around SelectionFilterPy to implement the SelectionGate interface.
More...
#include <SelectionFilter.h>
|
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...
|
|
A Python wrapper around SelectionFilterPy to implement the SelectionGate interface.
class SelectionGate(object):
def
allow(self, doc, obj, sub):
if not obj.isDerivedFrom("Part::Feature"):
return False
if not
str(sub).startswith("Edge"):
return False
return True
- Author
- Werner Mayer
◆ SelectionFilterGatePython()
◆ ~SelectionFilterGatePython()
SelectionFilterGatePython::~SelectionFilterGatePython |
( |
| ) |
|
|
virtual |
◆ allow()
The documentation for this class was generated from the following files:
- FreeCAD/src/Gui/SelectionFilter.h
- FreeCAD/src/Gui/SelectionFilter.cpp