Hi,
I'm trying to understand the code behind the figure here to rotate labels:
So, I made a minimal example to start with, here (code is at
http://ws.stfx.eu/N6ZG4BAIBO00 )
Now I would like to rotate the text to made it look like the first
image. I presume that the code that made this possible for the first
case is this one:
====================
RTBundleBuilder>>createLabelFor: e view: aView
| lbl |
lbl := label elementOn: e model.
self interaction setUpElement: lbl.
aView add: lbl.
e addCallback: (TRTranslationCallback new block: [
| angle |
angle := (e position - center ) theta.
lbl translateTo: e position+((lbl trachelShape
notRotatedWidth/2) * (angle cos @ angle sin)).
angle := angle radiansToDegrees.
angle := angle + ((angle between: 90 and: 270) ifTrue: [ 180 ]
ifFalse: [ 0 ]).
lbl trachelShape angleInDegree: angle ] ).
e translateTo: e position.
====================
but I can not quite understand the lines
lbl translateTo: e position+((lbl trachelShape notRotatedWidth/2) *
(angle cos @ angle sin)).
and
angle := angle + ((angle between: 90 and: 270) ifTrue: [ 180 ] ifFalse:
[ 0 ]).
Could some body explain me how to incorporate rotation to the first
basic example at http://ws.stfx.eu/N6ZG4BAIBO00 (second image of this mail).
Thanks,
Offray
To all the moose community!
Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Hi all,
just in case this is not a known bug: Intensive use of Roassal2 in Pharo 5 causes a segfault of the mac vm. A crash.dump is attached. It’s the vm I got just now ( wget --quiet -O - get.pharo.org/50+vm | bash ) and Pharo5 with Alexes’ 17280 slice to make Roassal visualize shapes correctly.
To reproduce, all I need to do is have a visualization open with a layout animation and after some time it will crash. I use this in LRP and I can give easy steps to reproduce if needed.
---> Save our in-boxes! http://emailcharter.org <---
Johan Fabry - http://pleiad.cl/~jfabry
PLEIAD and RyCh labs - Computer Science Department (DCC) - University of Chile
Hi,
When loading moose or GT I get the error bellow.
Any idea from where GLMFillWidthStrategy, GLMFillWidthAndHeightStrategy or
GLMRigidStrategy come?
(I didn't look into it)
A simple way to reproduce is by executing:
Gofer it
smalltalkhubUser: 'Moose' project: 'GToolkit';
package: 'ConfigurationOfGToolkit';
load.
#ConfigurationOfGToolkit asClass loadDevelopment.
Cheers,
Andrei
This package depends on the following classes:
GLMFillWidthStrategy
GLMFillWidthAndHeightStrategy
GLMRigidStrategy
You must resolve these dependencies before you will be able to load these
definitions:
GLMFillWidthAndHeightStrategy>>#initializeContainer:
GLMFillWidthAndHeightStrategy>>#initializeFirstColumn:
GLMFillWidthAndHeightStrategy>>#initializePane:
GLMFillWidthAndHeightStrategy>>#initializeSecondColumn:
GLMFillWidthStrategy>>#initializeContainer:
GLMFillWidthStrategy>>#initializeFirstColumn:
GLMFillWidthStrategy>>#initializePane:
GLMFillWidthStrategy>>#initializeSecondColumn:
GLMRigidStrategy>>#initializeContainer:
GLMRigidStrategy>>#initializeFirstColumn:
GLMRigidStrategy>>#initializePane:
GLMRigidStrategy>>#initializeSecondColumn:
Hi guys,
Installing stable Roassal2 from the Catalog Browser, in Pharo 5 (#50509),
leads to a vanish dialog :
Information
There was an error while trying to install Roassal2. Installation was
cancelled.
and to the following message in Transcript:
Loading 1.20 of ConfigurationOfRoassal2...
...
Loaded -> ConfigurationOfGlamour-AndreiChis.217 ---
http://smalltalkhub.com/mc/Moose/Glamour/main/ ---
http://smalltalkhub.com/mc/Moose/Glamour/main/Error: Unable to resolve
project package for 'GlamourCore'. It is likely that that the configuration
referencing this project will not validate properly (see MetacelloToolBox
class>>validateConfiguration:).
Is Roassal2 configuration broken?
Cheers,
Hernán
Hi,
On Moose 51 if you try to save code on GTDebugger you will get a DNU
because the method DebuggerModel>>#selectedMessageName call #messageName
instead of #messageSeletor.
This is pretty annoying. I don't really know what I need to change where.
Can someone who knows better Moose can take a look please?
Thank you.
--
Cyril Ferlicot
http://www.synectique.eu
165 Avenue Bretagne
Lille 59000 France
Hi,
For some tools in Synectique in Glamour we have some empty panes that
are only rendered when they receive something on the entity port.
So the user needs to click on an element of a list before the pane is
rendered.
I would like to know if it is possible to open a pane with some
instructions/text util the transmission is not triggered instead of an
empty space to fill the space and help the user?
Thank you.
--
Cyril Ferlicot
http://www.synectique.eu
165 Avenue Bretagne
Lille 59000 France
Hi all,
I was trying to load Roassal2 stable (ConfigurationOfRoassal2 load) in today’s Pharo 5 build but it fails with the following error: 'Unable to resolve project package for ''GlamourCore''. It is likely that that the configuration referencing this project will not validate properly (see MetacelloToolBox class>>validateConfiguration:).'
If I try to load development (ConfigurationOfRoassal2 loadDevelopment, it complains that I will lose changes to Glamour-Morphic-Renderer, and then I get a warning:
This package depends on the following classes:
GLMFillWidthStrategy
GLMFillWidthAndHeightStrategy
GLMRigidStrategy
What should I do to get a working version of Roassal2 for Pharo 5?
---> Save our in-boxes! http://emailcharter.org <---
Johan Fabry - http://pleiad.cl/~jfabry
PLEIAD and RyCh labs - Computer Science Department (DCC) - University of Chile