Changes between Version 8 and Version 9 of ossimPlanetAPI
- Timestamp:
- Feb 4, 2008, 11:43:20 AM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ossimPlanetAPI
v8 v9 854 854 855 855 '''add''' takes any number of arguments and can be of the form: 856 857 * {Image {Parent {Name <name>} {Id <id>}} {Name <name>} {Id <id>} {Description <description>} {Filename <file>}} 856 {{{ 857 {Image {Parent {Name <name>} {Id <id>}} {Name <name>} {Id <id>} {Description <description>} {Filename <file>}} 858 }}} 859 858 860 This is the Image object definition and supplies all parameters for initialization. For the {Image ..} you can give it a name, Id and a description. The accessor in this example is a Filename type. Future accessor types will be given such as Wms. The {Parent ...} object is used to identify the Parent you wish to add the layer to If this is not specified then the root Layer of the reference set is used as the parent. You must call add {ImageGroup {...}} to create a group before adding to it any children This basically allows you to group Image types into a common group. Note, the name id and description are optional but if you want to later do a remove you might want to specify at least one or both name and id for the image being added. 859 * {ImageGroup {Parent {Name <name>} {Id <id>}} {Name <name>} {Id <id>} {Description <description>} } 860 Allows one to create a group and give it a name id and description.<br> 861 <br> 861 {{{ 862 {ImageGroup {Parent {Name <name>} {Id <id>}} {Name <name>} {Id <id>} {Description <description>} } 863 }}} 864 Allows one to create a group and give it a name id and description. 865 862 866 '''remove''' takes any number of arguments and can be of the form: 863 * {Image {Name <name>} {Id <id>}} 867 {{{ 868 {Image {Name <name>} {Id <id>}} 869 }}} 870 864 871 This form is used to also delete layers of type ImageGroup. For image groups you still use {Image and not {ImageGroup for the removal. 865 872 866 '''Examples:''' <br>873 '''Examples:''' 867 874 Add a filename accessor to the root texture reference layer called /data/ccf_utm/foo.ccf and give it and id, description and name. We add it as a child to a previosly created group with name MyRootLayer. 875 {{{ 868 876 ossimPlanet_routeActionForm1(":land add {Image {Name MyName} {Id MyId} {Description my big description} {Filename /data/ccf_utm/foo.ccf} }" 877 }}} 869 878 870 879 Add a filename accessor as a child of a layer with id MyRootIdan give it an id, description and name with a filename /data/ccf_utm/foo.ccf. … … 873 882 Remove a layer 874 883 884 {{{ 875 885 ossimPlanet_routeActionForm1(":land remove {Image {Name MyName} {Id MyId}}" 876 877 Notice the Image object is eclosed by { } brackets. You can have any number of them on one line {Image {.....}} {Image {...}} .... etc. 878 886 }}} 887 888 Notice the Image object is eclosed by { } brackets. You can have any number of them on one line 889 {{{ 890 {Image {.....}} {Image {...}} .... etc. 891 }}} 892 893