Changes between Version 19 and Version 20 of FDORfc48


Ignore:
Timestamp:
Jul 29, 2010, 10:48:38 PM (14 years ago)
Author:
leaf
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FDORfc48

    v19 v20  
    231231    ///
    232232    /// \param sourceVertexOrderRule
    233     /// The vertex order rule of the source.
     233    /// Input the vertex order rule of the source.
    234234    /// \param sourceStrictnessRule
    235     /// The vertex order strictness rule of the source.
     235    /// Input the vertex order strictness rule of the source.
    236236    /// \param targetVertexOrderRule
    237     /// The vertex order rule of the target.
     237    /// Input the vertex order rule of the target.
    238238    /// \param targetStrictnessRule
    239     /// The vertex order strictness rule of the target.
     239    /// Input the vertex order strictness rule of the target.
    240240    /// \param preference
    241     /// The preference when fixing polygon vertex order.
     241    /// Input the preference when fixing polygon vertex order.
    242242    ///
    243243    /// \return
     
    348348
    349349If users perfer performance to correctness, method !GetFixPolygonVertexOrderAction will use table1. It guarantees that polygons in the target will have the correct vertex order if the target is enforced. If users perfer correctness to performance, method !GetFixPolygonVertexOrderAction will use table2. It guarantees that polygons in the target will have the correct vertex order if the vertex order rule of the target isn't none.
     350
     351Considering perfomrance, an additional paramether 'FdoBoolean checkInteriorRings' will be added for method FdoSpatialUtility::ReversePolygonVertexOrder(...). If users know the input polygon is a valid polygon, they can pass false for parameter checkInteriorRings to reverse its vertex order. Otherwise, pass true. Method FdoSpatialUtility::ReversePolygonVertexOrder(...) will check whether interior rings have the different vertex order with exterior ring and guarantee the returned polygon is a valid polygon after reversing the vertex order of the input polygon.
     352
     353
     354{{{
     355class FdoSpatialUtility
     356{
     357public:
     358    /// \brief
     359    /// Revers the vertex order of the input polygon.
     360    ///
     361    /// \param geometry
     362    /// Input the polygon geometry to be reversed. It can be a polygon, multipolygon,
     363    /// curvepolygon, or multicurvepolygon.
     364    /// \param checkInteriorRings
     365    /// true  - Check whether interior rings have the different vertex order with
     366    ///         exterior ring and guarantee the returned polygon is a valid polygon
     367    ///         after reversing the vertex order of the input polygon.
     368    /// false - Reverse the vertex order of interior rings and exterior ring directly
     369    ///         no matter interior rings have the different vertex order with exterior ring.
     370    ///
     371    /// \return
     372    /// Returns the modified polygon.
     373    ///
     374    FDO_SPATIAL_API static FdoIGeometry* ReversePolygonVertexOrder (
     375                              FdoIGeometry * geometry,
     376                              FdoBoolean checkInteriorRings = false );
     377}
     378}}}