DzVertexMap Class Reference
[Object and Geometry Objects]

Implements a map with one value per vertex, as well as supporting discontinuous values. This class maps an arbitrary numeric value to a vertex in the geometry. It should always contain at a minimum one value per vertex. It also supports discontinuous vertex maps - where different facets can have diferent values for the same vertex. More...

Inheritance diagram for DzVertexMap:

DzMap DzStorable DzBase QObject Object List of all members.

Methods

void addDctFloatValue (Number vertexIdx, Number facetIdx, Number val)
void addDctIntValue (Number vertexIdx, Number facetIdx, Number val)
void addDctPnt2Vec (Number vertexIdx, Number facetIdx, DzVec3 val)
void addDctPnt3Vec (Number vertexIdx, Number facetIdx, DzVec3 val)
void addDctShortValue (Number vertexIdx, Number facetIdx, Number val)
void clearDiscontinuousData ()
Number getMapIndex (Number vertexIdx, Number facetIdx)
Number getNumDiscontinuousVerts ()
void setDctIndex (Number vertexIdx, Number facetIdx, Number mapIdx)

Constructors

 DzVertexMap (MapType mapType=FLOAT_MAP)

Detailed Description

Implements a map with one value per vertex, as well as supporting discontinuous values. This class maps an arbitrary numeric value to a vertex in the geometry. It should always contain at a minimum one value per vertex. It also supports discontinuous vertex maps - where different facets can have diferent values for the same vertex.


Constructor & Destructor Documentation

DzVertexMap::DzVertexMap ( MapType  mapType = FLOAT_MAP  ) 

Creates a new vertex map of the given type.

Parameters:
mapType The type of data that will be stored in this map.


Member Function Documentation

void DzVertexMap::addDctFloatValue ( Number  vertexIdx,
Number  facetIdx,
Number  val 
)

Adds a discontinuous data item to the map.

Parameters:
vertexIdx The index of the vertex that this data is for.
facetIdx The index of the facet that this data is for.
val The data value to add to the map.

void DzVertexMap::addDctIntValue ( Number  vertexIdx,
Number  facetIdx,
Number  val 
)

Adds a discontinuous data item to the map.

Parameters:
vertexIdx The index of the vertex that this data is for.
facetIdx The index of the facet that this data is for.
val The data value to add to the map.

void DzVertexMap::addDctPnt2Vec ( Number  vertexIdx,
Number  facetIdx,
DzVec3  val 
)

Adds a discontinuous data item to the map.

Parameters:
vertexIdx The index of the vertex that this data is for.
facetIdx The index of the facet that this data is for.
val The data value to add to the map.

void DzVertexMap::addDctPnt3Vec ( Number  vertexIdx,
Number  facetIdx,
DzVec3  val 
)

Adds a discontinuous data item to the map.

Parameters:
vertexIdx The index of the vertex that this data is for.
facetIdx The index of the facet that this data is for.
val The data value to add to the map.

void DzVertexMap::addDctShortValue ( Number  vertexIdx,
Number  facetIdx,
Number  val 
)

Adds a discontinuous data item to the map.

Parameters:
vertexIdx The index of the vertex that this data is for.
facetIdx The index of the facet that this data is for.
val The data value to add to the map.

void DzVertexMap::clearDiscontinuousData (  ) 

Removes all the discontinuous values from the map

Number DzVertexMap::getMapIndex ( Number  vertexIdx,
Number  facetIdx 
)

Parameters:
vertexIdx The index of the vertex to get data for
facetIdx The index of the facet to get data for
Returns:
The index of the data item in the map for the given facet vertex.

int DzVertexMap::getNumDiscontinuousVerts (  ) 

Returns:
The number of discontinuous vertices in the map.

void DzVertexMap::setDctIndex ( Number  vertexIdx,
Number  facetIdx,
Number  mapIdx 
)

Sets the facet vertex to have discontinuous data which points to the given map index. This function will update existing data for the facet vertex, or will create new data if necessary.

It assumes that the valid value is already in the map.


Generated on Thu Sep 24 12:21:16 2009

Copyright © 2002 - 2009 DAZ 3D, Inc.