Ejemplo n.º 1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="obstaclesParser">
 /// a map parser implementing IGroupParser.
 /// This parser is used to load a map file for the obstacles.</param>
 /// <param name="areasParser">
 /// a map parser implementing IGroupParser. This parser is used to load a map file for the areas.
 /// It should be a different object than obstaclesParser or implemented thread-safe.</param>
 /// <param name="poseFactory">a pose factory implementing IPoseFactory.</param>
 /// <param name="rangeReadingFactory">a range reading factory implementing IRangeReadingFactory.</param>
 public MclCartesianPlot2D(IGroupParser obstaclesParser, IGroupParser areasParser, IPoseFactory <P, M> poseFactory, IRangeReadingFactory <R> rangeReadingFactory)
 {
     this.poseFactory         = poseFactory;
     this.rangeReadingFactory = rangeReadingFactory;
     obstacles = new CartesianPlot2D(obstaclesParser);
     areas     = new CartesianPlot2D(areasParser);
 }
Ejemplo n.º 2
0
 public ListCommand(
     IBraindumpService braindumpService,
     IConsole console,
     IGroupParser groupParser)
 {
     this.braindumpService = braindumpService;
     this.console          = console;
     this.groupParser      = groupParser;
 }
Ejemplo n.º 3
0
 public AddCommand(
     IBraindumpService braindumpService,
     IConsole console,
     IReminderParser reminderParser,
     IGroupParser groupParser)
 {
     this.braindumpService = braindumpService;
     this.console          = console;
     this.reminderParser   = reminderParser;
     this.groupParser      = groupParser;
 }
Ejemplo n.º 4
0
        public ObjLoader(IDataStore dataStore, IFaceParser faceParser, IGroupParser groupParser, IObjectParser objectParser, INormalParser normalParser, ITextureParser textureParser, IVertexParser vertexParser, IMaterialLibraryParser materialLibraryParser, IUseMaterialParser useMaterialParser)
        {
            _dataStore = dataStore;

            SetupTypeParsers(
                vertexParser,
                faceParser,
                normalParser,
                textureParser,
                groupParser,
                objectParser,
                materialLibraryParser,
                useMaterialParser
                );
        }
Ejemplo n.º 5
0
 public WavefrontObjLoader(
     IDataStore dataStore,
     IFaceParser faceParser,
     IGroupParser groupParser,
     IVertexNormalParser normalParser,
     ITextureCoordinateParser textureParser,
     IGeometricVertexParser vertexParser,
     IMaterialLibraryParser materialLibraryParser,
     IUseMaterialParser useMaterialParser)
 {
     _dataStore = dataStore;
     SetupTypeParsers(
         vertexParser,
         faceParser,
         normalParser,
         textureParser,
         groupParser,
         materialLibraryParser,
         useMaterialParser);
 }
Ejemplo n.º 6
0
 public ObjLoader(
     IDataStore dataStore, 
     IFaceParser faceParser, 
     IGroupParser groupParser,
     INormalParser normalParser, 
     ITextureParser textureParser, 
     IVertexParser vertexParser,
     IMaterialLibraryParser materialLibraryParser, 
     IUseMaterialParser useMaterialParser)
 {
     _dataStore = dataStore;
     SetupTypeParsers(
         vertexParser,
         faceParser,
         normalParser,
         textureParser,
         groupParser,
         materialLibraryParser,
         useMaterialParser);
 }
Ejemplo n.º 7
0
        public WavefrontObjLoader(
			IDataStore dataStore,
			IFaceParser faceParser,
			IGroupParser groupParser,
			IVertexNormalParser normalParser,
			ITextureCoordinateParser textureParser,
			IGeometricVertexParser vertexParser,
			IMaterialLibraryParser materialLibraryParser,
			IUseMaterialParser useMaterialParser)
        {
            _dataStore = dataStore;
            SetupTypeParsers(
                             vertexParser,
                faceParser,
                normalParser,
                textureParser,
                groupParser,
                materialLibraryParser,
                useMaterialParser);
        }
Ejemplo n.º 8
0
        public MainViewModel(IMessageBus messageBus, IGroupParser groupParser,
                             IFileHandler fileHandler, IEnumerable <Languages> languages, IUpdateTimer updateTimer,
                             IRaidCategorizer raidCategorizer, FireteamViewModelFactory fireteamViewModelFactory)
        {
            _messageBus               = messageBus;
            _groupParser              = groupParser;
            _fileHandler              = fileHandler;
            _updateTimer              = updateTimer;
            _raidCategorizer          = raidCategorizer;
            _fireteamViewModelFactory = fireteamViewModelFactory;

            Languages        = new List <Languages>(languages);
            SelectedLanguage = Languages.FirstOrDefault();

            LoadGroupsFromFile();

            UpdateCommand = new RelayCommand(_ => UpdateGroups(), _ => !IsUpdatingGroups);
            OpenCommand   = new RelayCommand(OpenDetail, _ => !IsUpdatingGroups);
            UpdateGroups();

            UpdateTime = 0;
            _updateTimer.TimeoutAction = () => UpdateUpdateTime();
            _updateTimer.StartTimer(1000);
        }
Ejemplo n.º 9
0
 /**
  * @param parser a file parser which : {@link IGroupParser}. This parser is used to load a map file.
  */
 public CartesianPlot2D(IGroupParser parser)
 {
     this.parser = parser;
 }