Author Topic: CBubble - Entity information popup box  (Read 26783 times)

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 4933
    • View Profile
CBubble - Entity information popup box
« on: May 20, 2015, 10:21:31 am »
In Rhino3D there is a plugin called Bubble, this is a similar thing for CamBam.

Please note this is a Beta version for test purposes and comment ! it was but not now

1. Install the Plugin
2. Draw some lines, circles, text, etc.
3. Move the mouse around - nothing special happens
4. Now keep the Shift' key pressed as you move around.

4. Now keep the letter ' i ' key pressed as you move around.
 When the mouse cursor is over an entity, a box will appear with information about that entity.

something similar was requested here; (maybe others too ?)
http://www.cambam.co.uk/forum/index.php?topic=4781.msg36278#msg36278
http://www.cambam.co.uk/forum/index.php?topic=1565.msg8676#msg8676

Edit:
v2 attached
1. Fixed wrong start position
2. Added Spline information

Edit:
v3 attached
1. Faster fade in, feels more responsive
2. Display glitch fixed.

Edit:
v4 attached
1. Added translation code

Edit:
v5 attached
1. changes for translation

Edit: updated, I removed some diagnostic comments left active in error.

Edit:
v6 attached
1. Added a line showing XYZ of Polyline first point.

Edit:
v7 attached
1. The activation key has been changed from Shift to i
i.e. Press the i key as you move the mouse to make the popup appear.

Edit:
v8 attached
1. The first point of a Polyline is highlighted with a 'point'
2. If you put the polyline into Edit mode where all the control points are shown,
the popup still works and still highlights the first point.

Edit:
v9 attached
1. Added, 'Height', 'Width', 'Depth' parameters, these are derived from, ( Max extrema - Min extrema) therefore the level of usefulness will depend upon the type of entity being examined.

I also like to use integers for each version number because they are easier to read and we are not going to run out of them any time soon  :D

Edit:
v10 attached
Spline shows "start" or first point

Edit:
v11 attached
Arc and Circle shows "start" or first point.
Please note that even if the circle is rotated, it still shows the start at 3 o'clock, this means it MUST be converted to a polyline if you wish to change the start position.
« Last Edit: December 29, 2021, 15:23:24 pm by EddyCurrent »
Made in England

Offline pixelmaker

  • CNC Jedi
  • *****
  • Posts: 1849
    • View Profile
    • pixelmaker
Re: CBubble - Entity information popup box
« Reply #1 on: May 20, 2015, 10:35:31 am »
Thank you !!
this is very helpfull for complex files.

ralf

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 4933
    • View Profile
Re: CBubble - Entity information popup box
« Reply #2 on: May 20, 2015, 10:37:03 am »
Ralf,
Thanks, yes I find it useful too.
Do you have any ideas how to make it better ?
Made in England

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 4933
    • View Profile
Re: CBubble - Entity information popup box
« Reply #3 on: May 20, 2015, 12:26:21 pm »
Forgot to add splines, will do it now.

Edit:
1. Spline information added
2. Fixed wrong start position of popup box
« Last Edit: May 20, 2015, 12:52:08 pm by EddyCurrent »
Made in England

Offline klystron

  • Ewok
  • *
  • Posts: 36
    • View Profile
Re: CBubble - Entity information popup box
« Reply #4 on: May 20, 2015, 12:27:00 pm »
Thanks for informations .
Yves

Offline dave benson

  • CNC Jedi
  • *****
  • Posts: 1539
    • View Profile
Re: CBubble - Entity information popup box
« Reply #5 on: May 20, 2015, 12:43:34 pm »
HI Eddy
Just used it now on two drawing one engraving file that I'm testing, and found it quite handy.
Discovered that some of the polylines were in fact lines.
Dave.

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 4933
    • View Profile
Re: CBubble - Entity information popup box
« Reply #6 on: May 20, 2015, 13:10:18 pm »
Quote
HI Eddy
Just used it now on two drawing one engraving file that I'm testing, and found it quite handy.

Dave, I needed a break from the DotPolylines plugin  ;D

Added new version to first post
« Last Edit: May 20, 2015, 14:13:53 pm by EddyCurrent »
Made in England

Online BR52

  • Wookie
  • ****
  • Posts: 363
    • View Profile
Re: CBubble - Entity information popup box
« Reply #7 on: May 20, 2015, 13:10:44 pm »
Ladies and Gentlemen, this plugin has been approved!
Eddy congratulations and thanks for your plugin.
Just missing the source code.

   Armando

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 4933
    • View Profile
Re: CBubble - Entity information popup box
« Reply #8 on: May 20, 2015, 13:15:39 pm »
Quote
Eddy congratulations and thanks for your plugin.
Just missing the source code.

   Armando


Did your ILSpy stop working ?  
« Last Edit: May 20, 2015, 14:13:22 pm by EddyCurrent »
Made in England

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 6716
    • View Profile
    • Cambam V1.0 French Doc
Re: CBubble - Entity information popup box
« Reply #9 on: May 20, 2015, 13:38:24 pm »
Hello,

Great addition !!!

A suggestion, if possible, detect when the quick move is used (shift + left clic + mouse move) to avoid some display glitch for the info panel when we move the objects.

Quote
I need a break from the DotPolylines plugin

 ;D

++
David

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 4933
    • View Profile
Re: CBubble - Entity information popup box
« Reply #10 on: May 20, 2015, 14:08:29 pm »
Hello,

A suggestion, if possible, detect when the quick move is used (shift + left clic + mouse move) to avoid some display glitch for the info panel when we move the objects.
++
David

Update added to the first post (version 3) I think this solves the issue and is a bit faster with the fade in, feels more responsive.
Made in England

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 6716
    • View Profile
    • Cambam V1.0 French Doc
Re: CBubble - Entity information popup box
« Reply #11 on: May 20, 2015, 14:33:45 pm »
Yes, nice !!

Ready to translate ;)

++
David

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 4933
    • View Profile
Re: CBubble - Entity information popup box
« Reply #12 on: May 20, 2015, 14:39:21 pm »
Yes, nice !!

Ready to translate ;)

++
David

How is that going to work ?

I have string arrays like this;

str1[10] = "Corner Radius:";
str1[11] = "Height:";
str1[12] = "Width:";
str1[13] = "Has Arcs:";
str1[14] = "Closed:";
str1[15] = "Direction:";
str1[16] = "# Segments:";

so will it be like this ?

str1[10] = TextTranslation.Translate("Corner Radius:");
Made in England

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 6716
    • View Profile
    • Cambam V1.0 French Doc
Re: CBubble - Entity information popup box
« Reply #13 on: May 20, 2015, 14:45:54 pm »
Quote
so will it be like this ?

str1[10] = TextTranslation.Translate("Corner Radius:");

Yes, I thinks ... never tried with an array, but it should work ...

++
David

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 4933
    • View Profile
Re: CBubble - Entity information popup box
« Reply #14 on: May 20, 2015, 15:11:35 pm »
Version 4 attached to first post, translation code added.
Made in England