Codota Logo
TextureColorPalette1D.<init>
Code IndexAdd Codota to your IDE (free)

How to use
us.ihmc.javaFXToolkit.shapes.TextureColorPalette1D
constructor

Best Java code snippets using us.ihmc.javaFXToolkit.shapes.TextureColorPalette1D.<init> (Showing top 7 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
origin: us.ihmc/ihmc-robot-data-visualizer

public LidarScanLogViewer()
{
 JavaFXCoordinateSystem lidarFrame = new JavaFXCoordinateSystem(0.1);
 lidarFrame.getTransforms().add(lidarPose);
 root.getChildren().addAll(lidarFrame, scans);
 TextureColorPalette1D scanColorPalette = new TextureColorPalette1D();
 scanColorPalette.setHueBased(1.0, 1.0);
 scanMeshBuilder = new JavaFXMultiColorMeshBuilder(scanColorPalette);
}
origin: us.ihmc/IHMCRobotDataVisualizer

public LidarScanLogViewer()
{
 JavaFXCoordinateSystem lidarFrame = new JavaFXCoordinateSystem(0.1);
 lidarFrame.getTransforms().add(lidarPose);
 root.getChildren().addAll(lidarFrame, scans);
 TextureColorPalette1D scanColorPalette = new TextureColorPalette1D();
 scanColorPalette.setHueBased(1.0, 1.0);
 scanMeshBuilder = new JavaFXMultiColorMeshBuilder(scanColorPalette);
}
origin: us.ihmc/ihmc-footstep-planning-visualizers

public ArrowGraphic(double radius, double length, Color color)
{
  TextureColorPalette1D colorPalette = new TextureColorPalette1D();
  colorPalette.setHueBased(1.0, 1.0);
  JavaFXMultiColorMeshBuilder meshBuilder = new JavaFXMultiColorMeshBuilder(colorPalette);
  double coneHeight = 0.10 * length;
  double coneRadius = 1.5 * radius;
  meshBuilder.addCylinder(length, radius, new Point3D(), new AxisAngle(0.0, 1.0, 0.0, Math.PI / 2.0), color);
  meshBuilder.addCone(coneHeight, coneRadius, new Point3D(length, 0.0, 0.0), new AxisAngle(0.0, 1.0, 0.0, Math.PI / 2.0), color);
  this.arrow = new MeshView(meshBuilder.generateMesh());
  arrow.setMaterial(meshBuilder.generateMaterial());
  getChildren().add(arrow);
}
origin: us.ihmc/ihmc-javafx-toolkit

  public JavaFXCoordinateSystem(double length)
  {
   TextureColorPalette1D colorPalette = new TextureColorPalette1D();
   colorPalette.setHueBased(1.0, 1.0);
   JavaFXMultiColorMeshBuilder meshBuilder = new JavaFXMultiColorMeshBuilder(colorPalette);
   double radius = 0.02 * length;
   double coneHeight = 0.10 * length;
   double coneRadius = 0.05 * length;
   meshBuilder.addCylinder(length, radius, new Point3D(), new AxisAngle(0.0, 1.0, 0.0, Math.PI / 2.0), Color.RED);
   meshBuilder.addCone(coneHeight, coneRadius, new Point3D(length, 0.0, 0.0), new AxisAngle(0.0, 1.0, 0.0, Math.PI / 2.0), Color.RED);
   meshBuilder.addCylinder(length, radius, new Point3D(), new AxisAngle(1.0, 0.0, 0.0, -Math.PI / 2.0), Color.GREEN);
   meshBuilder.addCone(coneHeight, coneRadius, new Point3D(0.0, length, 0.0), new AxisAngle(1.0, 0.0, 0.0, -Math.PI / 2.0), Color.GREEN);
   meshBuilder.addCylinder(length, radius, new Point3D(), Color.BLUE);
   meshBuilder.addCone(coneHeight, coneRadius, new Point3D(0.0, 0.0, length), Color.BLUE);

   MeshView coordinateSystem = new MeshView(meshBuilder.generateMesh());
   coordinateSystem.setMaterial(meshBuilder.generateMaterial());
   getChildren().addAll(coordinateSystem);
  }
}
origin: us.ihmc/IHMCJavaFXToolkit

  public JavaFXCoordinateSystem(double length)
  {
   TextureColorPalette1D colorPalette = new TextureColorPalette1D();
   colorPalette.setHueBased(1.0, 1.0);
   JavaFXMultiColorMeshBuilder meshBuilder = new JavaFXMultiColorMeshBuilder(colorPalette);
   double radius = 0.02 * length;
   double coneHeight = 0.10 * length;
   double coneRadius = 0.05 * length;
   meshBuilder.addCylinder(length, radius, new Point3d(), new AxisAngle4d(0.0, 1.0, 0.0, Math.PI / 2.0), Color.RED);
   meshBuilder.addCone(coneHeight, coneRadius, new Point3d(length, 0.0, 0.0), new AxisAngle4d(0.0, 1.0, 0.0, Math.PI / 2.0), Color.RED);
   meshBuilder.addCylinder(length, radius, new Point3d(), new AxisAngle4d(1.0, 0.0, 0.0, -Math.PI / 2.0), Color.GREEN);
   meshBuilder.addCone(coneHeight, coneRadius, new Point3d(0.0, length, 0.0), new AxisAngle4d(1.0, 0.0, 0.0, -Math.PI / 2.0), Color.GREEN);
   meshBuilder.addCylinder(length, radius, new Point3d(), Color.BLUE);
   meshBuilder.addCone(coneHeight, coneRadius, new Point3d(0.0, 0.0, length), Color.BLUE);

   MeshView coordinateSystem = new MeshView(meshBuilder.generateMesh());
   coordinateSystem.setMaterial(meshBuilder.generateMaterial());
   getChildren().addAll(coordinateSystem);
  }
}
origin: us.ihmc/robot-environment-awareness-visualizers

view3dFactory.addWorldCoordinateSystem(0.3);
TextureColorPalette1D palette = new TextureColorPalette1D();
palette.setHueBased(0.9, 0.8);
JavaFXMultiColorMeshBuilder occupiedMeshBuilder = new JavaFXMultiColorMeshBuilder(palette);
origin: us.ihmc/robot-environment-awareness-visualizers

view3dFactory.setRootMouseTransparent(true);
TextureColorPalette1D palette = new TextureColorPalette1D();
palette.setHueBased(0.9, 0.8);
JavaFXMultiColorMeshBuilder occupiedMeshBuilder = new JavaFXMultiColorMeshBuilder(palette);
us.ihmc.javaFXToolkit.shapesTextureColorPalette1D<init>

Javadoc

Creates a color palette with the hue component set as the variable with a resolution of #DEFAULT_RESOLUTION and the saturation and brightness set to 1.0.

Popular methods of TextureColorPalette1D

  • setHueBased
    Changes this color palette to have the hue component be variable with a given resolution and given t
  • getColorAtIndex
  • setBrightnessBased
    Changes this color palette to have the brightness component be variable with a given resolution and
  • setSaturationBased
    Changes this color palette to have the saturation component be variable with a given resolution and
  • updateColorPalette

Popular in Java

  • Making http requests using okhttp
  • getApplicationContext (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • getExternalFilesDir (Context)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • Timer (java.util)
    A facility for threads to schedule tasks for future execution in a background thread. Tasks may be s
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now