Points.java
Go to the documentation of this file.
1 package com.intel.realsense.librealsense;
2 
3 public class Points extends Frame {
4  private float[] mData;
5  private float[] mTextureCoordinates;
6 
7  protected Points(long handle) {
8  super(handle);
9  mOwner = false;
10  }
11 
12  public float[] getVertices(){
13  if(mData == null){
14  mData = new float[getCount() * 3];
15  getData(mData);
16  }
17  return mData;
18  }
19 
20  public float[] getTextureCoordinates(){
21  if(mTextureCoordinates == null){
22  mTextureCoordinates = new float[getCount() * 2];
23  getTextureCoordinates(mTextureCoordinates);
24  }
25  return mTextureCoordinates;
26  }
27 
28  public void getTextureCoordinates(float[] data) {
29  nGetTextureCoordinates(mHandle, data);
30  }
31 
32  public void getData(float[] data) {
33  nGetData(mHandle, data);
34  }
35 
36  public int getCount(){
37  return nGetCount(mHandle);
38  }
39 
40  public void exportToPly(String filePath, VideoFrame texture) {
41  nExportToPly(mHandle, filePath, texture.getHandle());
42  }
43 
44  private static native int nGetCount(long handle);
45  private static native void nGetData(long handle, float[] data);
46  private static native void nGetTextureCoordinates(long handle, float[] data);
47  private static native void nExportToPly(long handle, String filePath, long textureHandle);
48 }
static native void nGetTextureCoordinates(long handle, float[] data)
uvc_xu_option< int > super
Definition: l500-options.h:32
GLuint64 GLenum void * handle
Definition: glext.h:7785
The texture class.
Definition: example.hpp:402
::std_msgs::String_< std::allocator< void > > String
Definition: String.h:47
static native void nExportToPly(long handle, String filePath, long textureHandle)
void getTextureCoordinates(float[] data)
Definition: Points.java:28
void exportToPly(String filePath, VideoFrame texture)
Definition: Points.java:40
static native int nGetCount(long handle)
Definition: parser.hpp:150
static native void nGetData(long handle, float[] data)


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:47:39