Package pyffi :: Package formats :: Package nif :: Class NifFormat :: Class bhkMoppBvTreeShape
[hide private]
[frames] | no frames]

Class bhkMoppBvTreeShape

source code

                  object --+                                            
                           |                                            
      utils.graph.DetailNode --+                                        
                               |                                        
          utils.graph.GlobalNode --+                                    
                                   |                                    
object_models.xml.struct_.StructBase --+                                
                                       |                                
                     NifFormat._NiObject --+                            
                                           |                            
                          NifFormat.NiObject --+                        
                                               |                        
                         NifFormat._bhkRefObject --+                    
                                                   |                    
                              NifFormat.bhkRefObject --+                
                                                       |                
                               NifFormat.bhkSerializable --+            
                                                           |            
                                          NifFormat.bhkShape --+        
                                                               |        
                                        NifFormat.bhkBvTreeShape --+    
                                                                   |    
                                       NifFormat._bhkMoppBvTreeShape --+
                                                                       |
                                                                      NifFormat.bhkMoppBvTreeShape

Nested Classes [hide private]

Inherited from object_models.xml.struct_.StructBase: __metaclass__

Instance Methods [hide private]
 
get_mass_center_inertia(self, density=1, solid=True)
Return mass, center of gravity, and inertia tensor.
source code
 
update_origin_scale(self)
Update scale and origin.
source code
 
update_mopp(self)
Update the MOPP data, scale, and origin, and welding info.
source code
 
update_mopp_welding(self)
Update the MOPP data, scale, and origin, and welding info.
source code
 
_makeSimpleMopp(self)
Make a simple mopp.
source code
 
_moppCeil(self, v) source code
 
_moppFloor(self, v) source code
 
split_triangles(self, ts, bbox, dir=0)
Direction 0=X, 1=Y, 2=Z
source code
 
mopp_from_tree(self, tree) source code
 
parse_mopp(self, start=0, depth=0, toffset=0, verbose=False)
The mopp data is printed to the debug channel while parsed.
source code

Inherited from bhkRefObject: get_shape_mass_center_inertia

Inherited from NiObject: apply_scale, find, find_chain, is_interchangeable, tree

Inherited from NiObject (private): _validateTree

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, 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...

Inherited from _bhkMoppBvTreeShape (private): _attrs, _has_links, _has_refs, _names

Inherited from bhkSerializable (private): _games, _is_template

Inherited from object_models.xml.struct_.StructBase: arg

Properties [hide private]

Inherited from _bhkMoppBvTreeShape: material, mopp_data, mopp_data_size, old_mopp_data, origin, scale, shape, unknown_8_bytes, unknown_float

Inherited from object: __class__

Method Details [hide private]

update_mopp(self)

source code 

Update the MOPP data, scale, and origin, and welding info.

@deprecated: use update_mopp_welding instead

parse_mopp(self, start=0, depth=0, toffset=0, verbose=False)

source code 

The mopp data is printed to the debug channel while parsed. Returns list of indices into mopp data of the bytes processed and a list of triangle indices encountered.

The verbose argument is ignored (and is deprecated).


Class Variable Details [hide private]

_attribute_list

Value:
[<pyffi.object_models.xml.StructAttribute object at 0x2cf2ad0>,
 <pyffi.object_models.xml.StructAttribute object at 0x2d01590>,
 <pyffi.object_models.xml.StructAttribute object at 0x2d01690>,
 <pyffi.object_models.xml.StructAttribute object at 0x2d01710>,
 <pyffi.object_models.xml.StructAttribute object at 0x2d01790>,
 <pyffi.object_models.xml.StructAttribute object at 0x2d01850>,
 <pyffi.object_models.xml.StructAttribute object at 0x2d018d0>,
 <pyffi.object_models.xml.StructAttribute object at 0x2d01910>,
...