TransformBlend

from panda3d.core import TransformBlend
class TransformBlend

Bases: DTOOL_SUPER_BASE

This defines a single entry in a TransformBlendTable. It represents a unique combination of VertexTransform pointers and blend amounts.

Inheritance diagram

Inheritance diagram of TransformBlend

__init__(*args, **kwargs)
addTransform()

C++ Interface: add_transform(const TransformBlend self, const VertexTransform transform, float weight)

/**
  • Adds a new transform to the blend. If the transform already existed,

  • increases its weight factor.

*/

add_transform()

C++ Interface: add_transform(const TransformBlend self, const VertexTransform transform, float weight)

/**
  • Adds a new transform to the blend. If the transform already existed,

  • increases its weight factor.

*/

assign()

C++ Interface: assign(const TransformBlend self, const TransformBlend copy)

compareTo()

C++ Interface: compare_to(TransformBlend self, const TransformBlend other)

/**
  • Defines an arbitrary ordering for TransformBlend objects.

*/

compare_to()

C++ Interface: compare_to(TransformBlend self, const TransformBlend other)

/**
  • Defines an arbitrary ordering for TransformBlend objects.

*/

getBlend()

C++ Interface: get_blend(TransformBlend self, LMatrix4f result, Thread current_thread)

/**
  • Returns the current value of the blend, based on the current value of all

  • of the nested transform objects and their associated weights.

  • You should call update_blend() to ensure that the cache is up-to-date

  • before calling this.

*/

getClassType()

C++ Interface: get_class_type()

getModified()

C++ Interface: get_modified(TransformBlend self, Thread current_thread)

/**
  • Returns a counter which is guaranteed to increment at least as often as the

  • result of get_blend() changes.

*/

getNumTransforms()

C++ Interface: get_num_transforms(TransformBlend self)

/**
  • Returns the number of transforms stored in the blend object.

*/

getTransform()

C++ Interface: get_transform(TransformBlend self, int n)

/**
  • Returns the nth transform stored in the blend object.

*/

getTransforms()
getWeight()

C++ Interface: get_weight(TransformBlend self, const VertexTransform transform) get_weight(TransformBlend self, int n)

/**
  • Returns the weight associated with the nth transform stored in the blend

  • object.

*/

/**
  • Returns the weight associated with the indicated transform, or 0 if there

  • is no entry for the transform.

*/

get_blend()

C++ Interface: get_blend(TransformBlend self, LMatrix4f result, Thread current_thread)

/**
  • Returns the current value of the blend, based on the current value of all

  • of the nested transform objects and their associated weights.

  • You should call update_blend() to ensure that the cache is up-to-date

  • before calling this.

*/

get_class_type()

C++ Interface: get_class_type()

get_modified()

C++ Interface: get_modified(TransformBlend self, Thread current_thread)

/**
  • Returns a counter which is guaranteed to increment at least as often as the

  • result of get_blend() changes.

*/

get_num_transforms()

C++ Interface: get_num_transforms(TransformBlend self)

/**
  • Returns the number of transforms stored in the blend object.

*/

get_transform()

C++ Interface: get_transform(TransformBlend self, int n)

/**
  • Returns the nth transform stored in the blend object.

*/

get_transforms()
get_weight()

C++ Interface: get_weight(TransformBlend self, const VertexTransform transform) get_weight(TransformBlend self, int n)

/**
  • Returns the weight associated with the nth transform stored in the blend

  • object.

*/

/**
  • Returns the weight associated with the indicated transform, or 0 if there

  • is no entry for the transform.

*/

hasTransform()

C++ Interface: has_transform(TransformBlend self, const VertexTransform transform)

/**
  • Returns true if the blend has the indicated transform, false otherwise.

*/

has_transform()

C++ Interface: has_transform(TransformBlend self, const VertexTransform transform)

/**
  • Returns true if the blend has the indicated transform, false otherwise.

*/

limitTransforms()

C++ Interface: limit_transforms(const TransformBlend self, int max_transforms)

/**
  • If the total number of transforms in the blend exceeds max_transforms,

  • removes the n least-important transforms as needed to reduce the number of

  • transforms to max_transforms.

*/

limit_transforms()

C++ Interface: limit_transforms(const TransformBlend self, int max_transforms)

/**
  • If the total number of transforms in the blend exceeds max_transforms,

  • removes the n least-important transforms as needed to reduce the number of

  • transforms to max_transforms.

*/

modified
normalizeWeights()

C++ Interface: normalize_weights(const TransformBlend self)

/**
  • Rescales all of the weights on the various transforms so that they sum to

  • 1.0. It is generally a good idea to call this after adding or removing

  • transforms from the blend.

*/

normalize_weights()

C++ Interface: normalize_weights(const TransformBlend self)

/**
  • Rescales all of the weights on the various transforms so that they sum to

  • 1.0. It is generally a good idea to call this after adding or removing

  • transforms from the blend.

*/

output()

C++ Interface: output(TransformBlend self, ostream out)

/**

*/

removeTransform()

C++ Interface: remove_transform(const TransformBlend self, const VertexTransform transform) remove_transform(const TransformBlend self, int n)

/**
  • Removes the nth transform stored in the blend object.

*/

/**
  • Removes the indicated transform from the blend.

*/

remove_transform()

C++ Interface: remove_transform(const TransformBlend self, const VertexTransform transform) remove_transform(const TransformBlend self, int n)

/**
  • Removes the nth transform stored in the blend object.

*/

/**
  • Removes the indicated transform from the blend.

*/

setTransform()

C++ Interface: set_transform(const TransformBlend self, int n, const VertexTransform transform)

/**
  • Replaces the nth transform stored in the blend object.

*/

setWeight()

C++ Interface: set_weight(const TransformBlend self, int n, float weight)

/**
  • Replaces the weight associated with the nth transform stored in the blend

  • object.

*/

set_transform()

C++ Interface: set_transform(const TransformBlend self, int n, const VertexTransform transform)

/**
  • Replaces the nth transform stored in the blend object.

*/

set_weight()

C++ Interface: set_weight(const TransformBlend self, int n, float weight)

/**
  • Replaces the weight associated with the nth transform stored in the blend

  • object.

*/

transformPoint()

C++ Interface: transform_point(TransformBlend self, LPoint4d point, Thread current_thread) transform_point(TransformBlend self, LPoint4f point, Thread current_thread) transform_point(TransformBlend self, LPoint3d point, Thread current_thread) transform_point(TransformBlend self, LPoint3f point, Thread current_thread)

/**
  • Transforms the indicated point by the blend matrix.

  • You should call update_blend() to ensure that the cache is up-to-date

  • before calling this.

*/

/**
  • Transforms the indicated point by the blend matrix.

  • You should call update_blend() to ensure that the cache is up-to-date

  • before calling this.

*/

/**
  • Transforms the indicated point by the blend matrix.

  • You should call update_blend() to ensure that the cache is up-to-date

  • before calling this.

*/

/**
  • Transforms the indicated point by the blend matrix.

  • You should call update_blend() to ensure that the cache is up-to-date

  • before calling this.

*/

transformVector()

C++ Interface: transform_vector(TransformBlend self, LVector3d point, Thread current_thread) transform_vector(TransformBlend self, LVector3f point, Thread current_thread)

/**
  • Transforms the indicated vector by the blend matrix.

  • You should call update_blend() to ensure that the cache is up-to-date

  • before calling this.

*/

/**
  • Transforms the indicated vector by the blend matrix.

  • You should call update_blend() to ensure that the cache is up-to-date

  • before calling this.

*/

transform_point()

C++ Interface: transform_point(TransformBlend self, LPoint4d point, Thread current_thread) transform_point(TransformBlend self, LPoint4f point, Thread current_thread) transform_point(TransformBlend self, LPoint3d point, Thread current_thread) transform_point(TransformBlend self, LPoint3f point, Thread current_thread)

/**
  • Transforms the indicated point by the blend matrix.

  • You should call update_blend() to ensure that the cache is up-to-date

  • before calling this.

*/

/**
  • Transforms the indicated point by the blend matrix.

  • You should call update_blend() to ensure that the cache is up-to-date

  • before calling this.

*/

/**
  • Transforms the indicated point by the blend matrix.

  • You should call update_blend() to ensure that the cache is up-to-date

  • before calling this.

*/

/**
  • Transforms the indicated point by the blend matrix.

  • You should call update_blend() to ensure that the cache is up-to-date

  • before calling this.

*/

transform_vector()

C++ Interface: transform_vector(TransformBlend self, LVector3d point, Thread current_thread) transform_vector(TransformBlend self, LVector3f point, Thread current_thread)

/**
  • Transforms the indicated vector by the blend matrix.

  • You should call update_blend() to ensure that the cache is up-to-date

  • before calling this.

*/

/**
  • Transforms the indicated vector by the blend matrix.

  • You should call update_blend() to ensure that the cache is up-to-date

  • before calling this.

*/

transforms
updateBlend()

C++ Interface: update_blend(TransformBlend self, Thread current_thread)

/**
  • Recomputes the internal representation of the blend value, if necessary.

  • You should call this before calling get_blend() or transform_point().

*/

update_blend()

C++ Interface: update_blend(TransformBlend self, Thread current_thread)

/**
  • Recomputes the internal representation of the blend value, if necessary.

  • You should call this before calling get_blend() or transform_point().

*/

weights
write()

C++ Interface: write(TransformBlend self, ostream out, int indent_level)

/**

*/