parametricpolypolygonfactory.cxx (70f497fb) | parametricpolypolygonfactory.cxx (78abece8) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 135 unchanged lines hidden (view full) --- 144 } 145 return ParametricPolyPolygonSharedPtr( 146 new PinWheelWipe( blades ) ); 147 } 148 case SNAKEWIPE: 149 return ParametricPolyPolygonSharedPtr( 150 new SnakeWipe( 151 // elements: | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 135 unchanged lines hidden (view full) --- 144 } 145 return ParametricPolyPolygonSharedPtr( 146 new PinWheelWipe( blades ) ); 147 } 148 case SNAKEWIPE: 149 return ParametricPolyPolygonSharedPtr( 150 new SnakeWipe( 151 // elements: |
152 64 * 64, | 152 8 * 8, |
153 // diagonal: 154 nSubType == TOPLEFTDIAGONAL || 155 nSubType == TOPRIGHTDIAGONAL || 156 nSubType == BOTTOMRIGHTDIAGONAL || 157 nSubType == BOTTOMLEFTDIAGONAL, 158 // flipOnYAxis: 159 nSubType == TOPLEFTVERTICAL || 160 nSubType == TOPRIGHTDIAGONAL || 161 nSubType == BOTTOMLEFTDIAGONAL 162 ) ); 163 case PARALLELSNAKESWIPE: 164 return ParametricPolyPolygonSharedPtr( 165 new ParallelSnakesWipe( 166 // elements: | 153 // diagonal: 154 nSubType == TOPLEFTDIAGONAL || 155 nSubType == TOPRIGHTDIAGONAL || 156 nSubType == BOTTOMRIGHTDIAGONAL || 157 nSubType == BOTTOMLEFTDIAGONAL, 158 // flipOnYAxis: 159 nSubType == TOPLEFTVERTICAL || 160 nSubType == TOPRIGHTDIAGONAL || 161 nSubType == BOTTOMLEFTDIAGONAL 162 ) ); 163 case PARALLELSNAKESWIPE: 164 return ParametricPolyPolygonSharedPtr( 165 new ParallelSnakesWipe( 166 // elements: |
167 64 * 64, | 167 8 * 8, |
168 // diagonal: 169 nSubType == DIAGONALBOTTOMLEFTOPPOSITE || 170 nSubType == DIAGONALTOPLEFTOPPOSITE, 171 // flipOnYAxis: 172 nSubType == VERTICALBOTTOMLEFTOPPOSITE || 173 nSubType == HORIZONTALTOPLEFTOPPOSITE || 174 nSubType == DIAGONALTOPLEFTOPPOSITE, 175 // opposite: 176 nSubType == VERTICALTOPLEFTOPPOSITE || 177 nSubType == VERTICALBOTTOMLEFTOPPOSITE || 178 nSubType == HORIZONTALTOPLEFTOPPOSITE || 179 nSubType == HORIZONTALTOPRIGHTOPPOSITE || 180 nSubType == DIAGONALBOTTOMLEFTOPPOSITE || 181 nSubType == DIAGONALTOPLEFTOPPOSITE 182 ) ); 183 case SPIRALWIPE: 184 return ParametricPolyPolygonSharedPtr( 185 new SpiralWipe( 186 // elements: | 168 // diagonal: 169 nSubType == DIAGONALBOTTOMLEFTOPPOSITE || 170 nSubType == DIAGONALTOPLEFTOPPOSITE, 171 // flipOnYAxis: 172 nSubType == VERTICALBOTTOMLEFTOPPOSITE || 173 nSubType == HORIZONTALTOPLEFTOPPOSITE || 174 nSubType == DIAGONALTOPLEFTOPPOSITE, 175 // opposite: 176 nSubType == VERTICALTOPLEFTOPPOSITE || 177 nSubType == VERTICALBOTTOMLEFTOPPOSITE || 178 nSubType == HORIZONTALTOPLEFTOPPOSITE || 179 nSubType == HORIZONTALTOPRIGHTOPPOSITE || 180 nSubType == DIAGONALBOTTOMLEFTOPPOSITE || 181 nSubType == DIAGONALTOPLEFTOPPOSITE 182 ) ); 183 case SPIRALWIPE: 184 return ParametricPolyPolygonSharedPtr( 185 new SpiralWipe( 186 // elements: |
187 64 * 64, | 187 8 * 8, |
188 // flipOnYAxis: 189 nSubType == TOPLEFTCOUNTERCLOCKWISE || 190 nSubType == TOPRIGHTCOUNTERCLOCKWISE || 191 nSubType == BOTTOMRIGHTCOUNTERCLOCKWISE || 192 nSubType == BOTTOMLEFTCOUNTERCLOCKWISE ) ); 193 case BOXSNAKESWIPE: 194 return ParametricPolyPolygonSharedPtr( 195 new BoxSnakesWipe( 196 // elements: | 188 // flipOnYAxis: 189 nSubType == TOPLEFTCOUNTERCLOCKWISE || 190 nSubType == TOPRIGHTCOUNTERCLOCKWISE || 191 nSubType == BOTTOMRIGHTCOUNTERCLOCKWISE || 192 nSubType == BOTTOMLEFTCOUNTERCLOCKWISE ) ); 193 case BOXSNAKESWIPE: 194 return ParametricPolyPolygonSharedPtr( 195 new BoxSnakesWipe( 196 // elements: |
197 64 * 64, | 197 8 * 8, |
198 // fourBox: 199 nSubType == FOURBOXVERTICAL || 200 nSubType == FOURBOXHORIZONTAL ) ); 201 case SINGLESWEEPWIPE: 202 return ParametricPolyPolygonSharedPtr( 203 new SweepWipe( 204 // center: 205 nSubType == CLOCKWISETOP || --- 103 unchanged lines hidden --- | 198 // fourBox: 199 nSubType == FOURBOXVERTICAL || 200 nSubType == FOURBOXHORIZONTAL ) ); 201 case SINGLESWEEPWIPE: 202 return ParametricPolyPolygonSharedPtr( 203 new SweepWipe( 204 // center: 205 nSubType == CLOCKWISETOP || --- 103 unchanged lines hidden --- |