FEM: Constraint view sizing and scaling of indicators for force, pressure and fixed constraints and limit on steps.
This commit is contained in:
@@ -56,6 +56,8 @@
|
||||
|
||||
#include <Base/Console.h>
|
||||
|
||||
# include <boost/lexical_cast.hpp> //OvG conversion between string and int etc.
|
||||
|
||||
using namespace FemGui;
|
||||
using namespace Gui;
|
||||
|
||||
@@ -113,6 +115,14 @@ const std::string TaskFemConstraint::getReferences(const std::vector<std::string
|
||||
return result;
|
||||
}
|
||||
|
||||
const std::string TaskFemConstraint::getScale() const //OvG: Return pre-calculated scale for constraint display
|
||||
{
|
||||
std::string result;
|
||||
Fem::Constraint* pcConstraint = static_cast<Fem::Constraint*>(ConstraintView->getObject());
|
||||
result = boost::lexical_cast<std::string>(pcConstraint->Scale.getValue());
|
||||
return result;
|
||||
}
|
||||
|
||||
void TaskFemConstraint::onReferenceDeleted(const int row) {
|
||||
Fem::Constraint* pcConstraint = static_cast<Fem::Constraint*>(ConstraintView->getObject());
|
||||
std::vector<App::DocumentObject*> Objects = pcConstraint->References.getValues();
|
||||
|
||||
Reference in New Issue
Block a user