Sphere
Panoramica
Sphere è una classe in Aspose.3D FOSS per Java. Eredita da: Geometry, IMeshConvertible.
Sfera parametrizzata.
Questa classe fornisce 60 metodi per lavorare con oggetti Sphere nei programmi Java. I metodi disponibili includono: A3DObject, Entity, Geometry, SceneObject, Sphere, addDeformer, addElement, createElement, createElementUV, findProperty, getBoundingBox, getCastShadows, e 39 metodi aggiuntivi. Tutti i membri pubblici sono accessibili a qualsiasi applicazione Java dopo l’installazione del pacchetto Aspose.3D FOSS per Java. Proprietà: boundingBox, castShadows, controlPoints, deformers, deformers2, entityRendererKey, e 16 in più.
Proprietà
| Nome | Tipo | Accesso | Descrizione |
|---|---|---|---|
widthSegments | int | Lettura | Ottiene o imposta i segmenti di larghezza. |
heightSegments | int | Lettura | Ottiene o imposta i segmenti di altezza. |
phiStart | double | Lettura | Ottiene o imposta phi start. |
phiLength | double | Lettura | Ottiene o imposta la lunghezza di phi. |
thetaStart | double | Lettura | Ottiene o imposta theta start. |
thetaLength | double | Lettura | Ottiene o imposta la lunghezza di theta. |
radius | double | Lettura | Ottiene o imposta il raggio della sfera. |
visible | boolean | Lettura | Ottiene il visibile. |
castShadows | boolean | Lettura | Ottiene le ombre proiettate. |
receiveShadows | boolean | Lettura | Ottiene le ombre ricevute. |
controlPoints | java.util.List<Vector4> | Lettura | Ottiene i punti di controllo. |
vertexElements | java.util.List<VertexElement> | Lettura | Ottiene gli elementi dei vertici. |
deformers | java.util.List<Deformer> | Lettura | Ottiene i deformatori. |
deformers2 | java.util.Collection<T> | Lettura | Ottiene i deformers2. |
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 il bounding box. |
entityRendererKey | EntityRendererKey | Lettura | Ottiene la chiave del renderer dell’entità. |
scene | Scene | Lettura | Ottiene la scena. |
name | String | Lettura | Ottiene il nome. |
properties | PropertyCollection | Lettura | Ottiene le proprietà. |
Metodi
| Firma | Descrizione |
|---|---|
Sphere() | Inizializza una nuova istanza di Sphere con raggio predefinito 1. |
Sphere(radius: double) | Inizializza una nuova istanza della classe Sphere con raggio specificato. |
Sphere(radius: double, widthSegments: int, heightSegments: int) | Inizializza una nuova istanza della classe Sphere con raggio, segmenti di larghezza e segmenti di altezza specificati. |
Sphere(name: String, radius: double, widthSegments: int, heightSegments: int, phiStart: double, phiLength: double, thetaStart: double, thetaLength: double) | Inizializza una nuova istanza della classe Sphere. |
getWidthSegments() → int | Ottiene o imposta i segmenti di larghezza. |
setWidthSegments(value: int) | Imposta il valore dei segmenti di larghezza. |
getHeightSegments() → int | Ottiene o imposta i segmenti di altezza. |
setHeightSegments(value: int) | Imposta il valore dei segmenti di altezza. |
getPhiStart() → double | Ottiene o imposta l’inizio di phi. |
setPhiStart(value: double) | Imposta il valore iniziale di phi. |
getPhiLength() → double | Ottiene o imposta la lunghezza di phi. |
setPhiLength(value: double) | Imposta il valore della lunghezza phi. |
getThetaStart() → double | Ottiene o imposta l’inizio di theta. |
setThetaStart(value: double) | Imposta il valore iniziale di theta. |
getThetaLength() → double | Ottiene o imposta la lunghezza di theta. |
setThetaLength(value: double) | Imposta il valore della lunghezza theta. |
getRadius() → double | Ottiene o imposta il raggio della sfera. |
setRadius(value: double) | Imposta il valore del raggio. |
toMesh() → Mesh | Converti l’oggetto corrente in mesh. |
Geometry() | Chiama Geometry su questa istanza di Sphere. |
Geometry(name: String) | Chiama Geometry(name) su questa istanza di Sphere. |
getVisible() → boolean | Restituisce il visible. |
setVisible(value: boolean) | Imposta il valore visibile. |
getCastShadows() → boolean | Restituisce le ombre proiettate. |
setCastShadows(value: boolean) | Imposta il valore di cast shadows. |
getReceiveShadows() → boolean | Restituisce le ombre ricevute. |
setReceiveShadows(value: boolean) | Inizializza una nuova istanza della classe Sphere. |
getControlPoints() → java.util.List<Vector4> | Restituisce i punti di controllo. |
getVertexElements() → java.util.List<VertexElement> | Restituisce gli elementi dei vertici. |
getDeformers() → java.util.List<Deformer> | Restituisce i deformatori. |
getElement(type: VertexElementType) → VertexElement | Chiama getElement(type) su questa istanza di Sphere. |
createElement(type: VertexElementType) → VertexElement | Ottiene o imposta i segmenti di altezza. |
createElement(type: VertexElementType, mappingMode: MappingMode, referenceMode: ReferenceMode) → VertexElement | Chiama createElement(type, mappingMode, referenceMode) su questa istanza di Sphere. |
addElement(element: VertexElement) | Ottiene o imposta l’inizio di theta. |
addDeformer(deformer: Deformer) | Aggiunge un deformatore a questa geometria e imposta il riferimento al proprietario. |
getVertexElementOfUV(mapping: TextureMapping) → VertexElementUV | Chiama getVertexElementOfUV(mapping) su questa istanza di Sphere. |
createElementUV(mapping: TextureMapping) → VertexElementUV | Chiama createElementUV(mapping) su questa istanza di Sphere. |
createElementUV(mapping: TextureMapping, mappingMode: MappingMode, referenceMode: ReferenceMode) → VertexElementUV | Chiama createElementUV(mapping, mappingMode, referenceMode) su questa istanza di Sphere. |
getDeformers2() → java.util.Collection<T> | Restituisce i deformers2. |
Entity(name: String) | Chiama Entity(name) su questa istanza di Sphere. |
getParentNode() → Node | Inizializza una nuova istanza di Sphere con raggio predefinito 1. |
setParentNode(value: Node) | Imposta il valore del nodo genitore. |
getParentNodes() → ArrayList<Node> | Restituisce i nodi genitore. |
getExcluded() → boolean | Restituisce gli esclusi. |
setExcluded(value: boolean) | Imposta il valore escluso. |
getBoundingBox() → BoundingBox | Restituisce il rettangolo di delimitazione. |
getEntityRendererKey() → EntityRendererKey | Restituisce la chiave del renderer dell’entità. |
SceneObject() | Sfera parametrizzata. |
SceneObject(name: String) | Chiama SceneObject(name) su questa istanza di Sphere. |
getScene() → Scene | Restituisce la scena. |
A3DObject() | Chiama A3DObject su questa istanza di Sphere. |
A3DObject(name: String) | Chiama A3DObject(name) su questa istanza di Sphere. |
getName() → String | Restituisce il nome. |
setName(name: String) | Imposta il valore del nome. |
getProperties() → PropertyCollection | Inizializza una nuova istanza della classe Sphere con il raggio specificato. |
findProperty(name: String) → Property | Chiama findProperty(name) su questa istanza di Sphere. |
getProperty(name: String) → Object | Chiama getProperty(name) su questa istanza di Sphere. |
setProperty(name: String, value: Object) | Imposta il valore della proprietà. |
removeProperty(name: String) → boolean | Chiama removeProperty(name) su questa istanza di Sphere. |
removeProperty(property: Property) → boolean | Chiama removeProperty(property) su questa istanza di Sphere. |