FDO .NET API Reference | Feature Data Objects |
00001 /* 00002 * Copyright (C) 2004-2006 Autodesk, Inc. 00003 * 00004 * This library is free software; you can redistribute it and/or 00005 * modify it under the terms of version 2.1 of the GNU Lesser 00006 * General Public License as published by the Free Software Foundation. 00007 * 00008 * This library is distributed in the hope that it will be useful, 00009 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 * Lesser General Public License for more details. 00012 * 00013 * You should have received a copy of the GNU Lesser General Public 00014 * License along with this library; if not, write to the Free Software 00015 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00016 * 00017 */ 00018 00019 #pragma once 00020 00021 #include "FDO\Schema\mgPropertyDefinition.h" 00022 00023 class FdoRasterPropertyDefinition; 00024 00025 BEGIN_NAMESPACE_OSGEO_FDO_RASTER 00026 public __gc class RasterDataModel; 00027 END_NAMESPACE_OSGEO_FDO_RASTER 00028 00029 BEGIN_NAMESPACE_OSGEO_FDO_SCHEMA 00030 00031 /// \ingroup (OSGeoFDOSchema) 00032 /// \brief 00033 /// RasterPropertyDefinition has the information needed to 00034 /// create or completely describe a raster property. This class encapsulates 00035 /// the information necessary to insert a 'new' raster, in the absence of 00036 /// any other information, for the properties defined using this schema 00037 /// element. 00038 public __gc class RasterPropertyDefinition : public NAMESPACE_OSGEO_FDO_SCHEMA::PropertyDefinition 00039 { 00040 public: 00041 /// \brief 00042 /// Constructs a default instance of an RasterPropertyDefinition. 00043 /// 00044 RasterPropertyDefinition(); 00045 00046 /// \brief 00047 /// Constructs an instance of an RasterPropertyDefinition using the 00048 /// specified arguments. 00049 /// 00050 /// \param name 00051 /// Input name 00052 /// \param description 00053 /// Input description 00054 /// 00055 RasterPropertyDefinition(System::String* name, System::String* description); 00056 00057 /// \brief 00058 /// Constructs an instance of an RasterPropertyDefinition using the 00059 /// specified arguments. 00060 /// 00061 /// \param name 00062 /// Input name 00063 /// \param description 00064 /// Input description 00065 /// \param system 00066 /// Input true if this is a system generated property, false otherwise. 00067 /// <p><b>Note:</b> A client would never set system to true, only a provider. 00068 /// 00069 RasterPropertyDefinition(System::String* name, System::String* description, System::Boolean system); 00070 00071 // 00072 // PropertyDefinition interface 00073 // 00074 00075 /// \brief 00076 /// Returns a Boolean value that indicates if this property is read-only. 00077 /// 00078 /// \return 00079 /// Returns a Boolean value 00080 /// 00081 __property System::Boolean get_ReadOnly (); 00082 00083 /// \brief 00084 /// Sets a Boolean value that indicates if this property is read-only. 00085 /// 00086 /// \param value 00087 /// Input a Boolean value that indicates if this property is read-only 00088 /// 00089 /// \return 00090 /// Returns nothing 00091 /// 00092 __property System::Void set_ReadOnly (System::Boolean value); 00093 00094 /// \brief 00095 /// Returns a Boolean value that indicates if this property's value can be 00096 /// null. 00097 /// 00098 /// \return 00099 /// Returns a Boolean value 00100 /// 00101 __property System::Boolean get_Nullable(); 00102 00103 /// \brief 00104 /// Sets a Boolean value that indicates if this property's value can be 00105 /// null. 00106 /// 00107 /// \param value 00108 /// Input a Boolean value that indicates if this property's value can be 00109 /// null 00110 /// 00111 /// \return 00112 /// Returns nothing 00113 /// 00114 __property System::Void set_Nullable(System::Boolean value); 00115 00116 /// \brief 00117 /// Gets the default data model used by this raster property. 00118 /// 00119 /// \return 00120 /// Returns the current default data model. 00121 /// 00122 __property NAMESPACE_OSGEO_FDO_RASTER::RasterDataModel* get_DefaultDataModel(); 00123 00124 /// \brief 00125 /// Sets the default data model used by this raster property. 00126 /// Allowed values are only those data models that are acceptable to the 00127 /// SupportsDataModel capability. 00128 /// 00129 /// \param dataModel 00130 /// The datamodel to be used for newly created 00131 /// rasters, or the default datamodel to be used when returning raster data. 00132 /// 00133 __property System::Void set_DefaultDataModel (NAMESPACE_OSGEO_FDO_RASTER::RasterDataModel* dataModel); 00134 00135 /// \brief 00136 /// Gets the default size of image file in the horizontal 00137 /// direction in pixels (number of columns). 00138 /// 00139 /// \return 00140 /// Returns the current default horizontal image size in pixels 00141 /// (number of columns). 00142 /// 00143 __property System::Int32 get_DefaultImageXSize (); 00144 00145 /// \brief 00146 /// Sets the default size of an image file in the horizontal 00147 /// direction in pixels (number of columns). 00148 /// 00149 /// \param size 00150 /// The desired default horizontal image size in pixels 00151 /// (number of columns). 00152 /// 00153 __property System::Void set_DefaultImageXSize (System::Int32 size); 00154 00155 /// \brief 00156 /// Gets the default size of an image file in the vertical 00157 /// direction in pixels (number of rows). 00158 /// 00159 /// \return 00160 /// Returns the current default vertical image size in pixels 00161 /// (number of rows). 00162 /// 00163 __property System::Int32 get_DefaultImageYSize (); 00164 00165 /// \brief 00166 /// Sets the default size of an image file in the vertical 00167 /// direction in pixels (number of rows). 00168 /// 00169 /// \param size 00170 /// The desired default vertical image size in pixels 00171 /// (number of rows). 00172 /// 00173 __property System::Void set_DefaultImageYSize (System::Int32 size); 00174 00175 // 00176 /// Spatial Context Support. 00177 // 00178 00179 /// \brief 00180 /// Sets a Spatial Context association for this raster property. 00181 /// 00182 /// \param spatialContextName 00183 /// Input the Spatial Context name to be set. 00184 /// Defaults to the active Spatial Context. 00185 /// 00186 /// \return 00187 /// Returns nothing 00188 /// 00189 __property System::Void set_SpatialContextAssociation(System::String* spatialContextName); 00190 00191 /// \brief 00192 /// Gets the Spatial Context name associated to this raster property. 00193 /// 00194 /// \return 00195 /// Returns a String value representing the Spatial Context name. 00196 /// 00197 __property System::String* get_SpatialContextAssociation(); 00198 00199 /// \brief 00200 /// Constructs a RasterPropertyDefinition object based on an unmanaged instance of the object 00201 /// 00202 /// \param unmanaged 00203 /// Input A Pointer to the unmanaged object. 00204 /// 00205 /// \param autoDelete 00206 /// Input Indicates if the constructed object should be automatically deleted 00207 /// once it no longer referenced. 00208 /// 00209 RasterPropertyDefinition(System::IntPtr unmanaged, System::Boolean autoDelete) : NAMESPACE_OSGEO_FDO_SCHEMA::PropertyDefinition(unmanaged, autoDelete) 00210 { 00211 00212 } 00213 00214 public private: 00215 inline FdoRasterPropertyDefinition* GetImpObj(); 00216 }; 00217 00218 END_NAMESPACE_OSGEO_FDO_SCHEMA 00219 00220
Comments or suggestions? Send us feedback. |