Exemplo n.º 1
0
        public static SimilarQuery BuildGlobalcolorSimilarQuery(string data)
        {
            TermsObject   to = BuildGlobalcolorTerm(data);
            TermContainer tc = new TermContainer(new[] { to });

            return(new SimilarQuery(new[] { tc }));
        }
Exemplo n.º 2
0
        public static TermsObject BuildGlobalcolorTerm(string data)
        {
            var to = new TermsObject(TermsObject.IMAGE_TYPE, new [] { TermsObject.GLOBALCOLOR_CATEGORY });

            to.data = data;
            return(to);
        }
Exemplo n.º 3
0
        public static SimilarQuery BuildSpatialSimilarQuery(double latitude, double longitude)
        {
            TermsObject   to = BuildLocationTerm(latitude, longitude);
            TermContainer tc = new TermContainer(new [] { to });

            return(new SimilarQuery(new [] { tc }));
        }
Exemplo n.º 4
0
        public static SimilarQuery BuildTemporalSimilarQuery(string utcTime)
        {
            TermsObject   to = BuildTimeTerm(utcTime);
            TermContainer tc = new TermContainer(new[] { to });

            return(new SimilarQuery(new[] { tc }));
        }
Exemplo n.º 5
0
        public static TermsObject BuildTimeTerm(string utcTime)
        {
            var to = new TermsObject(TermsObject.TIME_TYPE, new[] { TermsObject.TERMPORAL_CATEGORY });

            to.data = utcTime;
            return(to);
        }
Exemplo n.º 6
0
        public static TermsObject BuildEdgeTerm(string data)
        {
            var to = new TermsObject(TermsObject.IMAGE_TYPE, new [] { TermsObject.EDGE_CATEGORY });

            to.data = data;
            return(to);
        }
Exemplo n.º 7
0
        public static TermsObject BuildTimeTerm(string utcTime)
        {
            var to = new TermsObject(TermsObject.TIME_TYPE,
                                     new[] { CineastUtils.Configuration.categories.temporal });

            to.data = utcTime;
            return(to);
        }
Exemplo n.º 8
0
        public static SimilarQuery BuildMultiCategoryQuery(string[] categories, string data)
        {
            TermsObject to = new TermsObject(TermsObject.IMAGE_TYPE, categories);

            to.data = data;
            TermContainer tc = new TermContainer(new[] { to });

            return(new SimilarQuery(new[] { tc }));
        }
Exemplo n.º 9
0
        public static TermsObject BuildLocationTerm(double latitude, double longitude)
        {
            var to = new TermsObject(TermsObject.LOCATION_TYPE, new[]
            {
                CineastUtils.Configuration.categories.spatial
            });

            to.data = string.Format("[{0},{1}]", latitude, longitude);
            return(to);
        }
Exemplo n.º 10
0
        public static TermsObject BuildLocationTerm(double latitude, double longitude)
        {
            var to = new TermsObject(TermsObject.LOCATION_TYPE, new[]
            {
                TermsObject.SPATIAL_CATEGORY
            });

            to.data = string.Format("[{0},{1}]", latitude, longitude);
            return(to);
        }
Exemplo n.º 11
0
        public static SimilarQuery BuildGlobalColEdgeSimilarQuery(string data)
        {
            TermsObject to = new TermsObject(TermsObject.IMAGE_TYPE, new [] {
                TermsObject.GLOBALCOLOR_CATEGORY, TermsObject.EDGE_CATEGORY
            });

            to.data = data;
            TermContainer tc = new TermContainer(new[] { to });

            return(new SimilarQuery(new[] { tc }));
        }
Exemplo n.º 12
0
 public void RemoveQbL()
 {
     RemoveFromScroll(qbl);
     locationTerm = null;
 }
Exemplo n.º 13
0
 public void RemoveQbT()
 {
     RemoveFromScroll(qbt);
     timeTerm = null;
 }
Exemplo n.º 14
0
 private void SetExampleTerm(string data)
 {
     exampleTerm = QueryFactory.BuildQbETerm(data);
 }
Exemplo n.º 15
0
 private void SetTimeTerm(int lower, int upper)
 {
     timeTerm = QueryFactory.BuildTimeTerm(CineastUtils.ConvertYearToISO8601((lower + upper) / 2));
 }
Exemplo n.º 16
0
 private void SetLocationTerm(double lat, double lon)
 {
     locationTerm = QueryFactory.BuildLocationTerm(lat, lon);
 }
Exemplo n.º 17
0
 public void RemoveQbE()
 {
     RemoveFromScroll(qbe);
     exampleTerm = null;
 }