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:
| パラメーター | 型 | 説明 |
|---|---|---|
| input | Mesh | 透かしを抽出するメッシュ |
Returns: java.lang.String - 透かしがデコードされていない場合はブラインド透かし、または null。
decodeWatermark(Mesh input, String password)
public static String decodeWatermark(Mesh input, String password)
メッシュから透かしをデコードする
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| input | Mesh | 透かしを抽出するメッシュ |
| パスワード | java.lang.String | 透かしを復号化するためのパスワード |
Returns: java.lang.String - 透かしがデコードされていない場合はブラインド透かし、または null。
encodeWatermark(Mesh input, String text)
public static Mesh encodeWatermark(Mesh input, String text)
テキストをメッシュのブラインド透かしにエンコードします。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| input | Mesh | ブラインド透かしをエンコードするメッシュ |
| テキスト | 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:
| パラメーター | 型 | 説明 |
|---|---|---|
| input | Mesh | ブラインド透かしをエンコードするメッシュ |
| テキスト | 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:
| パラメーター | 型 | 説明 |
|---|---|---|
| input | Mesh | ブラインド透かしをエンコードするメッシュ |
| テキスト | 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:
| パラメーター | 型 | 説明 |
|---|---|---|
| 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:
| パラメーター | 型 | 説明 |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| arg0 | long | |
| arg1 | int |