Tabnine Logo
CylinderGraphics3DInstruction
Code IndexAdd Tabnine to your IDE (free)

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

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

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/ihmc-jmonkey-engine-toolkit

   .Cylinder(cylinderInstruction.getRadius(), cylinderInstruction.getHeight(), cylinderInstruction.getResolution());
Graphics3DAddMeshDataInstruction meshDataInstruction = Graphics3DObject.createMeshDataInstruction(meshData, cylinderInstruction.getAppearance());
doAddMeshDataInstruction(meshDataInstruction);
origin: us.ihmc/simulation-construction-set-tools

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

   .Cylinder(cylinderInstruction.getRadius(), cylinderInstruction.getHeight(), cylinderInstruction.getResolution());
Graphics3DAddMeshDataInstruction meshDataInstruction = Graphics3DObject.createMeshDataInstruction(meshData, cylinderInstruction.getAppearance());
doAddMeshDataInstruction(meshDataInstruction);
origin: us.ihmc/simulation-construction-set-tools

@Override
public void select()
{
 unSelect(false);
 
 cylinderGraphic.setAppearance(new YoAppearanceRGBColor(selectedColor, selectTransparency));
 
 notifySelectedListenersThisWasSelected(this);
}
origin: us.ihmc/ihmc-javafx-toolkit

MeshDataHolder meshData = MeshDataGenerator.Cylinder(cylinderInstruction.getRadius(), cylinderInstruction.getHeight(),
                          cylinderInstruction.getResolution());
Graphics3DAddMeshDataInstruction meshDataInstruction = Graphics3DObject.createMeshDataInstruction(meshData, cylinderInstruction.getAppearance());
doAddMeshDataInstruction(meshDataInstruction);
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;
}
us.ihmc.graphicsDescription.instructionsCylinderGraphics3DInstruction

Most used methods

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

Popular in Java

  • Reading from database using SQL prepared statement
  • getApplicationContext (Context)
  • setScale (BigDecimal)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Github Copilot alternatives
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