Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
CFxOsnapPoint.cs
Go to the documentation of this file.
1//------------------------------------------------------------------------------
2// <auto-generated />
3//
4// This file was automatically generated by SWIG (http://www.swig.org).
5// Version 4.0.2
6//
7// Do not make changes to this file unless you know what you are doing--modify
8// the SWIG interface file instead.
9//------------------------------------------------------------------------------
10
11namespace PCAD_DOT_NET {
12
13using System;
14using System.Runtime.InteropServices;
15using Teigha.Core;
16using Teigha.TD;
17
18public class CFxOsnapPoint : global::System.IDisposable {
19 private Object locker = new Object();
20 private HandleRef swigCPtr;
21 protected bool swigCMemOwn;
22 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
23 public CFxOsnapPoint(IntPtr cPtr, bool cMemoryOwn) {
24 swigCMemOwn = cMemoryOwn;
25 swigCPtr = new HandleRef(this, cPtr);
26 }
27 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
28 public static HandleRef getCPtr(CFxOsnapPoint obj) {
29 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
30 }
31
33 Dispose(false);
34 }
35
36 public void Dispose() {
37 Dispose(true);
38 global::System.GC.SuppressFinalize(this);
39 }
40
41 protected virtual void Dispose(bool disposing) {
42 lock(this) {
43 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
44 if (swigCMemOwn) {
45 swigCMemOwn = false;
47 }
48 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
49 }
50 }
51 }
52
58
64
69
74
79
85
91
98
104
110
111 public virtual bool IsEqualTo(CFxOsnapPoint osnapPoint, double pointTol) {
112 bool ret = PCADGlobalsPINVOKE.CFxOsnapPoint_IsEqualTo(swigCPtr, CFxOsnapPoint.getCPtr(osnapPoint), pointTol);
114 return ret;
115 }
116
122
128
129 public static UInt32 GetOsnapColor() {
130// test csout
131 /*SIMPLETYPE*/
134 return ret;
135 }
136
142
143 public static UInt32 GetCenterColor(CFxTrackerContext pContext) {
144// test csout
145 /*SIMPLETYPE*/
148 return ret;
149 }
150
156
157 public enum OsnapMode {
158 kOsModeStart = -2,
159 kOsModeUndefined = -1,
160 kOsModeNone = 0,
161 kOsModeFirst = 1,
162 kOsModeEnd = 1,
163 kOsModeMid = 2,
164 kOsModeCen = 3,
165 kOsModeNode = 4,
166 kOsModeQuad = 5,
167 kOsModeIntersec = 6,
168 kOsModeIns = 7,
169 kOsModePerp = 8,
170 kOsModeTan = 9,
171 kOsModeNear = 10,
172 kOsModeGeoCen = 11,
173 kOsModeApint = 12,
174 kOsModeExt = 13,
175 kOsModePar = 14,
176 kOsModeDisabled = 15,
177 kOsModeCustom = 16,
178 kOsModeLast = 16
179 }
180
181}
182
183}
virtual CFxOsnapPoint.OsnapMode GetMode()
virtual CFxString GetModeName()
virtual void Set(CFxOsnapPoint.OsnapMode osnapMode, OdGePoint3d point, OdDbFullSubentPath first, OdDbFullSubentPath second)
static CFxOsnapPoint.OsnapMode ConvertOsnapMode(Teigha.Core.OsnapMode osnapMode)
static UInt32 GetCenterColor(CFxTrackerContext pContext)
virtual bool IsEqualTo(CFxOsnapPoint osnapPoint, double pointTol)
virtual void Set(CFxOsnapPoint osnapPoint)
virtual OdGePoint3d GetPoint()
static OsnapMode ConvertOsnapMode(CFxOsnapPoint.OsnapMode osnapMode)
static HandleRef getCPtr(CFxOsnapPoint obj)
virtual void Dispose(bool disposing)
CFxOsnapPoint(IntPtr cPtr, bool cMemoryOwn)
virtual OdDbFullSubentPath GetSubentPath(bool first)
static UInt32 GetOsnapColor()
virtual OdDbFullSubentPath GetSubentPath()
virtual CFxOsnapPoint Assign(CFxOsnapPoint osnapPoint)
static HandleRef getCPtr(CFxTrackerContext obj)
static global::System.IntPtr CFxOsnapPoint_GetModeName(global::System.Runtime.InteropServices.HandleRef jarg1)
static UInt32 CFxOsnapPoint_GetOsnapColor()
static uint CFxOsnapPoint_GetOsnapSize()
static void CFxOsnapPoint_Set__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5)
static global::System.IntPtr CFxOsnapPoint_GetSubentPath__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1)
static CFxOsnapPoint.OsnapMode ConvertOsnapMode(Teigha.Core.OsnapMode osnapMode)
static uint CFxOsnapPoint_GetOsnapDistance()
static int CFxOsnapPoint_GetMode(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxOsnapPoint_GetSubentPath__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static global::System.IntPtr CFxOsnapPoint_GetPoint(global::System.Runtime.InteropServices.HandleRef jarg1)
static int CFxOsnapPoint_GetCenterSize()
static void delete_CFxOsnapPoint(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr CFxOsnapPoint_Assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void CFxOsnapPoint_Set__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static int CFxOsnapPoint_ConvertOsnapMode(int jarg1)
static void CFxOsnapPoint_Clear(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool CFxOsnapPoint_IsEqualTo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, double jarg3)
static UInt32 CFxOsnapPoint_GetCenterColor(global::System.Runtime.InteropServices.HandleRef jarg1)
static HandleRef getCPtr(OdGePoint3d obj)
static HandleRef getCPtr(OdDbFullSubentPath obj)