Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdBrMassProps.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 OdBrMassProps : 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 OdBrMassProps(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(OdBrMassProps 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 double mVolume {
52 set {
55 }
56 get {
57 double ret = GlobalsPINVOKE.OdBrMassProps_mVolume_get(swigCPtr);
59 return ret;
60 }
61 }
62
63 public double mMass {
64 set {
67 }
68 get {
69 double ret = GlobalsPINVOKE.OdBrMassProps_mMass_get(swigCPtr);
71 return ret;
72 }
73 }
74
76 set {
79 }
80 get {
81 global::System.IntPtr cPtr = GlobalsPINVOKE.OdBrMassProps_mCentroid_get(swigCPtr);
82 OdGePoint3d ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGePoint3d(cPtr, false);
84 return ret;
85 }
86 }
87
88 public double[] /*SIMPLE_ARRAY*/ mRadiiGyration {
89 /*SArr csvin*/
90 set {
91 GlobalsPINVOKE.OdBrMassProps_mRadiiGyration_set(swigCPtr, Teigha.Core.Helpers.MarshaldoubleFixedArray(value));
93 }
94 /*SArr csvout*/
95 get {
96 double[] ret = Teigha.Core.Helpers.UnMarshaldoubleFixedArray(GlobalsPINVOKE.OdBrMassProps_mRadiiGyration_get(swigCPtr));
98 return ret;
99 }
100 }
101
102 public double[] /*SIMPLE_ARRAY*/ mMomInertia {
103 /*SArr csvin*/
104 set {
105 GlobalsPINVOKE.OdBrMassProps_mMomInertia_set(swigCPtr, Teigha.Core.Helpers.MarshaldoubleFixedArray(value));
107 }
108 /*SArr csvout*/
109 get {
110 double[] ret = Teigha.Core.Helpers.UnMarshaldoubleFixedArray(GlobalsPINVOKE.OdBrMassProps_mMomInertia_get(swigCPtr));
112 return ret;
113 }
114 }
115
116 public double[] /*SIMPLE_ARRAY*/ mProdInertia {
117 /*SArr csvin*/
118 set {
119 GlobalsPINVOKE.OdBrMassProps_mProdInertia_set(swigCPtr, Teigha.Core.Helpers.MarshaldoubleFixedArray(value));
121 }
122 /*SArr csvout*/
123 get {
124 double[] ret = Teigha.Core.Helpers.UnMarshaldoubleFixedArray(GlobalsPINVOKE.OdBrMassProps_mProdInertia_get(swigCPtr));
126 return ret;
127 }
128 }
129
130 public double[] /*SIMPLE_ARRAY*/ mPrinMoments {
131 /*SArr csvin*/
132 set {
133 GlobalsPINVOKE.OdBrMassProps_mPrinMoments_set(swigCPtr, Teigha.Core.Helpers.MarshaldoubleFixedArray(value));
135 }
136 /*SArr csvout*/
137 get {
138 double[] ret = Teigha.Core.Helpers.UnMarshaldoubleFixedArray(GlobalsPINVOKE.OdBrMassProps_mPrinMoments_get(swigCPtr));
140 return ret;
141 }
142 }
143
145 set {
148 }
149 get {
150 global::System.IntPtr cPtr = GlobalsPINVOKE.OdBrMassProps_mPrinAxes_get(swigCPtr);
151 OdGeVector3d ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGeVector3d(cPtr, false);
153 return ret;
154 }
155 }
156
157 public OdBrMassProps() : this(GlobalsPINVOKE.new_OdBrMassProps(), true) {
159 }
160
161}
162
163}
static global::System.Exception Retrieve()
static void OdBrMassProps_mCentroid_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static double OdBrMassProps_mMass_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static double OdBrMassProps_mVolume_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static IntPtr OdBrMassProps_mPrinMoments_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdBrMassProps_mRadiiGyration_set(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr jarg2)
static IntPtr OdBrMassProps_mMomInertia_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static IntPtr OdBrMassProps_mProdInertia_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdBrMassProps_mPrinAxes_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdBrMassProps_mVolume_set(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static void OdBrMassProps_mMass_set(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static void OdBrMassProps_mMomInertia_set(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr jarg2)
static void delete_OdBrMassProps(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdBrMassProps_mPrinAxes_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static IntPtr OdBrMassProps_mRadiiGyration_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdBrMassProps_mPrinMoments_set(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr jarg2)
static void OdBrMassProps_mProdInertia_set(global::System.Runtime.InteropServices.HandleRef jarg1, IntPtr jarg2)
static global::System.IntPtr OdBrMassProps_mCentroid_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static HandleRef getCPtr(OdBrMassProps obj)
virtual void Dispose(bool disposing)
OdBrMassProps(IntPtr cPtr, bool cMemoryOwn)
static HandleRef getCPtr(OdGePoint3d obj)
Definition: OdGePoint3d.cs:26
static HandleRef getCPtr(OdGeVector3d obj)
Definition: OdGeVector3d.cs:26