%% Class of numbers for inserting.
%
%  contains matrixes of numbers from 0 to 9

classdef NumClass
   properties
      Value {mustBeNumeric}
   end
   methods (Static)
       function r = pickNum(Value)
          if Value == 1
             r = NumClass.makeOne(); 
          elseif Value == 2
             r = NumClass.makeTwo(); 
          elseif Value == 3
             r = NumClass.makeThree(); 
          elseif Value == 4
             r = NumClass.makeFour();     
          elseif Value == 5
             r = NumClass.makeFive();        
          elseif Value == 6
             r = NumClass.makeSix();            
          elseif Value == 7
             r = NumClass.makeSeven();               
          elseif Value == 8
             r = NumClass.makeEight();                  
          elseif Value == 9
             r = NumClass.makeNine();                       
          elseif Value == 0
             r = NumClass.makeZero(); 
          end
       end
      function r = makeOne()
          r = zeros(10,10,3);
          r(:,:,1) = [0 0 0 0 0 255 0 0 0 0;
                      0 0 0 0 255 255 0 0 0 0;
                      0 0 0 255 0 255 0 0 0 0;
                      0 0 255 0 0 255 0 0 0 0;
                      0 0 0 0 0 255 0 0 0 0;
                      0 0 0 0 0 255 0 0 0 0;
                      0 0 0 0 0 255 0 0 0 0;
                      0 0 0 0 0 255 0 0 0 0;
                      0 0 0 0 0 255 0 0 0 0;
                      0 0 0 255 255 255 255 255 0 0];
      end
      function r = makeTwo()
          r = zeros(10,10,3);
          r(:,:,1) = [0 0 0 255 255 255 255 0 0 0;
                        0 0 255 0 0 0 255 0 0 0;
                        0 0 255 0 0 0 255 0 0 0;
                        0 0 0 0 0 0 255 0 0 0;
                        0 0 0 0 0 255 0 0 0 0;
                        0 0 0 0 255 0 0 0 0 0;
                        0 0 0 255 0 0 0 0 0 0;
                        0 0 255 0 0 0 0 0 0 0;
                        0 0 255 0 0 0 0 0 0 0;
                        0 0 255 255 255 255 255 0 0 0];
      end
      function r = makeThree()
         r = zeros(10,10,3);
         r(:,:,1) = [0 0 0 0 255 255 0 0 0 0;
                     0 0 0 255 0 0 255 0 0 0;
                     0 0 255 0 0 0 0 255 0 0;
                     0 0 0 0 0 0 255 0 0 0;
                     0 0 0 0 0 255 0 0 0 0;
                     0 0 0 255 255 0 0 0 0 0;
                     0 0 0 0 0 255 0 0 0 0;
                     0 0 0 0 0 0 255 0 0 0;
                     0 0 255 0 0 0 255 0 0 0;
                     0 0 255 255 255 255 0 0 0 0]; 
      end
      function r = makeFour()
         r = zeros(10,10,3);
         r(:,:,1) = [0 0 0 0 0 0 255 0 0 0;
                        0 0 0 0 0 255 0 0 0 0;
                        0 0 0 0 255 0 0 0 0 0;
                        0 0 0 255 0 0 0 0 0 0;
                        0 0 255 0 0 255 0 0 0 0;
                        0 0 255 255 255 255 255 255 0 0;
                        0 0 0 0 0 255 0 0 0 0;
                        0 0 0 0 0 255 0 0 0 0;
                        0 0 0 0 0 255 0 0 0 0;
                        0 0 0 0 0 255 0 0 0 0]; 
      end
      function r = makeFive()
         r = zeros(10,10,3);
         r(:,:,1) = [0 0 0 255 255 255 255 255 0 0;
                        0 0 0 255 0 0 0 0 0 0;
                        0 0 0 255 0 0 0 0 0 0;
                        0 0 0 255 0 0 0 0 0 0;
                        0 0 0 255 255 255 255 0 0 0;
                        0 0 0 0 0 0 0 255 0 0;
                        0 0 0 0 0 0 0 255 0 0;
                        0 0 0 0 0 0 0 255 0 0;
                        0 0 0 0 0 0 255 0 0 0;
                        0 0 0 255 255 255 0 0 0 0]; 
      end
      function r = makeSix()
          r = zeros(10,10,3);
          r(:,:,1) = [0 0 0 0 255 255 255 0 0 0;
                        0 0 0 255 0 0 0 0 0 0;
                        0 0 255 0 0 0 0 0 0 0;
                        0 0 255 0 0 0 0 0 0 0;
                        0 0 255 0 0 0 0 0 0 0;
                        0 0 255 0 255 255 255 0 0 0;
                        0 0 255 255 0 0 0 255 0 0;
                        0 0 255 0 0 0 0 255 0 0;
                        0 0 0 255 0 0 255 0 0 0;
                        0 0 0 0 255 255 0 0 0 0];
      end
      function r = makeSeven()
         r = zeros(10,10,3);
         r(:,:,1) = [0 0 255 255 255 255 255 255 255 0;
                         0 0 0 0 0 0 0 0 255 0;
                         0 0 0 0 0 0 0 0 255 0;
                         0 0 0 0 0 0 0 0 255 0;
                         0 0 0 0 0 0 0 0 255 0;
                         0 0 0 0 0 0 0 255 0 0;
                         0 0 0 0 0 0 255 0 0 0;
                         0 0 0 0 0 255 0 0 0 0;
                         0 0 0 0 255 0 0 0 0 0;
                         0 0 0 255 0 0 0 0 0 0];
      end
      function r = makeEight()
         r = zeros(10,10,3);
         r(:,:,1) = [0 0 0 0 255 255 0 0 0 0;
                         0 0 0 255 0 0 255 0 0 0;
                         0 0 255 0 0 0 0 255 0 0;
                         0 0 255 0 0 0 0 255 0 0;
                         0 0 0 255 0 0 255 0 0 0;
                         0 0 0 0 255 255 0 0 0 0;
                         0 0 0 255 0 0 255 0 0 0;
                         0 0 255 0 0 0 0 255 0 0;
                         0 0 255 0 0 0 0 255 0 0;
                         0 0 0 255 255 255 255 0 0 0];
      end
      function r = makeNine()
         r = zeros(10,10,3);
         r(:,:,1) = [0 0 0 0 255 255 0 0 0 0;
                        0 0 0 255 0 0 255 0 0 0;
                        0 0 255 0 0 0 0 255 0 0;
                        0 0 255 0 0 0 0 255 0 0;
                        0 0 0 255 255 255 255 255 0 0;
                        0 0 0 0 0 0 0 255 0 0;
                        0 0 0 0 0 0 0 255 0 0;
                        0 0 0 0 0 0 0 255 0 0;
                        0 0 255 0 0 0 255 0 0 0;
                        0 0 0 255 255 255 0 0 0 0];
      end
      function r = makeZero()
         r = zeros(10,10,3);
         r(:,:,1) = [0 0 0 0 255 255 0 0 0 0;
                        0 0 0 255 0 0 255 0 0 0;
                        0 0 255 0 0 0 0 255 0 0;
                        0 0 255 0 0 0 0 255 0 0;
                        0 0 255 0 0 0 0 255 0 0;
                        0 0 255 0 0 0 0 255 0 0;
                        0 0 255 0 0 0 0 255 0 0;
                        0 0 255 0 0 0 0 255 0 0;
                        0 0 0 255 0 0 255 0 0 0;
                        0 0 0 0 255 255 0 0 0 0];
      end
   end
end