plot method

bool plot(
  1. ClipProc proc,
  2. ClipParam param
)

Implementation

bool plot( ClipProc proc, ClipParam param ){
	// 計算結果保持バッファを解放
	delAns();

	switch( _info[_curIndex]._mode ){
	case ClipGlobal.graphModeRect:
		_plot(
			proc, param,
			_gWorld.imgPosX( _info[_curIndex]._start ),
			_gWorld.imgPosX( _info[_curIndex]._end   ),
			_info[_curIndex]._ans, _info[_curIndex]._ansNum,
			null, -1
			);
		break;
	case ClipGlobal.graphModeParam:
	case ClipGlobal.graphModePolar:
		_plotStep(
			proc, param,
			_info[_curIndex]._start,
			_info[_curIndex]._end,
			_info[_curIndex]._step,
			_info[_curIndex]._ans, _info[_curIndex]._ansNum,
			null, -1
			);
		break;
	}

	return (_info[_curIndex]._ansNum.val() != 0);
}