TransformTable

from panda3d.core import TransformTable
class TransformTable

Bases: TypedWritableReferenceCount

Stores the total set of VertexTransforms that the vertices in a particular GeomVertexData object might depend on.

This structure is used for a GeomVertexData set up to compute its dynamic vertices on the graphics card. See TransformBlendTable for one set up to compute its dynamic vertices on the CPU.

Inheritance diagram

Inheritance diagram of TransformTable

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

C++ Interface: add_transform(const TransformTable self, const VertexTransform transform)

/**
  • Adds a new transform to the table and returns the index number of the new

  • transform. Only valid for unregistered tables.

  • This does not automatically uniquify the pointer; if the transform is

  • already present in the table, it will be added twice.

*/

add_transform()

C++ Interface: add_transform(const TransformTable self, const VertexTransform transform)

/**
  • Adds a new transform to the table and returns the index number of the new

  • transform. Only valid for unregistered tables.

  • This does not automatically uniquify the pointer; if the transform is

  • already present in the table, it will be added twice.

*/

assign()

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

getClassType()

C++ Interface: get_class_type()

getModified()

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

/**
  • Returns a sequence number that’s guaranteed to change at least when any

  • VertexTransforms in the table change. (However, this is only true for a

  • registered table. An unregistered table may or may not reflect an update

  • here when a VertexTransform changes.)

*/

getNumTransforms()

C++ Interface: get_num_transforms(TransformTable self)

/**
  • Returns the number of transforms in the table.

*/

getTransform()

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

/**
  • Returns the nth transform in the table.

*/

getTransforms()
get_class_type()

C++ Interface: get_class_type()

get_modified()

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

/**
  • Returns a sequence number that’s guaranteed to change at least when any

  • VertexTransforms in the table change. (However, this is only true for a

  • registered table. An unregistered table may or may not reflect an update

  • here when a VertexTransform changes.)

*/

get_num_transforms()

C++ Interface: get_num_transforms(TransformTable self)

/**
  • Returns the number of transforms in the table.

*/

get_transform()

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

/**
  • Returns the nth transform in the table.

*/

get_transforms()
insertTransform()

C++ Interface: insert_transform(const TransformTable self, int n, const VertexTransform transform)

/**
  • Inserts a new transform to the table at the given index position. If the

  • index is beyond the end of the table, appends it to the end. Only valid

  • for unregistered tables.

  • This does not automatically uniquify the pointer; if the transform is

  • already present in the table, it will be added twice.

*/

insert_transform()

C++ Interface: insert_transform(const TransformTable self, int n, const VertexTransform transform)

/**
  • Inserts a new transform to the table at the given index position. If the

  • index is beyond the end of the table, appends it to the end. Only valid

  • for unregistered tables.

  • This does not automatically uniquify the pointer; if the transform is

  • already present in the table, it will be added twice.

*/

isRegistered()

C++ Interface: is_registered(TransformTable self)

/**
  • Returns true if this table has been registered. Once it has been

  • registered, the set of transforms in a TransformTable may not be further

  • modified; but it must be registered before it can be assigned to a Geom.

*/

is_registered()

C++ Interface: is_registered(TransformTable self)

/**
  • Returns true if this table has been registered. Once it has been

  • registered, the set of transforms in a TransformTable may not be further

  • modified; but it must be registered before it can be assigned to a Geom.

*/

modified
registerTable()

C++ Interface: register_table(const TransformTable table)

/**
  • Registers a TransformTable for use. This is similar to

  • GeomVertexFormat::register_format(). Once registered, a TransformTable may

  • no longer be modified (although the individual VertexTransform objects may

  • modify their reported transforms).

  • This must be called before a table may be used in a Geom. After this call,

  • you should discard the original pointer you passed in (which may or may not

  • now be invalid) and let its reference count decrement normally; you should

  • use only the returned value from this point on.

*/

register_table()

C++ Interface: register_table(const TransformTable table)

/**
  • Registers a TransformTable for use. This is similar to

  • GeomVertexFormat::register_format(). Once registered, a TransformTable may

  • no longer be modified (although the individual VertexTransform objects may

  • modify their reported transforms).

  • This must be called before a table may be used in a Geom. After this call,

  • you should discard the original pointer you passed in (which may or may not

  • now be invalid) and let its reference count decrement normally; you should

  • use only the returned value from this point on.

*/

registered
removeTransform()

C++ Interface: remove_transform(const TransformTable self, int n)

/**
  • Removes the nth transform. Only valid for unregistered tables.

*/

remove_transform()

C++ Interface: remove_transform(const TransformTable self, int n)

/**
  • Removes the nth transform. Only valid for unregistered tables.

*/

setTransform()

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

/**
  • Replaces the nth transform. Only valid for unregistered tables.

*/

set_transform()

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

/**
  • Replaces the nth transform. Only valid for unregistered tables.

*/

transforms
write()

C++ Interface: write(TransformTable self, ostream out)

/**

*/