Base class for all property value maps. Meshes can have any number of maps of various types.
Inherits :
Inherited By : DzVertexMap
| DAZ Script | |
|---|---|
| MapType | { FLOAT_MAP, FLOAT2_MAP, FLOAT3_MAP, INT_MAP, SHORT_MAP } |
| void | labelChanged () |
| void | mapModified () |
TODO: Add detailed description.
The types of possible maps - each describes the type of values and dimension of the map.
DzMap( MapType mapType=FloatMap )
Constructor. Creates a new map of the given type.
Parameter(s):
void : appendFloatValue( Number val )
Append a new value to the end of a float map.
Parameter(s):
Attention:
void : appendIntValue( Number val )
Append a new value to the end of a integer map.
Parameter(s):
Attention:
void : appendPnt2Vec( DzVec3 val )
Appends a value to a float 2 map.
Parameter(s):
Attention:
void : appendPnt3Vec( DzVec3 val )
Appends a value to a float 3 map.
Parameter(s):
Attention:
void : appendShortValue( Number val )
Append a new value to the end of a short value map.
Parameter(s):
Attention:
void : clearAllData()
Clears all map values. After this call, the number of values in the map will be zero.
Number : getFloatMax( Number idx )
Parameter(s):
Return Value:
Since:
Number : getFloatMin( Number idx )
Parameter(s):
Return Value:
Since:
Number : getFloatValue( Number idx )
Return Value:
Number : getIntValue( Number idx )
Parameter(s):
Return Value:
Number : getIntValueMax( Number idx )
Parameter(s):
Return Value:
Since:
Number : getIntValueMin( Number idx )
Parameter(s):
Return Value:
Since:
Return Value:
Return Value:
Number : getNumValues()
Return Value:
DzGeometry : getOrderingGeometry()
Return Value:
DzVec3 : getPnt2Vec( Number idx )
Parameter(s):
Return Value:
DzVec3 : getPnt2VecMax( Number idx )
Parameter(s):
Return Value:
Since:
DzVec3 : getPnt2VecMin( Number idx )
Parameter(s):
Return Value:
Since:
DzVec3 : getPnt3Vec( Number idx )
Parameter(s):
Return Value:
DzVec3 : getPnt3VecMax( Number idx )
Parameter(s):
Return Value:
Since:
DzVec3 : getPnt3VecMin( Number idx )
Parameter(s):
Return Value:
Since:
Number : getShortValue( Number idx )
Parameter(s):
Return Value:
Number : getShortValueMax( Number idx )
Parameter(s):
Return Value:
Since:
Number : getShortValueMin( Number idx )
Parameter(s):
Return Value:
Since:
Return Value:
Boolean : inUnitSpace()
Return Value:
true if the values of the map are in unit space, otherwise false.Since:
void : invalidateMinMax()
Invalidates the calculated minimum and maximum values for this map.
Since:
DzMap : makeCopy()
Return Value:
Attention:
Since:
Pre-allocates size of the data array.
Parameter(s):
void : setDefaultFloatValue( Number defaultVal )
Sets the default value for a float map. This is the value returned if the map is empty or a map data value is requested that is outside the index range of this map.
Parameter(s):
Attention:
void : setDefaultIntValue( Number defaultVal )
Sets the default value for an integer map. This is the value returned if the map is empty or a map data value is requested that is outside the index range of this map.
Parameter(s):
Attention:
void : setDefaultPnt2Vec( DzVec3 defaultVal )
Sets the default value of a float 2 map.
Parameter(s):
void : setDefaultPnt3Vec( DzVec3 defaultVal )
Sets the default value of a float 3 map.
Parameter(s):
void : setDefaultShortValue( Number defaultVal )
Sets the default value for a short value map. This is the value returned if the map is empty or a map data value is requested that is outside the index range of this map.
Parameter(s):
Attention:
void : setFloatValue( Number idx, Number val )
Set one of the currently existing data values on a float map.
Parameter(s):
Attention:
void : setIntValue( Number idx, Number val )
Set one of the currently existing data values on a integer map.
Parameter(s):
Attention:
void : setLabel( String label )
Sets the user-readable label for the map.
Parameter(s):
void : setMapType( MapType mapType, Boolean keepData=false )
Changes the type of this map.
Parameter(s):
true, the existing data will be converted to the new type as much as possible. If false, the existing data is lost, and the number of values in the map will be zero.void : setNumValues( Number num )
Sets the size of the data array. Does not initialize newly allocated values.
Parameter(s):
void : setPnt2Vec( Number idx, DzVec3 val )
Set one of the currently existing data values on a float 2 map.
Parameter(s):
Attention:
void : setPnt3Vec( Number idx, DzVec3 val )
Set one of the currently existing data values on a float 3 map.
Parameter(s):
Attention:
void : setShortValue( Number idx, Number val )
Set one of the currently existing data values on a short value map.
Parameter(s):
Attention:
void : labelChanged()
Signature:“labelChanged()”
Emitted when the map's label changes.
void : mapModified()
Signature:“mapModified()”
Emitted whenever values are added, removed or modified on the map.