Commit 953feae5 authored by Haocheng LIU's avatar Haocheng LIU
Browse files

BUG: Remove std::cout debug codes in rgg folder

parent f9560a4b
......@@ -39,7 +39,6 @@ smtk::model::OperatorResult Delete::operateInternal()
EntityRefArray tobeDeleted;
for (auto ent = entities.begin(); ent != entities.end(); ent++)
{
std::cout << "DELETE: ent name=" << ent->name() << " is instance?" << ent->isInstance()<<std::endl;
if ((!ent->isAuxiliaryGeometry() || !ent->hasStringProperty("rggType")) && !ent->isInstance())
{
smtkErrorMacro(this->log(), "Non rgg entities cannot be deleted by "
......
......@@ -611,21 +611,6 @@ bool ReadRXFFileHelper::parseCore(pugi::xml_node rootNode,
// Glyph the duct and pins
ReadRXFFileHelper::createInstances(entsAndCoords, core, newCoreInstances);
// TODO: Add support for unknown attribute
/***********************************************************************/
std::cout << "paring core:" <<std::endl;
std::cout << "label to layout" <<std::endl;
for (auto& iter: assyLabelToLayout)
{
std::cout << " " <<iter.first <<std::endl;
for (auto value: iter.second)
{
std::cout << value << " ";
}
std::cout << std::endl;
}
/***********************************************************************/
return r;
}
......@@ -1077,24 +1062,6 @@ bool ReadRXFFileHelper::parseAssembly(pugi::xml_node assyNode,
ReadRXFFileHelper::createInstances(entsAndCoords, assembly, newAssyInstances);
// TODO: Add support for unknown attribute
/***********************************************************************/
std::cout << "paring assembly:" <<std::endl;
std::cout << " name=" <<name << " label=" <<label
<< "centerPins=" << centerPins << " pitches="
<< pitches[0] << " " <<pitches[1] <<std::endl;
std::cout << "label to layout" <<std::endl;
for (auto& iter: pinLabelsToLayouts)
{
std::cout << " " <<iter.first <<std::endl;
for (auto value: iter.second)
{
std::cout << value << " ";
}
std::cout << std::endl;
}
/***********************************************************************/
if (!r)
{
smtkErrorMacro(smtk::io::Logger(), "Encounter errors when paring assembly "
......@@ -1154,7 +1121,6 @@ bool ReadRXFFileHelper::parseLattice(pugi::xml_node latticeNode, LabelToLayout&
latticeSize.push_back(j);
latticeSize.push_back(labelsPerRing.size());
}
std::cout << "latticeSize: " << latticeSize[0] << " " << latticeSize[1] <<std::endl;
if (isCore)
{ // Core group is just a place holder. All infos are stored in the model
target.owningModel().setIntegerProperty("lattice size", latticeSize);
......
......@@ -82,8 +82,6 @@ void radiusItem::setData(int role, const QVariant &value)
item->setRadius(value.toDouble());
}
double vDouble = value.toDouble();
std::cout << "at " << "row=" << row << " col=" << column<<
" back=" << back << " forward="<<forward <<std::endl;
if (back)
{
this->checkAndUpdateNeighbour(--row, DIRECTION::BACK, vDouble);
......@@ -99,7 +97,6 @@ void radiusItem::setData(int role, const QVariant &value)
void radiusItem::checkAndUpdateNeighbour(
const int row, const DIRECTION direction, const double r)
{
std::cout << "checkAndUpdateNeighbour, row=" << row <<std::endl;
QTableWidget* pt = this->tableWidget();
bool isBack = (direction == DIRECTION::BACK);
int bound = (isBack ? 0 : (pt->rowCount()-1));
......@@ -157,8 +154,6 @@ void rangeItem::setData(int role, const QVariant &value)
}
}
double dValue = value.toDouble();
// std::cout << "Test value=" <<dValue << " at row=" << row <<
// " col=" << col << " lb=" << lb << " ub=" << ub <<std::endl;
if (dValue <= lb || dValue >= ub)
{
return;
......
......@@ -173,8 +173,6 @@ QColor qtDraw2DLattice::getColor(QString name) const
void qtDraw2DLattice::addCell( QPointF const& posF, double r, int layer, int cellIdx,
qtLattice::CellDrawMode mode)
{
// std::cout << " addCell: " << " r=" << r << " layer="
// << layer << " cellIdx=" << cellIdx <<std::endl;
qtCell lc = m_grid.GetCell(layer, cellIdx);
if(!lc.isValid())
{
......
......@@ -144,7 +144,6 @@ bool qtCellReference::radiusConflicts(double r) const
{
return false;
// TODO: add radius check support
std::cout << " radiusConflicts: r=" << r<< " maxradius=" <<this->getMaxRadius()<<std::endl;
return r >= this->getMaxRadius();
}
......
......@@ -96,22 +96,22 @@ bool rggNucAssembly::IsHexType()
void rggNucAssembly::calculateExtraTranslation(double & transX, double & transY)
{
std::cout <<"TODO: rggNucAssembly::calculateExtraTranslation" <<std::endl;
// TODO: rggNucAssembly::calculateExtraTranslation"
}
void rggNucAssembly::calculateTranslation(double & transX, double & transY)
{
std::cout <<"TODO: rggNucAssembly::calculateTranslation" <<std::endl;
// "TODO: rggNucAssembly::calculateTranslation"
}
void rggNucAssembly::setUpdateUsed()
{
std::cout <<"TODO: rggNucAssembly::setUpdateUsed" <<std::endl;
// "TODO: rggNucAssembly::setUpdateUsed"
}
void rggNucAssembly::getRadius(double & ri, double & rj) const
{
std::cout <<"TODO: rggNucAssembly::getRadius" <<std::endl;
// "TODO: rggNucAssembly::getRadius"
}
void rggNucAssembly::resetBySMTKAssembly(const smtk::model::EntityRef& assy)
......
......@@ -96,22 +96,22 @@ bool rggNucCore::IsHexType()
void rggNucCore::calculateExtraTranslation(double & transX, double & transY)
{
std::cout <<"TODO: rggNucCore::calculateExtraTranslation" <<std::endl;
// "TODO: rggNucCore::calculateExtraTranslation"
}
void rggNucCore::calculateTranslation(double & transX, double & transY)
{
std::cout <<"TODO: rggNucCore::calculateTranslation" <<std::endl;
// "TODO: rggNucCore::calculateTranslation"
}
void rggNucCore::setUpdateUsed()
{
std::cout <<"TODO: rggNucCore::setUpdateUsed" <<std::endl;
// "TODO: rggNucCore::setUpdateUsed"
}
void rggNucCore::getRadius(double & ri, double & rj) const
{
std::cout <<"TODO: rggNucCore::getRadius" <<std::endl;
// "TODO: rggNucCore::getRadius"
}
void rggNucCore::resetBySMTKCore(const smtk::model::EntityRef& core)
......@@ -131,7 +131,6 @@ void rggNucCore::resetBySMTKCore(const smtk::model::EntityRef& core)
if (model.hasIntegerProperty("hex"))
{
int isHex = model.integerProperty("hex")[0];
std::cout << " hex=" << isHex <<std::endl;
this->m_lattice.SetGeometryType(isHex ? rggGeometryType::HEXAGONAL
: rggGeometryType::RECTILINEAR);
}
......@@ -144,7 +143,6 @@ void rggNucCore::resetBySMTKCore(const smtk::model::EntityRef& core)
model.integerProperty("lattice size").size() == 2)
{
smtk::model::IntegerList lSize = model.integerProperty("lattice size");
std::cout << " lattice size=" << lSize[0] << " " << lSize[1]<<std::endl;
this->m_lattice.SetDimensions(lSize[0], lSize[1]);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment