本文整理了Java中us.ihmc.graphics3DAdapter.graphics.appearances.YoAppearance.White()
方法的一些代码示例,展示了YoAppearance.White()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoAppearance.White()
方法的具体详情如下:
包路径:us.ihmc.graphics3DAdapter.graphics.appearances.YoAppearance
类名称:YoAppearance
方法名:White
暂无
代码示例来源:origin: us.ihmc/DarpaRoboticsChallenge
private static void setUpTruss(CombinedTerrainObject3D combinedTerrainObject, double[] newPoint, double trussLength, double trussSide, double courseAngleDeg,
AppearanceDefinition color)
{
AppearanceDefinition overrideColor = YoAppearance.White(); // color;
overrideColor.setTransparency(0.95);
TrussWithSimpleCollisions truss = new TrussWithSimpleCollisions(newPoint, trussLength, trussSide, courseAngleDeg, overrideColor);
combinedTerrainObject.addTerrainObject(truss);
}
代码示例来源:origin: us.ihmc/IHMCGraphics3DDescription
public void addCoordinateSystem(double length, AppearanceDefinition arrowAppearance)
{
addCoordinateSystem(length, YoAppearance.Red(), YoAppearance.White(), YoAppearance.Blue(), arrowAppearance);
}
代码示例来源:origin: us.ihmc/DarpaRoboticsChallenge
upperShoulderGraphics.addSphere(0.05, YoAppearance.White());
return upperShoulderGraphics;
case LOWER_SHOULDER:
Graphics3DObject lowerShoulderGraphics = new Graphics3DObject();
lowerShoulderGraphics.addSphere(0.05, YoAppearance.White());
return lowerShoulderGraphics;
case UPPER_ARM:
case ELBOW:
Graphics3DObject elbowGraphics = new Graphics3DObject();
elbowGraphics.addSphere(0.04, YoAppearance.White());
return elbowGraphics;
case LOWER_ARM:
case WRIST:
Graphics3DObject wristGraphics = new Graphics3DObject();
wristGraphics.addSphere(0.03, YoAppearance.White());
return wristGraphics;
case HAND:
代码示例来源:origin: us.ihmc/IHMCGraphics3DDescription
/**
* Creates a graphical representation of the x, y, and z axis of the current coordinate
* system centered at its origin. In the image below red, white and blue represent the
* x, y and z axies respectively.<br /><br />
* <img src="doc-files/LinkGraphics.addCoordinateSystem.jpg">
*
* @param length the length in meters of each axis arrow.
*/
public void addCoordinateSystem(double length, AppearanceDefinition xAxisAppearance, AppearanceDefinition yAxisAppearance,
AppearanceDefinition zAxisAppearance, AppearanceDefinition arrowAppearance)
{
rotate(Math.PI / 2.0, Axis.Y);
addArrow(length, YoAppearance.Red(), arrowAppearance);
rotate(-Math.PI / 2.0, Axis.Y);
rotate(-Math.PI / 2.0, Axis.X);
addArrow(length, YoAppearance.White(), arrowAppearance);
rotate(Math.PI / 2.0, Axis.X);
addArrow(length, YoAppearance.Blue(), arrowAppearance);
}
内容来源于网络,如有侵权,请联系作者删除!