AnyCAD Rapid API 2023
Help you to create a better world!
|
Public 成员函数 | |
ClassId | GetClassId () |
ObjectId | GetActiveSketchId () |
GAx2 | GetViewAxis () |
boolean | SetViewAxis (GAx2 val) |
AABox | GetCropBox () |
boolean | SetCropBox (AABox val) |
boolean | GetCropBoxActive () |
boolean | SetCropBoxActive (boolean val) |
boolean | GetCropBoxVisible () |
boolean | SetCropBoxVisible (boolean val) |
int | GetScale () |
boolean | SetScale (int val) |
void | SetActiveSketchId (ObjectId sketchId) |
GDir | GetViewDirection () |
AABox | GetCropBoxWorld () |
void | ComputeCameraInfo (Vector3 position, Vector3 target, Vector3 up, Vector3 dir) |
boolean | IsVisible (DrawableElement pElement) |
boolean | CanShow (DrawableElement pElement) |
void | ListParameters (ParameterDict parameters) |
boolean | SetParameter (ParameterDict parameters, String key) |
GPnt2d | ToLocalPoint (GPnt pt) |
GPnt2d | ToLocalPoint (Vector3 pt) |
Vector3 | WorldPointOnPlane (Vector3 pt) |
Vector3 | ToWorldPoint (GPnt2d pt, double z) |
Vector2 | GetLocalOffset () |
Public 成员函数 继承自 DbViewBase | |
ClassId | GetClassId () |
ObjectId | GetReferencePlane () |
boolean | SetReferencePlane (ObjectId val) |
ObjectId | GetPropertyId () |
boolean | SetPropertyId (ObjectId val) |
ObjectId | GetActiveLayerId () |
boolean | SetActiveLayerId (ObjectId val) |
EnumDbViewType | GetViewType () |
boolean | SetViewType (EnumDbViewType val) |
AABox | GetBoundingBox () |
EnumLevelOfDetail | GetLevelOfDetail () |
boolean | SetLevelOfDetail (EnumLevelOfDetail val) |
ObjectIdSet | GetFrozenObjectIds () |
boolean | GetFreezeType () |
void | SetFreezeType (boolean val) |
boolean | GetHiddenType () |
void | SetHiddenType (boolean val) |
ObjectIdSet | GetProvisionalIds () |
boolean | IsVisible (DrawableElement pElement) |
boolean | CanShow (DrawableElement pElement) |
void | FreezeObjects (ObjectIdSet ids) |
void | HideObjects (ObjectIdSet ids) |
void | ShowObjects (ObjectIdSet ids) |
boolean | SetProvisionalObjects (ObjectIdSet ids) |
AABox | GetBoundingBox (ObjectIdSet ids) |
Public 成员函数 继承自 Element | |
ClassId | GetClassId () |
ObjectId | GetId () |
long | GetUserId () |
boolean | SetUserId (long val) |
String | GetName () |
boolean | SetName (String val) |
String | GetSchemaName () |
boolean | SetSchemaName (String val) |
long | GetUserFlags () |
void | SetUserFlags (long val) |
void | MakeUniqueName (String base) |
void | MakeUniqueName () |
void | RequestUpdate () |
void | ListParameters (ParameterDict parameters) |
boolean | SetParameter (ParameterDict parameters, String key) |
Public 成员函数 继承自 AObject | |
ClassId | GetClassId () |
boolean | IsEqual (AObject other) |
静态 Public 成员函数 | |
static ClassId | GetStaticClassId () |
static DbView | Cast (AObject obj) |
static DbView | Create (Document pDoc) |
static ClassId | GetStaticClassId () |
static DbViewBase | Cast (AObject obj) |
static DbViewBase | Create (Document pDoc) |
static ClassId | GetStaticClassId () |
static Element | Cast (AObject obj) |
static ClassId | GetStaticClassId () |
<>
DbView: 默认的三维View
boolean DbView.CanShow | ( | DrawableElement | pElement | ) |
重载 DbViewBase .
计算视图的相机参数
position<br> | |
target<br> | |
up<br> | |
dir |
重载 DbViewBase .
ClassId DbView.GetClassId | ( | ) |
AABox DbView.GetCropBoxWorld | ( | ) |
获取视图范围cropbox在世界坐标系下的表示
Vector2 DbView.GetLocalOffset | ( | ) |
获取世界原点到视图坐标系原点的offset向量在视图坐标系XOY平面的投影
|
static |
GDir DbView.GetViewDirection | ( | ) |
获取视图方向,即相机的朝向
boolean DbView.IsVisible | ( | DrawableElement | pElement | ) |
重载 DbViewBase .
void DbView.ListParameters | ( | ParameterDict | parameters | ) |
void DbView.SetActiveSketchId | ( | ObjectId | sketchId | ) |
设置当前的草图工作平面
sketchId | 草图平面的ID |
boolean DbView.SetParameter | ( | ParameterDict | parameters, |
String | key | ||
) |