Node
Enumerations
Enumerations Node class Aspose.3D सीन ग्राफ़ में एक नामित तत्व का प्रतिनिधित्व करती है। प्रत्येक नोड एक रख सकता है Entity (जैसे कि एक Mesh या Camera).
import com.aspose.threed.Scene;
import com.aspose.threed.Node;
Scene scene = new Scene();
// Access the root node via getter
Node root = scene.getRootNode();
// Create a child node
Node child = root.createChildNode("my_node");
// Iterate child nodes via getter
for (Node node : root.getChildNodes()) {
System.out.println(node.getName());
}Enumerations
Enumerations Node अन्य नोड्स के साथ पैरेंट‑चाइल्ड संबंध बनाए रखता है, और एक स्थानीय ट्रांसफ़ॉर्म ले जाता है। नोड्स सीन पदानुक्रम में 3D वस्तुओं को व्यवस्थित करने का प्राथमिक तरीका हैं।.
| Name | Type | Access | Description |
|---|---|---|---|
assetInfo | AssetInfo | Read | Gets the asset info. |
visible | boolean | Read | Gets the visible. |
childNodes | List<Node> | Read | Gets the child nodes. |
entity | Entity | Read | Gets the entity. |
excluded | boolean | Read | Gets the excluded. |
entities | List<Entity> | Read | Gets the entities. |
metaDatas | List<CustomObject> | Read | Gets the meta datas. |
materials | List<Material> | Read | Gets the materials. |
material | Material | Read | Gets the material. |
parentNode | Node | Read | Gets the parent node. |
transform | Transform | Read | Gets the transform. |
globalTransform | GlobalTransform | Read | Gets the global transform. |
boundingBox | BoundingBox | Read | Gets the bounding box. |
scene | Scene | Read | Gets the scene. |
name | String | Read | Gets the name. |
properties | PropertyCollection | Read | Gets the properties. |
Enumerations
सभी नोड एट्रिब्यूट्स को getter/setter मेथड्स के माध्यम से एक्सेस किया जाता है।.
| Signature | Description |
|---|---|
Node() | Calls Node on this Node instance. |
Node(name: String) | Calls Node(name) on this Node instance. |
Node(name: String, entity: Entity) | Calls Node(name, entity) on this Node instance. |
getAssetInfo() → AssetInfo | Returns the asset info. |
setAssetInfo(value: AssetInfo) | Sets the asset info value. |
getVisible() → boolean | Returns the visible. |
setVisible(value: boolean) | Sets the visible value. |
getChildNodes() → List<Node> | Returns the child nodes. |
createChildNode() → Node | Calls createChildNode on this Node instance. |
createChildNode(name: String) → Node | Calls createChildNode(name) on this Node instance. |
createChildNode(entity: Entity) → Node | Calls createChildNode(entity) on this Node instance. |
createChildNode(name: String, entity: Entity) → Node | Calls createChildNode(name, entity) on this Node instance. |
createChildNode(name: String, entity: Entity, material: Material) → Node | Calls createChildNode(name, entity, material) on this Node instance. |
merge(other: Node) | Calls merge(other) on this Node instance. |
getEntity() → Entity | Returns the entity. |
setEntity(value: Entity) | Sets the entity value. |
getExcluded() → boolean | Returns the excluded. |
setExcluded(value: boolean) | Sets the excluded value. |
getEntities() → List<Entity> | Returns the entities. |
getMetaDatas() → List<CustomObject> | Returns the meta datas. |
getMaterials() → List<Material> | Returns the materials. |
getMaterial() → Material | Returns the material. |
setMaterial(value: Material) | Sets the material value. |
getParentNode() → Node | Returns the parent node. |
setParentNode(value: Node) | Sets the parent node value. |
getTransform() → Transform | Returns the transform. |
getGlobalTransform() → GlobalTransform | Returns the global transform. |
evaluateGlobalTransform(includeGeometricTransform: boolean) → Matrix4 | Calls evaluateGlobalTransform(includeGeometricTransform) on this Node instance. |
getChild(index: int) → Node | Calls getChild(index) on this Node instance. |
getChild(name: String) → Node | Calls getChild(name) on this Node instance. |
accept(visitor: NodeVisitor) → boolean | Calls accept(visitor) on this Node instance. |
getBoundingBox() → BoundingBox | Returns the bounding box. |
addEntity(entity: Entity) | Calls addEntity(entity) on this Node instance. |
addChildNode(node: Node) | Calls addChildNode(node) on this Node instance. |
selectSingleObject(query: String) → Object | Calls selectSingleObject(query) on this Node instance. |
selectObjects(query: String) → ArrayList<Object> | Calls selectObjects(query) on this Node instance. |
toString() → String | Calls toString on this Node instance. |
addEntity(entity: Entity, material: Material) | Calls addEntity(entity, material) on this Node instance. |
SceneObject() | Boolean operator allows you to apply Boolean operation on two IMeshConvertible instances. |
getScene() → Scene | Constructor of BooleanOperator. |
A3DObject() | Parameterized Cylinder. It can also be used to represent a cone when one of radiusTop/radiusBottom is zero. |
getName() → String | The segments of the curve. |
setName(name: String) | Constructs a CircleShape profile with specified radius. |
getProperties() → PropertyCollection | Initializes a new instance of Cylinder class. |
findProperty(name: String) → Property | Initializes a new instance of the Bone class. |
getProperty(name: String) → Object | Gets the transform matrix of the node in current pose. |
setProperty(name: String, value: Object) | Gets the width segments. |
removeProperty(name: String) → boolean | Gets flip coordinate system of control points/normal during importing/exporting. |
Enumerations
| Enumerations | रिटर्न टाइप | Enumerations |
|---|---|---|
createChildNode(String name) | Node | दिए गए नाम के साथ एक नया चाइल्ड नोड बनाता है और उसे संलग्न करता है |
createChildNode(String name, Entity entity) | Node | एक चाइल्ड नोड बनाता है और उसमें एक एंटिटी असाइन करता है |
addChildNode(Node node) | void | एक मौजूदा नोड को इस नोड का चाइल्ड के रूप में जोड़ता है |
getChild(String name) | Node | नाम से सीधे चाइल्ड नोड को खोजता है |
addEntity(Entity entity) | void | इस नोड से एक अतिरिक्त एंटिटी संलग्न करता है |
merge(Node node) | void | दूसरे नोड के चाइल्ड और एंटिटीज़ को इस नोड में मर्ज करता है |
evaluateGlobalTransform(boolean withGeometricTransform) | Matrix4 | वर्ल्ड-स्पेस ट्रांसफ़ॉर्म मैट्रिक्स लौटाता है; पास true ज्यामितीय ऑफ़सेट्स शामिल करने के लिए |
getBoundingBox() | BoundingBox | वर्ल्ड स्पेस में नोड का एक्सिस-एलाइन्ड बाउंडिंग बॉक्स गणना करता है |
getProperty(String name) | Object | नाम द्वारा प्रॉपर्टी मान प्राप्त करता है |
findProperty(String name) | Property | नाम द्वारा प्रॉपर्टी खोजता है |
Enumerations
एक सीन बनाएं, एक mesh को नोड से संलग्न करें, और सीन ग्राफ़ को ट्रैवर्स करें:
import com.aspose.threed.Scene;
import com.aspose.threed.Node;
import com.aspose.threed.*;
Scene scene = new Scene();
Mesh mesh = new Mesh();
mesh.getControlPoints().add(new Vector4(0, 0, 0, 1));
mesh.getControlPoints().add(new Vector4(1, 0, 0, 1));
mesh.getControlPoints().add(new Vector4(0.5, 1, 0, 1));
mesh.createPolygon(0, 1, 2);
// Attach mesh to a child node
Node node = scene.getRootNode().createChildNode("triangle", mesh);
// Traverse child nodes using getter
for (Node child : scene.getRootNode().getChildNodes()) {
Entity entity = child.getEntity();
if (entity != null) {
System.out.println("Node '" + child.getName() + "': " + entity.getClass().getSimpleName());
System.out.println(" Excluded: " + child.getExcluded());
}
}