GeomVertexArrayDataHandle
from panda3d.core import GeomVertexArrayDataHandle
- class GeomVertexArrayDataHandle
Bases:
ReferenceCount
,GeomEnums
This data object is returned by GeomVertexArrayData::get_handle() or modify_handle(). As long as it exists, the data is locked; when the last of these destructs, the data is unlocked.
Only one thread at a time may lock the data; other threads attempting to lock the data will block. A given thread may simultaneously lock the data multiple times.
This class serves in lieu of a pair of GeomVertexArrayDataPipelineReader and GeomVertexArrayDataPipelineWriter classes
Inheritance diagram
- __init__(*args, **kwargs)
- array_format
- copyDataFrom()
C++ Interface: copy_data_from(const GeomVertexArrayDataHandle self, const GeomVertexArrayDataHandle other) copy_data_from(const GeomVertexArrayDataHandle self, object buffer)
- copySubdataFrom()
C++ Interface: copy_subdata_from(const GeomVertexArrayDataHandle self, int to_start, int to_size, object buffer) copy_subdata_from(const GeomVertexArrayDataHandle self, int to_start, int to_size, const GeomVertexArrayDataHandle other, int from_start, int from_size) copy_subdata_from(const GeomVertexArrayDataHandle self, int to_start, int to_size, object buffer, int from_start, int from_size)
- /**
Copies a portion of the data array from the other object into a portion of
the data array of this object. If to_size != from_size, the size of this
data array is adjusted accordingly.
*/
- /**
Copies a portion of the data array from the buffer into a portion of the
data array of this object. If to_size != from_size, the size of this data
array is adjusted accordingly.
*/
- copy_data_from()
C++ Interface: copy_data_from(const GeomVertexArrayDataHandle self, const GeomVertexArrayDataHandle other) copy_data_from(const GeomVertexArrayDataHandle self, object buffer)
- copy_subdata_from()
C++ Interface: copy_subdata_from(const GeomVertexArrayDataHandle self, int to_start, int to_size, object buffer) copy_subdata_from(const GeomVertexArrayDataHandle self, int to_start, int to_size, const GeomVertexArrayDataHandle other, int from_start, int from_size) copy_subdata_from(const GeomVertexArrayDataHandle self, int to_start, int to_size, object buffer, int from_start, int from_size)
- /**
Copies a portion of the data array from the other object into a portion of
the data array of this object. If to_size != from_size, the size of this
data array is adjusted accordingly.
*/
- /**
Copies a portion of the data array from the buffer into a portion of the
data array of this object. If to_size != from_size, the size of this data
array is adjusted accordingly.
*/
- data_size_bytes
- getClassType()
C++ Interface: get_class_type()
- getData()
C++ Interface: get_data(GeomVertexArrayDataHandle self)
- /**
Returns the entire raw data of the GeomVertexArrayData object, formatted as
a string. This is primarily for the benefit of high-level languages such
as Python.
*/
- getObject()
C++ Interface: get_object(const GeomVertexArrayDataHandle self) get_object(GeomVertexArrayDataHandle self)
- getSubdata()
C++ Interface: get_subdata(GeomVertexArrayDataHandle self, int start, int size)
- /**
Returns a subset of the raw data of the GeomVertexArrayData object,
formatted as a string. This is primarily for the benefit of high-level
languages such as Python.
*/
- get_class_type()
C++ Interface: get_class_type()
- get_data()
C++ Interface: get_data(GeomVertexArrayDataHandle self)
- /**
Returns the entire raw data of the GeomVertexArrayData object, formatted as
a string. This is primarily for the benefit of high-level languages such
as Python.
*/
- get_object()
C++ Interface: get_object(const GeomVertexArrayDataHandle self) get_object(GeomVertexArrayDataHandle self)
- get_subdata()
C++ Interface: get_subdata(GeomVertexArrayDataHandle self, int start, int size)
- /**
Returns a subset of the raw data of the GeomVertexArrayData object,
formatted as a string. This is primarily for the benefit of high-level
languages such as Python.
*/
- markUsed()
C++ Interface: mark_used(GeomVertexArrayDataHandle self)
- /**
Marks the array data recently-used.
*/
- mark_used()
C++ Interface: mark_used(GeomVertexArrayDataHandle self)
- /**
Marks the array data recently-used.
*/
- modified
- object
- prepareNow()
C++ Interface: prepare_now(GeomVertexArrayDataHandle self, PreparedGraphicsObjects prepared_objects, GraphicsStateGuardianBase gsg)
- /**
Creates a context for the data on the particular GSG, if it does not
already exist. Returns the new (or old) VertexBufferContext. This assumes
that the GraphicsStateGuardian is the currently active rendering context
and that it is ready to accept new datas. If this is not necessarily the
case, you should use prepare() instead.
Normally, this is not called directly except by the GraphicsStateGuardian;
a data does not need to be explicitly prepared by the user before it may be
rendered.
*/
- prepare_now()
C++ Interface: prepare_now(GeomVertexArrayDataHandle self, PreparedGraphicsObjects prepared_objects, GraphicsStateGuardianBase gsg)
- /**
Creates a context for the data on the particular GSG, if it does not
already exist. Returns the new (or old) VertexBufferContext. This assumes
that the GraphicsStateGuardian is the currently active rendering context
and that it is ready to accept new datas. If this is not necessarily the
case, you should use prepare() instead.
Normally, this is not called directly except by the GraphicsStateGuardian;
a data does not need to be explicitly prepared by the user before it may be
rendered.
*/
- requestResident()
C++ Interface: request_resident(GeomVertexArrayDataHandle self)
- /**
Returns true if the vertex data is currently resident in memory. If this
returns true, the next call to get_handle()->get_read_pointer() will
probably not block. If this returns false, the vertex data will be brought
back into memory shortly; try again later.
*/
- request_resident()
C++ Interface: request_resident(GeomVertexArrayDataHandle self)
- /**
Returns true if the vertex data is currently resident in memory. If this
returns true, the next call to get_handle()->get_read_pointer() will
probably not block. If this returns false, the vertex data will be brought
back into memory shortly; try again later.
*/
- reserveNumRows()
C++ Interface: reserve_num_rows(const GeomVertexArrayDataHandle self, int n)
- /**
*/
- reserve_num_rows()
C++ Interface: reserve_num_rows(const GeomVertexArrayDataHandle self, int n)
- /**
*/
- setData()
C++ Interface: set_data(const GeomVertexArrayDataHandle self, bytes data)
- /**
Replaces the entire raw data array with the contents of the indicated
string. This is primarily for the benefit of high-level languages like
Python.
*/
- setSubdata()
C++ Interface: set_subdata(const GeomVertexArrayDataHandle self, int start, int size, bytes data)
- /**
Replaces a portion of the data array from the indicated string. If size !=
data.size(), the size of this data array is adjusted accordingly.
This is primarily for the benefit of high-level languages like Python.
*/
- set_data()
C++ Interface: set_data(const GeomVertexArrayDataHandle self, bytes data)
- /**
Replaces the entire raw data array with the contents of the indicated
string. This is primarily for the benefit of high-level languages like
Python.
*/
- set_subdata()
C++ Interface: set_subdata(const GeomVertexArrayDataHandle self, int start, int size, bytes data)
- /**
Replaces a portion of the data array from the indicated string. If size !=
data.size(), the size of this data array is adjusted accordingly.
This is primarily for the benefit of high-level languages like Python.
*/
- uncleanSetNumRows()
C++ Interface: unclean_set_num_rows(const GeomVertexArrayDataHandle self, int n)
- /**
*/
- unclean_set_num_rows()
C++ Interface: unclean_set_num_rows(const GeomVertexArrayDataHandle self, int n)
- /**
*/
- upcastToGeomEnums()
C++ Interface: upcast_to_GeomEnums(const GeomVertexArrayDataHandle self)
upcast from GeomVertexArrayDataHandle to GeomEnums
- upcastToReferenceCount()
C++ Interface: upcast_to_ReferenceCount(const GeomVertexArrayDataHandle self)
upcast from GeomVertexArrayDataHandle to ReferenceCount
- upcast_to_GeomEnums()
C++ Interface: upcast_to_GeomEnums(const GeomVertexArrayDataHandle self)
upcast from GeomVertexArrayDataHandle to GeomEnums
- upcast_to_ReferenceCount()
C++ Interface: upcast_to_ReferenceCount(const GeomVertexArrayDataHandle self)
upcast from GeomVertexArrayDataHandle to ReferenceCount
- usage_hint