コード例 #1
0
        /**
         * Copy constructor.
         */
        public MathTransformFilter(MathTransformFilter rhs)
#if TODO
            : base(rhs)
#endif
        {
            xform_matrix     = rhs.xform_matrix;
            localize         = rhs.localize;
            use_terrain_srs  = rhs.use_terrain_srs;
            srs              = rhs.srs;
            srs_script       = rhs.srs_script;
            translate_script = rhs.translate_script;
        }
コード例 #2
0
        /**
         * Copy constructor.
         */
        public MathTransformFilter(MathTransformFilter rhs)
#if TODO
            : base(rhs)
#endif
        {
            xform_matrix = rhs.xform_matrix;
            localize = rhs.localize;
            use_terrain_srs = rhs.use_terrain_srs;
            srs = rhs.srs;
            srs_script = rhs.srs_script;
            translate_script = rhs.translate_script;
        }
コード例 #3
0
ファイル: Registry.cs プロジェクト: andyhebear/mogregis3d
        /**
         * Es un constructor statico que añade al MathTransformFilter, el BuildGeomFilter y el AreaFilter.
         * Esta comentado porque de momento no esta implementado ninguno de esos filtros, y hay que mirar
         * si no se deberia hacer como con los resources, que fueran ellos los que se fueran añadiendo
         * ellos mismos.
         */
        static Registry()
        {
#if TODO_PH
            Registry.instance().addFilterType(MathTransformFilter.getStaticFilterType(), MathTransformFilter.getFilterFactory());
            Registry.instance().addFilterType(BuildGeomFilter.getStaticFilterType(), BuildGeomFilter.getFilterFactory());
            Registry.instance().addFilterType(AreaFilter.getStaticFilterType(), AreaFilter.getFilterFactory());
#endif
            //Registry.instance().LoadAndRegistryEngine("MogreGis.IronPythonScriptEngine", "../../../PythonScriptEngine/bin/Debug/PythonScriptEngine.dll");

            Registry.instance().addFilterType(TransformFilter.getStaticFilterType(), TransformFilter.getFilterFactory());
            Registry.instance().addFilterType(BuildGeomFilter.getStaticFilterType(), BuildGeomFilter.getFilterFactory());
            Registry.instance().addFilterType(AreaFilter.getStaticFilterType(), AreaFilter.getFilterFactory());
            Registry.instance().addFilterType(AttributeFilter.getStaticFilterType(), AttributeFilter.getFilterFactory());
        }
コード例 #4
0
ファイル: Registry.cs プロジェクト: andyhebear/mogregis3d
        /**
         * Creates a new instance of a typed Filter implementation. The type must
         * have been previously registered via addFilterType().
         *
         * @param type
         *      Type name of filter to create
         * @return
         *      New filter instance. Caller is responsible for deleting the
         *      return object.
         */
        public Filter createFilterByType(string type)
        {
#if TODO
            //provisional code
            Filter f = null;
            if (type == "MathTransform")
            {
                f = new MathTransformFilter();
            }
            return(f);
#endif

            string        n = normalize(type);
            FilterFactory result;
            return(filter_factories.TryGetValue(n, out result) ? result.createFilter() : null);
        }
コード例 #5
0
ファイル: Registry.cs プロジェクト: agustinsantos/mogregis3d
        /**
        * Creates a new instance of a typed Filter implementation. The type must
        * have been previously registered via addFilterType().
        *
        * @param type
        *      Type name of filter to create
        * @return
        *      New filter instance. Caller is responsible for deleting the
        *      return object.
        */
        public Filter createFilterByType(string type)
        {
            #if TODO
            //provisional code
            Filter f = null;
            if (type == "MathTransform")
            {
                f = new MathTransformFilter();
            }
            return f;
            #endif

            string n = normalize(type);
            FilterFactory result;
            return filter_factories.TryGetValue(n, out result) ? result.createFilter() : null;
        }