BooleanOperator
Inheritance: java.lang.Object, com.aspose.threed.A3DObject, com.aspose.threed.SceneObject, com.aspose.threed.Entity
All Implemented Interfaces: com.aspose.threed.IMeshConvertible
public class BooleanOperator extends Entity implements IMeshConvertible
L’operatore booleano consente di applicare un’operazione booleana su due istanze di IMeshConvertible.
Costruttori
| Costruttore | Descrizione |
|---|---|
| BooleanOperator() | Costruttore di BooleanOperator |
| BooleanOperator(BooleanOperation operation, A3DObject first, A3DObject second) | Crea una nuova istanza di BooleanOperator con due operandi |
Metodi
| Metodo | Descrizione |
|---|---|
| equals(Object arg0) | |
| findProperty(String propertyName) | Trova la proprietà. |
| getBoundingBox() | Ottiene il bounding box dell’entità corrente nel suo sistema di coordinate dello spazio oggetto. |
| getClass() | |
| getEntityRendererKey() | Ottiene la chiave del renderer dell’entità registrata nel renderer |
| getExcluded() | Ottiene se escludere questa entità durante l’esportazione. |
| getFirst() | Il primo operando dell’operatore booleano |
| getName() | Ottiene il nome. |
| getOperator() | L’operatore booleano utilizzato nell’operazione per creare la mesh risultante. |
| getParentNode() | Ottiene il primo nodo genitore; se impostato, questa entità verrà staccata dagli altri nodi genitori. |
| getParentNodes() | Ottiene tutti i nodi genitore; un’entità può essere collegata a più nodi genitore per l’instancing della geometria. |
| getProperties() | Ottiene la collezione di tutte le proprietà. |
| getProperty(String property) | Ottieni il valore della proprietà specificata |
| getScene() | Ottiene la scena a cui appartiene questo oggetto |
| getSecond() | Il secondo operando dell’operatore booleano |
| hashCode() | |
| notify() | |
| notifyAll() | |
| removeProperty(Property property) | Rimuove una proprietà dinamica. |
| removeProperty(String property) | Rimuove la proprietà specificata identificata per nome |
| setExcluded(boolean value) | Imposta se escludere questa entità durante l’esportazione. |
| setFirst(BooleanOperand value) | Il primo operando dell’operatore booleano |
| setName(String value) | Imposta il nome. |
| setOperator(BooleanOperation value) | L’operatore booleano utilizzato nell’operazione per creare la mesh risultante. |
| setParentNode(Node value) | Imposta il primo nodo genitore; se impostato, questa entità verrà staccata dagli altri nodi genitori. |
| setProperty(String property, Object value) | Imposta il valore della proprietà specificata |
| setSecond(BooleanOperand value) | Il secondo operando dell’operatore booleano |
| toMesh() | Esegui l’operazione booleana su due operandi |
| toString() | |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) |
BooleanOperator()
public BooleanOperator()
Costruttore di BooleanOperator
BooleanOperator(BooleanOperation operation, A3DObject first, A3DObject second)
public BooleanOperator(BooleanOperation operation, A3DObject first, A3DObject second)
Crea una nuova istanza di BooleanOperator con due operandi
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| operation | BooleanOperation | Tipo di operazione booleana |
| first | A3DObject | Istanza di IMeshConvertible, HalfSpace o Node |
| second | A3DObject | Istanza di IMeshConvertible, HalfSpace o Node |
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| arg0 | java.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:
| Parametro | Tipo | Descrizione |
|---|---|---|
| propertyName | java.lang.String | Nome della proprietà. |
Returns: Property - The property.
getBoundingBox()
public BoundingBox getBoundingBox()
Ottiene il bounding box dell’entità corrente nel suo sistema di coordinate dello spazio oggetto.
Returns: BoundingBox - the bounding box of current entity in its object space coordinate system. Example: The following code shows how to calculate the bounding box of a shape
Entity entity = new Sphere();
entity.setRadius(10);
var bbox = entity.getBoundingBox();
System.out.printf("The bounding box of the entity is %s ~ %s", bbox.getMinimum(), bbox.getMaximum());
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getEntityRendererKey()
public EntityRendererKey getEntityRendererKey()
Ottiene la chiave del renderer dell’entità registrata nel renderer
Returns: EntityRendererKey - the key of the entity renderer registered in the renderer
getExcluded()
public boolean getExcluded()
Ottiene se escludere questa entità durante l’esportazione.
Returns: boolean - se escludere questa entità durante l’esportazione.
getFirst()
public BooleanOperand getFirst()
Il primo operando dell’operatore booleano
Returns: BooleanOperand - The first operand of the Boolean operator
getName()
public String getName()
Ottiene il nome.
Returns: java.lang.String - il nome.
getOperator()
public BooleanOperation getOperator()
L’operatore booleano utilizzato nell’operazione per creare la mesh risultante.
Returns: BooleanOperation - The Boolean operator used in the operation to create the result mesh.
getParentNode()
public Node getParentNode()
Ottiene il primo nodo genitore; se impostato, questa entità verrà staccata dagli altri nodi genitori.
Returns: Node - the first parent node, if set the first parent node, this entity will be detached from other parent nodes.
getParentNodes()
public ArrayList<Node> getParentNodes()
Ottiene tutti i nodi genitore; un’entità può essere collegata a più nodi genitore per l’instancing della geometria.
Returns: java.util.ArrayList<com.aspose.threed.Node> - tutti i nodi genitore, un’entità può essere collegata a più nodi genitore per l’instanziazione della geometria
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:
| Parametro | Tipo | Descrizione |
|---|---|---|
| proprietà | java.lang.String | Nome della proprietà |
Returns: java.lang.Object - Il valore della proprietà trovata
getScene()
public Scene getScene()
Ottiene la scena a cui appartiene questo oggetto
Returns: Scene - the scene that this object belongs to
getSecond()
public BooleanOperand getSecond()
Il secondo operando dell’operatore booleano
Returns: BooleanOperand - The second operand of the Boolean operator
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:
| Parametro | Tipo | Descrizione |
|---|---|---|
| property | Property | Quale 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:
| Parametro | Tipo | Descrizione |
|---|---|---|
| proprietà | java.lang.String | Quale proprietà rimuovere |
Returns: boolean - true se la proprietà è stata rimossa con successo
setExcluded(boolean value)
public void setExcluded(boolean value)
Imposta se escludere questa entità durante l’esportazione.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| valore | boolean | Nuovo valore |
setFirst(BooleanOperand value)
public void setFirst(BooleanOperand value)
Il primo operando dell’operatore booleano
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| value | BooleanOperand | Nuovo valore |
setName(String value)
public void setName(String value)
Imposta il nome.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| valore | java.lang.String | Nuovo valore |
setOperator(BooleanOperation value)
public void setOperator(BooleanOperation value)
L’operatore booleano utilizzato nell’operazione per creare la mesh risultante.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| value | BooleanOperation | Nuovo valore |
setParentNode(Node value)
public void setParentNode(Node value)
Imposta il primo nodo genitore; se impostato, questa entità verrà staccata dagli altri nodi genitori.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| value | Node | Nuovo valore |
setProperty(String property, Object value)
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à |
setSecond(BooleanOperand value)
public void setSecond(BooleanOperand value)
Il secondo operando dell’operatore booleano
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| value | BooleanOperand | Nuovo valore |
toMesh()
public Mesh toMesh()
Esegui l’operazione booleana su due operandi
Returns: Mesh
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final void wait(long arg0)
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| arg0 | long | |
| arg1 | int |