当前位置: 首页>>代码示例>>C++>>正文


C++ DNA::AddCell方法代码示例

本文整理汇总了C++中DNA::AddCell方法的典型用法代码示例。如果您正苦于以下问题:C++ DNA::AddCell方法的具体用法?C++ DNA::AddCell怎么用?C++ DNA::AddCell使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在DNA的用法示例。


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

示例1: add_DNA_CrossTalk

RNA DnaConfig::add_DNA_CrossTalk(DNA& dnaTotal)
{
	DNA dnaCrossTalk;
	RNA rnaCrossTalk;

    //Cross Talk
    if (m_chkCrossTalk)
    {
        dnaCrossTalk.AddCell(CrsTlk , Pn4, m_CTFE);
        dnaCrossTalk.AddCell(CrsTlkD, Pn4, m_CTFE);
        dnaCrossTalk.AddCell(CrsTlkW, Pn4, m_CTFE);
    }

	if (dnaCrossTalk.Size()) 
	{
		Ts->Trans(dnaCrossTalk, rnaCrossTalk);
		rnaCrossTalk.SortQuackMsr();
	}

	showRNA(rnaCrossTalk);
	dnaTotal += dnaCrossTalk;

	return rnaCrossTalk;
	
}
开发者ID:dwatow,项目名称:ColorEyeI,代码行数:25,代码来源:DNAconfig.cpp

示例2: add_DNA_Gamma

RNA DnaConfig::add_DNA_Gamma(DNA& dnaTotal)
{
	DNA dnaGamma;
	RNA rnaGamma;
	//Gamma
    if (m_chkWGamma || m_chkDGamma)        
                        dnaGamma.AddCell(White, PnGamma, m_WGammaBegin, m_WGamma_End, m_WGamma_Avg );  
    if (m_chkRGamma)    dnaGamma.AddCell(Red  , PnGamma, m_RGammaBegin, m_RGamma_End, m_RGamma_Avg );
    if (m_chkGGamma)    dnaGamma.AddCell(Green, PnGamma, m_GGammaBegin, m_GGamma_End, m_GGamma_Avg );
    if (m_chkBGamma)    dnaGamma.AddCell(Blue , PnGamma, m_BGammaBegin, m_BGamma_End, m_BGamma_Avg );

	if (dnaGamma.Size()) 
	{
		Ts->Trans(dnaGamma, rnaGamma);
		rnaGamma.SortOrigMsr();
	}
	dnaTotal += dnaGamma;

	return rnaGamma;
}
开发者ID:dwatow,项目名称:ColorEyeI,代码行数:20,代码来源:DNAconfig.cpp

示例3: add_DNA_WRGBD

RNA DnaConfig::add_DNA_WRGBD(DNA& dnaTotal)
{
 	DNA dnaSortStable;
	RNA rnaSortStable;

    //修改的話,要同步修改
    //中心點
    if (m_chkWP1)  dnaSortStable.AddCell(White, Pn1);
    if (m_chkRP1)  dnaSortStable.AddCell(Red  , Pn1);
    if (m_chkGP1)  dnaSortStable.AddCell(Green, Pn1);
    if (m_chkBP1)  dnaSortStable.AddCell(Blue , Pn1);
    if (m_chkDP1)  dnaSortStable.AddCell(Dark , Pn1);
    
    //Nits
    if (m_chkNits)  dnaSortStable.AddCell(Nits, Pn9, m_NitsLv, m_NitsDirect);
    
    //5點
    if (m_chkWP5)    dnaSortStable.AddCell(White, Pn5, m_W5FE);
//     if (m_chkRP5)    dnaSortStable.AddCell(Red  , Pn5, W5FE);
//     if (m_chkGP5)    dnaSortStable.AddCell(Green, Pn5, W5FE);
//     if (m_chkBP5)    dnaSortStable.AddCell(Blue , Pn5, W5FE);
//     if (m_chkDP5)    dnaSortStable.AddCell(Dark , Pn5, W5FE);
    
    //9點
    if (m_chkWP9)    dnaSortStable.AddCell(White, Pn9, m_W9FE, m_W9EdgeType);
//     if (m_chkRP9)    dnaSortStable.AddCell(Red  , Pn9, W9FE, PA_FEover);
//     if (m_chkGP9)    dnaSortStable.AddCell(Green, Pn9, W9FE, PA_FEover);
//     if (m_chkBP9)    dnaSortStable.AddCell(Blue , Pn9, W9FE, PA_FEover);
    if (m_chkDP9)    dnaSortStable.AddCell(Dark , Pn9, m_D9FE, m_D9EdgeType);
    
    //21點
//     if (m_chkWP21)    dnaSortStable.AddCell(White, Pn21, D21FE);
//     if (m_chkRP21)    dnaSortStable.AddCell(Red  , Pn21, D21FE);
//     if (m_chkGP21)    dnaSortStable.AddCell(Green, Pn21, D21FE);
//     if (m_chkBP21)    dnaSortStable.AddCell(Blue , Pn21, D21FE);
    if (m_chkDP21)    dnaSortStable.AddCell(Dark , Pn21, m_D21FE);
    
    //13點
//     if (m_chkWP13)    dnaSortStable.AddCell(White, Pn13, D13FE);
//     if (m_chkRP13)    dnaSortStable.AddCell(Red  , Pn13, D13FE);
//     if (m_chkGP13)    dnaSortStable.AddCell(Green, Pn13, D13FE);
//     if (m_chkBP13)    dnaSortStable.AddCell(Blue , Pn13, D13FE);
    if (m_chkDP13)    dnaSortStable.AddCell(Dark , Pn13, m_D13FE);
    
    //25點
//     if (m_chkWP25)    dnaSortStable.AddCell(White, Pn25, D25FE, D25RectSide);
//     if (m_chkRP25)    dnaSortStable.AddCell(Red  , Pn25, D25FE, D25RectSide);
//     if (m_chkGP25)    dnaSortStable.AddCell(Green, Pn25, D25FE, D25RectSide);
//     if (m_chkBP25)    dnaSortStable.AddCell(Blue , Pn25, D25FE, D25RectSide);
    if (m_chkDP25)    dnaSortStable.AddCell(Dark , Pn25, m_D25FE, m_D25RectSide);
    
    //49點
    if (m_chkWP49)    dnaSortStable.AddCell(White, Pn49);
//     if (m_chkRP49)    dnaSortStable.AddCell(Red  , Pn49);
//     if (m_chkGP49)    dnaSortStable.AddCell(Green, Pn49);
//     if (m_chkBP49)    dnaSortStable.AddCell(Blue , Pn49);
//     if (m_chkDP49)    dnaSortStable.AddCell(Dark , Pn49);

	if (dnaSortStable.Size())
	{
		Ts->Trans(dnaSortStable, rnaSortStable);

		//排序
		if (m_msrQuick)  rnaSortStable.SortQuackMsr();
		else             rnaSortStable.SortOrigMsr();
	}

	showRNA(rnaSortStable);
	dnaTotal += dnaSortStable;
	return rnaSortStable;
}
开发者ID:dwatow,项目名称:ColorEyeI,代码行数:71,代码来源:DNAconfig.cpp


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