#include
<class_material_i_o_1_1_x_m_l_material_writer.h>
Public Member Functions |
|
goodToWriteOut () | |
Subclasses if needed will override it and
return true for materials which should not be written out. |
|
writeMaterials () | |
The method will be overrided by subclass to
do the special writer. |
|
includeThisMaterialInSave () | |
write () | |
Override this method in derived classes.
|
|
updateFileParameters () | |
Given a material, visit all parameters that
refer to a filename and if the filename is relative to the
oldCompanionDir, it will be changed to be relative to the
newCompanionDir. |
|
postWrite () | |
Visit all materials and update all file
parameters that refer to the old companion directory. |
MaterialIO.XMLMaterialWriter.goodToWriteOut | ( | ) |
Subclasses if needed will override it and return true for materials which should not be written out.
Reimplemented in EnvironmentMaterialIO.XMLEnvironmentMaterialWriter.
MaterialIO.XMLMaterialWriter.writeMaterials | ( | ) |
The method will be overrided by subclass to do the special writer.
Reimplemented in EnvironmentMaterialIO.XMLEnvironmentMaterialWriter.
MaterialIO.XMLMaterialWriter.includeThisMaterialInSave | ( | ) |
MaterialIO.XMLMaterialWriter.write | ( | ) |
Override this method in derived classes.
This method is responsible for writing the feature's data (stored in the document), into the provided output. It should return True if the write was successful; False otherwise.
Reimplemented from FeatureWriter.FeatureWriter.
MaterialIO.XMLMaterialWriter.updateFileParameters | ( | ) |
Given a material, visit all parameters that refer to a filename and if the filename is relative to the oldCompanionDir, it will be changed to be relative to the newCompanionDir.
# Todo: Move this code to CompanionFeatureIO
MaterialIO.XMLMaterialWriter.postWrite | ( | ) |
Visit all materials and update all file parameters that refer to the old companion directory.
They should refer to the new companion directory instead.
Reimplemented from FeatureWriter.FeatureWriter.
Reimplemented in EnvironmentMaterialIO.XMLEnvironmentMaterialWriter.