Watermark
Inheritance: java.lang.Object
public class Watermark
Utility per codificare/decodificare watermark cieco da/a una mesh. Osservazioni: Sia Watermark che Watermark eseguiranno il controllo della licenza. L’uso in modalità trial genererà un’eccezione; è possibile utilizzare TrialException.getSuppressTrialException per sopprimere l’eccezione, ma ciò non rimuoverà la restrizione. È necessaria una licenza valida per utilizzare queste funzionalità senza restrizioni. Esempio: Il codice seguente mostra come codificare un watermark cieco in una mesh e decodificarlo.
Mesh mesh = (new Cylinder()).toMesh();
Mesh encodedMesh = Watermark.encodeWatermark(mesh, "Hello", null);
String watermark = Watermark.decodeWatermark(encodedMesh, null);
Metodi
| Metodo | Descrizione |
|---|---|
| decodeWatermark(Mesh input) | Decodifica il watermark da una mesh |
| decodeWatermark(Mesh input, String password) | Decodifica il watermark da una mesh |
| encodeWatermark(Mesh input, String text) | Codifica un testo nel watermark cieco della mesh. |
| encodeWatermark(Mesh input, String text, String password) | Codifica un testo nel watermark cieco della mesh. |
| encodeWatermark(Mesh input, String text, String password, boolean permanent) | Codifica un testo nel watermark cieco della mesh. |
| equals(Object arg0) | |
| getClass() | |
| hashCode() | |
| notify() | |
| notifyAll() | |
| toString() | |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) |
decodeWatermark(Mesh input)
public static String decodeWatermark(Mesh input)
Decodifica il watermark da una mesh
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| input | Mesh | La mesh da cui estrarre il watermark |
Returns: java.lang.String - Watermark cieco o null se nessun watermark è stato decodificato.
decodeWatermark(Mesh input, String password)
public static String decodeWatermark(Mesh input, String password)
Decodifica il watermark da una mesh
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| input | Mesh | La mesh da cui estrarre il watermark |
| password | java.lang.String | La password per decifrare il watermark |
Returns: java.lang.String - Watermark cieco o null se nessun watermark è stato decodificato.
encodeWatermark(Mesh input, String text)
public static Mesh encodeWatermark(Mesh input, String text)
Codifica un testo nel watermark cieco della mesh.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| input | Mesh | Mesh per codificare un watermark cieco |
| testo | java.lang.String | Testo da codificare nella mesh |
Returns: Mesh - A new mesh instance with blind watermark encoded Remarks: Both Watermark and Watermark will perform license check Trial usage will throw exception, you can use TrialException.getSuppressTrialException to suppress the exception, but it will not lift the restriction here. A valid license is required to use these features without any restrictions. Example: The following code shows how to encode a blind watermark into a mesh and save to ply file
Mesh mesh = (new Cylinder()).toMesh();
Mesh encodedMesh = Watermark.encodeWatermark(mesh, "Hello");
new Scene(encodedMesh).save("test.ply");
encodeWatermark(Mesh input, String text, String password)
public static Mesh encodeWatermark(Mesh input, String text, String password)
Codifica un testo nel watermark cieco della mesh.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| input | Mesh | Mesh per codificare un watermark cieco |
| testo | java.lang.String | Testo da codificare nella mesh |
| password | java.lang.String | Password per proteggere il watermark, è opzionale |
Returns: Mesh - A new mesh instance with blind watermark encoded Remarks: Both Watermark and Watermark will perform license check Trial usage will throw exception, you can use TrialException.getSuppressTrialException to suppress the exception, but it will not lift the restriction here. A valid license is required to use these features without any restrictions. Example: The following code shows how to encode a blind watermark into a mesh and save to ply file
Mesh mesh = (new Cylinder()).toMesh();
var encodedMesh = Watermark.encodeWatermark(mesh, "Hello", "password");
new Scene(encodedMesh).save("test.ply");
encodeWatermark(Mesh input, String text, String password, boolean permanent)
public static Mesh encodeWatermark(Mesh input, String text, String password, boolean permanent)
Codifica un testo nel watermark cieco della mesh.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| input | Mesh | Mesh per codificare un watermark cieco |
| testo | java.lang.String | Testo da codificare nella mesh |
| password | java.lang.String | Password per proteggere il watermark, è opzionale |
| permanente | boolean | Il watermark permanente non sarà sovrascritto né rimosso. |
Returns: Mesh - A new mesh instance with blind watermark encoded Remarks: Both Watermark and Watermark will perform license check Trial usage will throw exception, you can use TrialException.getSuppressTrialException to suppress the exception, but it will not lift the restriction here. A valid license is required to use these features without any restrictions. Example: The following code shows how to encode a blind watermark into a mesh and save to ply file
Mesh mesh = (new Cylinder()).toMesh();
var encodedMesh = Watermark.encodeWatermark(mesh, "Hello", "password");
new Scene(encodedMesh).save("test.ply");
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| arg0 | java.lang.Object |
Returns: boolean
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
hashCode()
public native int hashCode()
Returns: int
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
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 |