Sphere

Przegląd

Sphere jest klasą w Aspose.3D FOSS dla Java. Dziedziczy po: Geometry, IMeshConvertible.

Sfera parametryzowana.

Ta klasa udostępnia 60 metod do pracy z obiektami Sphere w programach Java. Dostępne metody obejmują: A3DObject, Entity, Geometry, SceneObject, Sphere, addDeformer, addElement, createElement, createElementUV, findProperty, getBoundingBox, getCastShadows oraz 39 dodatkowych metod. Wszystkie publiczne członki są dostępne dla każdej aplikacji Java po zainstalowaniu pakietu Aspose.3D FOSS dla Java. Właściwości: boundingBox, castShadows, controlPoints, deformers, deformers2, entityRendererKey oraz 16 kolejnych.

Właściwości

NazwaTypDostępOpis
widthSegmentsintOdczytPobiera lub ustawia segmenty szerokości.
heightSegmentsintOdczytPobiera lub ustawia segmenty wysokości.
phiStartdoubleOdczytPobiera lub ustawia początek phi.
phiLengthdoubleOdczytPobiera lub ustawia długość phi.
thetaStartdoubleOdczytPobiera lub ustawia początek kąta theta.
thetaLengthdoubleOdczytPobiera lub ustawia długość theta.
radiusdoubleOdczytPobiera lub ustawia promień sfery.
visiblebooleanOdczytPobiera widoczny.
castShadowsbooleanOdczytPobiera rzucane cienie.
receiveShadowsbooleanOdczytPobiera wartość określającą, czy obiekt otrzymuje cienie.
controlPointsjava.util.List<Vector4>OdczytPobiera punkty kontrolne.
vertexElementsjava.util.List<VertexElement>OdczytPobiera elementy wierzchołków.
deformersjava.util.List<Deformer>OdczytPobiera deformery.
deformers2java.util.Collection<T>OdczytPobiera deformers2.
parentNodeNodeOdczytZwraca węzeł nadrzędny.
parentNodesArrayList<Node>OdczytZwraca węzły nadrzędne.
excludedbooleanOdczytPobiera wykluczone.
boundingBoxBoundingBoxOdczytPobiera prostokąt ograniczający.
entityRendererKeyEntityRendererKeyOdczytPobiera klucz renderera encji.
sceneSceneOdczytPobiera scenę.
nameStringOdczytPobiera nazwę.
propertiesPropertyCollectionOdczytPobiera właściwości.

Metody

SygnaturaOpis
Sphere()Inicjalizuje nową instancję klasy Sphere z domyślnym promieniem 1.
Sphere(radius: double)Inicjalizuje nową instancję klasy Sphere z określonym promieniem.
Sphere(radius: double, widthSegments: int, heightSegments: int)Inicjalizuje nową instancję klasy Sphere z określonym radius, width segments oraz height segments.
Sphere(name: String, radius: double, widthSegments: int, heightSegments: int, phiStart: double, phiLength: double, thetaStart: double, thetaLength: double)Inicjalizuje nową instancję klasy Sphere.
getWidthSegments() → intPobiera lub ustawia segmenty szerokości.
setWidthSegments(value: int)Ustawia wartość segmentów szerokości.
getHeightSegments() → intPobiera lub ustawia segmenty wysokości.
setHeightSegments(value: int)Ustawia wartość segmentów wysokości.
getPhiStart() → doublePobiera lub ustawia początkowy phi.
setPhiStart(value: double)Ustawia początkową wartość phi.
getPhiLength() → doublePobiera lub ustawia długość phi.
setPhiLength(value: double)Ustawia wartość długości phi.
getThetaStart() → doublePobiera lub ustawia początek theta.
setThetaStart(value: double)Ustawia początkową wartość theta.
getThetaLength() → doublePobiera lub ustawia długość theta.
setThetaLength(value: double)Ustawia wartość długości theta.
getRadius() → doublePobiera lub ustawia promień sfery.
setRadius(value: double)Ustawia wartość promienia.
toMesh() → MeshKonwertuj bieżący obiekt na siatkę.
Geometry()Wywołuje Geometry na tej instancji Sphere.
Geometry(name: String)Wywołuje Geometry(name) na tej instancji Sphere.
getVisible() → booleanZwraca widoczne.
setVisible(value: boolean)Ustawia widoczną wartość.
getCastShadows() → booleanZwraca rzucane cienie.
setCastShadows(value: boolean)Ustawia wartość rzucania cieni.
getReceiveShadows() → booleanZwraca odbierane cienie.
setReceiveShadows(value: boolean)Inicjalizuje nową instancję klasy Sphere.
getControlPoints() → java.util.List<Vector4>Zwraca punkty kontrolne.
getVertexElements() → java.util.List<VertexElement>Zwraca elementy wierzchołków.
getDeformers() → java.util.List<Deformer>Zwraca deformatory.
getElement(type: VertexElementType) → VertexElementWywołuje getElement(type) na tej instancji klasy Sphere.
createElement(type: VertexElementType) → VertexElementPobiera lub ustawia segmenty wysokości.
createElement(type: VertexElementType, mappingMode: MappingMode, referenceMode: ReferenceMode) → VertexElementWywołuje createElement(type, mappingMode, referenceMode) na tej instancji klasy Sphere.
addElement(element: VertexElement)Pobiera lub ustawia początkowy kąt theta.
addDeformer(deformer: Deformer)Dodaje deformer do tej geometrii i ustawia odwołanie do właściciela.
getVertexElementOfUV(mapping: TextureMapping) → VertexElementUVWywołuje getVertexElementOfUV(mapping) na tej instancji Sphere.
createElementUV(mapping: TextureMapping) → VertexElementUVWywołuje createElementUV(mapping) na tej instancji Sphere.
createElementUV(mapping: TextureMapping, mappingMode: MappingMode, referenceMode: ReferenceMode) → VertexElementUVWywołuje createElementUV(mapping, mappingMode, referenceMode) na tej instancji Sphere.
getDeformers2() → java.util.Collection<T>Zwraca deformers2.
Entity(name: String)Wywołuje Entity(name) na tej instancji Sphere.
getParentNode() → NodeInicjalizuje nową instancję Sphere z domyślnym promieniem 1.
setParentNode(value: Node)Ustawia wartość węzła nadrzędnego.
getParentNodes() → ArrayList<Node>Zwraca węzły nadrzędne.
getExcluded() → booleanZwraca wykluczone.
setExcluded(value: boolean)Ustawia wykluczoną wartość.
getBoundingBox() → BoundingBoxZwraca ramkę ograniczającą.
getEntityRendererKey() → EntityRendererKeyZwraca klucz renderera encji.
SceneObject()Sfera parametryzowana.
SceneObject(name: String)Wywołuje SceneObject(name) na tej instancji Sphere.
getScene() → SceneZwraca scenę.
A3DObject()Wywołuje A3DObject na tej instancji Sphere.
A3DObject(name: String)Wywołuje A3DObject(name) na tej instancji Sphere.
getName() → StringZwraca nazwę.
setName(name: String)Ustawia wartość nazwy.
getProperties() → PropertyCollectionInicjalizuje nową instancję klasy Sphere z określonym promieniem.
findProperty(name: String) → PropertyWywołuje findProperty(name) na tej instancji klasy Sphere.
getProperty(name: String) → ObjectWywołuje getProperty(name) na tej instancji Sphere.
setProperty(name: String, value: Object)Ustawia wartość właściwości.
removeProperty(name: String) → booleanWywołuje removeProperty(name) na tej instancji Sphere.
removeProperty(property: Property) → booleanWywołuje removeProperty(property) na tej instancji Sphere.

Zobacz także

 Polski