本文整理了Java中us.ihmc.graphicsDescription.yoGraphics.YoGraphicLineSegment.<init>()
方法的一些代码示例,展示了YoGraphicLineSegment.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoGraphicLineSegment.<init>()
方法的具体详情如下:
包路径:us.ihmc.graphicsDescription.yoGraphics.YoGraphicLineSegment
类名称:YoGraphicLineSegment
方法名:<init>
暂无
代码示例来源:origin: us.ihmc/ihmc-graphics-description
private static YoGraphicLineSegment yoGraphicLineSegmentFromMessage(String name, YoVariable<?>[] vars, double[] consts, AppearanceDefinition appearance)
{
return new YoGraphicLineSegment(name, (YoDouble) vars[0], (YoDouble) vars[1], (YoDouble) vars[2], (YoDouble) vars[3], (YoDouble) vars[4],
(YoDouble) vars[5], consts[0], appearance);
}
代码示例来源:origin: us.ihmc/ihmc-graphics-description
/** {@inheritDoc} */
@Override
public YoGraphicLineSegment duplicate(YoVariableRegistry newRegistry)
{
return new YoGraphicLineSegment(getName(), start, end, scaleFactor, getAppearance(), getDrawArrowhead());
}
}
代码示例来源:origin: us.ihmc/ihmc-avatar-interfaces
private void addSupportBaseGraphics(YoGraphicsListRegistry yoGraphicsListRegistry,YoFramePoint3D[] basePoints, ArrayList<YoGraphic> basePointsList, ArrayList<YoGraphic> linesList, String namePrefix,AppearanceDefinition appearance)
{
AppearanceDefinition[] colors = { YoAppearance.Red(), YoAppearance.Green(), YoAppearance.Blue(), YoAppearance.Yellow() };
YoGraphicsList yoGraphicsList = new YoGraphicsList(namePrefix + "Points");
for (int i = 0; i < basePoints.length; i++)
{
YoGraphicPosition baseControlPointViz = new YoGraphicPosition(namePrefix + "Point" + i, basePoints[i], 0.01, colors[i]);
yoGraphicsList.add(baseControlPointViz);
basePointsList.add(baseControlPointViz);
for (int j = i + 1; j < basePoints.length; j++)
{
YoGraphicLineSegment yoGraphicLineSegment = new YoGraphicLineSegment(namePrefix + "SupportLine", basePoints[i], basePoints[j],
1.0, appearance, false);
yoGraphicsList.add(yoGraphicLineSegment);
linesList.add(yoGraphicLineSegment);
}
}
if (yoGraphicsListRegistry != null)
yoGraphicsListRegistry.registerYoGraphicsList(yoGraphicsList);
yoGraphicsList.hideYoGraphics();
}
代码示例来源:origin: us.ihmc/IHMCAvatarInterfaces
private void addSupportBaseGraphics(YoGraphicsListRegistry yoGraphicsListRegistry,YoFramePoint[] basePoints, ArrayList<YoGraphic> basePointsList, ArrayList<YoGraphic> linesList, String namePrefix,AppearanceDefinition appearance)
{
AppearanceDefinition[] colors = { YoAppearance.Red(), YoAppearance.Green(), YoAppearance.Blue(), YoAppearance.Yellow() };
YoGraphicsList yoGraphicsList = new YoGraphicsList(namePrefix + "Points");
for (int i = 0; i < basePoints.length; i++)
{
YoGraphicPosition baseControlPointViz = new YoGraphicPosition(namePrefix + "Point" + i, basePoints[i], 0.01, colors[i]);
yoGraphicsList.add(baseControlPointViz);
basePointsList.add(baseControlPointViz);
for (int j = i + 1; j < basePoints.length; j++)
{
YoGraphicLineSegment dynamicGraphicLineSegment = new YoGraphicLineSegment(namePrefix + "SupportLine", basePoints[i], basePoints[j],
1.0, appearance, false);
yoGraphicsList.add(dynamicGraphicLineSegment);
linesList.add(dynamicGraphicLineSegment);
}
}
if (yoGraphicsListRegistry != null)
yoGraphicsListRegistry.registerYoGraphicsList(yoGraphicsList);
yoGraphicsList.hideYoGraphics();
}
代码示例来源:origin: us.ihmc/IHMCGraphicsDescription
return new YoGraphicLineSegment(name, (DoubleYoVariable) vars[0], (DoubleYoVariable) vars[1], (DoubleYoVariable) vars[2],
(DoubleYoVariable) vars[3], (DoubleYoVariable) vars[4], (DoubleYoVariable) vars[5], consts[0], appearance);
代码示例来源:origin: us.ihmc/IHMCSimulationToolkit
rightMidZUpFrameViz = new YoGraphicReferenceFrame(referenceFrames.getSideDependentMidFeetZUpFrame(RobotSide.RIGHT), registry, 0.2);
nominalYawGraphic = new YoGraphicLineSegment("nominalYaw", centroid, nominalYawEndpoint, 0.2, YoAppearance.Yellow(), true);
nominalYawGraphic.setLineRadiusWhenOneMeterLong(0.02);
内容来源于网络,如有侵权,请联系作者删除!