gpt4 book ai didi

us.ihmc.graphicsDescription.yoGraphics.YoGraphicPosition.setAppearance()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-17 02:24:40 27 4
gpt4 key购买 nike

本文整理了Java中us.ihmc.graphicsDescription.yoGraphics.YoGraphicPosition.setAppearance()方法的一些代码示例,展示了YoGraphicPosition.setAppearance()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoGraphicPosition.setAppearance()方法的具体详情如下:
包路径:us.ihmc.graphicsDescription.yoGraphics.YoGraphicPosition
类名称:YoGraphicPosition
方法名:setAppearance

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++;
}

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com