AnyCAD Rapid API 2024
Help you to create a better world!
载入中...
搜索中...
未找到
DbView类 参考
类 DbView 继承关系图:
DbViewBase Element AObject

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

成员函数说明

◆ Cast()

static DbView DbView.Cast ( AObject obj)
static

重载 DbViewBase .

◆ ComputeCameraInfo()

void DbView.ComputeCameraInfo ( Vector3 position,
Vector3 target,
Vector3 up,
Vector3 dir )

计算视图的相机参数

参数
position<br>
target<br>
up<br>
dir

◆ Create()

static DbView DbView.Create ( Document pDoc)
static

重载 DbViewBase .

◆ GetClassId()

ClassId DbView.GetClassId ( )

获取对象的类型信息

返回
类信息

重载 DbViewBase .

◆ GetStaticClassId()

static ClassId DbView.GetStaticClassId ( )
static

获取类信息

返回

重载 DbViewBase .

◆ GetViewDirection()

GDir DbView.GetViewDirection ( )

获取视图方向,即相机的朝向

返回
gp_Dir 视图方向

◆ GetWorldCropBox()

AABox DbView.GetWorldCropBox ( )

获取视图范围CropBox在世界坐标系下的轴对齐包围盒
当视图坐标系(ViewAxis)与世界坐标系非轴对齐时,包围盒比实际范围更大

返回
WCS cropbox

◆ GetWorldCropBoxCorners()

Double3List DbView.GetWorldCropBoxCorners ( )

获取视图范围CropBox所有顶点在世界坐标系下的表达

返回
list of corners in WCS