當前位置: 首頁>>代碼示例>>C++>>正文


C++ Apply函數代碼示例

本文整理匯總了C++中Apply函數的典型用法代碼示例。如果您正苦於以下問題:C++ Apply函數的具體用法?C++ Apply怎麽用?C++ Apply使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了Apply函數的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C++代碼示例。

示例1: Apply

void
QvisTensorPlotWindow::scaleByMagnitudeToggled(bool)
{
    tensorAtts->SetScaleByMagnitude(!tensorAtts->GetScaleByMagnitude());
    Apply();
}
開發者ID:burlen,項目名稱:visit_vtk_7_src,代碼行數:6,代碼來源:QvisTensorPlotWindow.C

示例2: Apply

/*----------------------------------------------------------------------
|   PLT_MediaObjectList::~PLT_MediaObjectList
+---------------------------------------------------------------------*/
PLT_MediaObjectList::~PLT_MediaObjectList()
{
    Apply(NPT_ObjectDeleter<PLT_MediaObject>());
}
開發者ID:DanielCoufal,項目名稱:xbmc,代碼行數:7,代碼來源:PltMediaItem.cpp

示例3: Apply

void
QvisAxisAttributesWidget::titleFontChanged(const FontAttributes &f)
{
    atts.GetTitle().SetFont(f);
    Apply();
}
開發者ID:HarinarayanKrishnan,項目名稱:VisIt28RC_Trunk,代碼行數:6,代碼來源:QvisAxisAttributesWidget.C

示例4: GetCurrentValues

void
QvisLegacyStreamlinePlotWindow::radiusProcessText()
{
    GetCurrentValues(16);
    Apply();
}
開發者ID:burlen,項目名稱:visit_vtk_7_src,代碼行數:6,代碼來源:QvisLegacyStreamlinePlotWindow.C

示例5: Apply

void
QvisLegacyStreamlinePlotWindow::pointDensityChanged(int val)
{
    streamAtts->SetPointDensity(val);
    Apply();
}
開發者ID:burlen,項目名稱:visit_vtk_7_src,代碼行數:6,代碼來源:QvisLegacyStreamlinePlotWindow.C

示例6: GetCurrentValues

void
QvisTensorPlotWindow::processStrideText()
{
    GetCurrentValues(TensorAttributes::ID_stride);
    Apply();
}
開發者ID:burlen,項目名稱:visit_vtk_7_src,代碼行數:6,代碼來源:QvisTensorPlotWindow.C

示例7: View

PlayField::PlayField(Hiscore *h, View *parent, ScrollText *st) : View(Rect(0,0,1,1)), Message(){ //-.25f,-.25f,1.25f,1.25f)){

//	Listen("/Devices/Input/Dialogic");
	SetClearState(false);

	#ifdef NEWSCALE

	parent->Apply(this);
	players  = new DynamicArray();
	channels = new DynamicArray();
	int dir = 0;
	int x = 1;
	int y = 1;
	int xr = 2;
	int yb = 2;
	int xl = 0;
	int yt = 0;
	int n = 1;
	for(int _x=0; _x<4; _x++){
		for(int _y=0; _y<4; _y++){
			Player *pl = new Player(h,Rect((float(x)/4.0f),(float(y)/4.0f),(float(x+1)/4.0f),(float(y+1)/4.0f)),st,n++);
			Apply(pl);
			players->Add(pl);
			channels->Add(0);
			switch(dir){
			case 0: if(++x==xr){ dir++; xr++; } break;
			case 1: if(++y==yb){ dir++; yb++; } break;
			case 2: if(--x==xl){ dir++; xl--; } break;
			case 3: if(--y==yt){ dir=0; yt--; } break;
			}
		}
	}

	#else

	parent->Apply(this);
	players  = new DynamicArray();
	channels = new DynamicArray();
	int dir = 0;
	int x = 1;
	int y = 1;
	int xr = 2;
	int yb = 2;
	int xl = 1;
	int yt = 1;
	int n = 1;
	for(int _x=0; _x<4; _x++){
		for(int _y=0; _y<4; _y++){
			Player *pl = new Player(h,Rect((float(x)/4.0f),(float(y)/4.0f),(float(x+1)/4.0f),(float(y+1)/4.0f)),st,n++);
			Apply(pl);
			players->Add(pl);
			channels->Add(0);
			switch(dir){
			case 0: if(++x==xr){ dir++; xr++; } break;
			case 1: if(++y==yb){ dir++; yb++; } break;
			case 2: if(--x==xl){ dir++; xl--; } break;
			case 3: if(--y==yt){ dir=0; yt--; x--; y--; } break;
			}
		}
	}
	#endif
	foo = 0;
	player_count=0;

	zoom = .5f;
	xz = yz = 0;

	Listen("/Devices/Input/Dialogic");
}
開發者ID:patrickhno,項目名稱:bandit,代碼行數:69,代碼來源:PlayField.cpp

示例8: qDebug

void Connection::applyConfigs ()
{
	qDebug("%s", __FUNCTION__);
	recurse(m_data, Apply());
}
開發者ID:barycz,項目名稱:whs-trace,代碼行數:5,代碼來源:connection.cpp

示例9: Apply

 //! This overload is here to make sure int gets casted right to size_t.
 inline double Apply(arma::mat& data, const int newDimension) const
 {
   return Apply(data, size_t(newDimension));
 }
開發者ID:GABowers,項目名稱:MinGW_libs,代碼行數:5,代碼來源:pca.hpp


注:本文中的Apply函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。