Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdBrepRenderer.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 Teigha.Core {
12
13using System;
14using System.Runtime.InteropServices;
15
16public class OdBrepRenderer : global::System.IDisposable {
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 protected bool swigCMemOwn;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
21 public OdBrepRenderer(IntPtr cPtr, bool cMemoryOwn) {
22 swigCMemOwn = cMemoryOwn;
23 swigCPtr = new HandleRef(this, cPtr);
24 }
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(OdBrepRenderer obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
31 Dispose(false);
32 }
33
34 public void Dispose() {
35 Dispose(true);
36 global::System.GC.SuppressFinalize(this);
37 }
38
39 protected virtual void Dispose(bool disposing) {
40 lock(this) {
41 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
42 if (swigCMemOwn) {
43 swigCMemOwn = false;
45 }
46 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
47 }
48 }
49 }
50
51 public virtual void setBrep(OdBrBrep brep) {
54 }
55
56 public virtual void enableCaching() {
59 }
60
61 public virtual void disableCaching(bool clearCache) {
64 }
65
66 public virtual void disableCaching() {
69 }
70
71 public virtual bool isCachingEnabled() {
74 return ret;
75 }
76
77 public virtual void setTriangulationParams(wrTriangulationParams pTriangulationParams) {
80 }
81
83 global::System.IntPtr cPtr = GlobalsPINVOKE.OdBrepRenderer_getTriangulationParams(swigCPtr);
84 wrTriangulationParams ret = (cPtr == global::System.IntPtr.Zero) ? null : new wrTriangulationParams(cPtr, false);
86 return ret;
87 }
88
89 public class NumIsolines : global::System.IDisposable {
90 private Object locker = new Object();
91 private HandleRef swigCPtr;
92 protected bool swigCMemOwn;
93 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
94 public NumIsolines(IntPtr cPtr, bool cMemoryOwn) {
95 swigCMemOwn = cMemoryOwn;
96 swigCPtr = new HandleRef(this, cPtr);
97 }
98 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
99 public static HandleRef getCPtr(NumIsolines obj) {
100 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
101 }
102
103 ~NumIsolines() {
104 Dispose(false);
105 }
106
107 public void Dispose() {
108 Dispose(true);
109 global::System.GC.SuppressFinalize(this);
110 }
111
112 protected virtual void Dispose(bool disposing) {
113 lock(this) {
114 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
115 if (swigCMemOwn) {
116 swigCMemOwn = false;
117 GlobalsPINVOKE.delete_OdBrepRenderer_NumIsolines(swigCPtr); // NESTED_DTOR_CSHARP
118 }
119 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
120 }
121 }
122 }
123
124 public UInt32 numU {
125 set {
126 /*SIMPLETYPE*/
129 }
130 get {
131 /*SIMPLETYPE*/
134 return ret;
135 }
136 }
137
138 public UInt32 numV {
139 set {
140 /*SIMPLETYPE*/
143 }
144 get {
145 /*SIMPLETYPE*/
148 return ret;
149 }
150 }
151
152 public NumIsolines() : this(GlobalsPINVOKE.new_OdBrepRenderer_NumIsolines(), true) {
154 }
155
156 }
157
158 public virtual bool draw(OdGiCommonDraw pWd, UInt32 /*SIMPLETYPE*/ geomType, OdBrepRenderer.NumIsolines pNumIsolines) {
159 bool ret = GlobalsPINVOKE.OdBrepRenderer_draw__SWIG_0(swigCPtr, OdGiCommonDraw.getCPtr(pWd), geomType /*SIMPLETYPE*/, OdBrepRenderer.NumIsolines.getCPtr(pNumIsolines));
161 return ret;
162 }
163
164 public virtual bool draw(OdGiCommonDraw pWd, UInt32 /*SIMPLETYPE*/ geomType) {
165 bool ret = GlobalsPINVOKE.OdBrepRenderer_draw__SWIG_1(swigCPtr, OdGiCommonDraw.getCPtr(pWd), geomType /*SIMPLETYPE*/);
167 return ret;
168 }
169
170 public virtual bool drawSilhouettes(OdGiViewportDraw pVd) {
173 return ret;
174 }
175
176 public virtual void transformBy(OdGeMatrix3d xfm) {
179 }
180
181 public virtual bool drawFace(OdGiCommonDraw pWd, IntPtr /*SIMPLETYPE*/ iFace, wrTriangulationParams triangulationParams) {
182 bool ret = GlobalsPINVOKE.OdBrepRenderer_drawFace(swigCPtr, OdGiCommonDraw.getCPtr(pWd), iFace /*SIMPLETYPE*/, wrTriangulationParams.getCPtr(triangulationParams));
184 return ret;
185 }
186
187 public virtual bool getFaceMesh(OdGeTrMesh mesh, IntPtr /*SIMPLETYPE*/ iFace, wrTriangulationParams triangulationParams) {
188 bool ret = GlobalsPINVOKE.OdBrepRenderer_getFaceMesh(swigCPtr, OdGeTrMesh.getCPtr(mesh), iFace /*SIMPLETYPE*/, wrTriangulationParams.getCPtr(triangulationParams));
190 return ret;
191 }
192
193 public virtual bool getExtents(OdGeExtents3d extents, UInt32 /*SIMPLETYPE*/ nIso) {
194 bool ret = GlobalsPINVOKE.OdBrepRenderer_getExtents__SWIG_0(swigCPtr, OdGeExtents3d.getCPtr(extents), nIso /*SIMPLETYPE*/);
196 return ret;
197 }
198
199 public virtual bool getExtents(OdGeExtents3d extents) {
202 return ret;
203 }
204
205 public virtual void setFaceFilter(wrRenderFilter pFaceFilter) {
208 }
209
210 public virtual bool getPtSurface(OdGePoint3d pt) {
213 return ret;
214 }
215
216}
217
218}
static global::System.Exception Retrieve()
static bool OdBrepRenderer_draw__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2, UInt32 jarg3)
static global::System.IntPtr OdBrepRenderer_getTriangulationParams(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdBrepRenderer_getPtSurface(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdBrepRenderer_getFaceMesh(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, IntPtr jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static void OdBrepRenderer_setBrep(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static UInt32 OdBrepRenderer_NumIsolines_numU_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdBrepRenderer_isCachingEnabled(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdBrepRenderer_setFaceFilter(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void delete_OdBrepRenderer_NumIsolines(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdBrepRenderer_NumIsolines_numV_set(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static bool OdBrepRenderer_getExtents__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdBrepRenderer_setTriangulationParams(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdBrepRenderer_drawFace(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2, IntPtr jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static void delete_OdBrepRenderer(global::System.Runtime.InteropServices.HandleRef jarg1)
static UInt32 OdBrepRenderer_NumIsolines_numV_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdBrepRenderer_draw__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2, UInt32 jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static void OdBrepRenderer_enableCaching(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdBrepRenderer_transformBy(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdBrepRenderer_NumIsolines_numU_set(global::System.Runtime.InteropServices.HandleRef jarg1, UInt32 jarg2)
static bool OdBrepRenderer_getExtents__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, UInt32 jarg3)
static bool OdBrepRenderer_drawSilhouettes(global::System.Runtime.InteropServices.HandleRef jarg1, HandleRef jarg2)
static void OdBrepRenderer_disableCaching__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2)
static void OdBrepRenderer_disableCaching__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1)
static HandleRef getCPtr(OdBrBrep obj)
Definition: OdBrBrep.cs:25
virtual void Dispose(bool disposing)
static HandleRef getCPtr(NumIsolines obj)
NumIsolines(IntPtr cPtr, bool cMemoryOwn)
virtual bool getExtents(OdGeExtents3d extents, UInt32 nIso)
static HandleRef getCPtr(OdBrepRenderer obj)
virtual void setBrep(OdBrBrep brep)
virtual bool draw(OdGiCommonDraw pWd, UInt32 geomType, OdBrepRenderer.NumIsolines pNumIsolines)
virtual void setTriangulationParams(wrTriangulationParams pTriangulationParams)
virtual void Dispose(bool disposing)
virtual bool isCachingEnabled()
virtual void disableCaching(bool clearCache)
virtual bool drawSilhouettes(OdGiViewportDraw pVd)
virtual bool getFaceMesh(OdGeTrMesh mesh, IntPtr iFace, wrTriangulationParams triangulationParams)
virtual void transformBy(OdGeMatrix3d xfm)
virtual bool getExtents(OdGeExtents3d extents)
virtual void disableCaching()
virtual wrTriangulationParams getTriangulationParams()
virtual bool draw(OdGiCommonDraw pWd, UInt32 geomType)
virtual bool getPtSurface(OdGePoint3d pt)
virtual void setFaceFilter(wrRenderFilter pFaceFilter)
virtual bool drawFace(OdGiCommonDraw pWd, IntPtr iFace, wrTriangulationParams triangulationParams)
OdBrepRenderer(IntPtr cPtr, bool cMemoryOwn)
virtual void enableCaching()
static HandleRef getCPtr(OdGeExtents3d obj)
static HandleRef getCPtr(OdGeMatrix3d obj)
Definition: OdGeMatrix3d.cs:26
static HandleRef getCPtr(OdGePoint3d obj)
Definition: OdGePoint3d.cs:26
static HandleRef getCPtr(OdGeTrMesh obj)
Definition: OdGeTrMesh.cs:25
static HandleRef getCPtr(OdGiCommonDraw obj)
static HandleRef getCPtr(OdGiViewportDraw obj)
static HandleRef getCPtr(wrRenderFilter obj)
static HandleRef getCPtr(wrTriangulationParams obj)