us.ihmc.graphicsDescription.yoGraphics.YoGraphicText3D类的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(108)

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

YoGraphicText3D介绍

暂无

代码示例

代码示例来源:origin: us.ihmc/ihmc-graphics-description

@Override
  public YoGraphic duplicate(YoVariableRegistry newRegistry)
  {
   return new YoGraphicText3D(getName(), text, yoFramePoint.duplicate(newRegistry), yoFrameYawPitchRoll.duplicate(newRegistry), scale, appearance);
  }
}

代码示例来源:origin: us.ihmc/simulation-construction-set-test

final YoGraphicText3D yoGraphicText = new YoGraphicText3D("Text", "Hello", "text", "", registry, 0.2, YoAppearance.Blue());
yoGraphicText.setPosition(1.0, 0.0, 0.2);
yoGraphicText.setYawPitchRoll(0.3, 0.0, 0.0);

代码示例来源:origin: us.ihmc/simulation-construction-set-test

@Override
public void run()
{
 int i = 0;
 while (i++ < 20)
 {
   quickPause();
   ConvexPolygon2D newPolygon = new ConvexPolygon2D(Vertex2DSupplier.asVertex2DSupplier(secondPointList));
   yoPolygon.set(newPolygon);
   ConvexPolygon2D newYoPolygon = new ConvexPolygon2D(Vertex2DSupplier.asVertex2DSupplier(pointList));
   yoFramePolygon.set(newYoPolygon);
   yoGraphicYoFramePolygon.update();
   Vector3D eulerAngles = new Vector3D();
   yoFramePolygonOrientation.getEulerAngles(eulerAngles);
   eulerAngles.setY(eulerAngles.getY() + 0.1);
   yoFramePolygonOrientation.setEulerAngles(eulerAngles);
   yoGraphicText.setText("Hello");
   yoGraphicText.update();
   scs.tickAndUpdate();
   quickPause();
   newPolygon = new ConvexPolygon2D(Vertex2DSupplier.asVertex2DSupplier(pointList));
   yoPolygon.set(newPolygon);
   yoGraphicYoFramePolygon.update();
   newYoPolygon = new ConvexPolygon2D(Vertex2DSupplier.asVertex2DSupplier(secondPointList));
   yoFramePolygon.set(newYoPolygon);
   yoGraphicText.setText("GoodBye");
   yoGraphicText.update();
   scs.tickAndUpdate();
 }
}

相关文章

YoGraphicText3D类方法