Package pyffi :: Package formats :: Package tri :: Class TriFormat :: Class ModifierRecord
[hide private]
[frames] | no frames]

Class ModifierRecord

source code

                  object --+            
                           |            
      utils.graph.DetailNode --+        
                               |        
          utils.graph.GlobalNode --+    
                                   |    
object_models.xml.struct_.StructBase --+
                                       |
                                      TriFormat.ModifierRecord

A modifier replaces the vertices from the base model(Header.vertices) with those in Header.modifier_vertices. Notethat Header.modifier_vertices counts up from the first modifieronwards. For example, if you were to take the 4th vertex to bemodified in the 2nd modifier and the size of the 1st modifierwas 10 vertices, then you would needHeader.modifier_vertices[14]. Therefore,Header.num_modifier_vertices =sum(modifier.num_vertices_to_modify for modifier inHeader.modifiers).
Nested Classes [hide private]

Inherited from object_models.xml.struct_.StructBase: __metaclass__

Instance Methods [hide private]

Inherited from object_models.xml.struct_.StructBase: __init__, __str__, deepcopy, fix_links, get_attribute, get_basic_attribute, get_detail_child_names, get_detail_child_nodes, get_global_child_nodes, get_global_display, get_hash, get_links, get_refs, get_size, get_strings, get_template_attribute, read, replace_global_node, set_attribute, set_basic_attribute, set_template_attribute, tree, write

Inherited from utils.graph.GlobalNode: get_global_child_edge_types, get_global_iterator

Inherited from utils.graph.DetailNode: get_detail_child_edge_types, get_detail_display, get_detail_iterator

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Class Methods [hide private]

Inherited from object_models.xml.struct_.StructBase: get_games, get_versions

Class Variables [hide private]
  _attribute_list = [<pyffi.object_models.xml.StructAttribute ob...
  _attrs = [<pyffi.object_models.xml.StructAttribute object at 0...
  _names = ['name', 'num_vertices_to_modify', 'vertices_to_modif...

Inherited from object_models.xml.struct_.StructBase: arg

Properties [hide private]
  modifier_vertices
The actual modifier vertices (copied from Header.modifier_vertices).
  name
Name of the Modifier.
  num_vertices_to_modify
  vertices_to_modify
List of Vertices To Modify.

Inherited from object: __class__

Class Variable Details [hide private]

_attribute_list

Value:
[<pyffi.object_models.xml.StructAttribute object at 0x4ae2690>,
 <pyffi.object_models.xml.StructAttribute object at 0x4ae2750>,
 <pyffi.object_models.xml.StructAttribute object at 0x4ae27d0>,
 <pyffi.object_models.xml.StructAttribute object at 0x4ae28d0>]

_attrs

Value:
[<pyffi.object_models.xml.StructAttribute object at 0x4ae2690>,
 <pyffi.object_models.xml.StructAttribute object at 0x4ae2750>,
 <pyffi.object_models.xml.StructAttribute object at 0x4ae27d0>,
 <pyffi.object_models.xml.StructAttribute object at 0x4ae28d0>]

_names

Value:
['name',
 'num_vertices_to_modify',
 'vertices_to_modify',
 'modifier_vertices']

Property Details [hide private]

modifier_vertices

The actual modifier vertices (copied from Header.modifier_vertices).
Get Method:
<functools.partial object at 0x4ae6260>

name

Name of the Modifier.
Get Method:
<functools.partial object at 0x4ae3f70>
Set Method:
<functools.partial object at 0x4ae3fc8>

num_vertices_to_modify

Get Method:
<functools.partial object at 0x4ae60a8>
Set Method:
<functools.partial object at 0x4ae6100>

vertices_to_modify

List of Vertices To Modify.
Get Method:
<functools.partial object at 0x4ae61b0>