Plane
Panoramica
Plane è una classe in Aspose.3D FOSS per Java. Eredita da: Primitive.
Piano parametrizzato.
Questa classe fornisce 41 metodi per lavorare con oggetti Plane nei programmi Java. I metodi disponibili includono: A3DObject, Entity, Plane, Primitive, SceneObject, findProperty, getBoundingBox, getCastShadows, getEntityRendererKey, getExcluded, getLength, getLengthSegments, e 23 metodi aggiuntivi. Tutti i membri pubblici sono accessibili a qualsiasi applicazione Java dopo aver installato il pacchetto Aspose.3D FOSS per Java. Proprietà: boundingBox, castShadows, entityRendererKey, excluded, length, lengthSegments, e 9 in più.
Proprietà
| Nome | Tipo | Accesso | Descrizione |
|---|---|---|---|
up | Vector3 | Lettura | Restituisce il vettore up del piano, il valore predefinito è (0, 1, 0), questo influisce sulla generazione del piano |
length | double | Lettura | Restituisce la lunghezza dell’aereo. |
width | double | Lettura | Ottiene la larghezza del plane. |
lengthSegments | int | Lettura | Ottiene i segmenti di lunghezza. |
widthSegments | int | Lettura | Ottiene i segmenti di larghezza. |
castShadows | boolean | Lettura | Ottiene se questa geometria può proiettare ombra. |
receiveShadows | boolean | Lettura | Restituisce se questa geometria può ricevere ombra. |
parentNode | Node | Lettura | Ottiene il nodo genitore. |
parentNodes | ArrayList<Node> | Lettura | Ottiene i nodi genitori. |
excluded | boolean | Lettura | Ottiene l’escluso. |
boundingBox | BoundingBox | Lettura | Ottiene la bounding box. |
entityRendererKey | EntityRendererKey | Lettura | Ottiene la chiave del renderer dell’entità. |
scene | Scene | Lettura | Ottiene la scena. |
name | String | Lettura | Restituisce il nome. |
properties | PropertyCollection | Lettura | Ottiene le proprietà. |
Metodi
| Firma | Descrizione |
|---|---|
Plane() | Inizializza una nuova istanza di Plane con dimensione predefinita 1x1. |
Plane(length: double, width: double) | Inizializza una nuova istanza di Plane. |
Plane(name: String, length: double, width: double, lengthSegments: int, widthSegments: int) | Inizializza una nuova istanza di Plane. |
getUp() → Vector3 | Restituisce il vettore up del piano, il valore predefinito è (0, 1, 0), questo influisce sulla generazione del piano / |
setUp(value: Vector3) | Imposta il valore up. |
getLength() → double | Ottiene la lunghezza del plane. |
setLength(value: double) | Imposta il valore della lunghezza. |
getWidth() → double | Restituisce la larghezza del Plane. |
setWidth(value: double) | Imposta il valore della larghezza. |
getLengthSegments() → int | Ottiene i segmenti di lunghezza. |
setLengthSegments(value: int) | Imposta il valore dei segmenti di lunghezza. |
getWidthSegments() → int | Ottiene i segmenti di larghezza. |
setWidthSegments(value: int) | Imposta il valore dei segmenti di larghezza. |
toMesh() → Mesh | Converti l’oggetto corrente in mesh. |
getCastShadows() → boolean | Restituisce se questa geometria può proiettare ombra. |
setCastShadows(value: boolean) | Imposta il valore di cast shadows. |
getReceiveShadows() → boolean | Restituisce se questa geometria può ricevere l’ombra. |
setReceiveShadows(value: boolean) | Imposta il valore di ricezione delle ombre. |
Primitive() | Inizializza una nuova istanza della classe Primitive. |
Primitive(name: String) | Inizializza una nuova istanza della classe Primitive. |
Entity(name: String) | Chiama Entity(name) su questa istanza di Plane. |
getParentNode() → Node | Restituisce il nodo genitore. |
setParentNode(value: Node) | Imposta il valore del nodo genitore. |
getParentNodes() → ArrayList<Node> | Restituisce i nodi padre. |
getExcluded() → boolean | Restituisce gli esclusi. |
setExcluded(value: boolean) | Imposta il valore escluso. |
getBoundingBox() → BoundingBox | Restituisce il riquadro di delimitazione. |
getEntityRendererKey() → EntityRendererKey | Restituisce la chiave del renderer dell’entità. |
SceneObject() | Piano parametrizzato. |
SceneObject(name: String) | Chiama SceneObject(name) su questa istanza di Plane. |
getScene() → Scene | Restituisce la scena. |
A3DObject() | Chiama A3DObject su questa istanza di Plane. |
A3DObject(name: String) | Chiama A3DObject(name) su questa istanza di Plane. |
getName() → String | Restituisce il nome. |
setName(name: String) | Imposta il valore del nome. |
getProperties() → PropertyCollection | Inizializza una nuova istanza di Plane. |
findProperty(name: String) → Property | Chiama findProperty(name) su questa istanza di Plane. |
getProperty(name: String) → Object | Chiama getProperty(name) su questa istanza di Plane. |
setProperty(name: String, value: Object) | Inizializza una nuova istanza di Plane. |
removeProperty(name: String) → boolean | Chiama removeProperty(name) su questa istanza di Plane. |
removeProperty(property: Property) → boolean | Chiama removeProperty(property) su questa istanza di Plane. |