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


C++ Recalc函数代码示例

本文整理汇总了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;
		}
	}
开发者ID:ircluzar,项目名称:RTC,代码行数:10,代码来源:interrupt.cpp

示例2: Recalc

void CWndImage::SetZoom(double zoomX, double zoomY)
{
  m_zoomX = zoomX;
  m_zoomY = zoomY;
  m_bltMode = bltCustom;
  Recalc();
}
开发者ID:malpharo,项目名称:AiPI,代码行数:7,代码来源:WndImage.cpp

示例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);
}
开发者ID:rusingineer,项目名称:EmulePlus,代码行数:31,代码来源:RollupCtrl.cpp

示例4: Recalc

void CIMXFps::Add(double tm)
{
  m_ts.push_back(tm);
  if (m_ts.size() > DIFFRINGSIZE)
    m_ts.pop_front();
  Recalc();
}
开发者ID:IchabodFletchman,项目名称:xbmc,代码行数:7,代码来源:IMX.cpp

示例5: Clear

//--------------------------------------------------
TkSens::TkSens(AMSPoint& GCoo,bool MC){
  _isMC=MC;
  Clear();
  GlobalCoo = GCoo;
  for (int ii=0; ii<3; ii++) GlobalDir[ii] = 0;
  Recalc();
}
开发者ID:krafczyk,项目名称:AMS,代码行数:8,代码来源:TkSens.C

示例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;
	}
开发者ID:KonstantinKuklin,项目名称:WalCommander,代码行数:26,代码来源:swl_layout.cpp

示例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();
	}
}
开发者ID:DopaminaInTheVein,项目名称:ItLightens,代码行数:27,代码来源:player_controller_base.cpp

示例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;
}
开发者ID:RaphaelMarinier,项目名称:audacity,代码行数:25,代码来源:FreqWindow.cpp

示例9: Recalc

	void Interrupt::Reset()
	{
		IAsserted = 0x00;
		IEnable = 0x00;
		IStatus = 0x00;
		IVectorBase = 0x00;
		Recalc();
	}
开发者ID:ircluzar,项目名称:RTC,代码行数:8,代码来源:interrupt.cpp

示例10: IRQ_Reset

void IRQ_Reset(void)
{
 Asserted = 0;
 Status = 0; 
 Mask = 0;

 Recalc();
}
开发者ID:kozarovv,项目名称:mednafen-ps3,代码行数:8,代码来源:irq.cpp

示例11: IRQ_Power

void IRQ_Power(void)
{
 Asserted = 0;
 Status = 0;
 Mask = 0;

 Recalc();
}
开发者ID:kozarovv,项目名称:mednafen-ps3,代码行数:8,代码来源:irq.cpp

示例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;
	}
开发者ID:asaitgalin,项目名称:LaradeRepo,代码行数:17,代码来源:AVL_TREE.cpp

示例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;
}
开发者ID:DebdutBiswas,项目名称:dotnetinstaller,代码行数:8,代码来源:KCBusyProgressCtrl.cpp

示例14: Recalc

// Перемещение камеры вперед
void CCamera::Forward(void)
{
	double r=length(ViewPoint - position);
	if (r>4)
	{
		position=position+forward*r/20;
	}
	Recalc();
}
开发者ID:pgorshkow,项目名称:Kurs_3DSViewer,代码行数:10,代码来源:Camera.cpp

示例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();
}
开发者ID:keksha1337,项目名称:GUI,代码行数:10,代码来源:GUIBox.cpp


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