Tabnine Logo
MutableColor.getX
Code IndexAdd Tabnine to your IDE (free)

How to use
getX
method
in
us.ihmc.graphicsDescription.color.MutableColor

Best Java code snippets using us.ihmc.graphicsDescription.color.MutableColor.getX (Showing top 8 results out of 315)

origin: us.ihmc/ihmc-graphics-description

public float getRed()
{
 return color.getX();
}
origin: us.ihmc/ihmc-graphics-description

public YoAppearanceRGBColor(MutableColor color, double transparency)
{
 this.color = new MutableColor(color);
 awtColor = new Color(this.color.getX(), this.color.getY(), this.color.getZ(), (float) (1.0 - transparency));
 setTransparency(transparency);
}
origin: us.ihmc/ihmc-jmonkey-engine-toolkit

public static ColorRGBA jMEColorRGBAFromVecMathColor3f(MutableColor originalColor, double alpha)
{
 float r = originalColor.getX();
 float g = originalColor.getY();
 float b = originalColor.getZ();
 return new ColorRGBA(r, g, b, (float) alpha);
}
origin: us.ihmc/ihmc-graphics-description

public static AppearanceDefinition Color(MutableColor color)
{
 return RGBColor(color.getX(), color.getY(), color.getZ());
}
origin: us.ihmc/ihmc-javafx-toolkit

private static Material convertMaterial(AppearanceDefinition appearance)
{
 float r = appearance.getColor().getX();
 float g = appearance.getColor().getY();
 float b = appearance.getColor().getZ();
 double transparency = appearance.getTransparency();
 if (appearance instanceof YoAppearanceRGBColor)
 {
   transparency = 1.0 - transparency;
 }
 Color color = new Color(r, g, b, transparency);
 PhongMaterial res = new PhongMaterial(color);
 res.setSpecularColor(Color.WHITE);
 return res;
}
origin: us.ihmc/ihmc-robot-data-logger

appearanceMessage.setR(obj.getAppearance().getColor().getX());
appearanceMessage.setG(obj.getAppearance().getColor().getY());
appearanceMessage.setB(obj.getAppearance().getColor().getZ());
origin: us.ihmc/ihmc-ros-tools

public void publish(Point3D[] points, MutableColor color, String frameId)
{
 PointCloud2 message = getMessage();
 message.getHeader().setFrameId(frameId);
 message.getHeader().setStamp(Time.fromMillis(System.currentTimeMillis()));
 message.setHeight(1);
 message.setWidth(points.length);
 message.setPointStep(pointType.getPointStep());
 int dataLength = pointType.getPointStep() * points.length;
 message.setRowStep(dataLength);
 message.setIsBigendian(false);
 message.setIsDense(true);
 message.setFields(pointType.getPointField());
 ChannelBuffer buffer = new LittleEndianHeapChannelBuffer(dataLength);
 for(int i=0;i<points.length;i++)
 {
   buffer.writeFloat((float)points[i].getX());
   buffer.writeFloat((float)points[i].getY());
   buffer.writeFloat((float)points[i].getZ());
   buffer.writeByte((int)color.getZ());
   buffer.writeByte((int)color.getY());
   buffer.writeByte((int)color.getX());
   buffer.writeByte(0); //dummy;
 }
 message.setData(buffer);
 publish(message);
}
origin: us.ihmc/ihmc-ros-tools

public void publish(Point3D[] points, MutableColor[] colors, String frameId)
{
 PointCloud2 message = getMessage();
 message.getHeader().setFrameId(frameId);
 message.getHeader().setStamp(Time.fromMillis(System.currentTimeMillis()));
 message.setHeight(1);
 message.setWidth(points.length);
 message.setPointStep(pointType.getPointStep());
 int dataLength = pointType.getPointStep() * points.length;
 message.setRowStep(dataLength);
 message.setIsBigendian(false);
 message.setIsDense(true);
 message.setFields(pointType.getPointField());
 
 ChannelBuffer buffer = new LittleEndianHeapChannelBuffer(dataLength);
 for(int i=0;i<points.length;i++)
 {
   buffer.writeFloat((float)points[i].getX());
   buffer.writeFloat((float)points[i].getY());
   buffer.writeFloat((float)points[i].getZ());
   buffer.writeByte((int)colors[i].getZ());
   buffer.writeByte((int)colors[i].getY());
   buffer.writeByte((int)colors[i].getX());
   buffer.writeByte(0); //dummy;
 }
 message.setData(buffer);
 
 publish(message);
 
}
us.ihmc.graphicsDescription.colorMutableColorgetX

Popular methods of MutableColor

  • <init>
  • getY
  • getZ
  • get
  • set
  • setX
  • setY
  • setZ

Popular in Java

  • Updating database using SQL prepared statement
  • onCreateOptionsMenu (Activity)
  • setContentView (Activity)
  • scheduleAtFixedRate (Timer)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Top Sublime Text plugins
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