本文整理了Java中us.ihmc.graphicsDescription.yoGraphics.YoGraphicPosition.setAppearance()
方法的一些代码示例,展示了YoGraphicPosition.setAppearance()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoGraphicPosition.setAppearance()
方法的具体详情如下:
包路径:us.ihmc.graphicsDescription.yoGraphics.YoGraphicPosition
类名称:YoGraphicPosition
方法名:setAppearance
暂无
代码示例来源:origin: us.ihmc/ihmc-graphics-description
public void setBall(double x, double y, double z, AppearanceDefinition appearance, int ballIndex)
{
if (ballIndex < yoGraphicPositions.size())
{
YoGraphicPosition yoGraphicPosition = yoGraphicPositions.get(ballIndex);
yoGraphicPosition.setPosition(x, y, z);
if (appearance != null)
yoGraphicPosition.setAppearance(appearance);
}
else
{
if (!outOfBallsWarning)
{
// System.err.println("Bag of Balls doesn't have enough footstep graphic positions!");
outOfBallsWarning = true;
}
}
}
代码示例来源:origin: us.ihmc/IHMCGraphicsDescription
public void setBall(double x, double y, double z, AppearanceDefinition appearance, int ballIndex)
{
if (ballIndex < dynamicGraphicPositions.size())
{
YoGraphicPosition dynamicGraphicPosition = dynamicGraphicPositions.get(ballIndex);
dynamicGraphicPosition.setPosition(x, y, z);
if (appearance != null)
dynamicGraphicPosition.setAppearance(appearance);
}
else
{
if (!this.outOfBallsWarning)
{
// System.err.println("Bag of Balls doesn't have enough footstep graphic positions!");
this.outOfBallsWarning = true;
}
}
}
代码示例来源:origin: us.ihmc/ihmc-graphics-description
/**
* Sets the next ball to the given location with the given Appearance. If all the balls have been
* set, then loops to the first ball.
*
* @param location FramePoint to set the next ball to.
* @param appearance Appearance to give the next ball.
*/
public void setBallLoop(FramePoint3DReadOnly location, AppearanceDefinition appearance)
{
location.checkReferenceFrameMatch(worldFrame);
if (index >= yoGraphicPositions.size())
{
index = 0;
}
YoGraphicPosition yoGraphicPosition = yoGraphicPositions.get(index);
yoGraphicPosition.setPosition(location);
if (appearance != null)
yoGraphicPosition.setAppearance(appearance);
index++;
}
代码示例来源:origin: us.ihmc/IHMCGraphicsDescription
/**
* Sets the next ball to the given location with the given Appearance. If all the balls have been set, then loops to the first ball.
*
* @param location FramePoint to set the next ball to.
* @param appearance Appearance to give the next ball.
*/
public void setBallLoop(FramePoint location, AppearanceDefinition appearance)
{
location.changeFrame( ReferenceFrame.getWorldFrame());
if (index >= dynamicGraphicPositions.size())
{
index = 0;
}
YoGraphicPosition dynamicGraphicPosition = dynamicGraphicPositions.get(index);
dynamicGraphicPosition.setPosition(location);
if (appearance != null)
dynamicGraphicPosition.setAppearance(appearance);
index++;
}
内容来源于网络,如有侵权,请联系作者删除!