congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
CylinderGraphics3DInstruction.setAppearance
Code IndexAdd Tabnine to your IDE (free)

How to use
setAppearance
method
in
us.ihmc.graphicsDescription.instructions.CylinderGraphics3DInstruction

Best Java code snippets using us.ihmc.graphicsDescription.instructions.CylinderGraphics3DInstruction.setAppearance (Showing top 4 results out of 315)

origin: us.ihmc/simulation-construction-set-tools

@Override
public void unSelect(boolean reset)
{
 cylinderGraphic.setAppearance(new YoAppearanceRGBColor(defaultColor, unselectTransparency));
 
}
origin: us.ihmc/ihmc-graphics-description

/**
* Adds a soild cylinder with the given radius, height and appearance centered on the origin of the current coordinate system.
* </ br></ br>
* The image below demonstrates a maroon cylinder with radius of 0.3 and a height of 0.1 as described by the following code:<br /><br />
* {@code linkGraphics.addCoordinateSystem(0.5);}<br />
* {@code linkGraphics.addCylinder(0.1, 0.3, YoAppearance.Maroon());}<br /><br />
*
* As is show by the graphical representation the cylinder is centered on the coordinate system.
* Again, x, y and z are red, white and blue.
* <br /><br /><img src="doc-files/LinkGraphics.addCylinder2.jpg">
*
* @param height cylinder height in meters.
* @param radius cylinder radius in meters.
* @param cylApp Appearance to be used with the new cylinder.  See {@link YoAppearance YoAppearance} for implementations.
*/
public CylinderGraphics3DInstruction addCylinder(double height, double radius, AppearanceDefinition cylApp)
{
 CylinderGraphics3DInstruction cylinderInstruction = new CylinderGraphics3DInstruction(radius, height, RESOLUTION);
 cylinderInstruction.setAppearance(cylApp);
 graphics3DInstructions.add(cylinderInstruction);
 return cylinderInstruction;
}
origin: us.ihmc/IHMCGraphicsDescription

/**
* Adds a soild cylinder with the given radius, height and appearance centered on the origin of the current coordinate system.
* </ br></ br>
* The image below demonstrates a maroon cylinder with radius of 0.3 and a height of 0.1 as described by the following code:<br /><br />
* {@code linkGraphics.addCoordinateSystem(0.5);}<br />
* {@code linkGraphics.addCylinder(0.1, 0.3, YoAppearance.Maroon());}<br /><br />
*
* As is show by the graphical representation the cylinder is centered on the coordinate system.
* Again, x, y and z are red, white and blue.
* <br /><br /><img src="doc-files/LinkGraphics.addCylinder2.jpg">
*
* @param height cylinder height in meters.
* @param radius cylinder radius in meters.
* @param cylApp Appearance to be used with the new cylinder.  See {@link YoAppearance YoAppearance} for implementations.
*/
public CylinderGraphics3DInstruction addCylinder(double height, double radius, AppearanceDefinition cylApp)
{
 CylinderGraphics3DInstruction cylinderInstruction = new CylinderGraphics3DInstruction(radius, height, RESOLUTION);
 cylinderInstruction.setAppearance(cylApp);
 graphics3DInstructions.add(cylinderInstruction);
 return cylinderInstruction;
}
origin: us.ihmc/simulation-construction-set-tools

@Override
public void select()
{
 unSelect(false);
 
 cylinderGraphic.setAppearance(new YoAppearanceRGBColor(selectedColor, selectTransparency));
 
 notifySelectedListenersThisWasSelected(this);
}
us.ihmc.graphicsDescription.instructionsCylinderGraphics3DInstructionsetAppearance

Popular methods of CylinderGraphics3DInstruction

  • getAppearance
  • getHeight
  • getRadius
  • getResolution
  • <init>

Popular in Java

  • Finding current android device location
  • onCreateOptionsMenu (Activity)
  • getApplicationContext (Context)
  • getExternalFilesDir (Context)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now