Select one unit of triangle shapes.

@param  integer $rank2 Column index
@access public
@return void
556614
public function row10($rank2)
    {
        if ($rank2 == 0) {
            $t = new Primitive\Triangle();
            $t
                ->point(0, 0)
                ->point(self::SIZE, 0)
                ->point(self::SIZE / 2, self::SIZE / 2)
                ->color($this->fg());

            $this->add($t);

            $t = new Primitive\Triangle();
            $t
                ->point(0, self::SIZE / 2)
                ->point(self::SIZE, self::SIZE / 2)
                ->point(self::SIZE / 2, self::SIZE)
                ->color($this->fg());

            $this->add($t);
        }

        if ($rank2 == 1) {
            $t = new Primitive\Triangle();
            $t
                ->point(0, self::SIZE / 2)
                ->point(self::SIZE / 2, 0)
                ->point(self::SIZE / 2, self::SIZE)
                ->color($this->fg());

            $this->add($t);

            $t = new Primitive\Triangle();
            $t
                ->point(self::SIZE / 2, self::SIZE / 2)
                ->point(self::SIZE, 0)
                ->point(self::SIZE, self::SIZE)
                ->color($this->fg());

            $this->add($t);
        }
        if ($rank2 == 2) {
            $t = new Primitive\Triangle();
            $t
                ->point(self::SIZE / 2, 0)
                ->point(self::SIZE, self::SIZE / 2)
                ->point(0, self::SIZE / 2)
                ->color($this->fg());

            $this->add($t);

            $t = new Primitive\Triangle();
            $t
                ->point(self::SIZE / 2, self::SIZE / 2)
                ->point(self::SIZE, self::SIZE)
                ->point(0, self::SIZE)
                ->color($this->fg());

            $this->add($t);
        }
        if ($rank2 == 3) {
            $p = new Primitive\Polygon();
            $p
                ->point(0, 0)
                ->point(self::SIZE / 2, self::SIZE * (3/4))
                ->point(self::SIZE / 2, self::SIZE / 4)
                ->point(self::SIZE, self::SIZE)
                ->point(0, self::SIZE)
                ->color($this->fg());

            $this->add($p);
        }
        if ($rank2 == 4) {
            $p = new Primitive\Polygon();
            $p
                ->point(0, 0)
                ->point(self::SIZE, 0)
                ->point(self::SIZE / 4, self::SIZE / 2)
                ->point(self::SIZE * (3/4), self::SIZE / 2)
                ->point(0, self::SIZE)
                ->color($this->fg());

            $this->add($p);
        }
        if ($rank2 == 5) {
            $p = new Primitive\Polygon();
            $p
                ->point(0, 0)
                ->point(self::SIZE, 0)
                ->point(self::SIZE, self::SIZE)
                ->point(self::SIZE / 2, self::SIZE / 4)
                ->point(self::SIZE / 2, self::SIZE * (3/4))
                ->color($this->fg());

            $this->add($p);
        }
        if ($rank2 == 6) {
            $p = new Primitive\Polygon();
            $p
                ->point(0, self::SIZE)
                ->point(self::SIZE * (3/4), self::SIZE / 2)
                ->point(self::SIZE / 4, self::SIZE / 2)
                ->point(self::SIZE, 0)
                ->point(self::SIZE, self::SIZE)
                ->color($this->fg());

            $this->add($p);
        }
        if ($rank2 == 7) {
            $t = new Primitive\Triangle();
            $t
                ->point(0, self::SIZE / 2)
                ->point(self::SIZE / 2, self::SIZE * (3/4))
                ->point(0, self::SIZE)
                ->color($this->fg());

            $this->add($t);

            $t = new Primitive\Triangle();
            $t
                ->point(self::SIZE / 2, self::SIZE)
                ->point(self::SIZE * (3/4), self::SIZE / 2)
                ->point(self::SIZE, self::SIZE)
                ->color($this->fg());

            $this->add($t);

            $t = new Primitive\Triangle();
            $t
                ->point(self::SIZE / 2, self::SIZE / 4)
                ->point(self::SIZE, 0)
                ->point(self::SIZE, self::SIZE / 2)
                ->color($this->fg());

            $this->add($t);
        }
        if ($rank2 == 8) {
            $t = new Primitive\Triangle();
            $t
                ->point(0, 0)
                ->point(self::SIZE / 2, 0)
                ->point(self::SIZE / 4, self::SIZE / 2)
                ->color($this->fg());

            $this->add($t);

            $t = new Primitive\Triangle();
            $t
                ->point(0, self::SIZE / 2)
                ->point(self::SIZE / 2, self::SIZE * (3/4))
                ->point(0, self::SIZE)
                ->color($this->fg());

            $this->add($t);

            $t = new Primitive\Triangle();
            $t
                ->point(self::SIZE / 2, self::SIZE)
                ->point(self::SIZE * (3/4), self::SIZE / 2)
                ->point(self::SIZE, self::SIZE)
                ->color($this->fg());

            $this->add($t);
        }
        if ($rank2 == 9) {
            $t = new Primitive\Triangle();
            $t
                ->point(0, 0)
                ->point(self::SIZE / 2, 0)
                ->point(self::SIZE / 4, self::SIZE / 2)
                ->color($this->fg());

            $this->add($t);

            $t = new Primitive\Triangle();
            $t
                ->point(self::SIZE / 2, self::SIZE / 4)
                ->point(self::SIZE, 0)
                ->point(self::SIZE, self::SIZE / 2)
                ->color($this->fg());

            $this->add($t);

            $t = new Primitive\Triangle();
            $t
                ->point(0, self::SIZE / 2)
                ->point(self::SIZE / 2, self::SIZE * (3/4))
                ->point(0, self::SIZE)
                ->color($this->fg());

            $this->add($t);
        }
        if ($rank2 == 10) {
            $t = new Primitive\Triangle();
            $t
                ->point(0, 0)
                ->point(self::SIZE / 2, 0)
                ->point(self::SIZE / 4, self::SIZE / 2)
                ->color($this->fg());

            $this->add($t);

            $t = new Primitive\Triangle();
            $t
                ->point(self::SIZE / 2, self::SIZE / 4)
                ->point(self::SIZE, 0)
                ->point(self::SIZE, self::SIZE / 2)
                ->color($this->fg());

            $this->add($t);

            $t = new Primitive\Triangle();
            $t
                ->point(self::SIZE * (3/4), self::SIZE / 2)
                ->point(self::SIZE, self::SIZE)
                ->point(self::SIZE / 2, self::SIZE)
                ->color($this->fg());

            $this->add($t);
        }
        if ($rank2 == 11) {
            $t = new Primitive\Triangle();
            $t
                ->point(self::SIZE / 2, 0)
                ->point(self::SIZE, self::SIZE)
                ->point(0, self::SIZE)
                ->color($this->fg());

            $this->add($t);

            $t = new Primitive\Triangle();
            $t
                ->point(self::SIZE / 2, self::SIZE / 2)
                ->point(self::SIZE * (3/4), self::SIZE * (3/4))
                ->point(self::SIZE / 4, self::SIZE * (3/4))
                ->color($this->bg());

            $this->add($t);
        }
        if ($rank2 == 12) {
            $t = new Primitive\Triangle();
            $t
                ->point(0, 0)
                ->point(self::SIZE, self::SIZE / 2)
                ->point(0, self::SIZE)
                ->color($this->fg());

            $this->add($t);

            $t = new Primitive\Triangle();
            $t
                ->point(self::SIZE / 4, self::SIZE / 4)
                ->point(self::SIZE / 2, self::SIZE / 2)
                ->point(self::SIZE / 4, self::SIZE * (3/4))
                ->color($this->bg());

            $this->add($t);
        }
        if ($rank2 == 13) {
            $t = new Primitive\Triangle();
            $t
                ->point(0, 0)
                ->point(self::SIZE, 0)
                ->point(self::SIZE / 2, self::SIZE)
                ->color($this->fg());

            $this->add($t);

            $t = new Primitive\Triangle();
            $t
                ->point(self::SIZE / 4, self::SIZE / 4)
                ->point(self::SIZE * (3/4), self::SIZE / 4)
                ->point(self::SIZE / 2, self::SIZE / 2)
                ->color($this->bg());

            $this->add($t);
        }
        if ($rank2 == 14) {
            $t = new Primitive\Triangle();
            $t
                ->point(0, self::SIZE / 2)
                ->point(self::SIZE, 0)
                ->point(self::SIZE, self::SIZE)
                ->color($this->fg());

            $this->add($t);

            $t = new Primitive\Triangle();
            $t
                ->point(self::SIZE * (3/4), self::SIZE / 4)
                ->point(self::SIZE * (3/4), self::SIZE * (3/4))
                ->point(self::SIZE / 2, self::SIZE / 2)
                ->color($this->bg());

            $this->add($t);
        }
        if ($rank2 == 15) {
            $this->row1(1);
            $this->row6(12);
            $this->get(1)->color($this->bg());
            $this->get(2)->color($this->bg());
        }
    }
986015
public function select($select, $distinct = null)
    {
        if (null !== $distinct) {
            $this->distinct($distinct);
        }

        if (empty($select)) {
            return $this;
        }

        $builder = $this->getLookupBuilder();
        $parts = [];
        if (is_array($select)) {
            foreach ($select as $key => $part) {
                if (is_string($part)) {
                    $newSelect = $builder->buildJoin($this, $part);
                    if ($newSelect) {
                        list($alias, $column) = $newSelect;
                        $parts[$key] = $alias.'.'.$column;
                    } else {
                        $parts[$key] = $part;
                    }
                } else {
                    $parts[$key] = $part;
                }
            }
        } elseif (is_string($select)) {
            $newSelect = $builder->buildJoin($this, $select);
            if ($newSelect) {
                list($alias, $column) = $newSelect;
                $parts[$alias] = $column;
            } else {
                $parts[] = $select;
            }
        } else {
            $parts[] = $select;
        }

        $this->sqlParts['select'] = $parts;

        return $this;
    }
235709
public function select2($config = array())
    {
        $config = new KObjectConfigJson($config);
        $config->append(array(
            'debug' => JFactory::getApplication()->getCfg('debug')
        ));

        return parent::select2($config);
    }
1120687
protected function multipleOrder(array $cols, /*# sting */ $suffix)
    {
        foreach ($cols as $col) {
            $this->realOrder($col, $suffix);
        }
    }
763664
public function row8($rank2)
    {
        // big diamond
        if ($rank2 == 0) {
            $d = new Primitive\Diamond();
            $d
                ->point(self::SIZE / 2, 0)
                ->point(self::SIZE, self::SIZE / 2)
                ->point(self::SIZE / 2, self::SIZE)
                ->point(0, self::SIZE / 2)
                ->color($this->fg());

            $this->add($d);
        }

        // small TL
        if ($rank2 == 1) {
            $d = new Primitive\Diamond();
            $d
                ->point(self::SIZE / 4, 0)
                ->point(self::SIZE / 2, self::SIZE / 4)
                ->point(self::SIZE / 4, self::SIZE / 2)
                ->point(0, self::SIZE / 4)
                ->color($this->fg());

            $this->add($d);
        }

        // small TR
        if ($rank2 == 2) {
            $d = new Primitive\Diamond();
            $d
                ->point(self::SIZE * (3/4), 0)
                ->point(self::SIZE, self::SIZE / 4)
                ->point(self::SIZE * (3/4), self::SIZE / 2)
                ->point(self::SIZE / 2, self::SIZE / 4)
                ->color($this->fg());

            $this->add($d);
        }

        // small BR
        if ($rank2 == 3) {
            $d = new Primitive\Diamond();
            $d
                ->point(self::SIZE * (3/4), self::SIZE / 2)
                ->point(self::SIZE, self::SIZE * (3/4))
                ->point(self::SIZE * (3/4), self::SIZE)
                ->point(self::SIZE / 2, self::SIZE * (3/4))
                ->color($this->fg());

            $this->add($d);
        }

        // small BL
        if ($rank2 == 4) {
            $d = new Primitive\Diamond();
            $d
                ->point(self::SIZE / 4, self::SIZE / 2)
                ->point(self::SIZE / 2, self::SIZE * (3/4))
                ->point(self::SIZE / 4, self::SIZE)
                ->point(0, self::SIZE * (3/4))
                ->color($this->fg());

            $this->add($d);
        }

        // Small CENTER
        if ($rank2 == 5) {
            $d = new Primitive\Diamond();
            $d
                ->point(self::SIZE / 2, self::SIZE / 4)
                ->point(self::SIZE * (3/4), self::SIZE / 2)
                ->point(self::SIZE / 2, self::SIZE * (3/4))
                ->point(self::SIZE / 4, self::SIZE / 2)
                ->color($this->fg());

            $this->add($d);

            $d = new Primitive\Diamond();
            $d
                ->point(self::SIZE / 2, self::SIZE * (3/8))
                ->point(self::SIZE * (5/8), self::SIZE / 2)
                ->point(self::SIZE / 2, self::SIZE * (5/8))
                ->point(self::SIZE * (3/8), self::SIZE / 2)
                ->color($this->bg());

            $this->add($d);
        }

        // reversed small TL
        if ($rank2 == 6) {
            $this->row1(1);
            $this->row8(1);
            $this->last()->color($this->bg());
        }

        // reversed small TR
        if ($rank2 == 7) {
            $this->row1(1);
            $this->row8(2);
            $this->last()->color($this->bg());
        }

        // reversed small BR
        if ($rank2 == 8) {
            $this->row1(1);
            $this->row8(3);
            $this->last()->color($this->bg());
        }

        // reversed small BL
        if ($rank2 == 9) {
            $this->row1(1);
            $this->row8(4);
            $this->last()->color($this->bg());
        }

        // Big and center reversed
        if ($rank2 == 10) {
            $this->row8(0);
            $this->row13(0);
            $this->last()->color($this->bg());
        }

        // Long VERTICAL CENTER
        if ($rank2 == 11) {
            $d = new Primitive\Diamond();
            $d
                ->point(self::SIZE / 2, 0)
                ->point(self::SIZE * (3/4), self::SIZE / 2)
                ->point(self::SIZE / 2, self::SIZE)
                ->point(self::SIZE / 4, self::SIZE / 2)
                ->color($this->fg());

            $this->add($d);
        }

        // Long HORIZONTAL CENTER
        if ($rank2 == 12) {
            $d = new Primitive\Diamond();
            $d
                ->point(0, self::SIZE / 2)
                ->point(self::SIZE / 2, self::SIZE / 4)
                ->point(self::SIZE, self::SIZE / 2)
                ->point(self::SIZE / 2, self::SIZE * (3/4))
                ->color($this->fg());

            $this->add($d);
        }

        // Long DIAGONAL TL BR
        if ($rank2 == 13) {
            $d = new Primitive\Diamond();
            $d
                ->point(0, 0)
                ->point(self::SIZE * (3/4), self::SIZE / 4)
                ->point(self::SIZE, self::SIZE)
                ->point(self::SIZE / 4, self::SIZE * (3/4))
                ->color($this->fg());

            $this->add($d);
        }

        // Long DIAGONAL TR BL
        if ($rank2 == 14) {
            $d = new Primitive\Diamond();
            $d
                ->point(self::SIZE / 4, self::SIZE / 4)
                ->point(self::SIZE, 0)
                ->point(self::SIZE *(3/4), self::SIZE * (3/4))
                ->point(0, self::SIZE)
                ->color($this->fg());

            $this->add($d);
        }

        // 4 littles
        if ($rank2 == 15) {
            $this->row8(1);
            $this->row8(2);
            $this->row8(3);
            $this->row8(4);
        }
    }
192776
public function setDiagonalDirection($pValue = PHPExcel_Style_Borders::DIAGONAL_NONE) {
        if ($pValue == '') {
    		$pValue = PHPExcel_Style_Borders::DIAGONAL_NONE;
    	}
		if ($this->_isSupervisor) {
			$styleArray = $this->getStyleArray(array('diagonaldirection' => $pValue));
			$this->getActiveSheet()->getStyle($this->getSelectedCells())->applyFromArray($styleArray);
		} else {
			$this->_diagonalDirection = $pValue;
		}
		return $this;
    }
248358
public function select($columns = [])
    {
        parent::select($columns);
        $compiler = $this->connection->getCompiler();
        return $this->connection->query($compiler->select($this->sql), $compiler->getParams());
    }
88944
protected void moveAllLeftToRight() {
        int sz = dataModel.getSize();
        int[] selected = new int[sz];
        for (int i = 0; i < sz; i++) {
            selected[i] = i;
        }
        helperList.setSelectedIndices(selected);
        update();
    }
293688
def select_unit(action, action_space, select_unit_act, select_unit_id):
  """"""
  del action_space
  select = action.action_ui.multi_panel
  select.type = select_unit_act
  select.unit_index = select_unit_id
989256
function ezShadedRectangle( $x1, $y1, $width, $height, $col1, $col2, $direction = 'vertical' )
    {
        $this->shadedRectangle( $x1, $y1, $width, $height, array( 'orientation' => $direction,
                                                                  'color0' => $col1,
                                                                  'color1' => $col2,
                                                                  'size' => array( 'x1' => $x1,
                                                                                   'y1' => $y1,
                                                                                   'width' => $width,
                                                                                   'height' => $height ) ) );
    }
1119782
public function useSelect2(bool $select2): self
    {
        if (!$this instanceof Attributable) {
            return $this;
        }
        
        $searchOption = 'data-selectAR';
        $select2 ? $this->setAttribute($searchOption, true) : $this->removeAttribute($searchOption);
    
        return $this;
    }
524352
public function buildRanking()
    {
        $i = 0;

        return $this->map(function (ComponentInterface $component) use (&$i) {
            return $component->setRanking(++$i);
        });
    }
1092673
static boolean mergeVertices(Point pt_1, Point pt_2, double w_1,
			int rank_1, double w_2, int rank_2, Point pt_res, double[] w_res,
			int[] rank_res) {
		assert (!pt_1.isEmpty() && !pt_2.isEmpty());
		boolean res = pt_1.equals(pt_2);

		if (rank_1 > rank_2) {
			pt_res = pt_1;
			if (w_res != null) {
				rank_res[0] = rank_1;
				w_res[0] = w_1;
			}
			return res;
		} else if (rank_2 > rank_1) {
			pt_res = pt_2;
			if (w_res != null) {
				rank_res[0] = rank_1;
				w_res[0] = w_1;
			}
			return res;
		}

		pt_res = pt_1;
		Point2D pt2d = new Point2D();
		mergeVertices2D(pt_1.getXY(), pt_2.getXY(), w_1, rank_1, w_2, rank_2,
				pt2d, w_res, rank_res);
		pt_res.setXY(pt2d);
		return res;
	}
397893
public function bootstrapMage2()
    {
        if (is_null($this->bootstrap)) {
            $bootstrap = Bootstrap::create(BP, $_SERVER);
            $bootstrap->getObjectManager();
            $this->bootstrap = true;
        }
    }
1838
protected function shouldSelect(array $columns = ['*'])
    {
        if ($columns === ['*']) {
            $columns = [$this->related->getTable() . '.*'];
        }

        return array_merge($columns, $this->aliasedPivotColumns());
    }
741384
public function select($columns = '*')
    {
        settype($columns, 'array');

        $this->columns = array_unique(array_merge($this->columns, $columns));
        return $this;
    }
638094
public function getRank() : ?float 
    {
        if ( ! $this->hasRank()) {
            $this->setRank($this->getDefaultRank());
        }
        return $this->rank;
    }