   obj.Lm = limits;
      end 

	function set.Lm(obj,lim)   
	% Lm property set after checking limits
      if  ~(lim(1) < lim(2))
         disp('Bad limits, using [-2pi 2pi]')
      else
         obj.Lm = lim;							
      end
	end % set.Lm

	function data = get.Data(obj)
      % Data object get function calculates data 
      [x,y] = topo.grid(obj.Lm);  
      matrix = obj.FofXY(x,y);     
      data.X = x;
      data.Y = y;
      data.Matrix = matrix;
	end % get.Data

      function surflight(obj) 
         obj.FigHandle = figure;
         surfc(obj.Data.X,obj.Data.Y,obj.Data.Matrix,...
            'FaceColor',[.8 .8 0],'EdgeColor',[0 .2 0],...
            'FaceLighting','phong');
         camlight; material shiny; grid off
         colormap copper
      end % surflight

      function delete(obj)
         h = obj.FigHandle;
         if ishandle(h)
            delete(h);                
         else
            return
         end
      end % delete
   end % methods

   methods (Static = true)               
      function [x,y] = grid(limits)        
         inc = (limits(2)-limits(1))/35;
         [x,y] = meshgrid(limits(1):inc:limits(2));
      end % grid 
   end % methods Static = true
end % classdef
                  
   
         
         