Thuộc tính
Properties Camera lớp là một Entity kế thừa từ Frustum và đại diện cho một camera ảo trong cảnh 3D. Gắn nó vào một Node để định vị và định hướng nó trong cây phân cấp cảnh. Trong phiên bản FOSS hiện tại, Camera không tiết lộ các thuộc tính đặc thù cho định dạng; nó đóng vai trò là một dấu hiệu thực thể có kiểu có thể được gắn vào các nút.
Thuộc tính
| Name | Type | Access | Description |
|---|
ApertureMode | ApertureMode | Read/Write | Gets or sets the aperture mode. |
FieldOfView | double | Read/Write | Gets or sets the field of view. |
FieldOfViewX | double | Read/Write | Gets or sets the field of view x. |
FieldOfViewY | double | Read/Write | Gets or sets the field of view y. |
Width | double | Read/Write | Gets or sets the width. |
Height | double | Read/Write | Gets or sets the height. |
AspectRatio | double | Read/Write | Gets or sets the aspect ratio. |
Magnification | Vector2 | Read/Write | Gets or sets the magnification. |
ProjectionType | ProjectionType | Read/Write | Gets or sets the projection type. |
RotationMode | RotationMode | Read/Write | Gets or sets the rotation mode. |
NearPlane | double | Read/Write | Gets or sets the near plane. |
FarPlane | double | Read/Write | Gets or sets the far plane. |
Aspect | double | Read/Write | Gets or sets the aspect. |
OrthoHeight | double | Read/Write | Gets or sets the ortho height. |
Up | Vector3 | Read/Write | Gets or sets the up. |
LookAt | Vector3 | Read/Write | Gets or sets the look at. |
Direction | Vector3 | Read/Write | Gets or sets the direction. |
Target | Node | Read/Write | Gets or sets the target. |
Excluded | bool | Read/Write | Gets or sets the excluded. |
ParentNodes | List<Node> | Read | Gets the parent nodes. |
ParentNode | Node | Read/Write | Gets or sets the parent node. |
Scene | Scene | Read | Gets the scene. |
Name | string | Read/Write | Gets or sets the name. |
Properties | PropertyCollection | Read | Gets the properties. |
| Signature | Description |
|---|
Camera() | Creates a new Camera instance with the specified name |
Camera(projectionType: ProjectionType) | |
Camera(name: string) | |
Camera(name: string, projectionType: ProjectionType) | |
MoveForward(distance: double) | Not implemented in the FOSS edition — throws at runtime. Move camera forward towards its direction or target. |
Entity(name: string) | |
GetBoundingBox() | Gets the bounding box of current entity in its object space coordinate system. |
GetEntityRendererKey() | Gets the key of the entity renderer registered in the renderer |
SceneObject(name: string) | |
A3DObject() | |
RemoveProperty(property: Property) | Removes a dynamic property. |
GetProperty(property: string) | Get the value of specified property |
SetProperty(property: string, value: object?) | Sets the value of specified property |
FindProperty(propertyName: string) | Finds the property. It can be a dynamic property (Created by CreateDynamicProperty/SetProperty) or native property(Identified by its name) |
Xem thêm