• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C++ recalc函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中recalc函数的典型用法代码示例。如果您正苦于以下问题:C++ recalc函数的具体用法?C++ recalc怎么用?C++ recalc使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



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

示例1: recalc

void ProgressDialog::setCurrent( int subCurrent, bool bRedrawUpdate )
{
   if ( m_progressStack.empty() )
      return;
   ProgressLevelData& pld = m_progressStack.back();
   pld.m_current = subCurrent;
   recalc( bRedrawUpdate );
}
开发者ID:Stibbons,项目名称:kdiff3,代码行数:8,代码来源:progress.cpp


示例2: spinner

void spinner(void)
{
    read();
    recalc();
    upload();
    compute_histogram();
    update();
}
开发者ID:BackupTheBerlios,项目名称:avidemux-svn,代码行数:8,代码来源:DIA_equalizer.cpp


示例3: updateTitleIcon

void UIPopupBox::setTitleIcon(const QIcon &icon)
{
    /* Remember new title-icon: */
    m_titleIcon = icon;
    /* Update title-icon: */
    updateTitleIcon();
    /* Recalculate title-size: */
    recalc();
}
开发者ID:VirtualMonitor,项目名称:VirtualMonitor,代码行数:9,代码来源:UIPopupBox.cpp


示例4: recalc

bool QSplitter::event( QEvent *e )
{
    if ( e->type() == QEvent::LayoutHint || ( e->type() == QEvent::Show && data->firstShow ) ) {
	recalc( isVisible() );
	if ( e->type() == QEvent::Show )
	    data->firstShow = FALSE;
    }
    return QWidget::event( e );
}
开发者ID:opieproject,项目名称:opie,代码行数:9,代码来源:qsplitter.cpp


示例5: updateTitle

void UIPopupBox::setTitle(const QString &strTitle)
{
    /* Remember new title: */
    m_strTitle = strTitle;
    /* Update title: */
    updateTitle();
    /* Recalculate title-size: */
    recalc();
}
开发者ID:VirtualMonitor,项目名称:VirtualMonitor,代码行数:9,代码来源:UIPopupBox.cpp


示例6: recalc

void GuiTextbox::set_caret_position(int pos) {
    int sz = static_cast<int>(text.length());

    caret_position = pos;
    if (caret_position > sz) {
        caret_position = sz;
    }
    recalc();
}
开发者ID:SuperNascher,项目名称:goatattack,代码行数:9,代码来源:GuiObject.cpp


示例7: recalc

void PictureFlowPrivate::setZoomFactor(int z)
{
  if(z <= 0)
    return;

  zoom = z;
  recalc(buffer.width(), buffer.height());
  triggerRender();
}
开发者ID:ashang,项目名称:fqterm,代码行数:9,代码来源:pictureflow.cpp


示例8: updateWarningIcon

void UIPopupBox::setWarningIcon(const QIcon &icon)
{
    /* Remember new warning-icon: */
    m_warningIcon = icon;
    /* Update warning-icon: */
    updateWarningIcon();
    /* Recalculate title-size: */
    recalc();
}
开发者ID:VirtualMonitor,项目名称:VirtualMonitor,代码行数:9,代码来源:UIPopupBox.cpp


示例9: updateHtml

void FOX16_HtmlLabel::setText(const FXString& text) {
  m_haveDefaultDims=false;
  m_text=text;
  updateHtml();
  flags|=FLAG_DIRTY;
  layout();
  recalc();
  update();
}
开发者ID:Zauberstuhl,项目名称:gwenhywfar,代码行数:9,代码来源:fox16_htmllabel.cpp


示例10: recalc

void DetunerPlugin::setParameter (int index, float newValue)
{

	if (Pars->getParameter(index) != newValue) {Pars->setParameter(index,newValue);}

	 //calcs here
	recalc();	
  
}
开发者ID:christianscheuer,项目名称:jivemodular,代码行数:9,代码来源:DetunerPlugin.cpp


示例11: vec3

Camera::Camera() //startwerte der perspective camera
{
    proj = glm::perspective(45.0f, 1.0f, 0.1f, 100.0f);

    eye = vec3(0,2,-5);
    lookAt = vec3(2.5,0,0);
    up = vec3(0,1,0);

    recalc();
}
开发者ID:DeFuex,项目名称:Tire-D-,代码行数:10,代码来源:Camera.cpp


示例12: collision_avoided

void collision_avoided(double direction, struct timeval time){
	running = 0;
	current.timer = time;
	free(route.path);
	compare_tile();
	current.current_destination.angle = direction;
	update_position(&current);
	compare_tile();
	recalc();
}
开发者ID:guswangqi,项目名称:nav,代码行数:10,代码来源:indoor_navigation.c


示例13: recalc

//-----------------------------------------------------------------------------
// name: next()
// desc: move step towards dest
//-----------------------------------------------------------------------------
void ViewRegionInterp::next()
{
    // do nothing
    if( m_alpha >= 1.0 ) return;

    // compute the alpha
    m_alpha = (AudicleWindow::main()->get_current_time() - m_start) / m_dur;
    // alpha
    recalc();
}
开发者ID:alltom,项目名称:taps,代码行数:14,代码来源:audicle_gfx.cpp


示例14: recalc

void filter_rc_device::filter_rc_set_RC(int type, double R1, double R2, double R3, double C)
{
	m_stream->update();
	m_type = type;
	m_R1 = R1;
	m_R2 = R2;
	m_R3 = R3;
	m_C = C;
	recalc();
}
开发者ID:BrandoCommando,项目名称:mame,代码行数:10,代码来源:flt_rc.c


示例15: obrasslamp

void obrasslamp(int i)
{
	spelknow[i]++;
	Printf("Spell:  %s -- %s<br/>", spelname[i], speldescript[i]);
	Print("The genie prefers not to be disturbed again.");
	forget();

	recalc();
	UpdateStatus();
}
开发者ID:davidpeng,项目名称:ularn,代码行数:10,代码来源:object.c


示例16: setFlags

void ScrollContainerWidget::init() {
	setFlags(WIDGET_ENABLED);
	_type = kScrollContainerWidget;
	_verticalScroll = new ScrollBarWidget(this, _w-16, 0, 16, _h);
	_verticalScroll->setTarget(this);
	_scrolledX = 0;
	_scrolledY = 0;
	_limitH = 140;
	recalc();
}
开发者ID:AReim1982,项目名称:scummvm,代码行数:10,代码来源:scrollcontainer.cpp


示例17: assert

inline void chooser::right_rotale(pitem p) {
	assert(p->L);
	pitem q = p->L;
	if (p->parent) {
		if (is_left_child(p)) {
			p->parent->L = q;
		} else {
			p->parent->R = q;
		}
	}
	p->L = q->R;
	q->R = p;
	recalc(p->L);
	recalc(p);
	make_parent(p->parent, q);
	make_parent(q, p);
	recalc(q);
	recalc(q->parent);
}
开发者ID:Break-Neck,项目名称:ant_algo,代码行数:19,代码来源:chooser.cpp


示例18: graph_threshold_edges

uint8_t graph_threshold_edges(
  graph_t  *gin,
  graph_t  *gout,
  uint32_t  nedges,
  uint32_t  flags,
  void     *opt,
  uint8_t (*init)(graph_t *g),
  uint8_t (*remove)(
    graph_t      *g,
    double       *space,
    array_t      *edges,
    graph_edge_t *edge),
  uint8_t (*recalc)(
    graph_t      *g,
    graph_edge_t *edge)
) {

  uint64_t     i;
  uint32_t     nnodes;
  double      *space;
  array_t      edges;
  graph_edge_t edge;

  edges.data = NULL;
  space      = NULL;
  nnodes     = graph_num_nodes(gin);

  if (array_create(&edges, sizeof(graph_edge_t), 10)) goto fail;

  if (graph_copy(gin,  gout)) goto fail;
  if (stats_cache_init(gout)) goto fail;

  space = calloc(nnodes,sizeof(double));
  if (space == NULL) goto fail;

  init(gout);

  for (i = 0; i < nedges; i++) {

    array_clear(&edges);
    if (remove(gout, space, &edges, &edge)) goto fail;

    if (i == nedges -1)      break;
    if (recalc(gout, &edge)) goto fail;
  }

  array_free(&edges);
  free(space);
  return 0;
  
fail:
  if (edges.data != NULL) array_free(&edges);
  if (space      != NULL) free(space);
  return 1;
}
开发者ID:pauldmccarthy,项目名称:ccnet,代码行数:55,代码来源:graph_threshold.c


示例19: cols

mouse_grid_t::mouse_grid_t(
	int cols, int rows,
	int offset_x, int offset_y,
	int cell_width, int cell_height)
:
	cols(cols), rows(rows),
	gx(offset_x), gy(offset_y),
	cw(cell_width), ch(cell_height)
{
	recalc();
}
开发者ID:dejbug,项目名称:anika,代码行数:11,代码来源:mouse_grid_t.cpp


示例20: fxerror

// Change the font
void TextLabel::setFont(FXFont* fnt)
{
    if (!fnt)
        fxerror("%s::setFont: NULL font specified.\n",getClassName());
    if (font!=fnt)
    {
        font=fnt;
        recalc();
        update();
    }
}
开发者ID:tindzk,项目名称:Xfe,代码行数:12,代码来源:TextLabel.cpp



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ recalcLocalAabb函数代码示例发布时间:2022-05-30
下一篇:
C++ recGblSetSevr函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap