Example #1
0
		///<summary>Used to set the root invisible.</summary>
		public void SetGroupVisibility(ToothGroupType groupType,bool setVisible) {
			for(int i=0;i<Groups.Count;i++) {
				if(Groups[i].GroupType!=groupType) {
					continue;
				}
				Groups[i].Visible=setVisible;
			}
		}
Example #2
0
		///<summary></summary>
		public ToothGroup GetGroup(ToothGroupType groupType){
			for(int i=0;i<Groups.Count;i++) {
				if(Groups[i].GroupType==groupType) {
					return Groups[i];
				}
			}
			return null;
		}
Example #3
0
		///<summary>Used to set enamel, cementum, and BU colors externally.</summary>
		public void SetGroupColor(ToothGroupType groupType,Color paintColor){
			for(int i=0;i<Groups.Count;i++){
				if(Groups[i].GroupType!=groupType){
					continue;
				}
				Groups[i].PaintColor=paintColor;
			}
			//if type not found, then no action is taken
		}