|
AnyCAD Rapid API 2025
Help you to create a better world!
|
Public 成员函数 | |
| ClassId | GetClassId () |
| ObjectId | GetActiveWorkspaceId () |
| boolean | SetActiveWorkspaceId (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) |
| AABox | GetCropModelBox () |
| boolean | SetCropModelBox (AABox val) |
| boolean | GetCropModelActive () |
| boolean | SetCropModelActive (boolean val) |
| boolean | GetGlobalViewMode () |
| boolean | SetGlobalViewMode (boolean val) |
| EnumWorkspaceType | GetWorkspaceType () |
| boolean | SetWorkspaceType (EnumWorkspaceType val) |
| void | SetActiveSketchId (ObjectId sketchId) |
| ObjectId | GetActiveSketchId () |
| void | SetActiveSpaceId (ObjectId spaceId) |
| ObjectId | GetActiveSpaceId () |
| GDir | GetViewDirection () |
| AABox | GetWorldCropBox () |
| AABox | GetWorldCropModelBox () |
| 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) |
| String | GetCategory () |
| boolean | SetCategory (String val) |
| ObjectId | GetPrototypeId () |
| boolean | SetPrototypeId (ObjectId val) |
| int | GetOrderNumber () |
| boolean | SetOrderNumber (int val) |
| Document | GetDocument () |
| void | SetNameW (String name) |
| String | GetNameW () |
| String | GetUIName () |
| String | GetUINameW () |
| String | GetToolTip (PickedItem item) |
| String | GetToolTipW (PickedItem item) |
| void | MakeUniqueName (String base) |
| void | MakeUniqueNameW (String base) |
| void | MakeUniqueNameByBase (String base) |
| void | MakeUniqueAliasName (String base, boolean continuous) |
| void | MakeUniqueAliasName (String base) |
| void | MakeUniqueAliasNameW (String base, boolean continuous) |
| void | MakeUniqueAliasNameW (String base) |
| void | MakeUniqueName () |
| void | MakeUniqueNameByConfig () |
| void | MakeUniqueAliasNameByConfig (boolean continuous) |
| void | MakeUniqueAliasNameByConfig () |
| void | RequestUpdate (long propId) |
| void | ListParameters (ParameterDict parameters) |
| boolean | SetParameter (ParameterDict parameters, String key) |
| String | GetModifyCommand () |
| Element | GetPrototype () |
Public 成员函数 继承自 AObject | |
| boolean | IsEqual (AObject other) |
静态 Public 成员函数 | |
| static ClassId | GetStaticClassId () |
| static DbView | Cast (AObject obj) |
| static DbView | Create (Document pDoc) |
额外继承的成员函数 | |
静态 Public 属性 继承自 Element | |
| static final long | PID_UpdateBrowerItem = AnyCADJNI.Element_PID_UpdateBrowerItem_get() |
| static final long | PID_UpdateBrowerLayout = AnyCADJNI.Element_PID_UpdateBrowerLayout_get() |
<> 默认的三维视图
重载 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所有顶点在世界坐标系下的表达
| void DbView.SetActiveSketchId | ( | ObjectId | sketchId | ) |
设置二维草图平面
| sketchId | 草图Id |
| void DbView.SetActiveSpaceId | ( | ObjectId | spaceId | ) |
设置三维空间
| spaceId |