Пример #1
0
        public CellCompiler(
            string _cell_id,
            string _abs_output_uri,
            FeatureLayer layer,
            FilterGraph graph,
            float _min_range,
            float _max_range,
            FilterEnv env,
            ResourcePackager _packager,
            osgDB.Archive _archive, // =NULL,
            object user_data) :     // =NULL );
            base(_abs_output_uri, layer, graph, env)
        {
            packager       = _packager;
            cell_id        = _cell_id;
            abs_output_uri = _abs_output_uri;
            min_range      = _min_range;
            max_range      = _max_range;
            archive        = _archive;

            //TODO: maybe the FilterEnv should just have one of these by default.
            SmartReadCallback smart = new SmartReadCallback();

            smart.setMinRange(min_range);
            env.setTerrainReadCallback(smart);
            setUserData(_user_data);
            output_status = CellCompiler.OutputStatus.OUTPUT_UNKNOWN;
        }
Пример #2
0
 /**
  * Sets the archive to which the compiler should write files,
  * if applicable.
  */
 public void setArchive(osgDB.Archive _archive, string _filename)
 {
     archive          = _archive;
     archive_filename = _filename;
 }
Пример #3
0
 public void setArchive(osgDB.Archive value)
 {
     archive = value;
 }
Пример #4
0
 public void setArchive(osgDB.Archive value)
 {
     archive = value;
 }