Panda3D
|
This represents an array of some other kind of object, meaning this parameter type accepts an arbitrary (or possibly fixed) number of nested fields, all of which are of the same type. More...
Public Member Functions | |
int | getArraySize () |
Returns the fixed number of elements in this array, or -1 if the array may contain a variable number of elements. More... | |
DCParameter | getElementType () |
Returns the type of the individual elements of this array. More... | |
![]() | |
DCArrayParameter | asArrayParameter () |
const DCArrayParameter | asArrayParameter () |
DCSimpleParameter | asSimpleParameter () |
const DCSimpleParameter | asSimpleParameter () |
const DCTypedef | getTypedef () |
If this type has been referenced from a typedef, returns the DCTypedef instance, or NULL if the type was declared on-the-fly. More... | |
bool | isValid () |
DCParameter | makeCopy () |
![]() | |
Datagram | aiFormatUpdate (DOIDTYPE do_id, CHANNELTYPE to_id, CHANNELTYPE from_id, object args) |
Generates a datagram containing the message necessary to send an update for the indicated distributed object from the AI. More... | |
Datagram | aiFormatUpdateMsgType (DOIDTYPE do_id, CHANNELTYPE to_id, CHANNELTYPE from_id, int msg_type, object args) |
Generates a datagram containing the message necessary to send an update, with the msg type, for the indicated distributed object from the AI. More... | |
DCAtomicField | asAtomicField () |
Returns the same field pointer converted to an atomic field pointer, if this is in fact an atomic field; otherwise, returns NULL. More... | |
const DCAtomicField | asAtomicField () |
Returns the same field pointer converted to an atomic field pointer, if this is in fact an atomic field; otherwise, returns NULL. More... | |
DCField | asField () |
const DCField | asField () |
DCMolecularField | asMolecularField () |
Returns the same field pointer converted to a molecular field pointer, if this is in fact a molecular field; otherwise, returns NULL. More... | |
const DCMolecularField | asMolecularField () |
Returns the same field pointer converted to a molecular field pointer, if this is in fact a molecular field; otherwise, returns NULL. More... | |
DCParameter | asParameter () |
const DCParameter | asParameter () |
Datagram | clientFormatUpdate (DOIDTYPE do_id, object args) |
Generates a datagram containing the message necessary to send an update for the indicated distributed object from the client. More... | |
str | formatData (VectorUchar packed_data, bool show_field_names) |
Given a blob that represents the packed data for this field, returns a string formatting it for human consumption. More... | |
DCClass | getClass () |
Returns the DCClass pointer for the class that contains this field. More... | |
VectorUchar | getDefaultValue () |
Returns the default value for this field. More... | |
int | getNumber () |
Returns a unique index number associated with this field. More... | |
bool | hasDefaultValue () |
Returns true if a default value has been explicitly established for this field, false otherwise. More... | |
bool | isAirecv () |
Returns true if the "airecv" flag is set for this field, false otherwise. More... | |
bool | isBogusField () |
Returns true if the field has been flagged as a bogus field. More... | |
bool | isBroadcast () |
Returns true if the "broadcast" flag is set for this field, false otherwise. More... | |
bool | isClrecv () |
Returns true if the "clrecv" flag is set for this field, false otherwise. More... | |
bool | isClsend () |
Returns true if the "clsend" flag is set for this field, false otherwise. More... | |
bool | isDb () |
Returns true if the "db" flag is set for this field, false otherwise. More... | |
bool | isOwnrecv () |
Returns true if the "ownrecv" flag is set for this field, false otherwise. More... | |
bool | isOwnsend () |
Returns true if the "ownsend" flag is set for this field, false otherwise. More... | |
bool | isRam () |
Returns true if the "ram" flag is set for this field, false otherwise. More... | |
bool | isRequired () |
Returns true if the "required" flag is set for this field, false otherwise. More... | |
output (Ostream out) | |
Write a string representation of this instance to <out>. More... | |
bool | packArgs (DCPacker packer, object sequence) |
Packs the Python arguments from the indicated tuple into the packer. More... | |
VectorUchar | parseString (str formatted_string) |
Given a human-formatted string (for instance, as returned by format_data(), above) that represents the value of this field, parse the string and return the corresponding packed data. More... | |
receiveUpdate (DCPacker packer, object distobj) | |
Extracts the update message out of the datagram and applies it to the indicated object by calling the appropriate method. More... | |
object | unpackArgs (DCPacker packer) |
Unpacks the values from the packer, beginning at the current point in the unpack_buffer, into a Python tuple and returns the tuple. More... | |
bool | validateRanges (VectorUchar packed_data) |
Verifies that all of the packed values in the field data are within the specified ranges and that there are no extra bytes on the end of the record. More... | |
write (Ostream out, int indent_level) | |
Write a string representation of this instance to <out>. More... | |
![]() | |
DCClassParameter | asClassParameter () |
const DCClassParameter | asClassParameter () |
DCField | asField () |
const DCField | asField () |
DCSwitchParameter | asSwitchParameter () |
const DCSwitchParameter | asSwitchParameter () |
bool | checkMatch (const DCPackerInterface other) |
Returns true if the other interface is bitwise the same as this one–that is, a uint32 only matches a uint32, etc. More... | |
bool | checkMatch (str description, DCFile dcfile) |
Returns true if this interface is bitwise the same as the interface described with the indicated formatted string, e.g. More... | |
int | findSeekIndex (str name) |
Returns the index number to be passed to a future call to DCPacker::seek() to seek directly to the named field without having to look up the field name in a table later, or -1 if the named field cannot be found. More... | |
str | getName () |
Returns the name of this field, or empty string if the field is unnamed. More... | |
![]() | |
bool | compareKeywords (const DCKeywordList other) |
Returns true if this list has the same keywords as the other list, false if some keywords differ. More... | |
const DCKeyword | getKeyword (int n) |
Returns the nth keyword in the list. More... | |
const DCKeyword | getKeywordByName (str name) |
Returns the keyword in the list with the indicated name, or NULL if there is no keyword in the list with that name. More... | |
int | getNumKeywords () |
Returns the number of keywords in the list. More... | |
bool | hasKeyword (const DCKeyword keyword) |
Returns true if this list includes the indicated keyword, false otherwise. More... | |
bool | hasKeyword (str name) |
Returns true if this list includes the indicated keyword, false otherwise. More... | |
This represents an array of some other kind of object, meaning this parameter type accepts an arbitrary (or possibly fixed) number of nested fields, all of which are of the same type.
int getArraySize | ( | ) |
Returns the fixed number of elements in this array, or -1 if the array may contain a variable number of elements.
DCParameter getElementType | ( | ) |
Returns the type of the individual elements of this array.