Skip to content

Commit

Permalink
App: properties, add vacuum permittivity
Browse files Browse the repository at this point in the history
  • Loading branch information
berndhahnebach committed Jun 29, 2020
1 parent a0a4fdb commit fe93f60
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/App/Application.cpp
Expand Up @@ -1701,6 +1701,7 @@ void Application::initTypes(void)
App ::PropertyAcceleration ::init();
App ::PropertyForce ::init();
App ::PropertyPressure ::init();
App ::PropertyVacuumPermittivity::init();
App ::PropertyInteger ::init();
App ::PropertyIntegerConstraint ::init();
App ::PropertyPercent ::init();
Expand Down
11 changes: 11 additions & 0 deletions src/App/PropertyUnits.cpp
Expand Up @@ -330,3 +330,14 @@ PropertyForce::PropertyForce()
setUnit(Base::Unit::Force);
}

//**************************************************************************
//**************************************************************************
// PropertyVacuumPermittivity
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

TYPESYSTEM_SOURCE(App::PropertyVacuumPermittivity, App::PropertyQuantity)

PropertyVacuumPermittivity::PropertyVacuumPermittivity()
{
setUnit(Base::Unit::VacuumPermittivity);
}
11 changes: 11 additions & 0 deletions src/App/PropertyUnits.h
Expand Up @@ -235,6 +235,17 @@ class AppExport PropertyForce: public PropertyQuantity
virtual ~PropertyForce(){}
};

/** VacuumPermittivity property
* This is a property for representing vacuum permittivity. It is basically a float
* property. On the Gui it has a quantity like s^4*A^2 / (m^3*kg).
*/
class AppExport PropertyVacuumPermittivity: public PropertyQuantity
{
TYPESYSTEM_HEADER();
public:
PropertyVacuumPermittivity(void);
virtual ~PropertyVacuumPermittivity(){}
};

} // namespace App

Expand Down

0 comments on commit fe93f60

Please sign in to comment.