コード例 #1
0
ファイル: rsdpa_lib.cpp プロジェクト: sourekj/Packages
rSdpaLib::rSdpaLib()
{
  DisplayInformation = NULL;
  m = 0;
  nBlock = 0;
  blockStruct = NULL;
  nonZeroNumber = 0;

  nDim = 0;
  A = NULL;
  hasSolved = false;
  hasDelete1 = false;
  setDefaultParameter();

  // for compability SDPA
  ParameterFile = NULL;
  OutputFile    = NULL;
  InitialFile   = NULL;
  InputFile     = NULL;
  CheckMatrix   = false;
  mDIM         = 0;
  nBLOCK       = 0;
  bLOCKsTRUCT  = NULL;
  InitialPoint = false;
}
コード例 #2
0
WGraphicsArrowItem::WGraphicsArrowItem(const QLineF& line,
									   QGraphicsItem* parent)
	: QGraphicsItem(parent)
	, m_startNode(0)
	, m_endNode(0)
	, m_line(line)
{
	setDefaultParameter();
}
コード例 #3
0
WGraphicsArrowItem::WGraphicsArrowItem(const QPointF& startPos,
									   const QPointF& endPos,
									   QGraphicsItem* parent)
	: QGraphicsItem(parent)
	, m_startNode(0)
	, m_endNode(0)
	, m_line(startPos, endPos)
{
	setDefaultParameter();
}
コード例 #4
0
WGraphicsArrowItem::WGraphicsArrowItem(QGraphicsItem* startNode,
									   QGraphicsItem* endNode,
									   QGraphicsItem* parent)
	: QGraphicsItem(parent)
	, m_startNode(startNode)
	, m_endNode(endNode)
{
	setDefaultParameter();

	setAcceptedMouseButtons(0);
    adjust();
}