// Copyright (C) 1997-2004 Alias Systems Corp.
// 
// The information in this file is provided for the exclusive use of the
// licensees of Alias.  Such users have the right to use, modify,
// and incorporate this code into other products for purposes authorized
// by the Alias license agreement, without fee.
// 
// ALIAS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
// INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
// EVENT SHALL ALIAS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
// CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
// DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
// TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
// PERFORMANCE OF THIS SOFTWARE.

//
//  Alias Script File
//  MODIFY THIS AT YOUR OWN RISK
//
//  Creation Date:  26 Jun 1996
//
//  Description:
//      This procedure sets the state of the component pick mask.
//
//  Input Arguments:
//		The flag for the pick mask setting to turn on/off,
//		and the state to set that pick mask setting to.
//
//  Return Value:
//		None
//

global proc setComponentPickMask( string $maskType, int $state ) {

	//
	// Set values, based on the $state of the pick mask
	// type and $state passed to the procedure
	//
	switch ($maskType) {
        case "All":
            selectType -allComponents $state;
            // 
            // Change the $state of all the object
            // selection mask buttons in the infoBar
            //
            iconTextCheckBox -e -v $state compButton1;
            iconTextCheckBox -e -v $state compButton2;
            iconTextCheckBox -e -v $state compButton3;
            iconTextCheckBox -e -v $state compButton4;
            iconTextCheckBox -e -v $state compButton5;
            iconTextCheckBox -e -v $state compButton6;
            iconTextCheckBox -e -v $state compButton7;
            break;
		case "Point":
			selectType
				-cv $state
				-polymeshVertex $state
				-subdivMeshPoint $state
				-latticePoint $state
				-particle $state;
			break;
		case "ParmPoint":
			selectType
				-editPoint $state
				-curveParameterPoint $state
				-surfaceParameterPoint $state
				-smu $state
				-puv $state
				-surfaceUV $state;
			break;
		case "Line":
			selectType
				-isoparm $state
				-surfaceEdge $state
				-polymeshEdge $state
				-subdivMeshEdge $state
				-springComponent $state;
			break;
		case "Facet":
			selectType
				-surfaceFace $state
				-subdivMeshFace $state
				-facet $state;
			break;
		case "Hull":
			selectType
				-hull $state;
			break;
		case "Pivot":
			selectType
				-rotatePivot $state
				-scalePivot $state
				-jointPivot $state;
			break;
		case "Marker":
			selectType
				-selectHandle $state;
			break;
		case "Other":
			selectType
				-imagePlane $state
				-localRotationAxis $state;
			break;
	}
}
