FDO .NET API Reference Feature Data Objects

mgDistanceCondition.h

Go to the documentation of this file.
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\Filter\mgGeometricCondition.h"
00022 #include "FDO\Filter\mgDistanceOperations.h"
00023 
00024 class FdoDistanceCondition;
00025 
00026 BEGIN_NAMESPACE_OSGEO_FDO_EXPRESSION
00027 public __gc class Expression;
00028 public __gc class Identifier;
00029 END_NAMESPACE_OSGEO_FDO_EXPRESSION
00030 
00031 using namespace NAMESPACE_OSGEO_FDO_EXPRESSION;
00032 
00033 BEGIN_NAMESPACE_OSGEO_FDO_FILTER
00034 public __gc __interface IFilterProcessor;
00035 
00036 /// \ingroup (OSGeoFDOFilter)
00037 /// \brief
00038 /// The DistanceCondition class derives GeometricCondition and can be used
00039 /// to test whether the value of a geometric property is within or beyond a
00040 /// specified distance of the specified geometric value. Some feature providers
00041 /// may only support literal geometric values; if so, the provider's capabilities
00042 /// will indicate this limitation.
00043 public __gc class DistanceCondition : public NAMESPACE_OSGEO_FDO_FILTER::GeometricCondition
00044 {
00045 public:
00046 
00047     /// \brief
00048     /// Constructs a default instance of an DistanceCondition.
00049     /// 
00050     /// \return
00051     /// Returns DistanceCondition
00052     /// 
00053     DistanceCondition();
00054 
00055     /// \brief
00056     /// Constructs an instance of an DistanceCondition using the specified arguments.
00057     /// 
00058     /// \param propertyName 
00059     /// Input property name
00060     /// \param operation 
00061     /// Input operation
00062     /// \param geometry 
00063     /// Input geometry
00064     /// \param distance 
00065     /// Input distance
00066     /// 
00067     /// \return
00068     /// Returns DistanceCondition
00069     /// 
00070     DistanceCondition(System::String* propertyName, NAMESPACE_OSGEO_FDO_FILTER::DistanceOperations operation, NAMESPACE_OSGEO_FDO_EXPRESSION::Expression* geometry, System::Double distance);
00071 
00072     /// \brief
00073     /// Constructs an instance of an DistanceCondition using the specified arguments.
00074     /// 
00075     /// \param propertyName 
00076     /// Input property name
00077     /// \param operation 
00078     /// Input operation
00079     /// \param geometry 
00080     /// Input geometry
00081     /// \param distance 
00082     /// Input distance
00083     /// 
00084     /// \return
00085     /// Returns DistanceCondition
00086     /// 
00087     DistanceCondition(NAMESPACE_OSGEO_FDO_EXPRESSION::Identifier* propertyName, NAMESPACE_OSGEO_FDO_FILTER::DistanceOperations operation, NAMESPACE_OSGEO_FDO_EXPRESSION::Expression* geometry, System::Double distance);
00088 
00089     /// \brief
00090     /// Gets the distance operation to use.
00091     /// 
00092     /// \return
00093     /// Returns the distance operation
00094     /// 
00095     __property NAMESPACE_OSGEO_FDO_FILTER::DistanceOperations get_Operation();
00096 
00097     /// \brief
00098     /// Sets the distance operation to use.
00099     /// 
00100     /// \param value 
00101     /// Input the distance operation
00102     /// 
00103     /// \return
00104     /// Returns nothing
00105     /// 
00106     __property System::Void set_Operation(NAMESPACE_OSGEO_FDO_FILTER::DistanceOperations value);
00107 
00108     /// \brief
00109     /// Gets the literal geometric value.
00110     /// 
00111     /// \return
00112     /// Returns the literal geometric value
00113     /// 
00114     __property NAMESPACE_OSGEO_FDO_EXPRESSION::Expression* get_Geometry();
00115 
00116     /// \brief
00117     /// Sets the literal geometric value.
00118     /// 
00119     /// \param value 
00120     /// Input the literal geometric value
00121     /// 
00122     /// \return
00123     /// Returns nothing
00124     /// 
00125     __property System::Void set_Geometry(NAMESPACE_OSGEO_FDO_EXPRESSION::Expression* value);
00126 
00127     /// \brief
00128     /// Gets the distance value.
00129     /// 
00130     /// \return
00131     /// Returns the distance value
00132     /// 
00133     __property System::Double get_Distance();
00134 
00135     /// \brief
00136     /// Sets the distance value.
00137     /// 
00138     /// \param value 
00139     /// Input the distance value
00140     /// 
00141     /// \return
00142     /// Returns nothing
00143     /// 
00144     __property System::Void set_Distance( System::Double value);
00145 
00146     /// \brief
00147     /// Overrides Filter.Process to pass DistanceCondition to the
00148     /// appropriate filter processor operation.
00149     /// 
00150     /// \param processor 
00151     /// Input filter processor
00152     /// 
00153     /// \return
00154     /// Returns nothing
00155     /// 
00156     System::Void Process(NAMESPACE_OSGEO_FDO_FILTER::IFilterProcessor* processor);
00157 
00158     /// \brief
00159     /// Constructs a DistanceCondition object based on an unmanaged instance of the object
00160     /// 
00161     /// \param unmanaged 
00162     /// Input A Pointer to the unmanaged object.
00163     /// 
00164     /// \param autoDelete 
00165     /// Input Indicates if the constructed object should be automatically deleted 
00166     /// once it no longer referenced.
00167     /// 
00168     DistanceCondition(System::IntPtr unmanaged, System::Boolean autoDelete);
00169 
00170 public private:
00171     inline FdoDistanceCondition* GetImpObj();
00172 };
00173 
00174 END_NAMESPACE_OSGEO_FDO_FILTER
00175 
00176 

Comments or suggestions? Send us feedback.