本文整理汇总了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();
}
示例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();
}
示例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();
}
示例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);
}
}
示例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();
}
示例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)));
}
示例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();
}
示例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();
}
示例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);
}
示例10: QWidget
BasicGraph::BasicGraph(QString _name, int _range, QWidget *parent ):
QWidget(parent), range(_range){
name = _name;
setAxes();
gap = 10;
step = 5;
thickness = 0;
}
示例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;
}
}
示例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();
}
示例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();
}
示例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();
}
示例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;
}