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

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

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

origin: us.ihmc/ihmc-graphics-description

public float getBlue()
{
 return color.getZ();
}
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());
appearanceMessage.setTransparency(obj.getAppearance().getTransparency());
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.colorMutableColorgetZ

Popular methods of MutableColor

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

Popular in Java

  • Updating database using SQL prepared statement
  • compareTo (BigDecimal)
  • startActivity (Activity)
  • putExtra (Intent)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • JCheckBox (javax.swing)
  • Top Vim 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