Example #1
0
int PointSets::pointCountMeasure(QString name)
{
  PointSet* pointSet = findMeasure(name);
  if (pointSet == 0)
    return 0;
  else
    return pointSet->pointCount();
}
Example #2
0
 boost::optional<BCLMeasure> WorkflowJSON_Impl::getBCLMeasure(const MeasureStep& step) const
 {
   boost::optional<openstudio::path> path = findMeasure(step.measureDirName());
   if (path){
     return BCLMeasure::load(*path);
   }
   return boost::none;
 }
Example #3
0
void PointSets::setName(QString oldName, QString newName)
{
  ASSERT_ENGAUGE(oldName != AxesPointSetName);
  ASSERT_ENGAUGE(oldName != ScalePointSetName);

  PointSet* pointSet = findCurve(oldName);
  if (pointSet)
  {
    pointSet->setName(newName);
    return;
  }

  pointSet = findMeasure(oldName);
  if (pointSet)
  {
    pointSet->setName(newName);
    return;
  }
}
Example #4
0
QPixmap PointSets::measureThumbnail(QString name)
{
  PointSet* pointSet = findMeasure(name);
  ASSERT_ENGAUGE(pointSet != 0);
  return pointSet->thumbnail();
}
Example #5
0
void PointSets::setMeasureStyle(QString name, PointSetStyle pointSetStyle)
{
  PointSet* pointSet = findMeasure(name);
  ASSERT_ENGAUGE(pointSet != 0);
  pointSet->setStyle(pointSetStyle);
}
Example #6
0
PointSetStyle PointSets::measureStyle(QString name)
{
  PointSet* pointSet = findMeasure(name);
  ASSERT_ENGAUGE(pointSet != 0);
  return pointSet->style();
}
Example #7
0
void PointSets::addPointMeasure(Q3Canvas* canvas, Point* p, QString name, QList<QRect>* updateRectList)
{
  PointSet* pointSet = findMeasure(name);
  if (pointSet != 0)
    pointSet->addPoint(canvas, p, updateRectList);
}
Example #8
0
 boost::optional<openstudio::path> WorkflowJSON_Impl::findMeasure(const std::string& measureDirName) const
 {
   return findMeasure(toPath(measureDirName));
 }