SF Legend in CCViewer

Feel free to ask any question here
Post Reply
pmr
Posts: 29
Joined: Thu Mar 04, 2021 3:38 pm

SF Legend in CCViewer

Post by pmr »

Is it possible to change the text in the SF legend, that is, to change the scalars to text?
daniel
Site Admin
Posts: 7710
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: SF Legend in CCViewer

Post by daniel »

Ah no, currently it's only numbers, but that's a good idea!

We could add a specific syntax in the color scale definition dialog, next to each numerical step:
-1.0 "min"
0 "zero"
1.0 "max"

And CC would use the string instead of the numerical value (if any)

I'll try to work on that idea.
Daniel, CloudCompare admin
pmr
Posts: 29
Joined: Thu Mar 04, 2021 3:38 pm

Re: SF Legend in CCViewer

Post by pmr »

Thanks Daniel.
daniel
Site Admin
Posts: 7710
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: SF Legend in CCViewer

Post by daniel »

Ok, so this was fairly easy.

The latest 2.13.alpha version online (today) now allows you to add a text label (between double quotes) next to the custom label value. This text will be displayed instead of the numerical value.

I'll let you test.
Daniel, CloudCompare admin
pmr
Posts: 29
Joined: Thu Mar 04, 2021 3:38 pm

Re: SF Legend in CCViewer

Post by pmr »

Thanks. I'm gona try.
pmr
Posts: 29
Joined: Thu Mar 04, 2021 3:38 pm

Re: SF Legend in CCViewer

Post by pmr »

It works! Thanks a lot. Can we import the color scale to use in command line?
daniel
Site Admin
Posts: 7710
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: SF Legend in CCViewer

Post by daniel »

Hopefully yes? Just save it as xml and load it with the right command. Please report if this doesn't work.
Daniel, CloudCompare admin
Post Reply