| 728 | |
| 729 | template <class DomainType> |
| 730 | DomainType* vtkSMProperty::FindDomain() |
| 731 | { |
| 732 | auto iter = vtkSmartPointer<vtkSMDomainIterator>::Take(this->NewDomainIterator()); |
| 733 | for (iter->Begin(); !iter->IsAtEnd(); iter->Next()) |
| 734 | { |
| 735 | if (DomainType* domain = DomainType::SafeDownCast(iter->GetDomain())) |
| 736 | { |
| 737 | return domain; |
| 738 | } |
| 739 | } |
| 740 | return nullptr; |
| 741 | } |
| 742 | #endif |
no test coverage detected