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


C++ setAxes函数代码示例

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


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


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