Skip to content

Commit

Permalink
Add help
Browse files Browse the repository at this point in the history
  • Loading branch information
desmond60 committed Jun 16, 2022
1 parent acab48a commit 78cbd85
Show file tree
Hide file tree
Showing 130 changed files with 73 additions and 203 deletions.
4 changes: 2 additions & 2 deletions ImageView/Parser.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ class Parser
plugin_string Parser::Creat_Parser(PathFiles _path) {
std::ifstream fin;
FILE* f;
std::ofstream out("D:\\hello.txt");
if (_path.SizeMatrix == 0) {
switch (CurrentTypeMatrixSize)
{
Expand Down Expand Up @@ -166,6 +165,7 @@ plugin_string Parser::Creat_Parser(PathFiles _path) {
if (!fin.is_open()) return MErrorFileIG;
for (size_t i = 0; i < _size + 1; i++)
fin >> ig[i];
if (ig.empty()) return MErrorIncorrectIG;
fin.close();
}

Expand All @@ -187,6 +187,7 @@ plugin_string Parser::Creat_Parser(PathFiles _path) {
if (!fin.is_open()) return MErrorFileIG;
for (size_t i = 0; i < _size + 1; i++)
fin >> ig[i];
if (ig.empty()) return MErrorIncorrectIG;
fin.close();
}

Expand Down Expand Up @@ -234,7 +235,6 @@ plugin_string Parser::Creat_Parser(PathFiles _path) {
fin >> gg[i];
fin.close();
}
out.close();
return ps_title; // ps_title = 0;
}

Expand Down
38 changes: 35 additions & 3 deletions ImageView/dist/PortraitMatrix_eng.hlf
Original file line number Diff line number Diff line change
@@ -1,8 +1,40 @@
.Language=English,English (English)
.PluginContents=Portrait Matrix
.PluginContents=for the user


@Contents
$ #Portrait Matrix#
$^ #Building a matrix portrait#

This is Portrait Matrix Plugin help=)
This plugin is designed to build a portrait of the matrix

The input data for the plugin is a matrix stored in a sparse format:
• di - array of real numbers for storing diagonal elements
• gg - array of real numbers for storing non-zero elements
• ig - an array of integers to store the row numbers of the corresponding array elements gg
• jg - an array of integers to store the column numbers of the corresponding array elements gg
• kuslau - stores a single integer, the dimension of the matrix (optional file)

The output data of the plugin will be a PNG or BMP image of your choice and a file that contains detailed information about the matrix.

@=~

The plugin can be activated by selecting a folder with a matrix or a file ig.

The plugin supports the matrix:
• in text format (.txt)
• in binary format (.dat)

Supports files without extension in text format.

@=~

To run the plugin, you need to:
» So that the matrix files have the same extension
» Choose a graphic format (PNG или BMP)
» Choose from which file to read the size of the matrix (IG or KUSLAU), or enter a number in the "Matrix size" field
» Select the file extension if the plugin was launched through the folder

If desired, you can:
» Write the desired image size
» Select an item with color gradation
» Select show picture immediately after creating it
40 changes: 36 additions & 4 deletions ImageView/dist/PortraitMatrix_rus.hlf
Original file line number Diff line number Diff line change
@@ -1,8 +1,40 @@
.Language=Russian,Russian (Русский)
.PluginContents=Портрет матрицы

.PluginContents=для пользователя
.Options CtrlColorChar=\

@Contents
$ #Портрет матрицы#
$^ #Построение портерта матрицы#

Данный плагин предназначен для построения портрета матрицы

Входными данными для плагина является матрица хранящаяся в разреженном формате:
• di - массив вещественных чисел для хранения диагональных элементов
• gg - массив вещественных чисел для хранения ненулевых элементов
• ig - массив целых чисел для хранения номеров строк соответствующих элементов массива gg
• jg - массив целых чисел для хранения номеров столбцов соответствующих элементов массива gg
• kuslau - хранит одно целое число, размерность матрицы (необязательный файл)

Выходными данными плагина будет картинка PNG или BMP на ваш выбор и файл, который содержит подробную информацию о матрице.

@=~

Плагин можно активировать, выбрав папку с матрицей или файл ig.

Плагин поддерживает матрицу:
• в текстовом формате (.txt)
• в бинарном формате (.dat)

Поддерживает файлы без расширение в текстовом формате.

@=~

Для запуска плагина вам необходимо:
» Чтобы файлы матрицы были одного расширения
» Выбрать графический формат (PNG или BMP)
» Выбрать с какого файла прочитать размер матрица (IG или KUSLAU), либо вписать число в поле "Размер матрицы"
» Выбрать расширение файлов, если плагин был запущен через папку

Это файл справки Расскажи про портерт матрицы мне Мне скушно=)
По желанию можно:
» Написать желаемый размер картинки
» Выбрать пункт с градацией цвета
» Выбрать пункт показать картинку сразу после ее создания
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

This file was deleted.

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 78cbd85

Please sign in to comment.