congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
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

  • Reading from database using SQL prepared statement
  • getSharedPreferences (Context)
  • getApplicationContext (Context)
  • getSystemService (Context)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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