remove unneeded display modes from viewprovider
This commit is contained in:
parent
9a50535a4b
commit
3dafb038b2
|
@ -103,6 +103,21 @@ void ViewProviderConstraintInternal::switch_node(bool onoff)
|
||||||
pcModeSwitch->whichChild = -1;
|
pcModeSwitch->whichChild = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ViewProviderConstraint::setDisplayMode(const char* ModeName)
|
||||||
|
{
|
||||||
|
setDisplayMaskMode("Flat Lines");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<std::string> ViewProviderConstraint::getDisplayModes(void) const
|
||||||
|
{
|
||||||
|
std::vector<std::string> StrList;
|
||||||
|
|
||||||
|
// add your own mode
|
||||||
|
StrList.push_back("Flat Lines");
|
||||||
|
return StrList;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
PROPERTY_SOURCE(AssemblyGui::ViewProviderConstraint, PartGui::ViewProviderPart)
|
PROPERTY_SOURCE(AssemblyGui::ViewProviderConstraint, PartGui::ViewProviderPart)
|
||||||
|
|
||||||
|
|
|
@ -87,6 +87,10 @@ public:
|
||||||
//avoid unneeded context menu entrys
|
//avoid unneeded context menu entrys
|
||||||
virtual void setupContextMenu(QMenu* menu, QObject* receiver, const char* member);
|
virtual void setupContextMenu(QMenu* menu, QObject* receiver, const char* member);
|
||||||
|
|
||||||
|
//only flat lines supported
|
||||||
|
virtual void setDisplayMode(const char* ModeName);
|
||||||
|
virtual std::vector<std::string> getDisplayModes(void) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
//we need two seperate visual representations, as both constraint parts have different
|
//we need two seperate visual representations, as both constraint parts have different
|
||||||
//placements.
|
//placements.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user