Пример #1
0
        public static HStructuredLightModel Deserialize(Stream stream)
        {
            HStructuredLightModel hstructuredLightModel = new HStructuredLightModel();

            hstructuredLightModel.DeserializeStructuredLightModel(HSerializedItem.Deserialize(stream));
            return(hstructuredLightModel);
        }
Пример #2
0
        public HStructuredLightModel Clone()
        {
            HSerializedItem       serializedItemHandle  = this.SerializeStructuredLightModel();
            HStructuredLightModel hstructuredLightModel = new HStructuredLightModel();

            hstructuredLightModel.DeserializeStructuredLightModel(serializedItemHandle);
            serializedItemHandle.Dispose();
            return(hstructuredLightModel);
        }
Пример #3
0
        internal static int LoadNew(
            IntPtr proc,
            int parIndex,
            int err,
            out HStructuredLightModel[] obj)
        {
            HTuple tuple;

            err = HTuple.LoadNew(proc, parIndex, err, out tuple);
            obj = new HStructuredLightModel[tuple.Length];
            for (int index = 0; index < tuple.Length; ++index)
            {
                obj[index] = new HStructuredLightModel(tuple[index].IP);
            }
            return(err);
        }
Пример #4
0
 internal static int LoadNew(IntPtr proc, int parIndex, int err, out HStructuredLightModel obj)
 {
     obj = new HStructuredLightModel(HTool.UNDEF);
     return(obj.Load(proc, parIndex, err));
 }