Changeset 6479


Ignore:
Timestamp:
11/03/10 08:28:50 (14 years ago)
Author:
jschierm
Message:

Added fieldname method to kml classes since current one lists sub (derived) properties before super (base) properties.

Location:
issm/trunk/src/m/kml
Files:
17 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/kml/kml_colorstyle.m

    r6456 r6479  
    8080        end
    8181
     82%  return the fieldnames of the object
     83
     84        function [fnames]=fieldnames(kml)
     85
     86%  fieldnames for a sub (derived) class list those before super (base)
     87
     88            fnames=fieldnames(kml_substyle());
     89            fnames={fnames{:} ...
     90                    'color' ...
     91                    'colormode' ...
     92                   }';
     93
     94        end
     95
    8296%  set the properties of the object
    8397
  • issm/trunk/src/m/kml/kml_container.m

    r6456 r6479  
    8080        end
    8181
     82%  return the fieldnames of the object
     83
     84        function [fnames]=fieldnames(kml)
     85
     86%  fieldnames for a sub (derived) class list those before super (base)
     87
     88            fnames=fieldnames(kml_feature());
     89
     90        end
     91
    8292%  set the properties of the object
    8393
  • issm/trunk/src/m/kml/kml_document.m

    r6456 r6479  
    7979        end
    8080
     81%  return the fieldnames of the object
     82
     83        function [fnames]=fieldnames(kml)
     84
     85%  fieldnames for a sub (derived) class list those before super (base)
     86
     87            fnames=fieldnames(kml_feature());
     88            fnames={fnames{:} ...
     89                    'feature' ...
     90                   }';
     91
     92        end
     93
    8194%  set the properties of the object
    8295
  • issm/trunk/src/m/kml/kml_feature.m

    r6456 r6479  
    9797        end
    9898
     99%  return the fieldnames of the object
     100
     101        function [fnames]=fieldnames(kml)
     102
     103%  fieldnames for a sub (derived) class list those before super (base)
     104
     105            fnames=fieldnames(kml_object());
     106            fnames={fnames{:} ...
     107                    'name' ...
     108                    'visibility' ...
     109                    'open' ...
     110                    'snippet' ...
     111                    'descript' ...
     112                    'styleurl' ...
     113                    'style' ...
     114                   }';
     115
     116        end
     117
    99118%  set the properties of the object
    100119
  • issm/trunk/src/m/kml/kml_folder.m

    r6456 r6479  
    7979        end
    8080
     81%  return the fieldnames of the object
     82
     83        function [fnames]=fieldnames(kml)
     84
     85%  fieldnames for a sub (derived) class list those before super (base)
     86
     87            fnames=fieldnames(kml_container());
     88            fnames={fnames{:} ...
     89                    'feature' ...
     90                   }';
     91
     92        end
     93
    8194%  set the properties of the object
    8295
  • issm/trunk/src/m/kml/kml_geometry.m

    r6456 r6479  
    7373        end
    7474
     75%  return the fieldnames of the object
     76
     77        function [fnames]=fieldnames(kml)
     78
     79%  fieldnames for a sub (derived) class list those before super (base)
     80
     81            fnames=fieldnames(kml_object());
     82
     83        end
     84
    7585%  set the properties of the object
    7686
  • issm/trunk/src/m/kml/kml_linearring.m

    r6456 r6479  
    8181        end
    8282
     83%  return the fieldnames of the object
     84
     85        function [fnames]=fieldnames(kml)
     86
     87%  fieldnames for a sub (derived) class list those before super (base)
     88
     89            fnames=fieldnames(kml_geometry());
     90            fnames={fnames{:} ...
     91                    'extrude' ...
     92                    'tessellate' ...
     93                    'altmode' ...
     94                    'coords' ...
     95                   }';
     96
     97        end
     98
    8399%  set the properties of the object
    84100
  • issm/trunk/src/m/kml/kml_linestring.m

    r6456 r6479  
    8181        end
    8282
     83%  return the fieldnames of the object
     84
     85        function [fnames]=fieldnames(kml)
     86
     87%  fieldnames for a sub (derived) class list those before super (base)
     88
     89            fnames=fieldnames(kml_geometry());
     90            fnames={fnames{:} ...
     91                    'extrude' ...
     92                    'tessellate' ...
     93                    'altmode' ...
     94                    'coords' ...
     95                   }';
     96
     97        end
     98
    8399%  set the properties of the object
    84100
  • issm/trunk/src/m/kml/kml_linestyle.m

    r6456 r6479  
    7373        end
    7474
     75%  return the fieldnames of the object
     76
     77        function [fnames]=fieldnames(kml)
     78
     79%  fieldnames for a sub (derived) class list those before super (base)
     80
     81            fnames=fieldnames(kml_colorstyle());
     82            fnames={fnames{:} ...
     83                    'width' ...
     84                   }';
     85
     86        end
     87
    7588%  set the properties of the object
    7689
  • issm/trunk/src/m/kml/kml_multigeometry.m

    r6456 r6479  
    5858        end
    5959
     60%  display the object
     61
     62        function []=disp(kml)
     63
     64            for i=1:numel(kml)
     65                disp(sprintf('class ''%s'' object ''%s%s'' = \n',...
     66                    class(kml),inputname(1),string_dim(kml,i)));
     67                disp@kml_geometry(kml(i));
     68                disp(sprintf('      geometry: %s %s\n' ,string_size(kml(i).geometry),...
     69                             class(kml(i).geometry)));
     70            end
     71
     72        end
     73
     74%  return the fieldnames of the object
     75
     76        function [fnames]=fieldnames(kml)
     77
     78%  fieldnames for a sub (derived) class list those before super (base)
     79
     80            fnames=fieldnames(kml_geometry());
     81            fnames={fnames{:} ...
     82                    'geometry' ...
     83                   }';
     84
     85        end
     86
    6087%  set the properties of the object
    6188
     
    85112                        varargin{i},class(kmlref));
    86113                end
    87             end
    88 
    89         end
    90 
    91 %  display the object
    92 
    93         function []=disp(kml)
    94 
    95             for i=1:numel(kml)
    96                 disp(sprintf('class ''%s'' object ''%s%s'' = \n',...
    97                     class(kml),inputname(1),string_dim(kml,i)));
    98                 disp@kml_geometry(kml(i));
    99                 disp(sprintf('      geometry: %s %s\n' ,string_size(kml(i).geometry),...
    100                              class(kml(i).geometry)));
    101114            end
    102115
  • issm/trunk/src/m/kml/kml_object.m

    r6456 r6479  
    7474        end
    7575
     76%  return the fieldnames of the object
     77
     78        function [fnames]=fieldnames(kml)
     79
     80%  fieldnames for a sub (derived) class list those before super (base)
     81
     82            fnames={'id'};
     83
     84        end
     85
    7686%  set the properties of the object
    7787
  • issm/trunk/src/m/kml/kml_placemark.m

    r6456 r6479  
    7979        end
    8080
     81%  return the fieldnames of the object
     82
     83        function [fnames]=fieldnames(kml)
     84
     85%  fieldnames for a sub (derived) class list those before super (base)
     86
     87            fnames=fieldnames(kml_feature());
     88            fnames={fnames{:} ...
     89                    'geometry' ...
     90                   }';
     91
     92        end
     93
    8194%  set the properties of the object
    8295
  • issm/trunk/src/m/kml/kml_polygon.m

    r6456 r6479  
    8282                             class(kml(i).inner)));
    8383            end
     84
     85        end
     86
     87%  return the fieldnames of the object
     88
     89        function [fnames]=fieldnames(kml)
     90
     91%  fieldnames for a sub (derived) class list those before super (base)
     92
     93            fnames=fieldnames(kml_geometry());
     94            fnames={fnames{:} ...
     95                    'extrude' ...
     96                    'tessellate' ...
     97                    'altmode' ...
     98                    'outer' ...
     99                    'inner' ...
     100                   }';
    84101
    85102        end
  • issm/trunk/src/m/kml/kml_polystyle.m

    r6456 r6479  
    7676        end
    7777
     78%  return the fieldnames of the object
     79
     80        function [fnames]=fieldnames(kml)
     81
     82%  fieldnames for a sub (derived) class list those before super (base)
     83
     84            fnames=fieldnames(kml_colorstyle());
     85            fnames={fnames{:} ...
     86                    'fill' ...
     87                    'outline' ...
     88                   }';
     89
     90        end
     91
    7892%  set the properties of the object
    7993
  • issm/trunk/src/m/kml/kml_style.m

    r6460 r6479  
    9696        end
    9797
     98%  return the fieldnames of the object
     99
     100        function [fnames]=fieldnames(kml)
     101
     102%  fieldnames for a sub (derived) class list those before super (base)
     103
     104            fnames=fieldnames(kml_styleselector());
     105            fnames={fnames{:} ...
     106                    'icon' ...
     107                    'label' ...
     108                    'line' ...
     109                    'poly' ...
     110                    'balloon' ...
     111                    'list' ...
     112                   }';
     113
     114        end
     115
    98116%  set the properties of the object
    99117
  • issm/trunk/src/m/kml/kml_styleselector.m

    r6456 r6479  
    7373        end
    7474
     75%  return the fieldnames of the object
     76
     77        function [fnames]=fieldnames(kml)
     78
     79%  fieldnames for a sub (derived) class list those before super (base)
     80
     81            fnames=fieldnames(kml_object());
     82
     83        end
     84
    7585%  set the properties of the object
    7686
  • issm/trunk/src/m/kml/kml_substyle.m

    r6456 r6479  
    7373        end
    7474
     75%  return the fieldnames of the object
     76
     77        function [fnames]=fieldnames(kml)
     78
     79%  fieldnames for a sub (derived) class list those before super (base)
     80
     81            fnames=fieldnames(kml_object());
     82
     83        end
     84
    7585%  set the properties of the object
    7686
Note: See TracChangeset for help on using the changeset viewer.