Frustum
Inheritance: java.lang.Object, com.aspose.threed.A3DObject, com.aspose.threed.SceneObject, com.aspose.threed.Entity
All Implemented Interfaces: com.aspose.threed.IOrientable
public abstract class Frustum extends Entity implements IOrientable
الفئة الأساسية لـ Camera و Light
الطرق
| طريقة | الوصف |
|---|---|
| equals(Object arg0) | |
| findProperty(String propertyName) | يبحث عن الخاصية. |
| getAspect() | يحصل على نسبة العرض إلى الارتفاع للـ frustum |
| getBoundingBox() | يحصل على صندوق الحدود للكيان الحالي في نظام إحداثيات مساحة الكائن الخاصة به. |
| getClass() | |
| getDirection() | يحصل على الاتجاه الذي تنظر إليه الكاميرا. |
| getEntityRendererKey() | يحصل على المفتاح الخاص بعارض الكيان المسجل في العارض. |
| getExcluded() | يحصل على ما إذا كان يجب استبعاد هذا الكيان أثناء التصدير. |
| getFarPlane() | يحصل على مسافة المستوى البعيد للـ frustum. |
| getLookAt() | يحصل على الموضع المهتم الذي تنظر إليه الكاميرا. |
| getName() | يحصل على الاسم. |
| getNearPlane() | يحصل على مسافة المستوى القريب للمخروط. |
| getOrthoHeight() | يحصل على الارتفاع عندما يكون المخروط في الإسقاط المتعامد. |
| getParentNode() | يحصل على أول عقدة أب، إذا تم تعيين أول عقدة أب، سيُفصل هذا الكيان عن عقد الأب الأخرى. |
| getParentNodes() | يحصل على جميع عقد الأب، يمكن إرفاق كيان بعدة عقد أب لتكرار الهندسة. |
| getProperties() | يحصل على مجموعة جميع الخصائص. |
| getProperty(String property) | احصل على قيمة الخاصية المحددة |
| getRotationMode() | يحصل على وضعية توجيه المخروط. هذه الخاصية تعمل فقط عندما يكون getTarget فارغًا. |
| getScene() | يحصل على المشهد الذي ينتمي إليه هذا الكائن |
| getTarget() | يحصل على الهدف الذي تنظر إليه الكاميرا. |
| getUp() | يحصل على اتجاه الأعلى للكاميرا |
| hashCode() | |
| notify() | |
| notifyAll() | |
| removeProperty(Property property) | يزيل خاصية ديناميكية. |
| removeProperty(String property) | إزالة الخاصية المحددة التي تم التعرف عليها بالاسم. |
| setAspect(double value) | يضبط نسبة العرض إلى الارتفاع للمخروط |
| setDirection(Vector3 value) | يضبط الاتجاه الذي تنظر إليه الكاميرا. |
| setExcluded(boolean value) | يضبط ما إذا كان يجب استبعاد هذا الكيان أثناء التصدير. |
| setFarPlane(double value) | يضبط مسافة المستوى البعيد للمخروط. |
| setLookAt(Vector3 value) | يضبط الموضع المهتم الذي تنظر إليه الكاميرا. |
| setName(String value) | يضبط الاسم. |
| setNearPlane(double value) | يضبط مسافة المستوى القريب للمخروط. |
| setOrthoHeight(double value) | يضبط الارتفاع عندما يكون المخروط في الإسقاط المتعامد. |
| setParentNode(Node value) | يضبط أول عقدة أب، إذا تم ضبط أول عقدة أب، سيُفصل هذا الكيان عن عقد الأب الأخرى. |
| setProperty(String property, Object value) | يضبط قيمة الخاصية المحددة |
| setRotationMode(RotationMode value) | يضبط وضع توجيه المخروط. هذه الخاصية تعمل فقط عندما يكون getTarget فارغًا. |
| setTarget(Node value) | يضبط الهدف الذي تنظر إليه الكاميرا. |
| setUp(Vector3 value) | يضبط اتجاه الأعلى للكاميرا |
| toString() | |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) |
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| arg0 | java.lang.Object |
Returns: boolean
findProperty(String propertyName)
public Property findProperty(String propertyName)
يبحث عن الخاصية. يمكن أن تكون خاصية ديناميكية (Created by CreateDynamicProperty/SetProperty) أو خاصية أصلية (Identified by its name)
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| propertyName | java.lang.String | اسم الخاصية. |
Returns: Property - The property.
getAspect()
public double getAspect()
يحصل على نسبة العرض إلى الارتفاع للـ frustum
Returns: double - نسبة العرض إلى الارتفاع للمخروط
getBoundingBox()
public BoundingBox getBoundingBox()
يحصل على صندوق الحدود للكيان الحالي في نظام إحداثيات مساحة الكائن الخاصة به.
Returns: BoundingBox - the bounding box of current entity in its object space coordinate system. Example: The following code shows how to calculate the bounding box of a shape
Entity entity = new Sphere();
entity.setRadius(10);
var bbox = entity.getBoundingBox();
System.out.printf("The bounding box of the entity is %s ~ %s", bbox.getMinimum(), bbox.getMaximum());
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getDirection()
public Vector3 getDirection()
يحصل على الاتجاه الذي تنظر إليه الكاميرا. التغييرات على هذه الخاصية ستؤثر أيضًا على getLookAt و getTarget.
Returns: Vector3 - the direction that the camera is looking at. Changes on this property will also affects the getLookAt and getTarget.
getEntityRendererKey()
public EntityRendererKey getEntityRendererKey()
يحصل على المفتاح الخاص بعارض الكيان المسجل في العارض.
Returns: EntityRendererKey - the key of the entity renderer registered in the renderer
getExcluded()
public boolean getExcluded()
يحصل على ما إذا كان يجب استبعاد هذا الكيان أثناء التصدير.
Returns: منطقي - ما إذا كان يجب استبعاد هذا الكيان أثناء التصدير.
getFarPlane()
public double getFarPlane()
يحصل على مسافة المستوى البعيد للـ frustum.
Returns: double - مسافة المستوى البعيد للمخروط.
getLookAt()
public Vector3 getLookAt()
يحصل على الموضع المهتم الذي تنظر إليه الكاميرا.
Returns: Vector3 - the the interested position that the camera is looking at.
getName()
public String getName()
يحصل على الاسم.
Returns: java.lang.String - الاسم.
getNearPlane()
public double getNearPlane()
يحصل على مسافة المستوى القريب للمخروط.
Returns: double - مسافة المستوى القريب للمخروط.
getOrthoHeight()
public double getOrthoHeight()
يحصل على الارتفاع عندما يكون المخروط في الإسقاط المتعامد.
Returns: double - الارتفاع عندما يكون المخروط في الإسقاط المتعامد.
getParentNode()
public Node getParentNode()
يحصل على أول عقدة أب، إذا تم تعيين أول عقدة أب، سيُفصل هذا الكيان عن عقد الأب الأخرى.
Returns: Node - the first parent node, if set the first parent node, this entity will be detached from other parent nodes.
getParentNodes()
public ArrayList<Node> getParentNodes()
يحصل على جميع عقد الأب، يمكن إرفاق كيان بعدة عقد أب لتكرار الهندسة.
Returns: java.util.ArrayList<com.aspose.threed.Node> - جميع العقد الأصلية، يمكن إرفاق كيان بعدة عقد أصلية لتجسيد الهندسة
getProperties()
public PropertyCollection getProperties()
يحصل على مجموعة جميع الخصائص.
Returns: PropertyCollection - the collection of all properties.
getProperty(String property)
public Object getProperty(String property)
احصل على قيمة الخاصية المحددة
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| خاصية | java.lang.String | اسم الخاصية |
Returns: java.lang.Object - قيمة الخاصية التي تم العثور عليها
getRotationMode()
public RotationMode getRotationMode()
يحصل على وضع توجيه المخروط. هذه الخاصية تعمل فقط عندما يكون getTarget فارغًا. إذا كانت القيمة هي RotationMode.FIXED_TARGET، يتم دائمًا حساب الاتجاه بواسطة الخاصية getLookAt. وإلا فإن getLookAt يتم دائمًا حسابه بواسطة getDirection.
Returns: RotationMode - the frustum’s orientation mode This property only works when the getTarget is null. If the value is RotationMode.FIXED_TARGET, the direction is always calculated by the property getLookAt Otherwise the getLookAt is always calculated by the getDirection
getScene()
public Scene getScene()
يحصل على المشهد الذي ينتمي إليه هذا الكائن
Returns: Scene - the scene that this object belongs to
getTarget()
public Node getTarget()
يحصل على الهدف الذي تنظر إليه الكاميرا. إذا كان المستخدم يدعم هذه الخاصية، يجب أن تكون قبل خاصية getLookAt.
Returns: Node - the target that the camera is looking at. If the user supports this property, it should be prior to getLookAt property.
getUp()
public Vector3 getUp()
يحصل على اتجاه الأعلى للكاميرا
Returns: Vector3 - the up direction of the camera
hashCode()
public native int hashCode()
Returns: int
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
removeProperty(Property property)
public boolean removeProperty(Property property)
يزيل خاصية ديناميكية.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| property | Property | أي خاصية تريد إزالتها |
Returns: boolean - true إذا تم إزالة الخاصية بنجاح
removeProperty(String property)
public boolean removeProperty(String property)
إزالة الخاصية المحددة التي تم التعرف عليها بالاسم.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| خاصية | java.lang.String | أي خاصية تريد إزالتها |
Returns: boolean - true إذا تم إزالة الخاصية بنجاح
setAspect(double value)
public void setAspect(double value)
يضبط نسبة العرض إلى الارتفاع للمخروط
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| القيمة | double | القيمة الجديدة |
setDirection(Vector3 value)
public void setDirection(Vector3 value)
يضبط الاتجاه الذي تنظر إليه الكاميرا. التغييرات على هذه الخاصية ستؤثر أيضًا على getLookAt و getTarget.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| value | Vector3 | القيمة الجديدة |
setExcluded(boolean value)
public void setExcluded(boolean value)
يضبط ما إذا كان يجب استبعاد هذا الكيان أثناء التصدير.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| القيمة | boolean | القيمة الجديدة |
setFarPlane(double value)
public void setFarPlane(double value)
يضبط مسافة المستوى البعيد للمخروط.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| القيمة | double | القيمة الجديدة |
setLookAt(Vector3 value)
public void setLookAt(Vector3 value)
يضبط الموضع المهتم الذي تنظر إليه الكاميرا.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| value | Vector3 | القيمة الجديدة |
setName(String value)
public void setName(String value)
يضبط الاسم.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| القيمة | java.lang.String | القيمة الجديدة |
setNearPlane(double value)
public void setNearPlane(double value)
يضبط مسافة المستوى القريب للمخروط.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| القيمة | double | القيمة الجديدة |
setOrthoHeight(double value)
public void setOrthoHeight(double value)
يضبط الارتفاع عندما يكون المخروط في الإسقاط المتعامد.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| القيمة | double | القيمة الجديدة |
setParentNode(Node value)
public void setParentNode(Node value)
يضبط أول عقدة أب، إذا تم ضبط أول عقدة أب، سيُفصل هذا الكيان عن عقد الأب الأخرى.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| value | Node | القيمة الجديدة |
setProperty(String property, Object value)
public void setProperty(String property, Object value)
يضبط قيمة الخاصية المحددة
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| خاصية | java.lang.String | اسم الخاصية |
| القيمة | java.lang.Object | قيمة الخاصية |
setRotationMode(RotationMode value)
public void setRotationMode(RotationMode value)
يضبط وضع توجيه المخروط. هذه الخاصية تعمل فقط عندما يكون getTarget فارغًا. إذا كانت القيمة هي RotationMode.FIXED_TARGET، يتم دائمًا حساب الاتجاه بواسطة الخاصية getLookAt. وإلا فإن getLookAt يتم دائمًا حسابه بواسطة getDirection.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| value | RotationMode | القيمة الجديدة |
setTarget(Node value)
public void setTarget(Node value)
يضبط الهدف الذي تنظر إليه الكاميرا. إذا كان المستخدم يدعم هذه الخاصية، يجب أن تكون قبل خاصية getLookAt.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| value | Node | القيمة الجديدة |
setUp(Vector3 value)
public void setUp(Vector3 value)
يضبط اتجاه الأعلى للكاميرا
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| value | Vector3 | القيمة الجديدة |
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final void wait(long arg0)
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| arg0 | long | |
| arg1 | int |