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

C++ setAxes函数代码示例

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

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



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

示例1: dJointGetPUAnchor

void
dxJointPU::setRelativeValues()
{
    dVector3 anchor;
    dJointGetPUAnchor(this, anchor);
    setAnchors( this, anchor[0], anchor[1], anchor[2], anchor1, anchor2 );

    dVector3 ax1, ax2, ax3;
    dJointGetPUAxis1(this, ax1);
    dJointGetPUAxis2(this, ax2);
    dJointGetPUAxis3(this, ax3);

    if ( flags & dJOINT_REVERSE )
    {
        setAxes( this, ax1[0], ax1[1], ax1[2], NULL, axis2 );
        setAxes( this, ax2[0], ax2[1], ax2[2], axis1, NULL );
    }
    else
    {
        setAxes( this, ax1[0], ax1[1], ax1[2], axis1, NULL );
        setAxes( this, ax2[0], ax2[1], ax2[2], NULL, axis2 );
    }


    setAxes( this, ax3[0], ax3[1], ax3[2], axisP1, NULL );

    computeInitialRelativeRotations();
}
开发者ID:weilandetian,项目名称:Yoyo,代码行数:28,代码来源:pu.cpp


示例2: dJointGetHinge2Anchor

void
dxJointHinge2::setRelativeValues()
{
    dVector3 anchor;
    dJointGetHinge2Anchor(this, anchor);
    setAnchors( this, anchor[0], anchor[1], anchor[2], anchor1, anchor2 );

    dVector3 axis;

    if ( node[0].body )
    {
        dJointGetHinge2Axis1(this, axis);
        setAxes( this, axis[0],axis[1],axis[2], axis1, NULL );
    }

    if ( node[0].body )
    {
        dJointGetHinge2Axis2(this, axis);
        setAxes( this, axis[0],axis[1],axis[2], NULL, axis2 );
    }

    dVector3 ax1, ax2;
    getAxisInfo( ax1, ax2, axis, s0, c0 );

    makeV1andV2();
    makeW1andW2();
}
开发者ID:emperorstarfinder,项目名称:opensim-libs,代码行数:27,代码来源:hinge2.cpp


示例3: dJointSetPUAxis2

void dJointSetPUAxis2( dJointID j, dReal x, dReal y, dReal z )
{
    dxJointPU* joint = ( dxJointPU* ) j;
    dUASSERT( joint, "bad joint argument" );
    checktype( joint, PU );
    if ( joint->flags & dJOINT_REVERSE )
        setAxes( joint, x, y, z, joint->axis1, NULL );
    else
        setAxes( joint, x, y, z, NULL, joint->axis2 );
    joint->computeInitialRelativeRotations();
}
开发者ID:weilandetian,项目名称:Yoyo,代码行数:11,代码来源:pu.cpp


示例4: dataRect

bool SingleCellViewGraphPanelPlotWidget::resetAxes(const bool &pCanReplot)
{
    // Reset our axes by setting their values to either default ones or to some
    // that allow to see all the graphs

    QRectF dRect = dataRect();

    if (dRect == QRectF()) {
        return setAxes(QRectF(DefMinAxis, DefMinAxis,
                              DefMaxAxis-DefMinAxis, DefMaxAxis-DefMinAxis),
                       pCanReplot);
    } else {
        return setAxes(optimisedRect(dRect), pCanReplot);
    }
}
开发者ID:Fairly,项目名称:opencor,代码行数:15,代码来源:singlecellviewgraphpanelplotwidget.cpp


示例5: dJointGetPRAnchor

void
dxJointPR::setRelativeValues()
{
    dVector3 anchor;
    dJointGetPRAnchor(this, anchor);
    setAnchors( this, anchor[0], anchor[1], anchor[2], offset, anchor2 );

    dVector3 axis;
    dJointGetPRAxis1(this, axis);
    setAxes( this, axis[0], axis[1], axis[2], axisP1, 0 );

    dJointGetPRAxis2(this, axis);
    setAxes( this, axis[0], axis[1], axis[2], axisR1, axisR2 );

    computeInitialRelativeRotation();
}
开发者ID:weilandetian,项目名称:Yoyo,代码行数:16,代码来源:pr.cpp


示例6: XOJ_CHECK_TYPE

/**
 * Copy axes from event
 */
void InputSequence::copyAxes(GdkEvent* event)
{
	XOJ_CHECK_TYPE(InputSequence);

	clearAxes();
	setAxes((gdouble*)g_memdup(event->motion.axes, sizeof(gdouble) * gdk_device_get_n_axes(device)));
}
开发者ID:xournalpp,项目名称:xournalpp,代码行数:10,代码来源:InputSequence.cpp


示例7: dJointSetPRAxis2

void dJointSetPRAxis2( dJointID j, dReal x, dReal y, dReal z )
{
    dxJointPR* joint = ( dxJointPR* ) j;
    dUASSERT( joint, "bad joint argument" );
    checktype( joint, PR );
    setAxes( joint, x, y, z, joint->axisR1, joint->axisR2 );
    joint->computeInitialRelativeRotation();
}
开发者ID:weilandetian,项目名称:Yoyo,代码行数:8,代码来源:pr.cpp


示例8: dJointSetHingeAxis

void dJointSetHingeAxis( dJointID j, dReal x, dReal y, dReal z )
{
    dxJointHinge* joint = ( dxJointHinge* )j;
    dUASSERT( joint, "bad joint argument" );
    checktype( joint, Hinge );
    setAxes( joint, x, y, z, joint->axis1, joint->axis2 );
    joint->computeInitialRelativeRotation();
}
开发者ID:arpg,项目名称:Gazebo,代码行数:8,代码来源:hinge.cpp


示例9: setAxes

bool SingleCellViewGraphPanelPlotWidget::setAxes(const QRectF &pAxesRect,
                                                 const bool &pCanReplot)
{
    // Set our axes' values

    return setAxes(pAxesRect.left(), pAxesRect.left()+pAxesRect.width(),
                   pAxesRect.top(), pAxesRect.top()+pAxesRect.height(),
                   pCanReplot);
}
开发者ID:Fairly,项目名称:opencor,代码行数:9,代码来源:singlecellviewgraphpanelplotwidget.cpp


示例10: QWidget

BasicGraph::BasicGraph(QString _name, int _range, QWidget *parent ):
                       QWidget(parent), range(_range){
    name = _name;
    setAxes();

    gap = 10;
    step = 5;
    thickness = 0;
}
开发者ID:brainstudio-team,项目名称:BrainStudio,代码行数:9,代码来源:basicgraph.cpp


示例11: rotation_matrix

void LLCoordFrame::setAxes(const LLQuaternion &q )
{
	LLMatrix3 rotation_matrix(q);
	setAxes(rotation_matrix);
	if( !isFinite() )
	{
		reset();
		llwarns << "Non Finite in LLCoordFrame::setAxes()" << llendl;
	}
}
开发者ID:HizWylder,项目名称:GIS,代码行数:10,代码来源:llcoordframe.cpp


示例12: dJointSetPUAxis3

void dJointSetPUAxis3( dJointID j, dReal x, dReal y, dReal z )
{
    dxJointPU* joint = ( dxJointPU* ) j;
    dUASSERT( joint, "bad joint argument" );
    checktype( joint, PU );

    setAxes( joint, x, y, z, joint->axisP1, 0 );

    joint->computeInitialRelativeRotations();
}
开发者ID:weilandetian,项目名称:Yoyo,代码行数:10,代码来源:pu.cpp


示例13: dJointSetSliderAxis

void dJointSetSliderAxis ( dJointID j, dReal x, dReal y, dReal z )
{
    dxJointSlider* joint = ( dxJointSlider* ) j;
    dUASSERT ( joint, "bad joint argument" );
    checktype ( joint, Slider );
    setAxes ( joint, x, y, z, joint->axis1, 0 );

    joint->computeOffset();

    joint->computeInitialRelativeRotation();
}
开发者ID:emperorstarfinder,项目名称:opensim-libs,代码行数:11,代码来源:slider.cpp


示例14: dJointGetScrewAnchor

void
dxJointScrew::setRelativeValues()
{
    dVector3 vec;
    dJointGetScrewAnchor(this, vec);
    setAnchors( this, vec[0], vec[1], vec[2], anchor1, anchor2 );

    dJointGetScrewAxis(this, vec);
    setAxes( this,  vec[0], vec[1], vec[2], axis1, axis2 );
    computeInitialRelativeRotation();
}
开发者ID:mylxiaoyi,项目名称:gazebo,代码行数:11,代码来源:screw.cpp


示例15: appendObjectHeader

bool iAIDA::AIDA_XMLStore::Histo1DTranslator::toXML() 
{ 
  // write name and title
  appendObjectHeader(m_element,"histogram1d",m_name,m_histo->title(),m_path); 

  appendAnnotation(m_element,m_histo->annotation()); 
  if (!setAxes() ) return false;
  if (!setStatistics() ) return false;
  if (!setData () ) return false;
  return true;

}
开发者ID:apfeiffer1,项目名称:iAIDA,代码行数:12,代码来源:Histo1DTranslator.cpp


示例16: switch

void SingleCellViewGraphPanelPlotWidget::mouseReleaseEvent(QMouseEvent *pEvent)
{
    // Default handling of the event

    QwtPlot::mouseReleaseEvent(pEvent);

    // Check whether we need to carry out a action

    if (mAction == None)
        return;

    // Finish carrying out the action, if needed

    switch (mAction) {
    case ZoomRegion: {
        // Retrieve our zoom region

        QRect zoomRegionRect = mOverlayWidget->zoomRegion();

        // Reset our action

        resetAction();

        // Effectively zoom our region, if possible, by updating our axes

        QRectF zoomRegion = QRectF(canvasPoint(zoomRegionRect.topLeft(), false),
                                   canvasPoint(zoomRegionRect.topLeft()+QPoint(zoomRegionRect.width(), zoomRegionRect.height()), false));

        if (zoomRegion.width() && zoomRegion.height())
            setAxes(zoomRegion.left(), zoomRegion.left()+zoomRegion.width(),
                    zoomRegion.top()+zoomRegion.height(), zoomRegion.top());

        break;
    }
    default:
        // A action that doesn't require anything specific to be done, except to
        // reset our action

        resetAction();
    }

    // Show our context menu, if still needed

    if (mNeedContextMenu) {
        mOriginPoint = mapFromGlobal(QCursor::pos());

        mContextMenu->exec(QCursor::pos());
    }
}
开发者ID:Fairly,项目名称:opencor,代码行数:49,代码来源:singlecellviewgraphpanelplotwidget.cpp


示例17: dJointGetUniversalAnchor

void
dxJointUniversal::setRelativeValues()
{
    dVector3 anchor;
    dJointGetUniversalAnchor(this, anchor);
    setAnchors( this, anchor[0], anchor[1], anchor[2], anchor1, anchor2 );

    dVector3 ax1,ax2;
    dJointGetUniversalAxis1(this, ax1);
    dJointGetUniversalAxis2(this, ax2);

    if ( flags & dJOINT_REVERSE )
    {
        setAxes( this, ax1[0],ax1[1],ax1[2], NULL, axis2 );
        setAxes( this, ax2[0],ax2[1],ax2[2], axis1, NULL );
    }
    else
    {
        setAxes( this, ax1[0],ax1[1],ax1[2], axis1, NULL );
        setAxes( this, ax2[0],ax2[1],ax2[2], NULL, axis2 );
    }

    computeInitialRelativeRotations();
}
开发者ID:weilandetian,项目名称:Yoyo,代码行数:24,代码来源:universal.cpp


示例18: dJointSetScrewAxisOffset

void dJointSetScrewAxisOffset( dJointID j, dReal x, dReal y, dReal z, dReal dangle )
{
    dxJointScrew* joint = ( dxJointScrew* )j;
    dUASSERT( joint, "bad joint argument" );
    checktype( joint, Screw );
    setAxes( joint, x, y, z, joint->axis1, joint->axis2 );
    joint->computeInitialRelativeRotation();

    if ( joint->flags & dJOINT_REVERSE ) dangle = -dangle;

    dQuaternion qAngle, qOffset;
    dQFromAxisAndAngle(qAngle, x, y, z, dangle);
    dQMultiply3(qOffset, qAngle, joint->qrel);
    joint->qrel[0] = qOffset[0];
    joint->qrel[1] = qOffset[1];
    joint->qrel[2] = qOffset[2];
    joint->qrel[3] = qOffset[3];
}
开发者ID:mylxiaoyi,项目名称:gazebo,代码行数:18,代码来源:screw.cpp


示例19: ofSetColor

//--------------------------------------------------------------
void testApp::draw(){
    ofSetColor(0xffffff);
	//vidGrabber.draw(20,20);
	//videoTexture.draw(20+camWidth,20,camWidth,camHeight);

    videoImage->draw(20, 20);
    
    if (backgroundImage != NULL) {
        compareImages(videoImage, backgroundImage, imageBW);
        imageBW->draw(20+camWidth, 20);
        setAxes(imageBW);
        
        
        char theThresh[255];
        
        sprintf(theThresh, "Threshold: %i", threshold);
        
        ofDrawBitmapString(theThresh, 840, 450);
        
        
        
        ofSetColor(255, 0, 0);
        //    ofCircle(center[0], center[1], 5);
        ofPushMatrix();
        ofTranslate(20+camWidth, 20);
        ofCircle(center[0], center[1], 5);
        ofLine(center[0]+(100*cos(major) ), center[1] + (100*sin(major)), center[0]-(100*cos(major) ), center[1] - (100*sin(major)));
        ofSetColor(0, 255, 0);
        ofLine(center[0]+(100*sin(minor) ), center[1] + (100*cos(minor)), center[0]-(100*sin(minor) ), center[1] - (100*cos(minor)));
        ofPopMatrix();
        
        ofSetColor(0, 0, 0);
        char centroid[255];
        
        
        
        sprintf(centroid, "Centroid: x: %i y: %i, Major: %f, Minor: %f", center[0], center[1], major, minor);
        
        ofDrawBitmapString(centroid, 840, 460);
    }
    
}
开发者ID:SnareHanger,项目名称:MajorMinorAxis,代码行数:43,代码来源:testApp.cpp


示例20: qDebug

/*
 * Function to plot data
 */
void CQBarChart::plotData()
{
#ifdef DEBUG_UI
  qDebug() << "-- in qwt3dPlot.cpp Plot3d::plotData --";
#endif

  resizeCoordSys();

  mpBar = (Bar*)mpPlot->setPlotStyle(Bar(mData.faktor * 0.4, -1, -1));

  setPlotTitle();

  if (mColorLegend == true) setLegend();

  setZoom();
  setAxes();
  mpPlot->setCoordinateStyle(Qwt3D::FRAME);
  mpPlot->updateData();
  mpPlot->updateGL();
}
开发者ID:copasi,项目名称:COPASI,代码行数:23,代码来源:qwt3dPlot.cpp



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C++ setAxisScale函数代码示例发布时间:2022-05-30
下一篇:
C++ setAutoDelete函数代码示例发布时间: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