Ejemplo n.º 1
0
 def addXML(self, depth, output):
     'Add xml for this object.'
     attributes = self.getAttributes()
     if len(attributes) > 0:
         xml_simple_writer.addClosedXMLTag(attributes, depth,
                                           self.__class__.__name__.lower(),
                                           output)
Ejemplo n.º 2
0
 def addXML(self, depth, output):
     "Add xml for this object."
     attributeDictionary = self.getAttributeDictionary()
     if len(attributeDictionary) > 0:
         xml_simple_writer.addClosedXMLTag(attributeDictionary,
                                           self.__class__.__name__.lower(),
                                           depth, output)
Ejemplo n.º 3
0
	def addXML( self, depth, output ):
		"Add xml for this object."
		attributeDictionaryCopy = {}
		if self.xmlElement != None:
			attributeDictionaryCopy = evaluate.getEvaluatedDictionary( [], self.xmlElement )
		euclidean.removeListFromDictionary( attributeDictionaryCopy, matrix4x4.getMatrixKeys() )
		euclidean.removeTrueFromDictionary( attributeDictionaryCopy, 'visible' )
		innerOutput = cStringIO.StringIO()
		self.addXMLInnerSection( depth + 1, innerOutput )
		self.addXMLArchivableObjects( depth + 1, innerOutput )
		if len( innerOutput.getvalue() ) > 0:
			xml_simple_writer.addBeginXMLTag( attributeDictionaryCopy, depth, self.getXMLClassName(), output )
			output.write( innerOutput.getvalue() )
			xml_simple_writer.addEndXMLTag( depth, self.getXMLClassName(), output )
		else:
			xml_simple_writer.addClosedXMLTag( attributeDictionaryCopy, depth, self.getXMLClassName(), output )
Ejemplo n.º 4
0
	def addXML( self, depth, output ):
		"Add xml for this object."
		attributeDictionary = self.getAttributeDictionary()
		if len( attributeDictionary ) > 0:
			xml_simple_writer.addClosedXMLTag( attributeDictionary, depth, self.__class__.__name__.lower(), output )
Ejemplo n.º 5
0
 def addXML(self, depth, output):
     "Add the xml for this object."
     attributes = {}
     self.addToAttributes(attributes)
     xml_simple_writer.addClosedXMLTag(attributes, depth, 'face', output)
Ejemplo n.º 6
0
	def addXML(self, depth, output):
		'Add xml for this object.'
		attributes = self.getAttributes()
		if len(attributes) > 0:
			xml_simple_writer.addClosedXMLTag(attributes, depth, self.__class__.__name__.lower(), output)
Ejemplo n.º 7
0
	def addXML( self, depth, output ):
		"Add the xml for this object."
		attributeDictionary = {}
		self.addToAttributeDictionary( attributeDictionary )
		xml_simple_writer.addClosedXMLTag( attributeDictionary, 'face', depth, output )
Ejemplo n.º 8
0
 def addXML(self, depth, output):
     "Add the xml for this object."
     attributeDictionary = {}
     self.addToAttributeDictionary(attributeDictionary)
     xml_simple_writer.addClosedXMLTag(attributeDictionary, 'face', depth,
                                       output)
Ejemplo n.º 9
0
Archivo: face.py Proyecto: 3DNogi/SFACT
	def addXML(self, depth, output):
		"Add the xml for this object."
		attributes = {}
		self.addToAttributes(attributes)
		xml_simple_writer.addClosedXMLTag( attributes, depth, 'face', output )