////////////////////////////////////////////////////////////////////////////
        //--------------------------------- REVISIONS ------------------------------
        // Date       name                 Tracking #         Description
        // ---------  -------------------  -------------      ----------------------
        // 14JAN2009  James Shen                              Initial Creation
        ////////////////////////////////////////////////////////////////////////////

        /**
         * constructor.
         * @param clipRect
         *  clip region
         */
        public SutherlandHodgman(GeoLatLngBounds clipRect)
        {
            _stageOut    = new OutputStage();
            _stageBottom = new ClipStage(_stageOut, 3, (clipRect.Y + clipRect.Height));
            _stageLeft   = new ClipStage(_stageBottom, 4, clipRect.X);
            _stageTop    = new ClipStage(_stageLeft, 1, clipRect.Y);
            _stageRight  = new ClipStage(_stageTop, 2, (clipRect.X + clipRect.Width));
            _rectBounds  = new GeoLatLngBounds(clipRect);
        }
Exemplo n.º 2
0
 ////////////////////////////////////////////////////////////////////////////
 //--------------------------------- REVISIONS ------------------------------
 // Date       name                 Tracking #         Description
 // ---------  -------------------  -------------      ----------------------
 // 14JAN2009  James Shen                 	          Initial Creation
 ////////////////////////////////////////////////////////////////////////////
 /**
  * constructor.
  * @param clipRect
  * 	clip region
  */
 public SutherlandHodgman(GeoLatLngBounds clipRect)
 {
     _stageOut = new OutputStage();
     _stageBottom = new ClipStage(_stageOut, 3, (clipRect.Y + clipRect.Height));
     _stageLeft = new ClipStage(_stageBottom, 4, clipRect.X);
     _stageTop = new ClipStage(_stageLeft, 1, clipRect.Y);
     _stageRight = new ClipStage(_stageTop, 2, (clipRect.X + clipRect.Width));
     _rectBounds = new GeoLatLngBounds(clipRect);
 }