Fem: Apply clang-format
This commit is contained in:
@@ -32,28 +32,34 @@ using namespace Fem;
|
||||
|
||||
PROPERTY_SOURCE(Fem::ConstraintTemperature, Fem::Constraint)
|
||||
|
||||
static const char* ConstraintTypes[] = {"CFlux","Temperature", nullptr};
|
||||
static const char* ConstraintTypes[] = {"CFlux", "Temperature", nullptr};
|
||||
|
||||
ConstraintTemperature::ConstraintTemperature()
|
||||
{
|
||||
ADD_PROPERTY(Temperature, (300.0));
|
||||
ADD_PROPERTY(CFlux, (0.0));
|
||||
ADD_PROPERTY_TYPE(ConstraintType, (1), "ConstraintTemperature",
|
||||
ADD_PROPERTY_TYPE(ConstraintType,
|
||||
(1),
|
||||
"ConstraintTemperature",
|
||||
(App::PropertyType)(App::Prop_None),
|
||||
"Type of constraint, temperature or concentrated heat flux");
|
||||
ConstraintType.setEnums(ConstraintTypes);
|
||||
|
||||
ADD_PROPERTY_TYPE(Points, (Base::Vector3d()), "ConstraintTemperature",
|
||||
ADD_PROPERTY_TYPE(Points,
|
||||
(Base::Vector3d()),
|
||||
"ConstraintTemperature",
|
||||
App::PropertyType(App::Prop_ReadOnly | App::Prop_Output),
|
||||
"Points where symbols are drawn");
|
||||
ADD_PROPERTY_TYPE(Normals, (Base::Vector3d()), "ConstraintTemperature",
|
||||
ADD_PROPERTY_TYPE(Normals,
|
||||
(Base::Vector3d()),
|
||||
"ConstraintTemperature",
|
||||
App::PropertyType(App::Prop_ReadOnly | App::Prop_Output),
|
||||
"Normals where symbols are drawn");
|
||||
Points.setValues(std::vector<Base::Vector3d>());
|
||||
Normals.setValues(std::vector<Base::Vector3d>());
|
||||
}
|
||||
|
||||
App::DocumentObjectExecReturn *ConstraintTemperature::execute()
|
||||
App::DocumentObjectExecReturn* ConstraintTemperature::execute()
|
||||
{
|
||||
return Constraint::execute();
|
||||
}
|
||||
@@ -63,7 +69,8 @@ const char* ConstraintTemperature::getViewProviderName() const
|
||||
return "FemGui::ViewProviderFemConstraintTemperature";
|
||||
}
|
||||
|
||||
void ConstraintTemperature::handleChangedPropertyType(Base::XMLReader& reader, const char* TypeName,
|
||||
void ConstraintTemperature::handleChangedPropertyType(Base::XMLReader& reader,
|
||||
const char* TypeName,
|
||||
App::Property* prop)
|
||||
{
|
||||
// property Temperature had App::PropertyFloat and was changed to App::PropertyTemperature
|
||||
@@ -90,12 +97,12 @@ void ConstraintTemperature::onChanged(const App::Property* prop)
|
||||
if (prop == &References) {
|
||||
std::vector<Base::Vector3d> points;
|
||||
std::vector<Base::Vector3d> normals;
|
||||
int scale = 1; //OvG: Enforce use of scale
|
||||
int scale = 1; // OvG: Enforce use of scale
|
||||
if (getPoints(points, normals, &scale)) {
|
||||
Points.setValues(points);
|
||||
Normals.setValues(normals);
|
||||
Scale.setValue(scale); //OvG: Scale
|
||||
Points.touch(); // This triggers ViewProvider::updateData()
|
||||
Scale.setValue(scale); // OvG: Scale
|
||||
Points.touch(); // This triggers ViewProvider::updateData()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user