/[gr2lib]/trunk/gr2lib/core/coretypes/implementation/CameraInfo.cs
ViewVC logotype

Contents of /trunk/gr2lib/core/coretypes/implementation/CameraInfo.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 186 - (show annotations) (download)
Sat Jul 24 02:23:18 2010 UTC (9 years, 3 months ago) by william
File size: 1844 byte(s)
continue to add xml documentation

1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 using gr2lib.core.interfaces;
6 using gr2lib.core.helpers;
7
8 namespace gr2lib.core.coretypes.implementation
9 {
10 /// <summary>
11 /// CameraInfo class
12 /// </summary>
13 public class CameraInfo : ICameraInfo
14 {
15 /// <summary>
16 /// default constructor
17 /// </summary>
18 public CameraInfo()
19 {
20 //this.NativePointer = IntPtr.Zero;
21 //this.ExtendedData = IntPtr.Zero;
22 }
23
24 internal static CameraInfo ReadFromMemory(IntPtr pointer)
25 {
26 if (pointer == IntPtr.Zero) return null;
27 native.CameraInfo native = Helpers.ReadFromMemory<native.CameraInfo>(pointer);
28 CameraInfo managed = ReadFromNative(native);
29 managed.NativePointer = pointer;
30 return managed;
31 }
32
33 internal static CameraInfo ReadFromNative(native.CameraInfo native)
34 {
35 CameraInfo managed = new CameraInfo();
36 managed.ExtendedData = native.ExtendedData;
37 return managed;
38 }
39
40 #region INativePointer Members
41 private IntPtr _NativePointer;
42 /// <summary>
43 /// When used in a derived class, gets the native pointer for this instance
44 /// </summary>
45 public IntPtr NativePointer { get { return _NativePointer; } set { _NativePointer = value; } }
46 #endregion
47
48 #region IExtendedData Members
49 private IntPtr _ExtendedData;
50 /// <summary>
51 /// When used in a derived class, gets the ExtendedData pointer for this instance
52 /// </summary>
53 public IntPtr ExtendedData { get { return _ExtendedData; } set { _ExtendedData = value; } }
54 #endregion
55 }
56 }

  ViewVC Help
Powered by ViewVC 1.1.22