本文整理汇总了C++中Recalc函数的典型用法代码示例。如果您正苦于以下问题:C++ Recalc函数的具体用法?C++ Recalc怎么用?C++ Recalc使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了Recalc函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: switch
void Interrupt::Write(uint32 A, uint8 V)
{
//printf("Write: %04x %02x\n", A, V);
switch(A)
{
case 0xB0: IVectorBase = V; Recalc(); break;
case 0xB2: IEnable = V; IStatus &= IEnable; Recalc(); break;
case 0xB6: IStatus &= ~V; Recalc(); break;
}
}
示例2: Recalc
void CWndImage::SetZoom(double zoomX, double zoomY)
{
m_zoomX = zoomX;
m_zoomY = zoomY;
m_bltMode = bltCustom;
Recalc();
}
示例3: switch
BOOL CRollupCtrl::OnCommand(WPARAM wParam, LPARAM lParam)
{
switch(wParam)
{
case USRMSG_STATECHANGED:
{
ChildStateChanged((HWND)lParam, true);
break;
}
case USRMSG_GRIPPERMOVE:
{
if(Recalc((HWND)lParam))
Invalidate();
break;
}
case USRMSG_RIGHTCLICK:
{
if(m_List.GetAt(1)->pHeader->m_hWnd == (HWND)lParam)
GetParent()->SendMessage(WM_COMMAND, USRMSG_SWITCHUPLOADLIST, 0);
else if(m_List.GetAt(0)->pHeader->m_hWnd == (HWND)lParam)
GetParent()->SendMessage(WM_COMMAND, USRMSG_CLEARCOMPLETED, 0);
}
default:
{
//GetParent()->PostMessage(WM_COMMAND, wParam, lParam);
break;
}
}
return CWnd::OnCommand(wParam, lParam);
}
示例4: Recalc
void CIMXFps::Add(double tm)
{
m_ts.push_back(tm);
if (m_ts.size() > DIFFRINGSIZE)
m_ts.pop_front();
Recalc();
}
示例5: Clear
//--------------------------------------------------
TkSens::TkSens(AMSPoint& GCoo,bool MC){
_isMC=MC;
Clear();
GlobalCoo = GCoo;
for (int ii=0; ii<3; ii++) GlobalDir[ii] = 0;
Recalc();
}
示例6: Recalc
void Layout::GetLSize( LSize* pls )
{
/* !!!??
if (valid)
{
*pls = size;
return;
}
*/
Recalc();
int i;
LSize ls;
for ( i = 0; i < lines.count(); i++ )
{
ls.y.Plus( lines[i].range );
}
for ( i = 0; i < columns.count(); i++ )
{
ls.x.Plus( columns[i].range );
}
size = ls;
*pls = ls;
}
示例7: PROFILE_FUNCTION
void CPlayerBase::update(float elapsed) {
PROFILE_FUNCTION("update base");
if (camera.isValid()) {
if (onCinematic) {
UpdateCinematic(elapsed);
}
else if (controlEnabled || only_sense) {
bool alive = !checkDead();
if (alive && inputEnabled) {
energy_decrease = energy_default_decrease; // Default if nobody change that this frame
UpdateSenseVision();
if (!only_sense) {
UpdateMoves();
UpdateInputActions();
}
setLife(getLife() - getDeltaTime() * energy_decrease);
}
Recalc();
if (alive) {
//UpdateMoves();
myUpdate();
update_msgs();
}
}
//UpdateAnimation();
}
}
示例8: IsShown
bool FreqWindow::Show(bool show)
{
if (!show)
{
mFreqPlot->SetCursor(*mArrowCursor);
}
bool shown = IsShown();
if (show && !shown)
{
gPrefs->Read(ENV_DB_KEY, &dBRange, ENV_DB_RANGE);
if(dBRange < 90.)
dBRange = 90.;
GetAudio();
// Don't send an event. We need the recalc right away.
// so that mAnalyst is valid when we paint.
//SendRecalcEvent();
Recalc();
}
bool res = wxDialogWrapper::Show(show);
return res;
}
示例9: Recalc
void Interrupt::Reset()
{
IAsserted = 0x00;
IEnable = 0x00;
IStatus = 0x00;
IVectorBase = 0x00;
Recalc();
}
示例10: IRQ_Reset
void IRQ_Reset(void)
{
Asserted = 0;
Status = 0;
Mask = 0;
Recalc();
}
示例11: IRQ_Power
void IRQ_Power(void)
{
Asserted = 0;
Status = 0;
Mask = 0;
Recalc();
}
示例12: RotateRight
static void RotateRight(pNode& p)
{
pNode a = p;
pNode b = a->Left;
pNode R = a->Right;
pNode L = b->Left;
pNode C = b->Right;
a->Left = C;
a->Right = R;
b->Left = L;
b->Right = a;
FixHeight(a);
Recalc(a);
FixHeight(b);
Recalc(b);
p = b;
}
示例13: TEXT
BOOL CKCBusyProgressCtrl::Create(DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext)
{
BOOL bResult = CWnd::Create(TEXT("STATIC"), TEXT("BusyProgressCtrl"), dwStyle, rect, pParentWnd, nID, pContext);
Recalc();
return bResult;
}
示例14: Recalc
// Перемещение камеры вперед
void CCamera::Forward(void)
{
double r=length(ViewPoint - position);
if (r>4)
{
position=position+forward*r/20;
}
Recalc();
}
示例15: IDisplayable
GUIBox::GUIBox(RenderWindow* renderWindow_, Vector2f position_, float width, float height, std::string text_, TextStyle *Ñtstyle, GUIStyle *Cgstyle) : IDisplayable(renderWindow_, position_, width, height)
{
gstyle = Cgstyle;
tstyle = Ñtstyle;
text.setString(text_);
text.setFont(tstyle->font);
text.setCharacterSize(tstyle->fontSize);
text.setFillColor(tstyle->color);
Recalc();
}