Change Tool Cone Size in Axis

More
6 years 7 months ago #159106 by cmorley
Yes I can look into it. Probably nicer if it was adjustable in AXIS but not sure
I have the patients for that - maybe Phil can help me there...

You can hide the tool in AXIS - it's an option under view.
Not sure if you noticed.

Chris
The following user(s) said Thank You: rodw

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago #159108 by rodw
Replied by rodw on topic Change Tool Cone Size in Axis
But I use Gmoccappy :(

Surely the code is not GUI specific. A setting in {DISPLAY] section of ini file would be cool.
The following user(s) said Thank You: daiman444

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago #159111 by cmorley
axis/Gmoccapy/Gscreen/Qtvcp all use the same basic code for graphics.
The underlying code changes work for all of them.

It how to change the size that will be screen defined.
The reason i say that in screen adjustment would be preferred is you can:
-immediately see the change (rather then change INI, start linuxcnc, shutdown linuxcnc, readjust INI etc)
- adjust depending if the particular program requires a change, say because lines are really unusually close.

maybe we can do both - follow INI but be adjustable in screen...
The following user(s) said Thank You: rodw

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago #159114 by rodw
Replied by rodw on topic Change Tool Cone Size in Axis
I think you would have to do both.
If the feature is not GUI specific and is part of the GUI core then adjusting it should never be tied to a GUI. That breaks the modular design of Linuxcnc.

Something like
Code:
if self.canon: g = self.canon x,y,z = 0,1,2 cone_scale = max(g.max_extents[x] - g.min_extents[x], g.max_extents[y] - g.min_extents[y], g.max_extents[z] - g.min_extents[z], 2 ) * .5 # <- THIS HERE cone_scale = cone_scale * tool-scale else: cone_scale = 1 ###------------ INI FILE ------------------- [DISPLAY] # tool-scale changes the screen "cone" that represents the tool. Defaults to 1.0 if not present tool-scale = 0.5

Does the other side of the scale if statement need scaling?

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago #159119 by cmorley
Pushed to 2.8 and master - a few hours to get through the buildbot
under the [DISPLAY] heading:

CONE_BASESIZE = .25

numbers 2 - .025

Chris
The following user(s) said Thank You: phillc54, chimeno, tommylight, rodw

Please Log in or Create an account to join the conversation.

More
6 years 7 months ago #159120 by rodw
Replied by rodw on topic Change Tool Cone Size in Axis

cmorley wrote: Pushed to 2.8 and master - a few hours to get through the buildbot
under the [DISPLAY] heading:

CONE_BASESIZE = .25

numbers 2 - .025

Chris


Chris, great thanks! I love it when ideas discussed on the forum become features in LInuxcnc. Its just the power of open source at work!

I'm due to rebuild my Plasmac config, so I'll give it a whirl in the next couple of days.

Please Log in or Create an account to join the conversation.

Time to create page: 0.263 seconds
Powered by Kunena Forum