Exemplo n.º 1
0
 internal StreamDescSet(StreamDesc[] descs)
 {
     color     = descs[0];
     depth     = descs[1];
     ir        = descs[2];
     left      = descs[3];
     right     = descs[4];
     reserved1 = descs[5];
     reserved2 = descs[6];
     reserved3 = descs[7];
 }
Exemplo n.º 2
0
 public StreamDescSet()
 {
     color     = new StreamDesc();
     depth     = new StreamDesc();
     ir        = new StreamDesc();
     left      = new StreamDesc();
     right     = new StreamDesc();
     reserved1 = new StreamDesc();
     reserved2 = new StreamDesc();
     reserved3 = new StreamDesc();
 }
Exemplo n.º 3
0
 internal StreamDesc[] ToStreamDescArray()
 {
     StreamDesc[] descs = new StreamDesc[PXCMCapture.STREAM_LIMIT];
     descs[0] = color;
     descs[1] = depth;
     descs[2] = ir;
     descs[3] = left;
     descs[4] = right;
     descs[5] = reserved1;
     descs[6] = reserved2;
     descs[7] = reserved3;
     return(descs);
 }
Exemplo n.º 4
0
 /**
  *  @brief Access the stream descriptor by the stream type.
  *  @param[in] type		The stream type.
  *  @return The stream descriptor instance.
  */
 public StreamDesc this[PXCMCapture.StreamType type]
 {
     get
     {
         if (type == PXCMCapture.StreamType.STREAM_TYPE_COLOR)
         {
             return(color);
         }
         if (type == PXCMCapture.StreamType.STREAM_TYPE_DEPTH)
         {
             return(depth);
         }
         if (type == PXCMCapture.StreamType.STREAM_TYPE_IR)
         {
             return(ir);
         }
         if (type == PXCMCapture.StreamType.STREAM_TYPE_LEFT)
         {
             return(left);
         }
         if (type == PXCMCapture.StreamType.STREAM_TYPE_RIGHT)
         {
             return(right);
         }
         if (type == PXCMCapture.StreamTypeFromIndex(5))
         {
             return(reserved1);
         }
         if (type == PXCMCapture.StreamTypeFromIndex(6))
         {
             return(reserved2);
         }
         return(reserved3);
     }
     set
     {
         if (type == PXCMCapture.StreamType.STREAM_TYPE_COLOR)
         {
             color = value;
         }
         if (type == PXCMCapture.StreamType.STREAM_TYPE_DEPTH)
         {
             depth = value;
         }
         if (type == PXCMCapture.StreamType.STREAM_TYPE_IR)
         {
             ir = value;
         }
         if (type == PXCMCapture.StreamType.STREAM_TYPE_LEFT)
         {
             left = value;
         }
         if (type == PXCMCapture.StreamType.STREAM_TYPE_RIGHT)
         {
             right = value;
         }
         if (type == PXCMCapture.StreamTypeFromIndex(5))
         {
             reserved1 = value;
         }
         if (type == PXCMCapture.StreamTypeFromIndex(6))
         {
             reserved2 = value;
         }
         if (type == PXCMCapture.StreamTypeFromIndex(7))
         {
             reserved3 = value;
         }
     }
 }
Exemplo n.º 5
0
 /**
     @brief Access the stream descriptor by the stream type.
     @param[in] type		The stream type.
     @return The stream descriptor instance.
 */
 public StreamDesc this[PXCMCapture.StreamType type]
 {
     get
     {
         if (type == PXCMCapture.StreamType.STREAM_TYPE_COLOR) return color;
         if (type == PXCMCapture.StreamType.STREAM_TYPE_DEPTH) return depth;
         if (type == PXCMCapture.StreamType.STREAM_TYPE_IR) return ir;
         if (type == PXCMCapture.StreamType.STREAM_TYPE_LEFT) return left;
         if (type == PXCMCapture.StreamType.STREAM_TYPE_RIGHT) return right;
         if (type == PXCMCapture.StreamTypeFromIndex(5)) return reserved1;
         if (type == PXCMCapture.StreamTypeFromIndex(6)) return reserved2;
         return reserved3;
     }
     set
     {
         if (type == PXCMCapture.StreamType.STREAM_TYPE_COLOR) color = value;
         if (type == PXCMCapture.StreamType.STREAM_TYPE_DEPTH) depth = value;
         if (type == PXCMCapture.StreamType.STREAM_TYPE_IR) ir = value;
         if (type == PXCMCapture.StreamType.STREAM_TYPE_LEFT) left = value;
         if (type == PXCMCapture.StreamType.STREAM_TYPE_RIGHT) right = value;
         if (type == PXCMCapture.StreamTypeFromIndex(5)) reserved1 = value;
         if (type == PXCMCapture.StreamTypeFromIndex(6)) reserved2 = value;
         if (type == PXCMCapture.StreamTypeFromIndex(7)) reserved3 = value;
     }
 }
Exemplo n.º 6
0
 internal StreamDesc[] ToStreamDescArray()
 {
     StreamDesc[] descs = new StreamDesc[PXCMCapture.STREAM_LIMIT];
     descs[0] = color;
     descs[1] = depth;
     descs[2] = ir;
     descs[3] = left;
     descs[4] = right;
     descs[5] = reserved1;
     descs[6] = reserved2;
     descs[7] = reserved3;
     return descs;
 }
Exemplo n.º 7
0
 internal StreamDescSet(StreamDesc[] descs)
 {
     color = descs[0];
     depth = descs[1];
     ir = descs[2];
     left = descs[3];
     right = descs[4];
     reserved1 = descs[5];
     reserved2 = descs[6];
     reserved3 = descs[7];
 }
Exemplo n.º 8
0
 public StreamDescSet()
 {
     color = new StreamDesc();
     depth = new StreamDesc();
     ir = new StreamDesc();
     left = new StreamDesc();
     right = new StreamDesc();
     reserved1 = new StreamDesc();
     reserved2 = new StreamDesc();
     reserved3 = new StreamDesc();
 }