|
AnyCAD Rapid API 2026
Help you to create a better world!
|
内容为Float32的内存空间 更多...
Public 成员函数 | |
| Float32Buffer (global::System.IntPtr cPtr, bool cMemoryOwn) | |
| 仅供内部使用 | |
| override ClassId | GetClassId () |
| 获取对象的类型信息 | |
| Float32Buffer (uint itemCount) | |
| Float32Buffer (FloatList data) | |
| Float32Buffer | Clone () |
| override EnumDataType | GetDataType () |
| 获取数据类型. | |
| Vector3 | GetValue (uint idx) |
| 获取idx位置的值 | |
| void | SetValue (uint idx, Vector3 data) |
| 设置idx位置的值 | |
| void | SetValueByVec3 (uint idx, Vector3 data) |
| void | SetValue (uint idx, float x, float y, float z) |
| 设置idx位置的值 | |
| void | SetValueByXYZ (uint idx, float x, float y, float z) |
| void | Append3 (Vector3 val) |
| 在尾部添加Vector3f数据 | |
| void | Append2 (Vector2 val) |
| 在尾部添加Vector2f值 | |
| void | AppendMatrix4 (Matrix4 val) |
| void | Plus (uint idx, Vector3 v) |
| Add v to the exsiting value | |
| bool | SaveText (string fileName) |
| 保存为文本。用于做测试使用 | |
Public 成员函数 继承自 AnyCAD.Foundation.Float32TypedBuffer | |
| Float32TypedBuffer (global::System.IntPtr cPtr, bool cMemoryOwn) | |
| 仅供内部使用 | |
| FloatList | GetData () |
| void | Reserve (uint count) |
| 保留内存大小,避免重复分配 | |
| void | Set (uint idx, float val) |
| 设置元素 | |
| float | Get (uint idx) |
| 获取元素的值 | |
| float | GetItem (uint idx) |
| void | Append (float val) |
| 在尾部添加元素 | |
| void | AppendItem1 (float val) |
| void | Append (float a, float b) |
| 在尾部添加两个值 | |
| void | AppendItem2 (float a, float b) |
| void | Append (float a, float b, float c) |
| 在尾部添加三个值 | |
| void | AppendItem3 (float a, float b, float c) |
| void | Append (float a, float b, float c, float d) |
| 在尾部添加四个值 | |
| void | AppendItem4 (float a, float b, float c, float d) |
| override uint | GetBufferSize () |
| 获取缓冲区大小 | |
| override uint | GetItemCount () |
| 获取元素的个数 | |
Public 成员函数 继承自 AnyCAD.Foundation.ArrayBuffer | |
| ArrayBuffer (global::System.IntPtr cPtr, bool cMemoryOwn) | |
| 仅供内部使用 | |
| bool | Save (string fleName) |
| 保存为二进制文件 | |
Public 成员函数 继承自 AnyCAD.Foundation.AObject | |
| AObject (global::System.IntPtr cPtr, bool cMemoryOwn) | |
| 仅供内部使用 | |
| void | Dispose () |
| virtual bool | IsEqual (AObject other) |
| 对象是否相同,或同一个对象 | |
静态 Public 成员函数 | |
| static new ClassId | GetStaticClassId () |
| static new Float32Buffer | Cast (AObject obj) |
| static Float32Buffer | Create (FloatList data) |
| 使用数据来构造Buffer | |
| static Float32Buffer | CreateByArray (FloatList data) |
| static Float32Buffer | Create (uint count) |
| 构造函数 | |
| static Float32Buffer | Create (GPntList pts) |
| 根据点创建Float32Buffer | |
| static Float32Buffer | Create (GPntList pts, GTrsf trsf) |
| 根据点创建Float32Buffer,点先做矩阵变换 | |
静态 Public 成员函数 继承自 AnyCAD.Foundation.ArrayBuffer | |
| static new ClassId | GetStaticClassId () |
| static ArrayBuffer | Cast (AObject obj) |
静态 Public 成员函数 继承自 AnyCAD.Foundation.AObject | |
| static ClassId | GetStaticClassId () |
| 获取类信息 | |
内容为Float32的内存空间
Float32Buffer辅助方法
Group: Common
| void AnyCAD.Foundation.Float32Buffer.Append2 | ( | Vector2 | val | ) |
在尾部添加Vector2f值
| val | 值 |
| void AnyCAD.Foundation.Float32Buffer.Append3 | ( | Vector3 | val | ) |
在尾部添加Vector3f数据
| val | 值 |
|
static |
使用数据来构造Buffer
| data | float数组 |
|
static |
根据点创建Float32Buffer
| pts |
|
static |
根据点创建Float32Buffer,点先做矩阵变换
| pts |
|
static |
构造函数
| count | 元素的个数 |
|
virtual |
|
virtual |
| Vector3 AnyCAD.Foundation.Float32Buffer.GetValue | ( | uint | idx | ) |
获取idx位置的值
| idx | 索引 |
| void AnyCAD.Foundation.Float32Buffer.Plus | ( | uint | idx, |
| Vector3 | v ) |
Add v to the exsiting value
| idx | |
| v |
| bool AnyCAD.Foundation.Float32Buffer.SaveText | ( | string | fileName | ) |
保存为文本。用于做测试使用
| fileName | 文件名 |
| void AnyCAD.Foundation.Float32Buffer.SetValue | ( | uint | idx, |
| float | x, | ||
| float | y, | ||
| float | z ) |
设置idx位置的值
| x | 值 |
| y | 值 |
| z | 值 |
| void AnyCAD.Foundation.Float32Buffer.SetValue | ( | uint | idx, |
| Vector3 | data ) |
设置idx位置的值
| data | 值 |