Meta.falloff

Falloff

class lxu.meta.falloff.Falloff

Base class for defining Falloff objects. The client will subclass this base class, filling in the methods that they require.

bounded()

Implement this method if the weight can be bounded.

bounds()

Implement this to return the bounding box for the bounded region.

set_local(xfrm)

Call this method to set the world transform for a local falloff.

valid()

Implement this method if the weight can be non-zero anywhere.

weight_local(pos)

Implement this to get the weight computed in local coordinates.

weight_world(pos)

Implement this to get the weight computed in world coordinates.

MetaObject

class lxu.meta.falloff.MetaObject

The object meta node creates standalone objects that aren’t servers.

add(sub)

Add another meta object as a child of this one.

alloc()

Return the signature for this metaclass. Depends on type.

dump(prefix)

Output the contents of the meta node tree with indenting.

extract(com)

Get the implementation class object from the COM object.

find_any(type, guid, miss)

Find a node with matching type/guid, searching first inside this node but searching higher up the tree until somthing matches.

find_sub(type, guid)

Find first node with a matching type/guid under this node.

flatten()

Return this meta and all sub-metas in a list.

get_ifcs(guid)

Get the list of interfaces matching the given guid under this node. The list is returned as tuples: ((class, meta), …)

init_ifcs(guid)

Initialize the _sub_ifcs attribute as a list of interfaces. If no guid is given we use the metaclass guid itself.

pre_init()

Do any self-modification or other steps before initialization. Return true as long as there is more to do.

spawn()

Allocate a new instance of the COM object.

test(type, guid)

Test this meta node against a type and guid and return true for match. All testing allows for type or guid to be None for wildcard.

Meta_Falloff

class lxu.meta.falloff.Meta_Falloff

This is the metaclass for the Falloff object type.

add(sub)

Add another meta object as a child of this one.

alloc()

Internal metaclass method.

dump(prefix)

Output the contents of the meta node tree with indenting.

extract(com)

Get the implementation class object from the COM object.

find_any(type, guid, miss)

Find a node with matching type/guid, searching first inside this node but searching higher up the tree until somthing matches.

find_sub(type, guid)

Find first node with a matching type/guid under this node.

flatten()

Return this meta and all sub-metas in a list.

get_ifcs(guid)

Get the list of interfaces matching the given guid under this node. The list is returned as tuples: ((class, meta), …)

init_ifcs(guid)

Initialize the _sub_ifcs attribute as a list of interfaces. If no guid is given we use the metaclass guid itself.

pre_init()

Do any self-modification or other steps before initialization. Return true as long as there is more to do.

set_local(local)

Set the falloff to operate in local coordinates.

spawn()

Allocate a new instance of the COM object.

test(type, guid)

Test this meta node against a type and guid and return true for match. All testing allows for type or guid to be None for wildcard.

impl_Falloff

class lxu.meta.falloff.impl_Falloff

This internal class implements the actual Falloff object.

fall_Bounds()
fall_SetMesh(mesh)
fall_WeightF(position, point, polygon)
local_weight(position)
world_weight(position)