コード例 #1
0
ファイル: ToothGraphic.cs プロジェクト: mnisl/OD
		///<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;
			}
		}
コード例 #2
0
ファイル: ToothGraphic.cs プロジェクト: mnisl/OD
		///<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;
		}
コード例 #3
0
ファイル: ToothGraphic.cs プロジェクト: mnisl/OD
		///<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
		}