Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
SceneCheckerboard2D.hh
1 #ifndef SCENECHECKERBOARD_HH
2 #define SCENECHECKERBOARD_HH
3 
4 #include <GLviewer/Scenes/SceneBase.hh>
5 
6 
7 namespace BIAS{
8 /**
9  * @brief The SceneCheckerBoard class allows to draw a 3D checkerboard
10  */
12 
13 public:
15  virtual void Draw();
16  void SetImageSize(int sizeX, int sizeY);
17 
18  /// Set the checkerboard corners as 2D image coordinates
19  void SetCorners(std::vector< std::vector < BIAS::Vector2< float > > > &corners);
20 
21  void SetColorBlack(const Vector3<unsigned char> &col);
22  void SetColorWhite(const Vector3<unsigned char> &col);
23  //void SetAntiAliasing(bool on);
24 
25 protected:
26  std::vector< std::vector < Vector2< float > > > corners_;
27 
30 
31  int sizeX_;
32  int sizeY_;
33  bool useAA_;
34 
35 };
36 
37 }
38 
39 #endif // SCENECHECKERBOARD_HH
void SetCorners(std::vector< std::vector< BIAS::Vector2< float > > > &corners)
Set the checkerboard corners as 2D image coordinates.
void SetColorBlack(const Vector3< unsigned char > &col)
void SetColorWhite(const Vector3< unsigned char > &col)
Vector3< unsigned char > colorBlack_
virtual void Draw()
To do anything usefull, overload this method, assume context is ready and draw.
The SceneCheckerBoard class allows to draw a 3D checkerboard.
void SetImageSize(int sizeX, int sizeY)
Base class for all scenes.
Definition: SceneBase.hh:68
Vector3< unsigned char > colorWhite_
std::vector< std::vector< Vector2< float > > > corners_