diff --git a/include/hpp/manipulation/graph/edge.hh b/include/hpp/manipulation/graph/edge.hh index d69dcd0277768470588eb0de89eb74b6fa1c90c2..c00f49ad65ed11f17dc5fa43841c652e6eaf98b9 100644 --- a/include/hpp/manipulation/graph/edge.hh +++ b/include/hpp/manipulation/graph/edge.hh @@ -532,7 +532,8 @@ namespace hpp { /// The condition constraints should therefore be the constraints of /// the target state of the level set edge. /// - /// \sa LevelSetEdge::insertConditionConstraint + /// \sa LevelSetEdge::conditionConstraints + /// LevelSetEdge::insertConditionConstraint LeafHistogramPtr_t histogram () const; /// \name Foliation definition @@ -545,11 +546,17 @@ namespace hpp { void insertParamConstraint (const ImplicitPtr_t& nm, const segments_t& passiveDofs = segments_t ()); + /// Get constraints parameterizing the target state foliation + const NumericalConstraints_t& paramConstraints() const; + /// Insert a condition constraint /// \sa LevelSetEdge::histogram void insertConditionConstraint (const ImplicitPtr_t& nm, const segments_t& passiveDofs = segments_t ()); + /// Get constraints parameterizing the target state foliation + /// \sa LevelSetEdge::histogram + const NumericalConstraints_t& conditionConstraints() const; /// \} /// Print the object in a stream. diff --git a/src/graph/edge.cc b/src/graph/edge.cc index d59e75beec7b5ce73284aefe3855f09e099cc858..45b90fcaa5fba5fe4e3f7ad5752401c76483a6b3 100644 --- a/src/graph/edge.cc +++ b/src/graph/edge.cc @@ -822,6 +822,11 @@ namespace hpp { paramPassiveDofs_.push_back (passiveDofs); } + const NumericalConstraints_t& LevelSetEdge::paramConstraints() const + { + return paramNumericalConstraints_; + } + void LevelSetEdge::insertConditionConstraint (const constraints::ImplicitPtr_t& nm, const segments_t& passiveDofs) @@ -831,6 +836,11 @@ namespace hpp { condPassiveDofs_.push_back (passiveDofs); } + const NumericalConstraints_t& LevelSetEdge::conditionConstraints() const + { + return condNumericalConstraints_; + } + LevelSetEdge::LevelSetEdge (const std::string& name) : Edge (name)