本文整理匯總了C++中Apply函數的典型用法代碼示例。如果您正苦於以下問題:C++ Apply函數的具體用法?C++ Apply怎麽用?C++ Apply使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了Apply函數的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C++代碼示例。
示例1: Apply
void
QvisTensorPlotWindow::scaleByMagnitudeToggled(bool)
{
tensorAtts->SetScaleByMagnitude(!tensorAtts->GetScaleByMagnitude());
Apply();
}
示例2: Apply
/*----------------------------------------------------------------------
| PLT_MediaObjectList::~PLT_MediaObjectList
+---------------------------------------------------------------------*/
PLT_MediaObjectList::~PLT_MediaObjectList()
{
Apply(NPT_ObjectDeleter<PLT_MediaObject>());
}
示例3: Apply
void
QvisAxisAttributesWidget::titleFontChanged(const FontAttributes &f)
{
atts.GetTitle().SetFont(f);
Apply();
}
示例4: GetCurrentValues
void
QvisLegacyStreamlinePlotWindow::radiusProcessText()
{
GetCurrentValues(16);
Apply();
}
示例5: Apply
void
QvisLegacyStreamlinePlotWindow::pointDensityChanged(int val)
{
streamAtts->SetPointDensity(val);
Apply();
}
示例6: GetCurrentValues
void
QvisTensorPlotWindow::processStrideText()
{
GetCurrentValues(TensorAttributes::ID_stride);
Apply();
}
示例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");
}
示例8: qDebug
void Connection::applyConfigs ()
{
qDebug("%s", __FUNCTION__);
recurse(m_data, Apply());
}
示例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));
}