DCSimpleParameter
from panda3d.direct import DCSimpleParameter
- class DCSimpleParameter
Bases:
DCParameter
This is the most fundamental kind of parameter type: a single number or string, one of the DCSubatomicType elements. It may also optionally have a divisor, which is meaningful only for the numeric type elements (and represents a fixed-point numeric convention).
Inheritance diagram
- __init__(*args, **kwargs)
- getDivisor()
C++ Interface: get_divisor(DCSimpleParameter self)
- /**
Returns the divisor associated with this type. This is 1 by default, but
if this is other than one it represents the scale to apply when packing and
unpacking numeric values (to store fixed-point values in an integer field).
It is only meaningful for numeric-type fields.
*/
- getModulus()
C++ Interface: get_modulus(DCSimpleParameter self)
- /**
Returns the modulus associated with this type, if any. It is an error to
call this if has_modulus() returned false.
If present, this is the modulus that is used to constrain the numeric value
of the field before it is packed (and range-checked).
*/
- getType()
C++ Interface: get_type(DCSimpleParameter self)
- /**
Returns the particular subatomic type represented by this instance.
*/
- get_divisor()
C++ Interface: get_divisor(DCSimpleParameter self)
- /**
Returns the divisor associated with this type. This is 1 by default, but
if this is other than one it represents the scale to apply when packing and
unpacking numeric values (to store fixed-point values in an integer field).
It is only meaningful for numeric-type fields.
*/
- get_modulus()
C++ Interface: get_modulus(DCSimpleParameter self)
- /**
Returns the modulus associated with this type, if any. It is an error to
call this if has_modulus() returned false.
If present, this is the modulus that is used to constrain the numeric value
of the field before it is packed (and range-checked).
*/
- get_type()
C++ Interface: get_type(DCSimpleParameter self)
- /**
Returns the particular subatomic type represented by this instance.
*/