Fem: Constraint symbol scaling (#13274)
* Fem: Constraint symbols rescaling * Fem: Add constraint symbol .iv files * Fem: Fix contact constraint symbol rescaling * Fem: Fix displacement constraint symbol rescaling * Fem: Fix fixed constraint symbol rescaling * Fem: Fix force constraint symbol rescaling * Fem: Fix heat flux constraint symbol rescaling * Fem: Fix plane rotation constraint symbol rescaling * Fem: Fix pressure constraint symbol rescaling * Fem: Fix spring constraint symbol rescaling * Fem: Fix temperature constraint symbol rescaling * Fem: Add tie constraint symbol
This commit is contained in:
@@ -43,23 +43,68 @@ std::string ViewProviderFemConstraintPy::representation() const
|
||||
return str.str();
|
||||
}
|
||||
|
||||
PyObject* ViewProviderFemConstraintPy::loadSymbol(PyObject* args)
|
||||
{
|
||||
const char* name;
|
||||
if (!PyArg_ParseTuple(args, "s", &name)) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
getViewProviderFemConstraintPtr()->loadSymbol(name);
|
||||
|
||||
Py_Return;
|
||||
}
|
||||
|
||||
Py::Object ViewProviderFemConstraintPy::getSymbolNode() const
|
||||
{
|
||||
try {
|
||||
SoSeparator* sep = getViewProviderFemConstraintPtr()->getSymbolSeparator();
|
||||
PyObject* Ptr =
|
||||
Base::Interpreter().createSWIGPointerObj("pivy.coin", "_p_SoSeparator", sep, 1);
|
||||
if (sep) {
|
||||
PyObject* Ptr =
|
||||
Base::Interpreter().createSWIGPointerObj("pivy.coin", "_p_SoSeparator", sep, 1);
|
||||
sep->ref();
|
||||
|
||||
sep->ref();
|
||||
|
||||
return Py::Object(Ptr, true);
|
||||
return Py::Object(Ptr, true);
|
||||
}
|
||||
else {
|
||||
return Py::None();
|
||||
}
|
||||
}
|
||||
catch (const Base::Exception& e) {
|
||||
throw Py::RuntimeError(e.what());
|
||||
}
|
||||
}
|
||||
|
||||
Py::Object ViewProviderFemConstraintPy::getExtraSymbolNode() const
|
||||
{
|
||||
try {
|
||||
SoSeparator* sep = getViewProviderFemConstraintPtr()->getExtraSymbolSeparator();
|
||||
if (sep) {
|
||||
PyObject* Ptr =
|
||||
Base::Interpreter().createSWIGPointerObj("pivy.coin", "_p_SoSeparator", sep, 1);
|
||||
sep->ref();
|
||||
|
||||
return Py::Object(Ptr, true);
|
||||
}
|
||||
else {
|
||||
return Py::None();
|
||||
}
|
||||
}
|
||||
catch (const Base::Exception& e) {
|
||||
throw Py::RuntimeError(e.what());
|
||||
}
|
||||
}
|
||||
|
||||
Py::Boolean ViewProviderFemConstraintPy::getRotateSymbol() const
|
||||
{
|
||||
return Py::Boolean(getViewProviderFemConstraintPtr()->getRotateSymbol());
|
||||
}
|
||||
|
||||
void ViewProviderFemConstraintPy::setRotateSymbol(Py::Boolean arg)
|
||||
{
|
||||
getViewProviderFemConstraintPtr()->setRotateSymbol((arg));
|
||||
}
|
||||
|
||||
PyObject* ViewProviderFemConstraintPy::getCustomAttributes(const char* /*attr*/) const
|
||||
{
|
||||
return nullptr;
|
||||
|
||||
Reference in New Issue
Block a user