本文整理了Java中us.ihmc.graphicsDescription.yoGraphics.YoGraphicText3D
类的一些代码示例,展示了YoGraphicText3D
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoGraphicText3D
类的具体详情如下:
包路径:us.ihmc.graphicsDescription.yoGraphics.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();
}
}
内容来源于网络,如有侵权,请联系作者删除!