Skip to content

Commit

Permalink
add quantity property to FeatureTest with kg/m^3
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Jul 17, 2016
1 parent 7544444 commit c5316d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/App/FeatureTest.cpp
Expand Up @@ -107,6 +107,8 @@ FeatureTest::FeatureTest()

ADD_PROPERTY(QuantityLength,(1.0));
QuantityLength.setUnit(Base::Unit::Length);
ADD_PROPERTY(QuantityOther,(5.0));
QuantityOther.setUnit(Base::Unit(-3,1));
//ADD_PROPERTY(QuantityMass,(1.0));
//QuantityMass.setUnit(Base::Unit::Mass);
//ADD_PROPERTY(QuantityAngle,(1.0));
Expand Down
1 change: 1 addition & 0 deletions src/App/FeatureTest.h
Expand Up @@ -98,6 +98,7 @@ class FeatureTest : public DocumentObject
App::PropertyInteger TypeTransient;

App::PropertyQuantity QuantityLength;
App::PropertyQuantity QuantityOther;
//App::PropertyQuantity QuantityMass;
//App::PropertyQuantity QuantityAngle;

Expand Down

0 comments on commit c5316d3

Please sign in to comment.