public class RvmSaveOptions extends SaveOptions
Scene scene = new Scene();
var box = (new Box()).toMesh();
//node's name is required to export attributes
var boxNode = scene.getRootNode().createChildNode("box", box);
boxNode.setProperty("rvm:Price", 12.0);
boxNode.setProperty("rvm:Weight", 30.0);
var opt = new RvmSaveOptions();
//Properties with rvm: prefix will be exported.
opt.setExportAttributes(true);
opt.setAttributePrefix("rvm:");
opt.setAuthor("Aspose.3D");
opt.setFileNote("Test attribute export");
scene.save("output.rvm", opt);
| Constructor and Description |
|---|
RvmSaveOptions()
Constructor of
RvmSaveOptions |
RvmSaveOptions(FileContentType contentType)
Constructor of
RvmSaveOptions |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAttributeListFile()
Gets the file name of attribute list file, exporter will generate a name based on the .rvm file name when this property is undefined, default value is null.
|
java.lang.String |
getAttributePrefix()
Gets the prefix of which attributes that will be exported, the exported property will contains no prefix, custom properties with different prefix will not be exported, default value is 'rvm:'.
|
java.lang.String |
getAuthor()
Author information, default value is '3d@aspose'
|
java.lang.String |
getCreationTime()
The timestamp that exported this file, default value is current time
|
boolean |
getExportAttributes()
Gets whether to export the attribute list to an external .att file, default value is false.
|
java.lang.String |
getFileNote()
File note in the file header.
|
void |
setAttributeListFile(java.lang.String value)
Sets the file name of attribute list file, exporter will generate a name based on the .rvm file name when this property is undefined, default value is null.
|
void |
setAttributePrefix(java.lang.String value)
Sets the prefix of which attributes that will be exported, the exported property will contains no prefix, custom properties with different prefix will not be exported, default value is 'rvm:'.
|
void |
setAuthor(java.lang.String value)
Author information, default value is '3d@aspose'
|
void |
setCreationTime(java.lang.String value)
The timestamp that exported this file, default value is current time
|
void |
setExportAttributes(boolean value)
Sets whether to export the attribute list to an external .att file, default value is false.
|
void |
setFileNote(java.lang.String value)
File note in the file header.
|
getExportTextures, setExportTexturesgetEncoding, getFileFormat, getFileName, getFileSystem, getFileSystemFactory, getLookupPaths, lookupForFile, setEncoding, setFileName, setFileSystem, setFileSystemFactory, setLookupPathspublic RvmSaveOptions()
RvmSaveOptionspublic RvmSaveOptions(FileContentType contentType)
RvmSaveOptionscontentType - Text or binary RVM file?public java.lang.String getFileNote()
Scene scene = new Scene();
var box = (new Box()).toMesh();
//node's name is required to export attributes
var boxNode = scene.getRootNode().createChildNode("box", box);
boxNode.setProperty("rvm:Price", 12.0);
boxNode.setProperty("rvm:Weight", 30.0);
var opt = new RvmSaveOptions();
//Properties with rvm: prefix will be exported.
opt.setExportAttributes(true);
opt.setAttributePrefix("rvm:");
opt.setAuthor("Aspose.3D");
opt.setFileNote("Test attribute export");
scene.save("output.rvm", opt);
public void setFileNote(java.lang.String value)
value - New value
Example:
The following code shows how to export attribute in RVM.
Scene scene = new Scene();
var box = (new Box()).toMesh();
//node's name is required to export attributes
var boxNode = scene.getRootNode().createChildNode("box", box);
boxNode.setProperty("rvm:Price", 12.0);
boxNode.setProperty("rvm:Weight", 30.0);
var opt = new RvmSaveOptions();
//Properties with rvm: prefix will be exported.
opt.setExportAttributes(true);
opt.setAttributePrefix("rvm:");
opt.setAuthor("Aspose.3D");
opt.setFileNote("Test attribute export");
scene.save("output.rvm", opt);
public java.lang.String getAuthor()
Scene scene = new Scene();
var box = (new Box()).toMesh();
//node's name is required to export attributes
var boxNode = scene.getRootNode().createChildNode("box", box);
boxNode.setProperty("rvm:Price", 12.0);
boxNode.setProperty("rvm:Weight", 30.0);
var opt = new RvmSaveOptions();
//Properties with rvm: prefix will be exported.
opt.setExportAttributes(true);
opt.setAttributePrefix("rvm:");
opt.setAuthor("Aspose.3D");
opt.setFileNote("Test attribute export");
scene.save("output.rvm", opt);
public void setAuthor(java.lang.String value)
value - New value
Example:
The following code shows how to export attribute in RVM.
Scene scene = new Scene();
var box = (new Box()).toMesh();
//node's name is required to export attributes
var boxNode = scene.getRootNode().createChildNode("box", box);
boxNode.setProperty("rvm:Price", 12.0);
boxNode.setProperty("rvm:Weight", 30.0);
var opt = new RvmSaveOptions();
//Properties with rvm: prefix will be exported.
opt.setExportAttributes(true);
opt.setAttributePrefix("rvm:");
opt.setAuthor("Aspose.3D");
opt.setFileNote("Test attribute export");
scene.save("output.rvm", opt);
public java.lang.String getCreationTime()
public void setCreationTime(java.lang.String value)
value - New valuepublic java.lang.String getAttributePrefix()
Scene scene = new Scene();
var box = (new Box()).toMesh();
//node's name is required to export attributes
var boxNode = scene.getRootNode().createChildNode("box", box);
boxNode.setProperty("rvm:Price", 12.0);
boxNode.setProperty("rvm:Weight", 30.0);
var opt = new RvmSaveOptions();
//Properties with rvm: prefix will be exported.
opt.setExportAttributes(true);
opt.setAttributePrefix("rvm:");
opt.setAuthor("Aspose.3D");
opt.setFileNote("Test attribute export");
scene.save("output.rvm", opt);
public void setAttributePrefix(java.lang.String value)
value - New value
Example:
The following code shows how to export attribute in RVM.
Scene scene = new Scene();
var box = (new Box()).toMesh();
//node's name is required to export attributes
var boxNode = scene.getRootNode().createChildNode("box", box);
boxNode.setProperty("rvm:Price", 12.0);
boxNode.setProperty("rvm:Weight", 30.0);
var opt = new RvmSaveOptions();
//Properties with rvm: prefix will be exported.
opt.setExportAttributes(true);
opt.setAttributePrefix("rvm:");
opt.setAuthor("Aspose.3D");
opt.setFileNote("Test attribute export");
scene.save("output.rvm", opt);
public java.lang.String getAttributeListFile()
Scene scene = new Scene();
var box = (new Box()).toMesh();
//node's name is required to export attributes
var boxNode = scene.getRootNode().createChildNode("box", box);
boxNode.setProperty("rvm:Price", 12.0);
boxNode.setProperty("rvm:Weight", 30.0);
var opt = new RvmSaveOptions();
//Properties with rvm: prefix will be exported.
opt.setExportAttributes(true);
opt.setAttributePrefix("rvm:");
opt.setAuthor("Aspose.3D");
opt.setFileNote("Test attribute export");
scene.save("output.rvm", opt);
public void setAttributeListFile(java.lang.String value)
value - New value
Example:
The following code shows how to export attribute in RVM.
Scene scene = new Scene();
var box = (new Box()).toMesh();
//node's name is required to export attributes
var boxNode = scene.getRootNode().createChildNode("box", box);
boxNode.setProperty("rvm:Price", 12.0);
boxNode.setProperty("rvm:Weight", 30.0);
var opt = new RvmSaveOptions();
//Properties with rvm: prefix will be exported.
opt.setExportAttributes(true);
opt.setAttributePrefix("rvm:");
opt.setAuthor("Aspose.3D");
opt.setFileNote("Test attribute export");
scene.save("output.rvm", opt);
public boolean getExportAttributes()
Scene scene = new Scene();
var box = (new Box()).toMesh();
//node's name is required to export attributes
var boxNode = scene.getRootNode().createChildNode("box", box);
boxNode.setProperty("rvm:Price", 12.0);
boxNode.setProperty("rvm:Weight", 30.0);
var opt = new RvmSaveOptions();
//Properties with rvm: prefix will be exported.
opt.setExportAttributes(true);
opt.setAttributePrefix("rvm:");
opt.setAuthor("Aspose.3D");
opt.setFileNote("Test attribute export");
scene.save("output.rvm", opt);
public void setExportAttributes(boolean value)
value - New value
Example:
The following code shows how to export attribute in RVM.
Scene scene = new Scene();
var box = (new Box()).toMesh();
//node's name is required to export attributes
var boxNode = scene.getRootNode().createChildNode("box", box);
boxNode.setProperty("rvm:Price", 12.0);
boxNode.setProperty("rvm:Weight", 30.0);
var opt = new RvmSaveOptions();
//Properties with rvm: prefix will be exported.
opt.setExportAttributes(true);
opt.setAttributePrefix("rvm:");
opt.setAuthor("Aspose.3D");
opt.setFileNote("Test attribute export");
scene.save("output.rvm", opt);