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

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

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

YoGraphicsList.setVisible介绍

暂无

代码示例

代码示例来源:origin: us.ihmc/IHMCAvatarInterfaces

public void setVisible(boolean visible)
  {
   yoGraphicsList.setVisible(visible);
  }
}

代码示例来源:origin: us.ihmc/ihmc-graphics-description

public void setVisible(boolean visible)
{
 index = 0;
 yoGraphicsList.setVisible(visible);
}

代码示例来源:origin: us.ihmc/IHMCGraphicsDescription

public void setVisible(boolean visible)
{
 index = 0;
 yoGraphicsList.setVisible(visible);
}

代码示例来源:origin: us.ihmc/ihmc-avatar-interfaces

public void setVisible(boolean visible)
  {
   yoGraphicsList.setVisible(visible);
  }
}

代码示例来源:origin: us.ihmc/CommonWalkingControlModules

private void setupVisualizers(YoGraphicsListRegistry yoGraphicsListRegistry, boolean visualize)
{
 YoGraphicsList yoGraphicsList = new YoGraphicsList(getClass().getSimpleName());
 ArtifactList artifactList = new ArtifactList(getClass().getSimpleName());
 YoGraphicPosition previousExitCMP = new YoGraphicPosition("previousExitCMP", previousStanceExitCMP, 0.01, YoAppearance.Red(), GraphicType.SQUARE);
 YoGraphicPosition entryCMP = new YoGraphicPosition("entryCMP", stanceEntryCMP, 0.01, YoAppearance.Red(), GraphicType.SQUARE);
 YoGraphicPosition exitCMP = new YoGraphicPosition("exitCMP", stanceExitCMP, 0.01, YoAppearance.Red(), GraphicType.SQUARE);
 YoGraphicPosition finalICP = new YoGraphicPosition("finalICP", this.finalICP, 0.005, YoAppearance.Black(), GraphicType.SOLID_BALL);
 yoGraphicsList.add(finalICP);
 artifactList.add(previousExitCMP.createArtifact());
 artifactList.add(entryCMP.createArtifact());
 artifactList.add(exitCMP.createArtifact());
 artifactList.add(finalICP.createArtifact());
 artifactList.setVisible(visualize);
 yoGraphicsList.setVisible(visualize);
 yoGraphicsListRegistry.registerYoGraphicsList(yoGraphicsList);
 yoGraphicsListRegistry.registerArtifactList(artifactList);
}

代码示例来源:origin: us.ihmc/CommonWalkingControlModules

private void setupVisualizers(YoGraphicsListRegistry yoGraphicsListRegistry)
{
 YoGraphicsList yoGraphicsList = new YoGraphicsList(getClass().getSimpleName());
 ArtifactList artifactList = new ArtifactList(getClass().getSimpleName());
 referenceCMPsCalculator.createVisualizerForConstantCMPs(yoGraphicsList, artifactList);
 for (int i = 0; i < numberFootstepsToConsider.getIntegerValue() - 1; i++)
 {
   YoGraphicPosition icpEarlyCornerPointsViz = new YoGraphicPosition("EntryCornerPoints" + i,
      entryCornerPoints.get(i).buildUpdatedYoFramePointForVisualizationOnly(), ICP_CORNER_POINT_SIZE, YoAppearance.Blue(), GraphicType.SOLID_BALL);
   yoGraphicsList.add(icpEarlyCornerPointsViz);
   artifactList.add(icpEarlyCornerPointsViz.createArtifact());
   YoGraphicPosition lateCornerPointsViz = new YoGraphicPosition("ExitCornerPoints" + i,
      exitCornerPoints.get(i).buildUpdatedYoFramePointForVisualizationOnly(), ICP_CORNER_POINT_SIZE, YoAppearance.Blue(), GraphicType.BALL);
   yoGraphicsList.add(lateCornerPointsViz);
   artifactList.add(lateCornerPointsViz.createArtifact());
 }
 YoGraphicPosition singleSupportInitialICPViz = new YoGraphicPosition("singleSupportInitialICP",
    singleSupportInitialICP.buildUpdatedYoFramePointForVisualizationOnly(), 0.004, YoAppearance.Chocolate(), GraphicType.SOLID_BALL);
 yoGraphicsList.add(singleSupportInitialICPViz);
 artifactList.add(singleSupportInitialICPViz.createArtifact());
 YoGraphicPosition singleSupportFinalICPViz = new YoGraphicPosition("singleSupportFinalICP",
    singleSupportFinalICP.buildUpdatedYoFramePointForVisualizationOnly(), 0.004, YoAppearance.Chocolate(), GraphicType.BALL);
 yoGraphicsList.add(singleSupportFinalICPViz);
 artifactList.add(singleSupportFinalICPViz.createArtifact());
 icpSingleSupportTrajectoryGenerator.createVisualizers(yoGraphicsList, artifactList);
 artifactList.setVisible(VISUALIZE);
 yoGraphicsList.setVisible(VISUALIZE);
 yoGraphicsListRegistry.registerYoGraphicsList(yoGraphicsList);
 yoGraphicsListRegistry.registerArtifactList(artifactList);
}

代码示例来源:origin: us.ihmc/CommonWalkingControlModules

private void setupVisualizers(YoGraphicsListRegistry yoGraphicsListRegistry, boolean visualize)
{
 YoGraphicsList yoGraphicsList = new YoGraphicsList(getClass().getSimpleName());
 ArtifactList artifactList = new ArtifactList(getClass().getSimpleName());
 YoGraphicPosition actualEndOfStateICP = new YoGraphicPosition("actualEndOfStateICP", this.actualEndOfStateICP, 0.005, YoAppearance.Aquamarine(),
    GraphicType.SOLID_BALL);
 YoGraphicPosition nominalReferenceICP = new YoGraphicPosition("nominalReferenceICP", this.nominalReferenceICP, 0.01, YoAppearance.LightYellow(),
    GraphicType.BALL);
 YoGraphicPosition nominalEndOfStateICP = new YoGraphicPosition("nominalEndOfStateICP", this.nominalEndOfStateICP, 0.01, YoAppearance.Green(),
    GraphicType.SOLID_BALL);
 yoGraphicsList.add(actualEndOfStateICP);
 yoGraphicsList.add(nominalReferenceICP);
 yoGraphicsList.add(nominalEndOfStateICP);
 artifactList.add(actualEndOfStateICP.createArtifact());
 artifactList.add(nominalReferenceICP.createArtifact());
 artifactList.add(nominalEndOfStateICP.createArtifact());
 yoGraphicsList.setVisible(visualize);
 artifactList.setVisible(visualize);
 YoGraphicPosition referenceICP = new YoGraphicPosition("controllerReferenceICP", controllerReferenceICP, 0.005, YoAppearance.Yellow(), GraphicType.BALL_WITH_CROSS);
 YoGraphicPosition referenceCMP = new YoGraphicPosition("controllerReferenceCMP", controllerReferenceCMP, 0.005, YoAppearance.Beige(), GraphicType.BALL_WITH_CROSS);
 String name = "ICPOptimization";
 yoGraphicsListRegistry.registerArtifact(name, referenceICP.createArtifact());
 yoGraphicsListRegistry.registerArtifact(name, referenceCMP.createArtifact());
 yoGraphicsListRegistry.registerYoGraphic(name, referenceICP);
 yoGraphicsListRegistry.registerYoGraphic(name, referenceCMP);
 yoGraphicsListRegistry.registerYoGraphicsList(yoGraphicsList);
 yoGraphicsListRegistry.registerArtifactList(artifactList);
}

代码示例来源:origin: us.ihmc/simulation-construction-set-test

list.setVisible(true);

相关文章