• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ InitParams函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中InitParams函数的典型用法代码示例。如果您正苦于以下问题:C++ InitParams函数的具体用法?C++ InitParams怎么用?C++ InitParams使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了InitParams函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: DestroyObjs

int CUndoMotion::ClearData()
{
	DestroyObjs();
	InitParams();

	return 0;
}
开发者ID:Ochakko,项目名称:MameRoid3D,代码行数:7,代码来源:UndoMotion.cpp


示例2: main

int main()
{
	InitParams();
	InitRad(&params);
	DoRad();
	CleanUpRad();
}
开发者ID:EduardMe,项目名称:GraphicsGems,代码行数:7,代码来源:room.c


示例3: InitParams

CMultiWave::CMultiWave( int srcflag3d, int srcreverbflag )
{
	InitParams();
	flag3d = srcflag3d;
	flagreverb = srcreverbflag;
	
}
开发者ID:toughie88,项目名称:Easy3D-1,代码行数:7,代码来源:MultiWave.cpp


示例4: InitParams

HRESULT CParamsManager::CopyParamsFromSource( CParamsManager * pSource)

{
    HRESULT hr = S_OK;
    DWORD dwIndex;

    for (dwIndex = 0; dwIndex < m_cTimeFormats; dwIndex++)
    {
        if (pSource->m_guidCurrentTimeFormat == m_pguidTimeFormats[dwIndex])
        {
            break;
        }
    }
    
    
    hr = InitParams(pSource->m_cTimeFormats, pSource->m_pguidTimeFormats, dwIndex, pSource->m_mptdCurrentTimeData, pSource->m_cParams,pSource->m_pParamInfos);
    if (SUCCEEDED(hr))
    {
        for (dwIndex = 0; dwIndex < m_cParams; dwIndex++)
        {
            CCurveItem *pCurve = pSource->m_pCurveLists[dwIndex].GetHead();
            for (;pCurve;pCurve = pCurve->GetNext())
            {
	            CCurveItem *pNew = new CCurveItem;
                if (!pNew) 
                {
                    return E_OUTOFMEMORY;
                }
                pNew->m_Envelope = pCurve->m_Envelope;
                m_pCurveLists[dwIndex].AddTail(pNew);
            }
        }
    }
    return hr;
}
开发者ID:grakidov,项目名称:Render3D,代码行数:35,代码来源:param.cpp


示例5: QObject

cRenderQueue::cRenderQueue(cImage *_image, RenderedImage *widget) : QObject()
{
	image = _image;
	imageWidget = widget;
	queuePar = new cParameterContainer;
	queueParFractal = new cFractalContainer;
	queueAnimFrames = new cAnimationFrames;
	queueKeyframes = new cKeyframes;

	queuePar->SetContainerName("main");
	InitParams(queuePar);
	for(int i=0; i<NUMBER_OF_FRACTALS; i++)
	{
		queueParFractal->at(i).SetContainerName(QString("fractal") + QString::number(i));
		InitFractalParams(&queueParFractal->at(i));
	}

	queueFlightAnimation = new cFlightAnimation(gMainInterface, queueAnimFrames, image, imageWidget, queuePar, queueParFractal, this);
	queueKeyframeAnimation = new cKeyframeAnimation(gMainInterface, queueKeyframes, image, imageWidget, queuePar, queueParFractal, this);
	QObject::connect(queueFlightAnimation, SIGNAL(updateProgressAndStatus(const QString&, const QString&, double, cProgressText::enumProgressType)),
									 this, SIGNAL(updateProgressAndStatus(const QString&, const QString&, double, cProgressText::enumProgressType)));
	QObject::connect(queueFlightAnimation, SIGNAL(updateProgressHide(cProgressText::enumProgressType)),
									 this, SIGNAL(updateProgressHide(cProgressText::enumProgressType)));
	QObject::connect(queueFlightAnimation, SIGNAL(updateStatistics(cStatistics)),
									 this, SIGNAL(updateStatistics(cStatistics)));
	QObject::connect(queueKeyframeAnimation, SIGNAL(updateProgressAndStatus(const QString&, const QString&, double, cProgressText::enumProgressType)),
									 this, SIGNAL(updateProgressAndStatus(const QString&, const QString&, double, cProgressText::enumProgressType)));
	QObject::connect(queueKeyframeAnimation, SIGNAL(updateProgressHide(cProgressText::enumProgressType)),
									 this, SIGNAL(updateProgressHide(cProgressText::enumProgressType)));
	QObject::connect(queueKeyframeAnimation, SIGNAL(updateStatistics(cStatistics)),
									 this, SIGNAL(updateStatistics(cStatistics)));
}
开发者ID:gitter-badger,项目名称:mandelbulber2,代码行数:32,代码来源:render_queue.cpp


示例6: PvmfPortBaseImpl

H223LowerLayer::H223LowerLayer(int32 aPortTag, TPVLoopbackMode aLoopbackMode)
        :   PvmfPortBaseImpl(aPortTag, this),
        OsclTimerObject(OsclActiveObject::EPriorityHigh, "H223AO"),
        iTimerIntervalNum(0),
        iMinTimerResolution(TIMER_RES),
        iObserver(NULL),
        iMemFragmentAlloc(NULL),
        iDispatchPacketAlloc(NULL),
        iMediaDataImplMemAlloc(NULL),
        iMediaMsgPoolAlloc(NULL),
        iSendPduSz(0),
        iPduSize(H223_DEFAULT_PDU_SIZE),
        iStuffingSize(0),
        iTimer("H223LL"),
        iLoopbackMode(aLoopbackMode),
        iTimerCnt(0),
        iBytesSent(0),
        iMediaDataAlloc(&iMemAlloc),
        iLogger(NULL),
        iDemuxBuffer(NULL),
        iDemuxBufferPos(NULL),
        iIdleSyncCheckBuffer(NULL)
{
    iLogger = PVLogger::GetLoggerObject("3g324m.h223.lowerlayer");
    AddToScheduler();
    InitParams();
    ResetStats();
}
开发者ID:0omega,项目名称:platform_external_opencore,代码行数:28,代码来源:lowerlayer.cpp


示例7: PDRecon

TV::TV(unsigned width, unsigned height, unsigned coils, unsigned frames,
       BaseOperator *mrOp)
  : PDRecon(width, height, 0, coils, frames, mrOp)
{
  InitParams();
  InitTempVectors();
}
开发者ID:IMTtugraz,项目名称:AVIONIC,代码行数:7,代码来源:tv.cpp


示例8: Initialize

mfxStatus QSV_Encoder_Internal::Open(qsv_param_t * pParams)
{
	mfxStatus sts = MFX_ERR_NONE;

	if (m_bUseD3D11)
		// Use D3D11 surface
		sts = Initialize(m_impl, m_ver, &m_session, &m_mfxAllocator);
	else
		// Use system memory
		sts = Initialize(m_impl, m_ver, &m_session, NULL);

	MSDK_CHECK_RESULT(sts, MFX_ERR_NONE, sts);

	m_pmfxENC = new MFXVideoENCODE(m_session);

	InitParams(pParams);

	sts = m_pmfxENC->Query(&m_mfxEncParams, &m_mfxEncParams);
	MSDK_IGNORE_MFX_STS(sts, MFX_WRN_INCOMPATIBLE_VIDEO_PARAM);
	MSDK_CHECK_RESULT(sts, MFX_ERR_NONE, sts);

	sts = AllocateSurfaces();
	MSDK_CHECK_RESULT(sts, MFX_ERR_NONE, sts);

	sts = m_pmfxENC->Init(&m_mfxEncParams);
	MSDK_CHECK_RESULT(sts, MFX_ERR_NONE, sts);

	sts = GetVideoParam();
	MSDK_CHECK_RESULT(sts, MFX_ERR_NONE, sts);

	sts = InitBitstream();
	MSDK_CHECK_RESULT(sts, MFX_ERR_NONE, sts);

	return sts;
}
开发者ID:AnthonySuper,项目名称:obs-studio,代码行数:35,代码来源:QSV_Encoder_Internal.cpp


示例9: while

int CCameraAnim::DestroyObjs()
{
	int camno;
	for( camno = 0; camno < CAMERANUMMAX; camno++ ){
		CCameraKey* delck = m_firstkey[ camno ];
		CCameraKey* nextck = 0;
		while( delck ){
			nextck = delck->next;
			delete delck;
			delck = nextck;
		}
	}

	CCameraSWKey* delcswk = m_firstsw;
	CCameraSWKey* nextcswk = 0;
	while( delcswk ){
		nextcswk = delcswk->next;
		delete delcswk;
		delcswk = nextcswk;
	}

	InitParams();

	return 0;
}
开发者ID:Ochakko,项目名称:Easy3D,代码行数:25,代码来源:CameraAnim.cpp


示例10: Release

bool APerlinNoise2D::Init(int nBufferWidth, int nBufferHeight, float vAmplitude, int nWaveLength, float vPersistence, int nOctaveNum, ADWORD dwRandSeed)
{
  // First try to release old resource;
  Release();

  int  i, x, y, k;

  m_dwSeed = dwRandSeed;

  // generate loop back smoothed random buffer
  if( nBufferWidth <= 0 || nBufferHeight <= 0 )
    return false;

  m_nBufferWidth = nBufferWidth;
  m_nBufferHeight = nBufferHeight;
  float * pValues = (float *) a_malloc(sizeof(float) * m_nBufferWidth * m_nBufferHeight);
  if( NULL == pValues )
    return false;

  m_pValues = (NOISEVALUE *) a_malloc(sizeof(NOISEVALUE) * m_nBufferWidth * m_nBufferHeight);
  if( NULL == m_pValues )
    return false;

  for(k=0; k<3; k++)
  {
    // First create random number buffer;
    for(i=0; i<m_nBufferWidth * m_nBufferHeight; i++)
      pValues[i] = RandFloat();
    
    // Now smooth the random number buffer;
    for(x=0; x<m_nBufferWidth; x++)
    {
      for(y=0; y<m_nBufferHeight; y++)
      {
        int n = y * m_nBufferWidth + x;

        int nLastX, nNextX, nLastY, nNextY;
        nLastX = x - 1;
        if( nLastX < 0 ) nLastX += m_nBufferWidth;
        nNextX = x + 1;
        if( nNextX >= m_nBufferWidth ) nNextX -= m_nBufferWidth;

        nLastY = y - 1;
        if( nLastY < 0 ) nLastY += m_nBufferHeight;
        nNextY = y + 1;
        if( nNextY >= m_nBufferHeight ) nNextY -= m_nBufferHeight;

#define NOISEVALUEFUNC2D(x, y) (pValues[(y) * m_nBufferWidth + (x)])
        m_pValues[n].v[k] = 
          1.0f / 16.0f * (NOISEVALUEFUNC2D(nLastX, nLastY) + NOISEVALUEFUNC2D(nLastX, nNextY) + NOISEVALUEFUNC2D(nNextX, nLastY) + NOISEVALUEFUNC2D(nNextX, nNextY)) + 
          1.0f / 8.0f * (NOISEVALUEFUNC2D(x, nLastY) + NOISEVALUEFUNC2D(x, nNextY) + NOISEVALUEFUNC2D(nLastX, y) + NOISEVALUEFUNC2D(nNextX, y)) + 
          1.0f / 4.0f * (NOISEVALUEFUNC2D(x, y));
      }
    }
  }

  a_free(pValues);
  return InitParams(vAmplitude, nWaveLength, vPersistence, nOctaveNum);
}
开发者ID:fengqk,项目名称:Art,代码行数:59,代码来源:APerlinNoise2D.cpp


示例11: InitParamsGB

/**
 * Sets its default value for each benchmark parameter for the GenBench function.
 *
 * @param PB a pointer to a structure containing benchmark parameters for this session
 */
static void
InitParamsGB (UflipParams *PB)
{
  InitParams (PB);
  strcpy (PB->expPlan, "ExpPlan.txt");
  strcpy (PB->expSelect, "ExpSel.txt");
  strcpy (PB->outName, "Bench"SCRIPT_EXTENSION);
}
开发者ID:blusjune,项目名称:.bsrc,代码行数:13,代码来源:input.c


示例12: InitParams

CSndAnim::CSndAnim( char* srcname, int srcmotkind )
{
	InitParams();
	if( srcname && *srcname ){
		strcpy_s( m_animname, 256, srcname );
	}
	m_motkind = srcmotkind;
}
开发者ID:toughie88,项目名称:Easy3D-1,代码行数:8,代码来源:SndAnim.cpp


示例13: glBindVertexArray

void Particles::Init()
{
	glBindVertexArray(arrayObject);
	InitParams();
	InitMemory();
	InitParticle();
	glBindVertexArray(0);
}
开发者ID:cdf1989,项目名称:FluidSim,代码行数:8,代码来源:Particles.cpp


示例14: DestroyObjs

int CMeshInfo::ResetParams()
{
	int ret;
	DestroyObjs();
	InitParams();
	ret = CreateObjs();
	return ret;
}
开发者ID:toughie88,项目名称:Easy3D-1,代码行数:8,代码来源:basedat.cpp


示例15: InitParams

CMeshInfo::CMeshInfo()
{
	int	ret;
	InitParams();
	ret = CreateObjs();
	if( ret )
		isinit = 0;
}
开发者ID:toughie88,项目名称:Easy3D-1,代码行数:8,代码来源:basedat.cpp


示例16: InitParams

int CRdbIniFile::DestroyObjs()
{
	CXMLIO::DestroyObjs();

	InitParams();

	return 0;
}
开发者ID:Ochakko,项目名称:MameRoid3D,代码行数:8,代码来源:RdbIniFile.cpp


示例17: DestroyAllKeys

int CSndAnim::DestroyObjs()
{
	DestroyAllKeys();
	DestroyFrameData();
	InitParams();

	return 0;
}
开发者ID:toughie88,项目名称:Easy3D-1,代码行数:8,代码来源:SndAnim.cpp


示例18: parSettings

void PreviewFileDialog::OnCurrentChanged(const QString & _filename)
{
	filename = _filename;
	QPixmap pixmap;
	if (QFileInfo(filename).suffix() == QString("fract") && checkbox->isChecked())
	{
		thumbWidget->show();
		preview->hide();
		cSettings parSettings(cSettings::formatFullText);
		parSettings.BeQuiet(true);
		if (parSettings.LoadFromFile(filename))
		{
			progressBar->show();
			cParameterContainer *par = new cParameterContainer;
			cFractalContainer *parFractal = new cFractalContainer;
			InitParams(par);
			for (int i = 0; i < NUMBER_OF_FRACTALS; i++)
				InitFractalParams(&parFractal->at(i));

			/****************** TEMPORARY CODE FOR MATERIALS *******************/

			InitMaterialParams(1, par);

			/*******************************************************************/

			if (parSettings.Decode(par, parFractal))
			{
				thumbWidget->AssignParameters(*par, *parFractal);
				thumbWidget->update();
			}
			else
			{
				preview->setText(" ");
				info->setText(" ");
			}
			delete par;
			delete parFractal;
		}
	}
	else
	{
		thumbWidget->hide();
		preview->show();
		pixmap.load(filename);
		if (pixmap.isNull() || !checkbox->isChecked())
		{
			preview->setText(" ");
			info->setText(" ");
		}
		else
		{
			preview->setPixmap(pixmap.scaled(200, 200, Qt::KeepAspectRatio, Qt::SmoothTransformation));
			QString text = QString::number(pixmap.width()) + QString(" x ")
					+ QString::number(pixmap.height());
			info->setText(text);
		}
	}
}
开发者ID:pakokrew,项目名称:mandelbulber2,代码行数:58,代码来源:preview_file_dialog.cpp


示例19: InitParamsSF

/**
 * Sets its default value for each benchmark parameter for the SeqFormat function.
 *
 * @param PB a pointer to a structure containing benchmark parameters for this session
 */
static void
InitParamsSF (UflipParams *PB)
{
  InitParams (PB);
  PB->microBenchID = 0; /* Not really a micro bench */
  PB->expID        = 7; /* Exp 1 to 5 (3 times) allow determining startup, period, iocount */
  PB->runID        = 1; /* Only one run ! */
  strcpy (PB->comment, "SQF");
}
开发者ID:blusjune,项目名称:.bsrc,代码行数:14,代码来源:input.c


示例20: MyParams

MEPdfPartialB::MEPdfPartialB(RooRealVar *m_de, RooRealVar *m_mbc, const int mode, const int h0mode){
  cout << "MEPdfPartialB constructor..." << endl;
  de = m_de; mbc = m_mbc;
  cuts = new MyParams();
  ggflag = h0mode == 10 ? true : false;
  m_mode = mode; m_h0mode = h0mode;
  InitParams(mode,h0mode);
  FixAll();
  cout << "MEPdfPartialB constructor done." << endl;
}
开发者ID:VitalyVorobyev,项目名称:B0toD0h0,代码行数:10,代码来源:mepdfpartialb.cpp



注:本文中的InitParams函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ InitPieVectTable函数代码示例发布时间:2022-05-30
下一篇:
C++ InitOpenGL函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap