Trasformazione

Inheritance: java.lang.Object, com.aspose.threed.A3DObject

public class Transform extends A3DObject

Una trasformazione contiene informazioni che consentono l’accesso alla traslazione/scalatura/rotazione dell’oggetto o alla matrice di trasformazione al minimo costo Questo è usato dalla trasformazione locale. Example: Il codice seguente mostra come modificare la trasformazione del nodo:

Scene scene = new Scene();
     var boxNode = scene.getRootNode().createChildNode(new Box());
     //place the box at (10, 0, 0)
     boxNode.getTransform().setTranslation(new Vector3(10, 0, 0));

Metodi

MetodoDescrizione
equals(Object arg0)
findProperty(String propertyName)Trova la proprietà.
getClass()
getEulerAngles()Ottiene la rotazione rappresentata in angoli di Eulero, misurata in gradi
getGeometricRotation()Ottiene la rotazione Euler geometrica (misurata in gradi).
getGeometricScaling()Ottiene la scalatura geometrica.
getGeometricTranslation()Ottiene la traslazione geometrica.
getName()Ottiene il nome.
getPostRotation()Ottiene la post-rotazione rappresentata in gradi
getPreRotation()Ottiene la pre-rotazione rappresentata in gradi
getProperties()Ottiene la collezione di tutte le proprietà.
getProperty(String property)Ottieni il valore della proprietà specificata
getRotation()Ottiene la rotazione rappresentata in quaternione.
getRotationOffset()Ottiene l’offset di rotazione
getRotationPivot()Ottiene il perno di rotazione
getScaling()Ottiene la scala
getScalingOffset()Ottiene l’offset di scala
getScalingPivot()Ottiene il perno di scala
getTransformMatrix()Ottiene la matrice di trasformazione.
getTranslation()Ottiene la traslazione
hashCode()
notify()
notifyAll()
removeProperty(Property property)Rimuove una proprietà dinamica.
removeProperty(String property)Rimuove la proprietà specificata identificata per nome
setEulerAngles(Vector3 value)Imposta la rotazione rappresentata in angoli di Eulero, misurata in gradi
setEulerAngles(double rx, double ry, double rz)Imposta gli angoli di Eulero in gradi della trasformazione corrente.
setGeometricRotation(Vector3 value)Imposta la rotazione geometrica di Eulero (misurata in gradi).
setGeometricRotation(double rx, double ry, double rz)Imposta la rotazione geometrica di Eulero (misurata in gradi).
setGeometricScaling(Vector3 value)Imposta la scalatura geometrica.
setGeometricScaling(double sx, double sy, double sz)Imposta la scalatura geometrica.
setGeometricTranslation(Vector3 value)Imposta la traslazione geometrica.
setGeometricTranslation(double x, double y, double z)Imposta la traslazione geometrica.
setName(String value)Imposta il nome.
setPostRotation(Vector3 value)Imposta la post-rotazione rappresentata in gradi
setPostRotation(double rx, double ry, double rz)Imposta la post-rotazione rappresentata in gradi Esempio:
setPreRotation(Vector3 value)Imposta la pre-rotazione rappresentata in gradi
setPreRotation(double rx, double ry, double rz)Imposta la pre-rotazione rappresentata in gradi Esempio:
setProperty(String property, Object value)Imposta il valore della proprietà specificata
setRotation(Quaternion value)Imposta la rotazione rappresentata in quaternione.
setRotation(double rw, double rx, double ry, double rz)Imposta la rotazione (come componenti del quaternione) della trasformazione corrente.
setRotationOffset(Vector3 value)Imposta l’offset di rotazione
setRotationPivot(Vector3 value)Imposta il perno di rotazione
setScale(double sx, double sy, double sz)Imposta la scala della trasformazione corrente.
setScaling(Vector3 value)Imposta la scala
setScalingOffset(Vector3 value)Imposta l’offset di scala
setScalingPivot(Vector3 value)Imposta il perno di scala
setTransformMatrix(Matrix4 value)Imposta la matrice di trasformazione.
setTranslation(Vector3 value)Imposta la traslazione
setTranslation(double tx, double ty, double tz)Imposta la traslazione della trasformazione corrente.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParametroTipoDescrizione
arg0java.lang.Object

Returns: boolean

findProperty(String propertyName)

public Property findProperty(String propertyName)

Trova la proprietà. Può essere una proprietà dinamica (creata con CreateDynamicProperty/SetProperty) o una proprietà nativa (identificata per nome).

Parameters:

ParametroTipoDescrizione
propertyNamejava.lang.StringNome della proprietà.

Returns: Property - The property.

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getEulerAngles()

public Vector3 getEulerAngles()

Ottiene la rotazione rappresentata in angoli di Eulero, misurata in gradi

Returns: Vector3 - the rotation represented in Euler angles, measured in degree Example:

Node node = new Node();
     node.getTransform().setEulerAngles(new Vector3(90, 0, 0));

getGeometricRotation()

public Vector3 getGeometricRotation()

Ottiene la rotazione geometrica di Eulero (misurata in gradi). La trasformazione geometrica influisce solo sulle entità collegate e lascia i nodi figli inalterati. Verrà unita come trasformazione locale quando esporti la trasformazione geometrica in tipi di file che non la supportano.

Returns: Vector3 - the geometric Euler rotation(measured in degree). Geometric transformation only affects the entities attached and leave the child nodes unaffected. It will be merged as local transformation when you export the geometric transformation to file types that does not support it.

getGeometricScaling()

public Vector3 getGeometricScaling()

Ottiene la scala geometrica. La trasformazione geometrica influisce solo sulle entità collegate e lascia i nodi figli inalterati. Verrà unita come trasformazione locale quando si esporta la trasformazione geometrica in tipi di file che non la supportano.

Returns: Vector3 - the geometric scaling. Geometric transformation only affects the entities attached and leave the child nodes unaffected. It will be merged as local transformation when you export the geometric transformation to file types that does not support it. Example:

Node node = new Node();
     node.getTransform.setGeometricScaling(new Vector3(2, 2, 2));

getGeometricTranslation()

public Vector3 getGeometricTranslation()

Ottiene la traslazione geometrica. La trasformazione geometrica influisce solo sulle entità collegate e lascia i nodi figli inalterati. Verrà unita come trasformazione locale quando si esporta la trasformazione geometrica in tipi di file che non la supportano.

Returns: Vector3 - the geometric translation. Geometric transformation only affects the entities attached and leave the child nodes unaffected. It will be merged as local transformation when you export the geometric transformation to file types that does not support it. Example:

Node node = new Node();
     node.getTransform().setGeometricTranslation(new Vector3(10, 0, 0));

getName()

public String getName()

Ottiene il nome.

Returns: java.lang.String - il nome.

getPostRotation()

public Vector3 getPostRotation()

Ottiene la post-rotazione rappresentata in gradi

Returns: Vector3 - the post-rotation represented in degree Example:

Node node = new Node();
     node.getTransform().setPostRotation(new Vector3(90, 0, 0));

getPreRotation()

public Vector3 getPreRotation()

Ottiene la pre-rotazione rappresentata in gradi

Returns: Vector3 - the pre-rotation represented in degree Example:

Node node = new Node();
     node.getTransform().setPreRotation(new Vector3(90, 0, 0));

getProperties()

public PropertyCollection getProperties()

Ottiene la collezione di tutte le proprietà.

Returns: PropertyCollection - the collection of all properties.

getProperty(String property)

public Object getProperty(String property)

Ottieni il valore della proprietà specificata

Parameters:

ParametroTipoDescrizione
proprietàjava.lang.StringNome della proprietà

Returns: java.lang.Object - Il valore della proprietà trovata

getRotation()

public Quaternion getRotation()

Ottiene la rotazione rappresentata in quaternione.

Returns: Quaternion - the rotation represented in quaternion. Example:

Node node = new Node();
     node.getTransform().setRotation(new Quaternion(1, 0, 0, 0));

getRotationOffset()

public Vector3 getRotationOffset()

Ottiene l’offset di rotazione

Returns: Vector3 - the rotation offset

getRotationPivot()

public Vector3 getRotationPivot()

Ottiene il perno di rotazione

Returns: Vector3 - the rotation pivot

getScaling()

public Vector3 getScaling()

Ottiene la scala

Returns: Vector3 - the scaling Example:

Node node = new Node();
     node.getTransform().setScaling(new Vector3(2, 2, 2));

getScalingOffset()

public Vector3 getScalingOffset()

Ottiene l’offset di scala

Returns: Vector3 - the scaling offset

getScalingPivot()

public Vector3 getScalingPivot()

Ottiene il perno di scala

Returns: Vector3 - the scaling pivot

getTransformMatrix()

public Matrix4 getTransformMatrix()

Ottiene la matrice di trasformazione.

Returns: Matrix4 - the transform matrix. Remarks: Assign on this will reset the getTranslation, getScaling and getRotation, the getGeometricRotation, getGeometricScaling and getGeometricTranslation will not be affected. Example:

Node node = new Node();
     node.getTransform().setTransformMatrix(Matrix4.getIdentity());

getTranslation()

public Vector3 getTranslation()

Ottiene la traslazione

Returns: Vector3 - the translation Example:

Node node = new Node();
     node.getTransform().setTranslation(new Vector3(10, 0, 0));

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)

Rimuove una proprietà dinamica.

Parameters:

ParametroTipoDescrizione
propertyPropertyQuale proprietà rimuovere

Returns: boolean - true se la proprietà è stata rimossa con successo

removeProperty(String property)

public boolean removeProperty(String property)

Rimuove la proprietà specificata identificata per nome

Parameters:

ParametroTipoDescrizione
proprietàjava.lang.StringQuale proprietà rimuovere

Returns: boolean - true se la proprietà è stata rimossa con successo

setEulerAngles(Vector3 value)

public void setEulerAngles(Vector3 value)

Imposta la rotazione rappresentata in angoli di Eulero, misurata in gradi

Parameters:

ParametroTipoDescrizione
valueVector3
Node node = new Node();
     node.getTransform().setEulerAngles(new Vector3(90, 0, 0));
``` |

### setEulerAngles(double rx, double ry, double rz) {#setEulerAngles-double-double-double-}

public Transform setEulerAngles(double rx, double ry, double rz)



Imposta gli angoli di Eulero in gradi della trasformazione corrente. **Esempio:**

Node node = new Node(); node.getTransform().setEulerAngles(90, 0, 0);


**Parameters:**
| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| rx | double |  |
| ry | double |  |
| rz | double |  |

**Returns:**
[Transform](../../com.aspose.threed/transform)
### setGeometricRotation(Vector3 value) {#setGeometricRotation-com.aspose.threed.Vector3-}

public void setGeometricRotation(Vector3 value)



Imposta la rotazione Euler geometrica (misurata in gradi). La trasformazione geometrica influisce solo sulle entità collegate e lascia i nodi figli inalterati. Verrà unita come trasformazione locale quando si esporta la trasformazione geometrica in tipi di file che non la supportano.

**Parameters:**
| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| value | [Vector3](../../com.aspose.threed/vector3) | Nuovo valore |

### setGeometricRotation(double rx, double ry, double rz) {#setGeometricRotation-double-double-double-}

public Transform setGeometricRotation(double rx, double ry, double rz)



Imposta la rotazione Euler geometrica (misurata in gradi). La trasformazione geometrica influisce solo sulle entità collegate e lascia i nodi figli inalterati. Verrà unita come trasformazione locale quando si esporta la trasformazione geometrica in tipi di file che non la supportano. **Esempio:**

Node node = new Node(); node.getTransform().setGeometricRotation(90, 0, 0);


**Parameters:**
| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| rx | double |  |
| ry | double |  |
| rz | double |  |

**Returns:**
[Transform](../../com.aspose.threed/transform)
### setGeometricScaling(Vector3 value) {#setGeometricScaling-com.aspose.threed.Vector3-}

public void setGeometricScaling(Vector3 value)



Imposta la scala geometrica. La trasformazione geometrica influisce solo sulle entità collegate e lascia i nodi figli inalterati. Verrà unita come trasformazione locale quando si esporta la trasformazione geometrica in tipi di file che non la supportano.

**Parameters:**
| Parametro | Tipo | Descrizione |
| --- | --- | --- |
|  | value | [Vector3](../../com.aspose.threed/vector3) | Nuovo valore **Esempio:** |

Node node = new Node(); node.getTransform.setGeometricScaling(new Vector3(2, 2, 2));


### setGeometricScaling(double sx, double sy, double sz) {#setGeometricScaling-double-double-double-}

public Transform setGeometricScaling(double sx, double sy, double sz)



Imposta la scala geometrica. La trasformazione geometrica influisce solo sulle entità collegate e lascia i nodi figli inalterati. Verrà unita come trasformazione locale quando si esporta la trasformazione geometrica in tipi di file che non la supportano. **Esempio:**

Node node = new Node(); node.getTransform().setGeometricScaling(2, 2, 2);


**Parameters:**
| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| sx | double |  |
| sy | double |  |
| sz | double |  |

**Returns:**
[Transform](../../com.aspose.threed/transform)
### setGeometricTranslation(Vector3 value) {#setGeometricTranslation-com.aspose.threed.Vector3-}

public void setGeometricTranslation(Vector3 value)



Imposta la traslazione geometrica. La trasformazione geometrica influisce solo sulle entità collegate e lascia i nodi figli inalterati. Verrà unita come trasformazione locale quando si esporta la trasformazione geometrica in tipi di file che non la supportano.

**Parameters:**
| Parametro | Tipo | Descrizione |
| --- | --- | --- |
|  | value | [Vector3](../../com.aspose.threed/vector3) | Nuovo valore **Esempio:** |

Node node = new Node(); node.getTransform().setGeometricTranslation(new Vector3(10, 0, 0));


### setGeometricTranslation(double x, double y, double z) {#setGeometricTranslation-double-double-double-}

public Transform setGeometricTranslation(double x, double y, double z)



Imposta la traslazione geometrica. La trasformazione geometrica influisce solo sulle entità collegate e lascia i nodi figli inalterati. Verrà unita come trasformazione locale quando si esporta la trasformazione geometrica in tipi di file che non la supportano. **Esempio:**

Node node = new Node(); node.getTransform().setGeometricTranslation(10, 0, 0);


**Parameters:**
| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| x | double |  |
| y | double |  |
| z | double |  |

**Returns:**
[Transform](../../com.aspose.threed/transform)
### setName(String value) {#setName-java.lang.String-}

public void setName(String value)



Imposta il nome.

**Parameters:**
| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| valore | java.lang.String | Nuovo valore |

### setPostRotation(Vector3 value) {#setPostRotation-com.aspose.threed.Vector3-}

public void setPostRotation(Vector3 value)



Imposta la post-rotazione rappresentata in gradi

**Parameters:**
| Parametro | Tipo | Descrizione |
| --- | --- | --- |
|  | value | [Vector3](../../com.aspose.threed/vector3) | Nuovo valore **Esempio:** |

Node node = new Node(); node.getTransform().setPostRotation(new Vector3(90, 0, 0));


### setPostRotation(double rx, double ry, double rz) {#setPostRotation-double-double-double-}

public Transform setPostRotation(double rx, double ry, double rz)



Imposta la post-rotazione rappresentata in gradi **Esempio:**

Node node = new Node(); node.getTransform().setPostRotation(90, 0, 0);


**Parameters:**
| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| rx | double |  |
| ry | double |  |
| rz | double |  |

**Returns:**
[Transform](../../com.aspose.threed/transform)
### setPreRotation(Vector3 value) {#setPreRotation-com.aspose.threed.Vector3-}

public void setPreRotation(Vector3 value)



Imposta la pre-rotazione rappresentata in gradi

**Parameters:**
| Parametro | Tipo | Descrizione |
| --- | --- | --- |
|  | value | [Vector3](../../com.aspose.threed/vector3) | Nuovo valore **Esempio:** |

Node node = new Node(); node.getTransform().setPreRotation(new Vector3(90, 0, 0));


### setPreRotation(double rx, double ry, double rz) {#setPreRotation-double-double-double-}

public Transform setPreRotation(double rx, double ry, double rz)



Imposta la pre-rotazione rappresentata in gradi **Esempio:**

Node node = new Node(); node.getTransform().setPreRotation(90, 0, 0);


**Parameters:**
| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| rx | double |  |
| ry | double |  |
| rz | double |  |

**Returns:**
[Transform](../../com.aspose.threed/transform)
### setProperty(String property, Object value) {#setProperty-java.lang.String-java.lang.Object-}

public void setProperty(String property, Object value)



Imposta il valore della proprietà specificata

**Parameters:**
| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| proprietà | java.lang.String | Nome della proprietà |
| valore | java.lang.Object | Il valore della proprietà |

### setRotation(Quaternion value) {#setRotation-com.aspose.threed.Quaternion-}

public void setRotation(Quaternion value)



Imposta la rotazione rappresentata in quaternione.

**Parameters:**
| Parametro | Tipo | Descrizione |
| --- | --- | --- |
|  | value | [Quaternion](../../com.aspose.threed/quaternion) | Nuovo valore **Esempio:** |

Node node = new Node(); node.getTransform().setRotation(new Quaternion(1, 0, 0, 0));


### setRotation(double rw, double rx, double ry, double rz) {#setRotation-double-double-double-double-}

public Transform setRotation(double rw, double rx, double ry, double rz)



Imposta la rotazione (come componenti quaternion) della trasformazione corrente. **Esempio:**

Node node = new Node(); node.getTransform().setRotation(1, 0, 0, 0);


**Parameters:**
| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| rw | double |  |
| rx | double |  |
| ry | double |  |
| rz | double |  |

**Returns:**
[Transform](../../com.aspose.threed/transform)
### setRotationOffset(Vector3 value) {#setRotationOffset-com.aspose.threed.Vector3-}

public void setRotationOffset(Vector3 value)



Imposta l'offset di rotazione

**Parameters:**
| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| value | [Vector3](../../com.aspose.threed/vector3) | Nuovo valore |

### setRotationPivot(Vector3 value) {#setRotationPivot-com.aspose.threed.Vector3-}

public void setRotationPivot(Vector3 value)



Imposta il perno di rotazione

**Parameters:**
| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| value | [Vector3](../../com.aspose.threed/vector3) | Nuovo valore |

### setScale(double sx, double sy, double sz) {#setScale-double-double-double-}

public Transform setScale(double sx, double sy, double sz)



Imposta la scala della trasformazione corrente. **Esempio:**

Node node = new Node(); node.getTransform().setScale(2, 2, 2);


**Parameters:**
| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| sx | double |  |
| sy | double |  |
| sz | double |  |

**Returns:**
[Transform](../../com.aspose.threed/transform)
### setScaling(Vector3 value) {#setScaling-com.aspose.threed.Vector3-}

public void setScaling(Vector3 value)



Imposta la scala

**Parameters:**
| Parametro | Tipo | Descrizione |
| --- | --- | --- |
|  | value | [Vector3](../../com.aspose.threed/vector3) | Nuovo valore **Esempio:** |

Node node = new Node(); node.getTransform().setScaling(new Vector3(2, 2, 2));


### setScalingOffset(Vector3 value) {#setScalingOffset-com.aspose.threed.Vector3-}

public void setScalingOffset(Vector3 value)



Imposta l'offset di scala

**Parameters:**
| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| value | [Vector3](../../com.aspose.threed/vector3) | Nuovo valore |

### setScalingPivot(Vector3 value) {#setScalingPivot-com.aspose.threed.Vector3-}

public void setScalingPivot(Vector3 value)



Imposta il perno di scala

**Parameters:**
| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| value | [Vector3](../../com.aspose.threed/vector3) | Nuovo valore |

### setTransformMatrix(Matrix4 value) {#setTransformMatrix-com.aspose.threed.Matrix4-}

public void setTransformMatrix(Matrix4 value)



Imposta la matrice di trasformazione.

**Parameters:**
| Parametro | Tipo | Descrizione |
| --- | --- | --- |
|  | value | [Matrix4](../../com.aspose.threed/matrix4) | Nuovo valore **Osservazioni:** L'assegnazione a questo ripristinerà i [getTranslation](../../com.aspose.threed/transform\#getTranslation), [getScaling](../../com.aspose.threed/transform\#getScaling) e [getRotation](../../com.aspose.threed/transform\#getRotation), i [getGeometricRotation](../../com.aspose.threed/transform\#getGeometricRotation), [getGeometricScaling](../../com.aspose.threed/transform\#getGeometricScaling) e [getGeometricTranslation](../../com.aspose.threed/transform\#getGeometricTranslation) non saranno influenzati. **Esempio:** |

Node node = new Node(); node.getTransform().setTransformMatrix(Matrix4.getIdentity());


### setTranslation(Vector3 value) {#setTranslation-com.aspose.threed.Vector3-}

public void setTranslation(Vector3 value)



Imposta la traslazione

**Parameters:**
| Parametro | Tipo | Descrizione |
| --- | --- | --- |
|  | value | [Vector3](../../com.aspose.threed/vector3) | Nuovo valore **Esempio:** |

Node node = new Node(); node.getTransform().setTranslation(new Vector3(10, 0, 0));


### setTranslation(double tx, double ty, double tz) {#setTranslation-double-double-double-}

public Transform setTranslation(double tx, double ty, double tz)



Imposta la traslazione della trasformazione corrente. **Esempio:**

Node node = new Node(); node.getTransform().setTranslation(10, 0, 0);


**Parameters:**
| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| tx | double |  |
| ty | double |  |
| tz | double |  |

**Returns:**
[Transform](../../com.aspose.threed/transform)
### toString() {#toString--}

public String toString()





**Returns:**
java.lang.String
### wait() {#wait--}

public final void wait()





### wait(long arg0) {#wait-long-}

public final void wait(long arg0)





**Parameters:**
| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| arg0 | long |  |

### wait(long arg0, int arg1) {#wait-long-int-}

public final void wait(long arg0, int arg1)





**Parameters:**
| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| arg0 | long |  |
| arg1 | int |  |