Logo Search packages:      
Sourcecode: ktechlab version File versions  Download package

bool Cells::haveCell ( int  i,
int  j 
) const [inline]

Returns:
if the given cell exists.

Definition at line 109 of file cells.h.

Referenced by ICNDocument::addCPenalty(), haveCellContaing(), ConRouter::mapRoute(), Connector::updateConnectorPoints(), CNItem::updateConnectorPoints(), and Connector::updateDrawList().

            {
                  if ( (i < m_cellsRect.left()) || (i >= m_cellsRect.right()) )
                        return false;
                  
                  if ( (j < m_cellsRect.top()) || (j >= m_cellsRect.bottom()) )
                        return false;
                  
                  return true;
            }


Generated by  Doxygen 1.6.0   Back to index