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

MetodoDescrizione
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:

ParametroTipoDescrizione
inputMeshLa 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:

ParametroTipoDescrizione
inputMeshLa mesh da cui estrarre il watermark
passwordjava.lang.StringLa 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:

ParametroTipoDescrizione
inputMeshMesh per codificare un watermark cieco
testojava.lang.StringTesto 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:

ParametroTipoDescrizione
inputMeshMesh per codificare un watermark cieco
testojava.lang.StringTesto da codificare nella mesh
passwordjava.lang.StringPassword 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:

ParametroTipoDescrizione
inputMeshMesh per codificare un watermark cieco
testojava.lang.StringTesto da codificare nella mesh
passwordjava.lang.StringPassword per proteggere il watermark, è opzionale
permanentebooleanIl 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:

ParametroTipoDescrizione
arg0java.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:

ParametroTipoDescrizione
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParametroTipoDescrizione
arg0long
arg1int