AnyCAD Rapid API 2024
Help you to create a better world!
|
Public 成员函数 | |
ClassId | GetClassId () |
ObjectId | GetActiveSketchId () |
boolean | SetActiveSketchId (ObjectId val) |
GAx2 | GetViewAxis () |
boolean | SetViewAxis (GAx2 val) |
boolean | GetCropBoxActive () |
boolean | SetCropBoxActive (boolean val) |
boolean | GetCropBoxVisible () |
boolean | SetCropBoxVisible (boolean val) |
int | GetScale () |
boolean | SetScale (int val) |
AABox | GetCropBox () |
boolean | SetCropBox (AABox val) |
GDir | GetViewDirection () |
AABox | GetWorldCropBox () |
Double3List | GetWorldCropBoxCorners () |
void | ComputeCameraInfo (Vector3 position, Vector3 target, Vector3 up, Vector3 dir) |
Public 成员函数 继承自 DbViewBase | |
ObjectId | GetReferencePlane () |
boolean | SetReferencePlane (ObjectId val) |
ObjectId | GetPropertyId () |
boolean | SetPropertyId (ObjectId val) |
ObjectId | GetActiveLayerId () |
boolean | SetActiveLayerId (ObjectId val) |
EnumDbViewType | GetViewType () |
boolean | SetViewType (EnumDbViewType val) |
EnumLevelOfDetail | GetLevelOfDetail () |
boolean | SetLevelOfDetail (EnumLevelOfDetail val) |
AABox | GetBoundingBox () |
ObjectIdSet | GetFrozenObjectIds () |
boolean | GetFreezeType () |
void | SetFreezeType (boolean val) |
boolean | GetHiddenType () |
void | SetHiddenType (boolean val) |
ObjectIdSet | GetProvisionalIds () |
double | GetViewScale () |
void | SaveCamera (Camera pCamera) |
boolean | RestoreCamera (Camera pCamera) |
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) |
AABox | GetBoundingBox (PickedIdList ids) |
Public 成员函数 继承自 Element | |
long | GetUserId () |
boolean | SetUserId (long val) |
String | GetName () |
boolean | SetName (String val) |
String | GetSchemaName () |
boolean | SetSchemaName (String val) |
long | GetUserFlags () |
void | SetUserFlags (long val) |
ObjectId | GetId () |
String | GetAliasName () |
boolean | SetAliasName (String val) |
ObjectId | GetSourceId () |
boolean | SetSourceId (ObjectId val) |
String | GetCategory () |
boolean | SetCategory (String val) |
Document | GetDocument () |
void | MakeUniqueName (String base) |
void | MakeUniqueNameByBase (String base) |
void | MakeUniqueName () |
void | MakeUniqueNameByConfig () |
void | RequestUpdate (EnumUpdateElementFlag mode) |
void | RequestUpdate () |
void | ListParameters (ParameterDict parameters) |
boolean | SetParameter (ParameterDict parameters, String key) |
String | GetModifyCommand () |
Public 成员函数 继承自 AObject | |
boolean | IsEqual (AObject other) |
静态 Public 成员函数 | |
static ClassId | GetStaticClassId () |
static DbView | Cast (AObject obj) |
static DbView | Create (Document pDoc) |
<>
DbView: 默认的三维View
重载 DbViewBase .
计算视图的相机参数
position<br> | |
target<br> | |
up<br> | |
dir |
重载 DbViewBase .
ClassId DbView.GetClassId | ( | ) |
|
static |
GDir DbView.GetViewDirection | ( | ) |
获取视图方向,即相机的朝向
AABox DbView.GetWorldCropBox | ( | ) |
获取视图范围CropBox在世界坐标系下的轴对齐包围盒
当视图坐标系(ViewAxis)与世界坐标系非轴对齐时,包围盒比实际范围更大
Double3List DbView.GetWorldCropBoxCorners | ( | ) |
获取视图范围CropBox所有顶点在世界坐标系下的表达