void 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(); }
void ActiveThreadTab::worldTreeBuilt(TabRef tab_ref) { reset(); updateShape(m_window_size); toolbarNeedsUpdate(); needsRedraw(); }
void LLPanelPrimMediaControls::setMediaFace(LLPointer<LLViewerObject> objectp, S32 face, viewer_media_t media_impl, LLVector3 pick_normal) { if (media_impl.notNull() && objectp.notNull()) { LLUUID prev_id = mTargetImplID; mTargetImplID = media_impl->getMediaTextureID(); mTargetObjectID = objectp->getID(); mTargetObjectFace = face; mTargetObjectNormal = pick_normal; mClearFaceOnFade = false; if (prev_id != mTargetImplID) mVolumeSliderCtrl->setValue(media_impl->getVolume()); } else { // This happens on a timer now. // mTargetImplID = LLUUID::null; // mTargetObjectID = LLUUID::null; // mTargetObjectFace = 0; mClearFaceOnFade = true; } updateShape(); }
void 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}); } }
void 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 ); }
void Layout::setSpace(float pixels) { if(pixels >= 0) { _space = pixels; updateShape(); } else throw std::invalid_argument("pixelvalue must be >= 0"); }
BezierEdge::BezierEdge(Scene * scene): BaseEdge(scene), m_startPoint(QPointF()), m_ctrlPoint1(QPointF()), m_ctrlPoint2(QPointF()), m_endPoint(QPointF()) { // initialize the shape of the edge updateShape(); }
void CQIllustratorCreateTextToolbar:: talignSlot() { valign_ = CVALIGN_TYPE_TOP; updateShape(); }
void CQIllustratorCreateTextToolbar:: vcalignSlot() { valign_ = CVALIGN_TYPE_CENTER; updateShape(); }
void CQIllustratorCreateTextToolbar:: balignSlot() { valign_ = CVALIGN_TYPE_BOTTOM; updateShape(); }
void Widget::hide() { if(_isVisible == true) { _isVisible = false; updateShape(); } }
void Widget::show() { if(_isVisible == false) { _isVisible = true; updateShape(); } }
void CQIllustratorCreateTextToolbar:: ralignSlot() { halign_ = CHALIGN_TYPE_RIGHT; updateShape(); }
void SCgBus::changePointPosition(int pointIndex, const QPointF& newPos) { SCgPointObject::changePointPosition(pointIndex, newPos); if(!pointIndex) updateShape(); else positionChanged(); }
void SunMenuItemView::setSweepLength(qreal value) { if (qAbs(mSweepLength - value) < 0.0001) return; mSweepLength = value; recalculateChildMenusAngles(); updateShape(); }
void SunMenuItemView::setStartAngle(qreal value) { if (qAbs(mStartAngle - value) < 0.0001) return; mStartAngle = value; recalculateChildMenusAngles(); updateShape(); }
Ship::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(); }
AxesDisplay::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 ); }
void 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(); }
void 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(); }
// public virtual [base kpToolPolygonalBase] void kpToolPolygon::end () { kpToolPolygonalBase::end (); disconnect (d->toolWidgetFillStyle, SIGNAL (fillStyleChanged (kpToolWidgetFillStyle::FillStyle)), this, SLOT (updateShape ())); d->toolWidgetFillStyle = 0; }
void SunMenuItemView::setWidth(qint32 value) { if (mWidth == value) return; mWidth = value; updateShape(); if (mSubLayer) mSubLayer->setInnerRadius(mInnerRadius + mWidth); }
EllipseAnnotation::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())); }
PolygonAnnotation::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())); }
void 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(); }
MStatus 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; }
PolygonAnnotation::PolygonAnnotation(ShapeAnnotation *pShapeAnnotation, Component *pParent) : ShapeAnnotation(pParent) { updateShape(pShapeAnnotation); initUpdateVisible(); // DynamicSelect for visible attribute 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())); }
void 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); }
void 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(); }
StraightDoubleEdge::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(); }