// 그라디언트 타입 설정 void Group::SetGradientType(int type) { //노드 데이터 변경 POSITION posNode = NodeData.GetHeadPosition(); while (posNode) { Figure* pGObj = (Figure*)NodeData.GetNext(posNode); pGObj->setGradientType(type); } //차일드 데이터 변경(recursion이 일어남) POSITION posChild = Child.GetHeadPosition(); while (posChild) { Group* pGroup = (Group*)Child.GetNext(posChild); pGroup->SetGradientType(type); } }