Scale Bar

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Scale Bar

Lindsey, Portland

Is there any way to change the number of decimal places displayed on the end point value on the scale bar?



This message and any enclosures are intended only for the addressee. Please
notify the sender by email if you are not the intended recipient. If you are
not the intended recipient, you may not use, copy, disclose, or distribute this
message or its contents or enclosures to any other person and any such actions
may be unlawful. Ball reserves the right to monitor and review all messages
and enclosures sent to or from this email address.

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Opticks-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/opticks-users
Reply | Threaded
Open this post in threaded view
|

Re: Scale Bar

dadkins
Administrator

It doesn’t look like it.

The code to set the text is in ScaleBarObjectImp.cpp:

   ostringstream center;

   center << (ticksizeDistance * 5.0) * spacingScale << unitsText;

   TextStringProperty centerText(center.str());

   ostringstream right;

   right << lengthBar * spacingScale << unitsText;

   string newRightVal = right.str();

   TextStringProperty rightText(right.str());

   TextStringProperty leftText("0" + unitsText);

 

It should be easy to add if necessary.

 

Thanks,

Dustan

 

From: Lindsey, Portland [mailto:[hidden email]]
Sent: Tuesday, May 20, 2014 3:53 PM
To: [hidden email]
Subject: [Opticks-users] Scale Bar

 

Is there any way to change the number of decimal places displayed on the end point value on the scale bar?



This message and any enclosures are intended only for the addressee. Please
notify the sender by email if you are not the intended recipient. If you are
not the intended recipient, you may not use, copy, disclose, or distribute this
message or its contents or enclosures to any other person and any such actions
may be unlawful. Ball reserves the right to monitor and review all messages
and enclosures sent to or from this email address.



This message and any enclosures are intended only for the addressee. Please
notify the sender by email if you are not the intended recipient. If you are
not the intended recipient, you may not use, copy, disclose, or distribute this
message or its contents or enclosures to any other person and any such actions
may be unlawful. Ball reserves the right to monitor and review all messages
and enclosures sent to or from this email address.

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Opticks-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/opticks-users