Image Component Library (ICL)
FoldMap (copy).h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <ICLCore/Img.h>
4 
5 namespace icl{
6 
7 
9 
21  class FoldMap{
23  float initialValue;
24  void draw_fold(const utils::Point32f &a, const utils::Point32f &b, float val);
25 
26  public:
27  FoldMap(const utils::Size &resolution=utils::Size(200,300),float intialValue=1);
28 
29  void clear();
30 
32  void addFold(const utils::Point32f &a, const utils::Point32f &b, float value);
33 
35  void removeFold(const utils::Point32f &a, const utils::Point32f &b);
36 
38 
43  float getFoldValue(const utils::Point32f &a, const utils::Point32f &b);
44 
46  const core::Img32f &getImage() const { return m; }
47  };
48 }
void draw_fold(const utils::Point32f &a, const utils::Point32f &b, float val)
undocument this line if you encounter any issues!
Definition: Any.h:37
core::Img32f m
Definition: FoldMap (copy).h:22
void addFold(const utils::Point32f &a, const utils::Point32f &b, float value)
memorized folds are nagative
const core::Img32f & getImage() const
current fold map
Definition: FoldMap (copy).h:46
discretized paper space representing folds
Definition: FoldMap (copy).h:21
Size class of the ICL.
Definition: Size.h:61
float getFoldValue(const utils::Point32f &a, const utils::Point32f &b)
return a value that can be used as fold stiffness
Single precission 3D Vectors Point class of the ICL.
Definition: Point32f.h:41
float initialValue
Definition: FoldMap (copy).h:23
FoldMap(const utils::Size &resolution=utils::Size(200, 300), float intialValue=1)
void removeFold(const utils::Point32f &a, const utils::Point32f &b)
sets fold pixels to 1