/[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 196 - (show annotations) (download)
Thu Jul 29 07:47:26 2010 UTC (10 years, 2 months ago) by william
File size: 2076 byte(s)
bulk commit

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 {/// <summary>
15 /// Gets the string representation of this instance
16 /// </summary>
17 /// <returns></returns>
18 public override string ToString()
19 {
20 return "{CameraInfo}";
21 }
22 /// <summary>
23 /// default constructor
24 /// </summary>
25 public CameraInfo()
26 {
27 //this.NativePointer = IntPtr.Zero;
28 //this.ExtendedData = IntPtr.Zero;
29 }
30
31 internal static CameraInfo ReadFromMemory(IntPtr pointer)
32 {
33 if (pointer == IntPtr.Zero) return null;
34 native.CameraInfo native = Helpers.ReadFromMemory<native.CameraInfo>(pointer);
35 CameraInfo managed = ReadFromNative(native);
36 managed.NativePointer = pointer;
37 return managed;
38 }
39
40 internal static CameraInfo ReadFromNative(native.CameraInfo native)
41 {
42 CameraInfo managed = new CameraInfo();
43 managed.ExtendedData = native.ExtendedData;
44 return managed;
45 }
46
47 #region INativePointer Members
48 private IntPtr _NativePointer;
49 /// <summary>
50 /// When used in a derived class, gets the native pointer for this instance
51 /// </summary>
52 public IntPtr NativePointer { get { return _NativePointer; } set { _NativePointer = value; } }
53 #endregion
54
55 #region IExtendedData Members
56 private IntPtr _ExtendedData;
57 /// <summary>
58 /// When used in a derived class, gets the ExtendedData pointer for this instance
59 /// </summary>
60 public IntPtr ExtendedData { get { return _ExtendedData; } set { _ExtendedData = value; } }
61 #endregion
62 }
63 }

  ViewVC Help
Powered by ViewVC 1.1.22