Exemplo n.º 1
0
 /// <summary>
 /// Copy constructor
 /// </summary>
 /// <param name="cpy">The parameter to copy</param>
 public FieldValueMetaData(FieldValueMetaData cpy)
 {
     Name             = (String)cpy.Name.Clone();
     Format           = cpy.Format;
     NbTuples         = cpy.NbTuples;
     NbValuesPerTuple = cpy.NbValuesPerTuple;
 }
Exemplo n.º 2
0
        /// <summary>
        /// Gets the size of the format.
        /// </summary>
        /// <returns>The format size.</returns>
        /// <param name="format">Format.</param>
        public static Int32 GetFormatSize(VTKValueFormat format)
        {
            switch (format)
            {
            case VTKValueFormat.VTK_INT:
                return(4);

            case VTKValueFormat.VTK_DOUBLE:
                return(8);

            case VTKValueFormat.VTK_FLOAT:
                return(4);

            case VTKValueFormat.VTK_UNSIGNED_CHAR:
            case VTKValueFormat.VTK_CHAR:
                return(1);

            default:
                return(0);
            }
        }
Exemplo n.º 3
0
 /// <summary>
 /// Fills the unstructured grid cell buffer.
 /// </summary>
 /// <param name="nbCells">Nb cells.</param>
 /// <param name="ptValues">Point values.</param>
 /// <param name="cellValues">Cell values.</param>
 /// <param name="cellTypes">Cell types.</param>
 /// <param name="buffer">Buffer.</param>
 /// <param name="destFormat">Destination format.</param>
 public unsafe void FillUnstructuredGridCellBuffer(UInt32 nbCells, VTKValue ptValues, VTKValue cellValues, VTKValue cellTypes, IntPtr buffer, VTKValueFormat destFormat = VTKValueFormat.VTK_NO_VALUE_FORMAT)
 {
     unsafe
     {
         VTKInterop.VTKParser_fillUnstructuredGridCellBuffer(m_parser, nbCells, ptValues.Value, (Int32 *)cellValues.Value, (Int32 *)cellTypes.Value, buffer, destFormat);
     }
 }
Exemplo n.º 4
0
 public unsafe extern static void VTKParser_fillUnstructuredGridCellBuffer(IntPtr parser, UInt32 nbCells, IntPtr ptValues, Int32 *cellValues, Int32 *cellTypes, IntPtr buffer, VTKValueFormat destFormat);