us.ihmc.graphicsDescription.yoGraphics.YoGraphicsListRegistry.checkForRepeatNames()方法的使用及代码示例

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

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

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);
}

相关文章