Watermark

Inheritance: java.lang.Object

public class Watermark

用于对网格进行盲水印编码/解码的实用工具。 备注: WatermarkWatermark 都会执行许可证检查,试用时会抛出异常,您可以使用 TrialException.getSuppressTrialException 来抑制异常,但这不会解除此处的限制。需要有效许可证才能在没有任何限制的情况下使用这些功能。 示例: 以下代码演示了如何将盲水印编码到网格中以及如何解码它。

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

方法

方法描述
decodeWatermark(Mesh input)从网格中解码水印
decodeWatermark(Mesh input, String password)从网格中解码水印
encodeWatermark(Mesh input, String text)将文本编码为网格的盲水印。
encodeWatermark(Mesh input, String text, String password)将文本编码为网格的盲水印。
encodeWatermark(Mesh input, String text, String password, boolean permanent)将文本编码为网格的盲水印。
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)

从网格中解码水印

Parameters:

参数类型描述
inputMesh用于提取水印的网格

Returns: java.lang.String - 盲水印,如果未解码水印则为 null。

decodeWatermark(Mesh input, String password)

public static String decodeWatermark(Mesh input, String password)

从网格中解码水印

Parameters:

参数类型描述
inputMesh用于提取水印的网格
密码java.lang.String用于解密水印的密码

Returns: java.lang.String - 盲水印,如果未解码水印则为 null。

encodeWatermark(Mesh input, String text)

public static Mesh encodeWatermark(Mesh input, String text)

将文本编码为网格的盲水印。

Parameters:

参数类型描述
inputMesh用于编码盲水印的网格
文本java.lang.String要编码到网格的文本

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)

将文本编码为网格的盲水印。

Parameters:

参数类型描述
inputMesh用于编码盲水印的网格
文本java.lang.String要编码到网格的文本
密码java.lang.String用于保护水印的密码,可选

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)

将文本编码为网格的盲水印。

Parameters:

参数类型描述
inputMesh用于编码盲水印的网格
文本java.lang.String要编码到网格的文本
密码java.lang.String用于保护水印的密码,可选
永久布尔永久水印不会被覆盖或删除。

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:

参数类型描述
arg0java.lang.Object

Returns: 布尔

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:

参数类型描述
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

参数类型描述
arg0long
arg1int