Watermark

Inheritance: java.lang.Object

public class Watermark

Utilitaire pour encoder/décoder un filigrane aveugle vers/dé un maillage. Remarques: Les deux Watermark et Watermark effectueront une vérification de licence. L’utilisation en version d’essai déclenchera une exception, vous pouvez utiliser TrialException.getSuppressTrialException pour supprimer l’exception, mais cela ne lèvera pas la restriction ici. Une licence valide est requise pour utiliser ces fonctionnalités sans aucune restriction. Exemple: Le code suivant montre comment encoder un filigrane aveugle dans un maillage et le décoder.

Mesh mesh = (new Cylinder()).toMesh();
     Mesh encodedMesh = Watermark.encodeWatermark(mesh, "Hello", null);
     String watermark = Watermark.decodeWatermark(encodedMesh, null);

Méthodes

MéthodeDescription
decodeWatermark(Mesh input)Décoder le filigrane d’un maillage
decodeWatermark(Mesh input, String password)Décoder le filigrane d’un maillage
encodeWatermark(Mesh input, String text)Encoder un texte dans le filigrane aveugle du maillage.
encodeWatermark(Mesh input, String text, String password)Encoder un texte dans le filigrane aveugle du maillage.
encodeWatermark(Mesh input, String text, String password, boolean permanent)Encoder un texte dans le filigrane aveugle du maillage.
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)

Décoder le filigrane d’un maillage

Parameters:

ParamètreTypeDescription
inputMeshLe maillage pour extraire le filigrane

Returns: java.lang.String - Filigrane aveugle ou null si aucun filigrane n’est décodé.

decodeWatermark(Mesh input, String password)

public static String decodeWatermark(Mesh input, String password)

Décoder le filigrane d’un maillage

Parameters:

ParamètreTypeDescription
inputMeshLe maillage pour extraire le filigrane
mot de passejava.lang.StringLe mot de passe pour déchiffrer le filigrane

Returns: java.lang.String - Filigrane aveugle ou null si aucun filigrane n’est décodé.

encodeWatermark(Mesh input, String text)

public static Mesh encodeWatermark(Mesh input, String text)

Encoder un texte dans le filigrane aveugle du maillage.

Parameters:

ParamètreTypeDescription
inputMeshMaillage pour encoder un filigrane aveugle
textjava.lang.StringTexte à encoder dans le maillage

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)

Encoder un texte dans le filigrane aveugle du maillage.

Parameters:

ParamètreTypeDescription
inputMeshMaillage pour encoder un filigrane aveugle
textjava.lang.StringTexte à encoder dans le maillage
mot de passejava.lang.StringMot de passe pour protéger le filigrane, il est optionnel

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)

Encoder un texte dans le filigrane aveugle du maillage.

Parameters:

ParamètreTypeDescription
inputMeshMaillage pour encoder un filigrane aveugle
textjava.lang.StringTexte à encoder dans le maillage
mot de passejava.lang.StringMot de passe pour protéger le filigrane, il est optionnel
permanentbooleanLe filigrane permanent ne sera pas écrasé ni supprimé.

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:

ParamètreTypeDescription
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:

ParamètreTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParamètreTypeDescription
arg0long
arg1int