Provides a mapping between face groups and nodes associated with a mesh.
Inherits :
DAZ Script |
---|
DzSelectionMap () |
DAZ Script | |
---|---|
DzError | addPair ( String faceGroupName, DzNode node, Boolean replaceIfExists=false ) |
void | clearAll () |
void | clearMissingGroups ( DzFacetMesh mesh ) |
String | findGroupForNode ( DzNode node ) |
DzNode | findNodeForGroup ( String groupName ) |
Number | findPair ( DzNode node ) |
Number | findPair ( String groupName ) |
Number | getNumPairs () |
String | getPairGroup ( Number index ) |
DzNode | getPairNode ( Number index ) |
DzError | removePair ( Number index ) |
void | mapModified () |
void | visibilityChanged () |
This class provides a mapping between the names of the DzFaceGroup objects associated with a DzFacetMesh and the DzNode objects that are likewise associated with that mesh. This mapping plays a part in the mechanism that allows a user to click on different areas of the mesh in the viewport and have that translate to the selection of a node.
DzError : addPair( String faceGroupName, DzNode node, Boolean replaceIfExists=false )
Adds a new face group/node mapping to the selection map.
Parameter(s):
true
, checks to see if the face group is already mapped, and replaces the mapped node with the given node. If false
, the operation will fail if the face group is already mapped.Return Value:
void : clearAll()
Clears all pairs in the map.
void : clearMissingGroups( DzFacetMesh mesh )
Clears the missing groups based on the face groups on mesh
.
Parameter(s):
String : findGroupForNode( DzNode node )
Searches for the first group for a node.
Parameter(s):
Return Value:
node
.DzNode : findNodeForGroup( String groupName )
Searches for the first node for a group.
Parameter(s):
Return Value:
null
if it fails, else the found node for group.Number : findPair( DzNode node )
Searches for the first pair.
Parameter(s):
Return Value:
Number : findPair( String groupName )
Searches for the first pair.
Parameter(s):
Return Value:
Number : getNumPairs()
Return Value:
String : getPairGroup( Number index )
Parameter(s):
Return Value:
DzNode : getPairNode( Number index )
Parameter(s):
Return Value:
DzError : removePair( Number index )
Removes a face group/node mapping from the selection map.
Parameter(s):
Return Value:
void : mapModified()
Signature:“mapModified()”
Emitted when the map changes.
void : visibilityChanged()
Signature:“visibilityChanged()”
Emitted when the visibility of the node in a given pair changes.