Watermark

Inheritance: java.lang.Object

public class Watermark

Утилита для кодирования/декодирования слепого водяного знака в/из сетки. Remarks: Оба Watermark и Watermark выполняют проверку лицензии. Использование в режиме пробной версии вызовет исключение, вы можете использовать TrialException.getSuppressTrialException для подавления исключения, но это не снимет ограничение здесь. Для использования этих функций без ограничений требуется действительная лицензия. Example: Следующий код показывает, как закодировать слепой водяной знак в сетку и декодировать его.

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Пароль для защиты водяного знака, необязательно
постоянныйbooleanПостоянный водяной знак не будет перезаписан или удалён.

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

ПараметрТипОписание
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ПараметрТипОписание
arg0long
arg1int