Visible or not visible component

Visible or not visible component - Visibility of a component depends on the result of the logical function. - Сообщения

#1 Опубликовано: 10.05.2017 09:40:04
Janusz

Janusz

0 сообщений из 6 понравились пользователям.

Группа: User

I propose to add the new feature: a component is visible or not visible. It should depend on, for ex., result of the function "if". If calculation_type=1 then (dw is visible) and (gw is not visible) else ... This option will allow to make the display of the data elements dependent on the type of the calculation element. p.s. Very nice and useful software!
#2 Опубликовано: 10.05.2017 13:49:55
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

The way I interpret you demand is like:
conditional compute/not compute.
In some way we have that already.
How to code invisible ? Hello Gurus !

Jean

Visible.sm (12 КиБ) скачан 62 раз(а).
#3 Опубликовано: 11.05.2017 16:00:41
Arie

Arie

93 сообщений из 285 понравились пользователям.

Группа: User

I think this exists as a plugin. Check out conditionally formatted labels plugin. More info here: http://en.smath.info/forum/yaf_postst2100_Conditionally-Formatted-Labels.aspx
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
1 пользователям понравился этот пост
Davide Carpi 12.05.2017 06:32:00
#4 Опубликовано: 11.05.2017 20:33:29
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Ah ! The forum has crashed for me.
Can't see all previous messages [Martin, Davide ...]


Image Spot True_False.sm (31 КиБ) скачан 47 раз(а).
#5 Опубликовано: 11.05.2017 23:12:01
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

... added simpler spot, neat.


Image Spot True_False.sm (47 КиБ) скачан 50 раз(а).
#6 Опубликовано: 12.05.2017 11:12:33
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Wrote

I propose to add the new feature: a component is visible or not visible. It should depend on, for ex., result of the function "if". If calculation_type=1 then (dw is visible) and (gw is not visible) else ... This option will allow to make the display of the data elements dependent on the type of the calculation element. p.s. Very nice and useful software!



Hello Janusz,

Please, give more hint of what you wish. Previous replies vanished in the wind.
By default, some component(s) don't compute.
"Pixels not in the Map are black because undefined elements matrix are zero by default".
If it works for you: increase "kmax, kkmax" [my 1.6GHz very slow].

Jean

Pattern Cahos 4150 [RGB].sm (94 КиБ) скачан 45 раз(а).



#7 Опубликовано: 14.05.2017 15:50:38
Ernesto

Ernesto

13 сообщений из 74 понравились пользователям.

Группа: User

Janusz,

A limited way of doing this is to right click your if statement (or any operation) and deselect "Display input data".

This leaves you with only the result printed out.
#8 Опубликовано: 15.05.2017 06:33:05
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

The "if/otherwise" is common in Engineering. A less common "if"
is the the "on error", implemented as "try/on error" [6179].
In some other way, it is a "compute/not compute" component(s).
Visit this gorgeous application. 7min [1.6 GHz micro laptop.

Jean

Image Rotate RGB.sm (349 КиБ) скачан 46 раз(а).

Few things have changed in the forum ! ?

#9 Опубликовано: 15.05.2017 07:07:43
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

... compute/not compute can be "bolean" too .
Random fill this Gaussian region.

Jean

Random Fill Range PDF.sm (39 КиБ) скачан 50 раз(а).
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений