这篇教程C++ updateShape函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中updateShape函数的典型用法代码示例。如果您正苦于以下问题:C++ updateShape函数的具体用法?C++ updateShape怎么用?C++ updateShape使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了updateShape函数的25个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: resetvoid ActiveThreadTab::setSummaryActiveThread(TabRef tab_ref, ChattyPostDataRef post_data_ref){ reset(); setScrollPos(0, true); m_selected_post_ref = nullptr; if(tab_ref != nullptr && post_data_ref != nullptr) { std::list<ChattyPostDataRef>::const_iterator it = g_world_tree.m_tree.begin(); for(; it != g_world_tree.m_tree.end(); it++) { if((*it) == post_data_ref) { break; } } PostRef post_ref = createThreadPost(tab_ref); post_ref->fromChattyPostData(post_ref, *it, true, false); m_threads.push_back(post_ref); setupLinkages(); updateShape(m_window_size); setSelectedPost(post_ref, false, false, false, 0.0f, false); } else { updateShape(m_window_size); } toolbarNeedsUpdate(); needsRedraw();}
开发者ID:CRasterImage,项目名称:Lamp,代码行数:31,
示例2: updateShapevoid Torus::updateTopology(){ updateShape(); edges.clear(); for(int i=0;i<nr;i++){ edges.append({ i*nR + (nR-1), i*nR + 0}); //} //for(int i=0;i<nr;i++){ for(int j=1;j<nR;j++) edges.append({ i*nR + (j-1), i*nR + j}); } for(int j=0;j<nR;j++){ edges.append({ (nr-1)*nR + j, 0 *nR + j}); //} //for(int j=0;j<nR;j++){ for(int i=1;i<nr;i++) edges.append({(i-1)*nR + j, i *nR + j}); }}
开发者ID:tamkderplar,项目名称:MG1,代码行数:25,
示例3: getVisibleVarvoid TopWindow::setActiveLayout( GenericLayout *pLayout ){ bool isVisible = getVisibleVar().get(); if( m_pActiveLayout ) { if( isVisible ) { m_pActiveLayout->onHide(); } // The current layout becomes inactive m_pActiveLayout->getActiveVar().set( false ); } pLayout->setWindow( this ); m_pActiveLayout = pLayout; // Get the size of the layout and resize the window resize( pLayout->getWidth(), pLayout->getHeight() ); updateShape(); if( isVisible ) { pLayout->onShow(); } // The new layout is active pLayout->getActiveVar().set( true );}
开发者ID:Kafay,项目名称:vlc,代码行数:27,
示例4: updateShapevoid Layout::setSpace(float pixels) { if(pixels >= 0) { _space = pixels; updateShape(); } else throw std::invalid_argument("pixelvalue must be >= 0");}
开发者ID:kaitokidi,项目名称:Base,代码行数:7,
示例5: BaseEdgeBezierEdge::BezierEdge(Scene * scene): BaseEdge(scene), m_startPoint(QPointF()), m_ctrlPoint1(QPointF()), m_ctrlPoint2(QPointF()), m_endPoint(QPointF()){ // initialize the shape of the edge updateShape();}
开发者ID:jiguanglizipao,项目名称:2D_MST,代码行数:7,
示例6: talignSlotvoidCQIllustratorCreateTextToolbar::talignSlot(){ valign_ = CVALIGN_TYPE_TOP; updateShape();}
开发者ID:colinw7,项目名称:CQIllustrator,代码行数:8,
示例7: vcalignSlotvoidCQIllustratorCreateTextToolbar::vcalignSlot(){ valign_ = CVALIGN_TYPE_CENTER; updateShape();}
开发者ID:colinw7,项目名称:CQIllustrator,代码行数:8,
示例8: balignSlotvoidCQIllustratorCreateTextToolbar::balignSlot(){ valign_ = CVALIGN_TYPE_BOTTOM; updateShape();}
开发者ID:colinw7,项目名称:CQIllustrator,代码行数:8,
示例9: updateShape void Widget::hide() { if(_isVisible == true) { _isVisible = false; updateShape(); } }
开发者ID:Chiranjivee,项目名称:SFML-book,代码行数:8,
示例10: ralignSlotvoidCQIllustratorCreateTextToolbar::ralignSlot(){ halign_ = CHALIGN_TYPE_RIGHT; updateShape();}
开发者ID:colinw7,项目名称:CQIllustrator,代码行数:8,
示例11: updateShapevoid SCgBus::changePointPosition(int pointIndex, const QPointF& newPos){ SCgPointObject::changePointPosition(pointIndex, newPos); if(!pointIndex) updateShape(); else positionChanged();}
开发者ID:DenisKlimenko,项目名称:kbe,代码行数:9,
示例12: recalculateChildMenusAnglesvoid SunMenuItemView::setSweepLength(qreal value){ if (qAbs(mSweepLength - value) < 0.0001) return; mSweepLength = value; recalculateChildMenusAngles(); updateShape();}
开发者ID:mcdir,项目名称:sui,代码行数:9,
示例13: vec2Ship::Ship(float x, float y, float rotation){ position = vec2(x, y); this->rotation = rotation; shape = new vec2[4]; deathShape = new vec2[8]; flameShape = new vec2[3]; updateShape();}
开发者ID:smahbod2014,项目名称:Ao-v2.0,代码行数:9,
示例14: DisplayAxesDisplay::AxesDisplay() : Display() , axes_( 0 ){ frame_property_ = new TfFrameProperty( "Reference Frame", TfFrameProperty::FIXED_FRAME_STRING, "The TF frame these axes will use for their origin.", this, NULL, true ); length_property_ = new FloatProperty( "Length", 1.0, "Length of each axis, in meters.", this, SLOT( updateShape() )); length_property_->setMin( 0.0001 ); radius_property_ = new FloatProperty( "Radius", 0.1, "Radius of each axis, in meters.", this, SLOT( updateShape() )); radius_property_->setMin( 0.0001 );}
开发者ID:jkammerl,项目名称:rviz,代码行数:18,
示例15: resizevoid TopWindow::setActiveLayout( GenericLayout *pLayout ){ pLayout->setWindow( this ); m_pActiveLayout = pLayout; // Get the size of the layout and resize the window resize( pLayout->getWidth(), pLayout->getHeight() ); updateShape(); pLayout->refreshAll();}
开发者ID:forthyen,项目名称:SDesk,代码行数:9,
示例16: updateShapevoid KWFrameGeometry::syncMargins(qreal value){ if (widget.synchronize->isChecked()) { widget.leftMargin->changeValue(value); widget.topMargin->changeValue(value); widget.rightMargin->changeValue(value); widget.bottomMargin->changeValue(value); } updateShape();}
开发者ID:KDE,项目名称:koffice,代码行数:10,
示例17: disconnect// public virtual [base kpToolPolygonalBase]void kpToolPolygon::end (){ kpToolPolygonalBase::end (); disconnect (d->toolWidgetFillStyle, SIGNAL (fillStyleChanged (kpToolWidgetFillStyle::FillStyle)), this, SLOT (updateShape ())); d->toolWidgetFillStyle = 0;}
开发者ID:KDE,项目名称:kolourpaint,代码行数:11,
示例18: updateShapevoid SunMenuItemView::setWidth(qint32 value){ if (mWidth == value) return; mWidth = value; updateShape(); if (mSubLayer) mSubLayer->setInnerRadius(mInnerRadius + mWidth);}
开发者ID:mcdir,项目名称:sui,代码行数:11,
示例19: ShapeAnnotationEllipseAnnotation::EllipseAnnotation(ShapeAnnotation *pShapeAnnotation, Component *pParent) : ShapeAnnotation(pParent){ updateShape(pShapeAnnotation); setPos(mOrigin); setRotation(mRotation); connect(pShapeAnnotation, SIGNAL(updateReferenceShapes()), pShapeAnnotation, SIGNAL(changed())); connect(pShapeAnnotation, SIGNAL(added()), this, SLOT(referenceShapeAdded())); connect(pShapeAnnotation, SIGNAL(changed()), this, SLOT(referenceShapeChanged())); connect(pShapeAnnotation, SIGNAL(deleted()), this, SLOT(referenceShapeDeleted()));}
开发者ID:OpenModelica,项目名称:OpenModelica,代码行数:11,
示例20: ShapeAnnotationPolygonAnnotation::PolygonAnnotation(ShapeAnnotation *pShapeAnnotation, GraphicsView *pGraphicsView) : ShapeAnnotation(true, pGraphicsView, 0){ updateShape(pShapeAnnotation); setShapeFlags(true); mpGraphicsView->addItem(this); connect(pShapeAnnotation, SIGNAL(updateReferenceShapes()), pShapeAnnotation, SIGNAL(changed())); connect(pShapeAnnotation, SIGNAL(added()), this, SLOT(referenceShapeAdded())); connect(pShapeAnnotation, SIGNAL(changed()), this, SLOT(referenceShapeChanged())); connect(pShapeAnnotation, SIGNAL(deleted()), this, SLOT(referenceShapeDeleted()));}
开发者ID:hkiel,项目名称:OMEdit,代码行数:11,
示例21: updateShapevoid TopWindow::innerShow(){ // First, refresh the layout and update the shape of the window if( m_pActiveLayout ) { updateShape(); m_pActiveLayout->refreshAll(); } // Show the window GenericWindow::innerShow();}
开发者ID:forthyen,项目名称:SDesk,代码行数:11,
示例22: updateShapeMStatus SargassoNode::compute( const MPlug& plug, MDataBlock& block ){ MStatus stat; if(!m_isInitd) return stat; if(plug == constraintRotateX || plug == constraintRotateY || plug == constraintRotateZ || plug == constraintTranslateX || plug == constraintTranslateY || plug == constraintTranslateZ) { // AHelper::Info<MString>("ov child", plug.name()); // AHelper::Info<unsigned>("ov id", plug.parent().logicalIndex()); unsigned iobject = plug.parent().logicalIndex(); if(iobject > m_numObjects-1) { MGlobal::displayInfo("n constraint is out of bound"); return MS::kSuccess; } if(iobject == 0 && plug == constraintRotateX) { MDataHandle hm = block.inputValue(atargetMesh); updateShape(hm.asMesh()); } if(plug == constraintRotateX) updateSpace(block, iobject); MDataHandle hout = block.outputValue(plug, &stat); if(plug == constraintTranslateX) { hout.set(m_solvedT.x); } else if(plug == constraintTranslateY) { hout.set(m_solvedT.y); } else if(plug == constraintTranslateZ) { hout.set(m_solvedT.z); } else if(plug == constraintRotateX) { hout.set(m_rot[0]); } else if(plug == constraintRotateY) { hout.set(m_rot[1]); } else if(plug == constraintRotateZ) { hout.set(m_rot[2]); } block.setClean( plug ); } else return MS::kUnknownParameter; return MS::kSuccess;}
开发者ID:kkaushalp,项目名称:aphid,代码行数:54,
示例23: clearvoid ofxPolyline2Mesh::setup(const ofPolyline& shape){ clear(); needs_update = true; current_vertex.size = 1; current_vertex.color.set(127); mesh.setMode(OF_PRIMITIVE_TRIANGLES); updateShape(shape);}
开发者ID:arturoc,项目名称:ofxPolyline2Mesh,代码行数:13,
示例24: mapFromScenevoid SCgBus::positionChanged(){ // skip update if there are no points if (mPoints.empty()) return; if (mOwner) { mOwnerPos = mapFromScene(mOwner->scenePos()); mPoints.first() = mapFromScene(mOwner->cross(mapToScene(mPoints.at(1)), 0.f)); } updateShape();}
开发者ID:DenisKlimenko,项目名称:kbe,代码行数:13,
示例25: StraightEdgeStraightDoubleEdge::StraightDoubleEdge(Scene * scene, EdgeGroupInterface * group, Node * fromNode, Node * toNode): StraightEdge(scene, group, fromNode, toNode){ m_arrow->setKind(ArrowKind::DOUBLE); // initialize the shape // the StraightEdge Constructor does so as well, but at that time this part of the instance is not constructed yet // so the wrong function is called (it calls StraightEdge::updateShape instead). updateShape();}
开发者ID:jiguanglizipao,项目名称:2D_MST,代码行数:14,
注:本文中的updateShape函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 C++ updateSize函数代码示例 C++ updateSettings函数代码示例 |