Search found 1348 matches

by riviere
Thu Apr 12, 2018 1:10 pm
Forum: Anatomist
Topic: QPixmap::setMask() mask size differs from pixmap size
Replies: 17
Views: 8204

Re: QPixmap::setMask() mask size differs from pixmap size

I don't see anything really suspicious there, the libraries (aims, anatomist) are actually all the same version, and all in their installation directory. I only see that Qt is still picking plugins in the system (/usr/lib/x86_64-linux-gnu/libQtAssistantClient.so.4.8.6) whereas I have spent incredibl...
by riviere
Thu Apr 12, 2018 9:09 am
Forum: Anatomist
Topic: linkCursorLastClickedPosition() in BrainVISA 4.6?
Replies: 11
Views: 5409

Re: linkCursorLastClickedPosition() in BrainVISA 4.6?

The simplest way is to hide the referential button (the color bar), or all buttons around the window if you also want to fix controls etc.
by riviere
Wed Apr 11, 2018 6:06 pm
Forum: Anatomist
Topic: linkCursorLastClickedPosition() in BrainVISA 4.6?
Replies: 11
Views: 5409

Re: linkCursorLastClickedPosition() in BrainVISA 4.6?

If the windows are all in the same windows group (especially if there are no groups defined...) then you can query any of them, the cursor is linked between all windows in the group, so its position should be the same in all of them (possibly seen from different referentials).
by riviere
Wed Apr 11, 2018 5:42 pm
Forum: Anatomist
Topic: QPixmap::setMask() mask size differs from pixmap size
Replies: 17
Views: 8204

Re: QPixmap::setMask() mask size differs from pixmap size

No, it should not matter how objects are loaded. But I remember a few times I faced this kind of strange things, and it generally appeared when there were some mixups of different versions of the libraries, for instance if anatomist 4.6 loads a plugin which happens to be an old one, linked against a...
by riviere
Wed Apr 11, 2018 5:26 pm
Forum: Anatomist
Topic: linkCursorLastClickedPosition() in BrainVISA 4.6?
Replies: 11
Views: 5409

Re: linkCursorLastClickedPosition() in BrainVISA 4.6?

I guess the bug did take coordinates in the window referential, and says they are in the "central" (red) referential. So if you know which window has been used to select the point, the right referential is the one assigned to the window at the time of the click. In practice it might have b...
by riviere
Wed Apr 11, 2018 11:08 am
Forum: Anatomist
Topic: QPixmap::setMask() mask size differs from pixmap size
Replies: 17
Views: 8204

Re: QPixmap::setMask() mask size differs from pixmap size

And if you start your script in bv_env ?

Code: Select all

bv_env script.py
by riviere
Wed Apr 11, 2018 11:01 am
Forum: Anatomist
Topic: linkCursorLastClickedPosition() in BrainVISA 4.6?
Replies: 11
Views: 5409

Re: linkCursorLastClickedPosition() in BrainVISA 4.6?

Hi, Well, it depends on what you are doing and how you are using things. The bug was actually in storing the click coordinates, so after it is done, it's too late, the referential information is lost. I see 2 alternatives: * if you know in which window the click has been done, you can query the posi...
by riviere
Wed Apr 11, 2018 12:17 am
Forum: Anatomist
Topic: linkCursorLastClickedPosition() in BrainVISA 4.6?
Replies: 11
Views: 5409

Re: linkCursorLastClickedPosition() in BrainVISA 4.6?

Hi,
OK this was actually a bug introduced in 4.6 when the code was changed to handle objects (volumes) with an arbitrary number of dimensions.
I have just fixed it in the sources, it will be available in the next update (we'll try to make it sooner than 2 years away this time...)
Denis
by riviere
Tue Apr 10, 2018 7:08 pm
Forum: Anatomist
Topic: linkCursorLastClickedPosition() in BrainVISA 4.6?
Replies: 11
Views: 5409

Re: linkCursorLastClickedPosition() in BrainVISA 4.6?

Hi François,
You're right, there seems to be a bug here. I'll investigate.
Denis
by riviere
Tue Apr 10, 2018 6:54 pm
Forum: Anatomist
Topic: QPixmap::setMask() mask size differs from pixmap size
Replies: 17
Views: 8204

Re: QPixmap::setMask() mask size differs from pixmap size

The Volume object is actually missing its object type icon, in the anatomist window. That's weird, especially when the windows do have their icon...
Is is the same when you run anatomist alone (outside of intranat / brainvisa) ?
by riviere
Fri Apr 06, 2018 2:40 pm
Forum: Anatomist
Topic: QPixmap::setMask() mask size differs from pixmap size
Replies: 17
Views: 8204

Re: QPixmap::setMask() mask size differs from pixmap size

For volumes and meshes, this is not normal at all. Do you see the objects icons in the main window of anatomist ?
by riviere
Fri Apr 06, 2018 2:39 pm
Forum: BrainVISA
Topic: Error in brainvisa-4.6.0/python/brainvisa/processes.py
Replies: 10
Views: 5654

Re: Error in brainvisa-4.6.0/python/brainvisa/processes.py

As long as you've found a configuration that works for you, I would say it's OK. But bv_env sets some additional env variables in order to find its internal data (normally optional, it can find data by other paths when the install is organized the standard way), and also some variables to save the s...
by riviere
Fri Apr 06, 2018 1:24 pm
Forum: BrainVISA
Topic: Error in brainvisa-4.6.0/python/brainvisa/processes.py
Replies: 10
Views: 5654

Re: Error in brainvisa-4.6.0/python/brainvisa/processes.py

OK. Normally the "best way" is either to source the bv_env.sh script in the terminal before running any program in the brainvisa distriution, or run them through the bv_env program (without .sh extension). They setup all needed environment variables both to set BV environment, and to get o...
by riviere
Fri Apr 06, 2018 1:20 pm
Forum: Anatomist
Topic: QPixmap::setMask() mask size differs from pixmap size
Replies: 17
Views: 8204

Re: QPixmap::setMask() mask size differs from pixmap size

Hi, Yes, I think I know: a few new objects types in anatomist do not have an associated icon to display them in the graphical interface, and it was not really expected. Is it linked with a specific kind of object ? I get them when using text objects for instance (but not only). I just forgot to crea...
by riviere
Fri Apr 06, 2018 1:09 am
Forum: BrainVISA
Topic: Error in brainvisa-4.6.0/python/brainvisa/processes.py
Replies: 10
Views: 5654

Re: Error in brainvisa-4.6.0/python/brainvisa/processes.py

It seems related to the previous problem. It cannot find bv_unenv in the PATH. However this bv_unenv program should be in the bin/ directory of brainvisa. If it is not (or if it does not have execute permission), then it's probably an install problem. If it is actually here, then it's a PATH problem...

Go to advanced search