コード例 #1
0
        private static FilterStateResult meterGroups <A, B>(CollectionFilter filter, A groups, B state, int metering, FilterEnv env)
        {
            FilterStateResult result;

            string prop = filter.getAssignmentNameProperty();

            foreach (A i in groups) //TODO.begin(); i != groups.end() && result.isOK(); i++ )
            {
                if (prop.Length > 0)
                {
                    env.setProperty(new Property(prop, i.first));
                    //TODO  osgGIS::debug() << "[CollectionFilterState] Metering group '" << i.first << "', prop='" << prop << "'" << std::endl;
                }

                filter.preMeter(i.second, env);
                result = meterData(i.second, state, metering, env);
            }
            return(result);
        }
コード例 #2
0
 /**
  * Copy constructor.
  */
 public CollectionFilter(CollectionFilter rhs)
     : base(rhs)
 {
     metering            = rhs.metering;
     group_property_name = rhs.group_property_name;
 }
コード例 #3
0
 public CollectionFilterState(CollectionFilter _filter)
 {
     filter = _filter;
 }
コード例 #4
0
 /**
  * Copy constructor.
  */
 public CollectionFilter(CollectionFilter rhs)
     : base(rhs)
 {
     metering = rhs.metering;
     group_property_name = rhs.group_property_name;
 }