IFrameFilter::getFilterInfo Method

This method returns a FilterInfo structure, containing information about the name of the filter and the directory from which it was loaded.
Syntax:
FilterInfo getFilterInfo() const;
Return Value:

A FilterInfo structure filled with the filter's name, module and filter class.

Example:

The following example prints information about the filters in a filter chain to the console. The information is retrieved using the getFilterInfo method.

void printFilterList( const tFrameFilterList& filters )
{
    std::cout << "Filter Chain:" << std::endl;
    forunsigned int i = 0; i < filters.size(); ++i )
    {
        std::cout << i << ":" << std::endl;
 
        FilterInfo fi = filters[i]->getFilterInfo();
        std::cout << "Name: " << fi.getFilterName() << std::endl;
        std::cout << "Module: " << fi.getModuleName() << std::endl;
        std::cout << "Path: " << fi.getModulePath() << std::endl;
        std::cout << "Filter class: ";
        switch( fi.getFilterClass() )
        {
        case eFC_GENERIC:
            std::cout << "generic" << std::endl;
            break;
        case eFC_INTERNAL:
            std::cout << "internal" << std::endl;
            break;
        default:
            std::cout << "unknown" << std::endl;
            break;
        }
    }
    std::cout << std::endl;
}
See also: IFrameFilter, IFrameFilter::getAvailableParameters

<< IFrameFilter

This site is part of The Imaging Source Network. Other sites include Company Portal, Image Processing, Astronomy Cameras, Astronomy Cameras Blog, Blog caméras d'astronomie, Astronomy Cameras Competition, TX Text Control, LiveDocx, phpLiveDocx and Forums.