Author |
Topic |
|
Ronald Ruijs
Netherlands
24 Posts |
Posted - Apr 16 2020 : 16:40:38
|
Hello,
How do measurement actions work?
I added TImageEnViewMouseMeasureLength action to my ActionManager, and set TImageEnView.RulerPararams.Units to ieuMillimaters.
However, measurements are still in pixels. Am I missing something?
Regards, Ronald |
|
xequte
38180 Posts |
Posted - Apr 16 2020 : 18:07:16
|
Hi Ronald
What is displaying measurements? A layer, a measurement tool, the ruler?
Nigel Xequte Software www.imageen.com
|
|
|
Ronald Ruijs
Netherlands
24 Posts |
Posted - Apr 17 2020 : 05:02:40
|
Hi Nigel,
I think the Action sets TImageEnView.MouseInteractGeneral to miMeasureLength. I guess a LineLayer is created? Both guesses are based on source code studying, as I could not find this in the helpfile.
Help topic TIEMouseInteract says SetScale has to be called, which I did, but I could not find how to speify unit, I expected TImageEnView.RulerParams to be valid for all measurements..
The MeasureIt sets units at global level, which I am a bit reluctant to do, as I have several images with different units.
Regards, Ronald |
|
|
xequte
38180 Posts |
Posted - Apr 18 2020 : 03:05:17
|
Sorry Ronald, I missed that you mentioned TImageEnViewMouseMeasureLength. Are you using 9.0.0? I think that was an issue resolved in that release.
Nigel Xequte Software www.imageen.com
|
|
|
Ronald Ruijs
Netherlands
24 Posts |
Posted - Apr 18 2020 : 05:54:30
|
Hi Nigel,
Yes, I am using v 9.0.0.
Regards, Ronald |
|
|
xequte
38180 Posts |
|
Ronald Ruijs
Netherlands
24 Posts |
Posted - Apr 18 2020 : 10:40:04
|
Hi Nigel,
Thank for explaining. So, there is no possibility to have 2 TImageEnViews visible, 1 measuring in millimeters and 1 measuring in pixels?
In the helpfile, I noticed that I can also specify measureunits by setting LayerDefaults. However, I did not get that to work.
What I do: I set LeayerDefaults.Add(IELP_RulerUnits + '=' + Ord(ieuMillimeters).ToString); but measuring via action is still in pixels, not in millimeters. AM I missing something?
Regards, Ronald
|
|
|
xequte
38180 Posts |
|
Ronald Ruijs
Netherlands
24 Posts |
Posted - Apr 20 2020 : 09:55:12
|
OK, clear. Thanks. |
|
|
|
Topic |
|