Watermark
Inheritance: java.lang.Object
public class Watermark
Verktyg för att koda/avkoda blind vattenstämpel till/från ett mesh. Anmärkningar: Både Watermark och Watermark kommer att utföra licenskontroll. Användning av provversion kommer att kasta ett undantag, du kan använda TrialException.getSuppressTrialException för att undertrycka undantaget, men det kommer inte att ta bort begränsningen här. En giltig licens krävs för att använda dessa funktioner utan några begränsningar. Exempel: Följande kod visar hur man kodar en blind vattenstämpel i ett mesh och avkodar den.
Mesh mesh = (new Cylinder()).toMesh();
Mesh encodedMesh = Watermark.encodeWatermark(mesh, "Hello", null);
String watermark = Watermark.decodeWatermark(encodedMesh, null);
Metoder
| Metod | Beskrivning |
|---|---|
| decodeWatermark(Mesh input) | Avkoda vattenstämpeln från ett mesh |
| decodeWatermark(Mesh input, String password) | Avkoda vattenstämpeln från ett mesh |
| encodeWatermark(Mesh input, String text) | Koda en text i meshens blinda vattenstämpel. |
| encodeWatermark(Mesh input, String text, String password) | Koda en text i meshens blinda vattenstämpel. |
| encodeWatermark(Mesh input, String text, String password, boolean permanent) | Koda en text i meshens blinda vattenstämpel. |
| 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)
Avkoda vattenstämpeln från ett mesh
Parameters:
| Parameter | Typ | Beskrivning |
|---|---|---|
| input | Mesh | Mesh för att extrahera vattenstämpeln |
Returns: java.lang.String - Blind vattenstämpel eller null om ingen vattenstämpel avkodades.
decodeWatermark(Mesh input, String password)
public static String decodeWatermark(Mesh input, String password)
Avkoda vattenstämpeln från ett mesh
Parameters:
| Parameter | Typ | Beskrivning |
|---|---|---|
| input | Mesh | Mesh för att extrahera vattenstämpeln |
| lösenord | java.lang.String | Lösenordet för att dekryptera vattenstämpeln |
Returns: java.lang.String - Blind vattenstämpel eller null om ingen vattenstämpel avkodades.
encodeWatermark(Mesh input, String text)
public static Mesh encodeWatermark(Mesh input, String text)
Koda en text i meshens blinda vattenstämpel.
Parameters:
| Parameter | Typ | Beskrivning |
|---|---|---|
| input | Mesh | Mesh för att koda en blind vattenstämpel |
| text | java.lang.String | Text att koda till 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)
Koda en text i meshens blinda vattenstämpel.
Parameters:
| Parameter | Typ | Beskrivning |
|---|---|---|
| input | Mesh | Mesh för att koda en blind vattenstämpel |
| text | java.lang.String | Text att koda till mesh |
| lösenord | java.lang.String | Lösenord för att skydda vattenstämpeln, det är valfritt |
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)
Koda en text i meshens blinda vattenstämpel.
Parameters:
| Parameter | Typ | Beskrivning |
|---|---|---|
| input | Mesh | Mesh för att koda en blind vattenstämpel |
| text | java.lang.String | Text att koda till mesh |
| lösenord | java.lang.String | Lösenord för att skydda vattenstämpeln, det är valfritt |
| permanent | boolean | Den permanenta vattenstämpeln kommer inte att skrivas över eller tas bort. |
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:
| Parameter | Typ | Beskrivning |
|---|---|---|
| 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:
| Parameter | Typ | Beskrivning |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| Parameter | Typ | Beskrivning |
|---|---|---|
| arg0 | long | |
| arg1 | int |