From 78d9b8daf6bba9b94002240a41da6201ccbf847f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Joan=20Sol=C3=A0?= <jsola@iri.upc.edu>
Date: Thu, 23 Jun 2022 10:02:46 +0200
Subject: [PATCH] Add setTransformable() and variants

---
 include/core/state_block/state_block.h | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/include/core/state_block/state_block.h b/include/core/state_block/state_block.h
index 2572cc9b6..3cbced5e7 100644
--- a/include/core/state_block/state_block.h
+++ b/include/core/state_block/state_block.h
@@ -182,9 +182,13 @@ public:
 
         bool isTransformable() const {
             return transformable_;
-        };  
+        }
 
-        virtual void transform(const VectorComposite& _transformation) { };
+        void setTransformable(bool _trf = true) {transformable_ = _trf;}
+
+        void setNonTransformable() {transformable_ = false;}
+
+        virtual void transform(const VectorComposite& _transformation) {};
 
         void plus(const Eigen::VectorXd& _dv);
 
-- 
GitLab