コード例 #1
0
ファイル: QgarAppDescr.cpp プロジェクト: rentpath/qgar
string
QgarAppDescr::toXml() const
{
  throw QgarErrorDeveloper(__FILE__, __LINE__,
			   "std::string qgar::QgarAppDescr::toXml() const",
			   "Function not yet implemented!");
  
  return string();
}
コード例 #2
0
ファイル: VecFile.cpp プロジェクト: jlerouge/GEMpp
void
VecFile::write(double aX, double aY, int aThickness, QGEcolor aColor)



{
    Q_UNUSED(aX);
    Q_UNUSED(aY);
    Q_UNUSED(aThickness);
    Q_UNUSED(aColor);
    throw QgarErrorDeveloper(__FILE__, __LINE__,
                             "void qgar::DxfFile::write(double, double, int, QGEcolor)",
                             "Points are not supported by current VEC format!");
}
コード例 #3
0
ファイル: VecFile.cpp プロジェクト: jlerouge/GEMpp
void
VecFile::write(AbstractGenPointChain<double>& aChain,
               int aThickness,
               QGEcolor aColor)



{
    Q_UNUSED(aChain);
    Q_UNUSED(aThickness);
    Q_UNUSED(aColor);
    throw QgarErrorDeveloper(__FILE__, __LINE__,
                             "void qgar::DxfFile::write(qgar::AbstractGenPointChain<double>&, int, qgar::QGEcolor)",
                             "Chains of points are not supported by current VEC format!");
}
コード例 #4
0
ファイル: VecFile.cpp プロジェクト: jlerouge/GEMpp
void
VecFile::write(const GenPolyline<double>& aPoly,
               int aThickness,
               QGEcolor aColor,
               QGEoutline anOutline)



{
    Q_UNUSED(aPoly);
    Q_UNUSED(aThickness);
    Q_UNUSED(aColor);
    Q_UNUSED(anOutline);
    throw QgarErrorDeveloper(__FILE__, __LINE__,
                             "void qgar::DxfFile::write(const qgar::GenPolyline<double>&, int, qgar::QGEcolor, qgar::QGEoutline)",
                             "Polylines are not supported by current VEC format!");
}
コード例 #5
0
ファイル: VecFile.cpp プロジェクト: jlerouge/GEMpp
void
VecFile::write(const ConnectedComponents::node_type* const aPNode,
               int aThickness,
               QGEcolor aColor,
               QGEoutline anOutline)



{
    Q_UNUSED(aPNode);
    Q_UNUSED(aThickness);
    Q_UNUSED(aColor);
    Q_UNUSED(anOutline);
    throw QgarErrorDeveloper(__FILE__, __LINE__,
                             "void qgar::DxfFile::write(const qgar::ConnectedComponents::node_type* const, int, qgar::QGEcolor, qgar::QGEoutline)",
                             "Connected components are not supported by current VEC format!");
}
コード例 #6
0
ファイル: VecFile.cpp プロジェクト: jlerouge/GEMpp
void
VecFile::write(const BoundingBox& aBox,
               int aThickness,
               QGEcolor aColor,
               QGEoutline anOutline)



{
    Q_UNUSED(aBox);
    Q_UNUSED(aThickness);
    Q_UNUSED(aColor);
    Q_UNUSED(anOutline);
    throw QgarErrorDeveloper(__FILE__, __LINE__,
                             "void qgar::DxfFile::write(const qgar::BoundingBox&, int, qgar::QGEcolor, qgar::QGEoutline)",
                             "Polylines are not supported by current VEC format!");
}
コード例 #7
0
ファイル: DesShapeContext.cpp プロジェクト: rentpath/qgar
DesShapeContext::DesShapeContext()
{
  throw QgarErrorDeveloper(__FILE__, __LINE__,
			   "qgar::DesShapeContext::DesShapeContext()",
			   "Disabled constructor: should not be used!");
}
コード例 #8
0
ファイル: QgarAppDescr.cpp プロジェクト: rentpath/qgar
void
QgarAppDescr::startParam(const Attributes& atts)
{
  // Set flag indicating that we're parsing a parameter now
  _parseData->state = PARAM;

  // Reset current parameter
  delete  _parseData->currentParam;
  _parseData->currentParam = new QgarAppParamDescr();


  //-- Read Parameter Attributes

  for (int i = 0; i < atts.getLength(); ++i)
    {
      string name  = atts.getLocalName(i);
      string value = atts.getValue(i);

      if (name == "name")
	{
	  (_parseData->currentParam)->setName(value);
	}


      else if (name == "flag")
	{
	  (_parseData->currentParam)->setFlag(value);
	}


      else if (name == "required")
	{
	  if (value == "false")
	    {
	      (_parseData->currentParam)->setRequired(false);
	    }
	  else
	    {
	      (_parseData->currentParam)->setRequired(true);
	    }
	}


      else if (name == "passing-mode")
	{
	  QgarAppParamDescr::ParamPassing mode;

	  if (value == "in")
	    {
	      mode = QgarAppParamDescr::QGE_IN;
	    }
	  else if (value == "out")
	    {
	      mode = QgarAppParamDescr::QGE_OUT;
	    }
	  else if (value == "inout")
	    {
	      mode = QgarAppParamDescr::QGE_INOUT;
	    }
          else
            {
	      mode = QgarAppParamDescr::QGE_NONE;

	      ostringstream os;
	      os << "Unknown mode: "
		 << value;
	      throw QgarErrorDeveloper(__FILE__, __LINE__,
				       "void QgarAppDescr::startParam(const Attributes&)",
				       os.str());
            }
	  (_parseData->currentParam)->setPassingMode(mode);
	}


      else if (name == "type")
	{
	  if ( (value == "grayscale") ||
	       (value == "binary") ||
	       (value == "vectorial") )
	    {
	      (_parseData->currentParam)->setType(QgarAppParamDescr::QGE_IMAGE);
	    }
	  else
	    {
	      (_parseData->currentParam)->setType(QgarAppParamDescr::QGE_NUM);
	    }
	}


      else if (name == "format")
	{
	  QgarAppParamDescr::ParamFormat format;

	  if (value == "PBM")
	    {
	      format = QgarAppParamDescr::QGE_PBM;
	    }
	  else if (value == "PPM")
	    {
	      format = QgarAppParamDescr::QGE_PPM;
	    }
	  else if (value == "PGM")
	    {
	      format = QgarAppParamDescr::QGE_PGM;
	    }
	  else if (value == "DXF")
	    {
	      format = QgarAppParamDescr::QGE_DXF;
	    }
	  else if (value == "SVG")
	    {
	      format = QgarAppParamDescr::QGE_SVG;
	    }
	  else if (value == "int")
	    {
	      format = QgarAppParamDescr::QGE_INT;
	    }
	  else if (value == "real")
	    {
	      format = QgarAppParamDescr::QGE_REAL;
	    }
	  else
	    {
	      format = QgarAppParamDescr::QGE_UNKNOWN_FORMAT;
	    }

	  (_parseData->currentParam)->setFormat(format);
	}


      else if (name == "default")
	{
	  (_parseData->currentParam)->setDefaultValue(value);      
	}


      else if (name == "min")
	{
	  (_parseData->currentParam)->setMinValue(value);      
	}


      else if (name == "max")
	{
	  (_parseData->currentParam)->setMaxValue(value);      
	}
    }
}
コード例 #9
0
ConnectedComponents::ConnectedComponents()
{
  throw QgarErrorDeveloper(__FILE__, __LINE__,
			   "qgar::ConnectedComponents::ConnectedComponents()",
			   "Disabled constructor: should not be used!");
}