本文整理了Java中us.ihmc.graphicsDescription.yoGraphics.YoGraphicsListRegistry.checkForRepeatNames()
方法的一些代码示例,展示了YoGraphicsListRegistry.checkForRepeatNames()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoGraphicsListRegistry.checkForRepeatNames()
方法的具体详情如下:
包路径:us.ihmc.graphicsDescription.yoGraphics.YoGraphicsListRegistry
类名称:YoGraphicsListRegistry
方法名:checkForRepeatNames
暂无
代码示例来源:origin: us.ihmc/ihmc-graphics-description
public void registerArtifactList(ArtifactList artifactList)
{
if (alreadyAddedToSimulationConstructionSet)
throw new RuntimeException("Graphics have already been added to the SimulationConstructionSet. Cannot register more objects after this.");
if (artifactLists.contains(artifactList))
{
throw new RuntimeException("Already registered artifactList " + artifactList);
}
checkForRepeatNames(artifactList);
for (ArtifactList list : artifactLists)
{
if (list.getLabel().equals(artifactList.getLabel()))
{
// Combine them:
list.addAll(artifactList.getArtifacts());
return;
}
}
artifactLists.add(artifactList);
}
代码示例来源:origin: us.ihmc/IHMCGraphicsDescription
public void registerArtifactList(ArtifactList artifactList)
{
if (alreadyAddedToSimulationConstructionSet)
throw new RuntimeException("Graphics have already been added to the SimulationConstructionSet. Cannot register more objects after this.");
if (artifactLists.contains(artifactList))
{
throw new RuntimeException("Already registered artifactList " + artifactList);
}
checkForRepeatNames(artifactList);
for (ArtifactList list : artifactLists)
{
if (list.getLabel().equals(artifactList.getLabel()))
{
// Combine them:
list.addAll(artifactList.getArtifacts());
return;
}
}
artifactLists.add(artifactList);
}
代码示例来源:origin: us.ihmc/IHMCGraphicsDescription
public void registerYoGraphicsList(YoGraphicsList yoGraphicsList)
{
if (alreadyAddedToSimulationConstructionSet)
throw new RuntimeException("Graphics have already been added to the SimulationConstructionSet. Cannot register more objects after this.");
if (yoGraphicsLists.contains(yoGraphicsList))
{
throw new RuntimeException("Already registered YoGraphicsList " + yoGraphicsList);
}
checkForRepeatNames(yoGraphicsList);
for (YoGraphicsList list : yoGraphicsLists)
{
if (list.getLabel().equals(yoGraphicsList.getLabel()))
{
// Combine them:
ArrayList<YoGraphic> yoGraphics = yoGraphicsList.getYoGraphics();
list.addAll(yoGraphics);
return;
}
}
yoGraphicsLists.add(yoGraphicsList);
}
代码示例来源:origin: us.ihmc/ihmc-graphics-description
public void registerYoGraphicsList(YoGraphicsList yoGraphicsList)
{
if (alreadyAddedToSimulationConstructionSet)
throw new RuntimeException("Graphics have already been added to the SimulationConstructionSet. Cannot register more objects after this.");
if (yoGraphicsLists.contains(yoGraphicsList))
{
throw new RuntimeException("Already registered YoGraphicsList " + yoGraphicsList);
}
checkForRepeatNames(yoGraphicsList);
for (YoGraphicsList list : yoGraphicsLists)
{
if (list.getLabel().equals(yoGraphicsList.getLabel()))
{
// Combine them:
ArrayList<YoGraphic> yoGraphics = yoGraphicsList.getYoGraphics();
list.addAll(yoGraphics);
return;
}
}
yoGraphicsLists.add(yoGraphicsList);
}
内容来源于网络,如有侵权,请联系作者删除!