- 26 Aug, 2010 5 commits
-
-
finetjul authored
git-svn-id: http://svn.slicer.org/Slicer4/trunk@14695 3bd1e089-480b-0410-8dfb-8563597acbee
-
finetjul authored
QToolButton::ArrowType does what we want here. git-svn-id: http://svn.slicer.org/Slicer4/trunk@14693 3bd1e089-480b-0410-8dfb-8563597acbee
-
finetjul authored
git-svn-id: http://svn.slicer.org/Slicer4/trunk@14692 3bd1e089-480b-0410-8dfb-8563597acbee
-
finetjul authored
than the QComboBox (visible if the font is large) git-svn-id: http://svn.slicer.org/Slicer4/trunk@14691 3bd1e089-480b-0410-8dfb-8563597acbee
-
finetjul authored
git-svn-id: http://svn.slicer.org/Slicer4/trunk@14690 3bd1e089-480b-0410-8dfb-8563597acbee
-
- 24 Aug, 2010 2 commits
-
-
finetjul authored
it now returns a vtkObjecBase* git-svn-id: http://svn.slicer.org/Slicer4/trunk@14674 3bd1e089-480b-0410-8dfb-8563597acbee
-
finetjul authored
git-svn-id: http://svn.slicer.org/Slicer4/trunk@14673 3bd1e089-480b-0410-8dfb-8563597acbee
-
- 23 Aug, 2010 1 commit
-
-
finetjul authored
git-svn-id: http://svn.slicer.org/Slicer4/trunk@14664 3bd1e089-480b-0410-8dfb-8563597acbee
-
- 20 Aug, 2010 1 commit
-
-
finetjul authored
The baseName is used to generate a name for created nodes. git-svn-id: http://svn.slicer.org/Slicer4/trunk@14660 3bd1e089-480b-0410-8dfb-8563597acbee
-
- 17 Aug, 2010 2 commits
-
-
jcfr authored
COMP: Update qSlicerLayoutManager, qMRMLThreeDView and qMRMLSliceWidget to use Slicer3_USE_PYTHONQT instead of MRMLDisplayableManager_USE_PYTHON git-svn-id: http://svn.slicer.org/Slicer4/trunk@14600 3bd1e089-480b-0410-8dfb-8563597acbee
-
pieper authored
git-svn-id: http://svn.slicer.org/Slicer4/trunk@14597 3bd1e089-480b-0410-8dfb-8563597acbee
-
- 16 Aug, 2010 3 commits
-
-
haehn authored
git-svn-id: http://svn.slicer.org/Slicer4/trunk@14592 3bd1e089-480b-0410-8dfb-8563597acbee
-
pieper authored
git-svn-id: http://svn.slicer.org/Slicer4/trunk@14587 3bd1e089-480b-0410-8dfb-8563597acbee
-
jcfr authored
Since it's not possible to derive a VTK class in python (and for that same reason rely on polymorphism), the vtkMRMLScriptedDisplayableManager C++ class is a "proxy" allowing to interface a DisplayableManager written in python. A scripted DisplayableManager should expose the following methods: - Create - GetMRMLSceneEventsToObserve - ProcessMRMLEvents - RemoveMRMLObservers - UpdateFromMRML - OnInteractorStyleEvent - OnMRMLDisplayableNodeModifiedEvent In addition to register vtk class names, the MRMLDisplayableManager factory can now register scripted displayableManager represented by a path to a python script ending with ".py". qSlicerLayoutManager now provide method setScriptedDisplayableManagerDirectory allowing to set from which directory the scripted displayableManager should be "sourced" from. Similarly, the code in qMRMLSliceWidget and qMRMLThreeDView allowing to register the displayableManager have been factored out into a method named: - registerDisplayableManagers(const QString& scriptedDisplayableManagerDirectory); Below are more details explaining how a scripted displayable manager could be implemented: The constructor has one parameter named 'parent' corresponding to the associated instance of vtkScriptedDisplayableManager in the C++ world. The python methods listed above corresponds to the implementation of the virtual method available in vtkScriptedDisplayableManager. The only exception is the virtual method SetMRMLSceneInternal, the python class only needs to implement the method GetMRMLSceneEventsToObserve. This later one just return a list of integer representing the eventid to observe. It's also possible to access the API of the associated C++ instance using the self.Parent For example: self.Parent.RemoveInteractorStyleObservableEvent(26) # vtkCommand::MouseWheelForwardEvent Make also sure NOT to call the corresponding C++ method from it's python equivalent, it will result in an infinite loop. The following statement will likely lead to an unstable state: def Create(self): self.Parent.Create() If a a method isn't implemented, the following syntax should be used: def Create(self): pass NOTE Ideally, a DisplayableManager should deal only with MRMLNodes. Incriminated code should be moved either in the DisplayableManager itself, in the associated MRML Node or in a MRMLNode helper class. TODO While porting existing code, to overcome this problem, the following need to be done: - DisplayableManager abstract base class should have a reference to the current MRMLApplicationLogic - The MRMLApplicationLogic should contain a map of logics - The list of logic internally used by the qSlicerLayoutManager should be removed and the list from the MRMLApplicationLogic used instead. git-svn-id: http://svn.slicer.org/Slicer4/trunk@14581 3bd1e089-480b-0410-8dfb-8563597acbee
-
- 12 Aug, 2010 1 commit
-
-
finetjul authored
git-svn-id: http://svn.slicer.org/Slicer4/trunk@14558 3bd1e089-480b-0410-8dfb-8563597acbee
-
- 11 Aug, 2010 1 commit
-
-
jcfr authored
A static library named qMRMLWidgetsPythonQt is created git-svn-id: http://svn.slicer.org/Slicer4/trunk@14538 3bd1e089-480b-0410-8dfb-8563597acbee
-
- 10 Aug, 2010 3 commits
-
-
finetjul authored
git-svn-id: http://svn.slicer.org/Slicer4/trunk@14535 3bd1e089-480b-0410-8dfb-8563597acbee
-
pieper authored
git-svn-id: http://svn.slicer.org/Slicer4/trunk@14532 3bd1e089-480b-0410-8dfb-8563597acbee
-
finetjul authored
contained by other ctkCollapsibleButton git-svn-id: http://svn.slicer.org/Slicer4/trunk@14511 3bd1e089-480b-0410-8dfb-8563597acbee
-
- 07 Aug, 2010 4 commits
-
-
finetjul authored
git-svn-id: http://svn.slicer.org/Slicer4/trunk@14499 3bd1e089-480b-0410-8dfb-8563597acbee
-
finetjul authored
git-svn-id: http://svn.slicer.org/Slicer4/trunk@14498 3bd1e089-480b-0410-8dfb-8563597acbee
-
finetjul authored
git-svn-id: http://svn.slicer.org/Slicer4/trunk@14497 3bd1e089-480b-0410-8dfb-8563597acbee
-
finetjul authored
git-svn-id: http://svn.slicer.org/Slicer4/trunk@14496 3bd1e089-480b-0410-8dfb-8563597acbee
-
- 06 Aug, 2010 2 commits
-
-
finetjul authored
git-svn-id: http://svn.slicer.org/Slicer4/trunk@14488 3bd1e089-480b-0410-8dfb-8563597acbee
-
finetjul authored
git-svn-id: http://svn.slicer.org/Slicer4/trunk@14487 3bd1e089-480b-0410-8dfb-8563597acbee
-
- 05 Aug, 2010 7 commits
-
-
finetjul authored
git-svn-id: http://svn.slicer.org/Slicer4/trunk@14482 3bd1e089-480b-0410-8dfb-8563597acbee
-
finetjul authored
vtkMRMLSliceNode::SetDimensions(...) needed to be called whenever the slice widget is resized. This is what is done in SliceSWidget.tcl::resizeSliceNode() git-svn-id: http://svn.slicer.org/Slicer4/trunk@14481 3bd1e089-480b-0410-8dfb-8563597acbee
-
finetjul authored
qMRMLSliceControllerToolBar directly uses the logics to do processing on the slice nodes. git-svn-id: http://svn.slicer.org/Slicer4/trunk@14479 3bd1e089-480b-0410-8dfb-8563597acbee
-
finetjul authored
git-svn-id: http://svn.slicer.org/Slicer4/trunk@14478 3bd1e089-480b-0410-8dfb-8563597acbee
-
finetjul authored
git-svn-id: http://svn.slicer.org/Slicer4/trunk@14476 3bd1e089-480b-0410-8dfb-8563597acbee
-
finetjul authored
Added widgets are for the label opacity (slider + toggle button) and spinboxes for slice FOV. git-svn-id: http://svn.slicer.org/Slicer4/trunk@14475 3bd1e089-480b-0410-8dfb-8563597acbee
-
finetjul authored
git-svn-id: http://svn.slicer.org/Slicer4/trunk@14474 3bd1e089-480b-0410-8dfb-8563597acbee
-
- 04 Aug, 2010 2 commits
-
-
jcfr authored
git-svn-id: http://svn.slicer.org/Slicer4/trunk@14467 3bd1e089-480b-0410-8dfb-8563597acbee
-
jcfr authored
git-svn-id: http://svn.slicer.org/Slicer4/trunk@14463 3bd1e089-480b-0410-8dfb-8563597acbee
-
- 02 Aug, 2010 1 commit
-
-
finetjul authored
git-svn-id: http://svn.slicer.org/Slicer4/trunk@14430 3bd1e089-480b-0410-8dfb-8563597acbee
-
- 28 Jul, 2010 5 commits
-
-
jcfr authored
Note that since SliceView deals internally with a lightBox (a grid of renderer) for now the first renderer of the grid is passed. It could also be possible to instantiate as many DisplayableManagerGroup as there are Renderer in the SliceView (one for each item of the grid). Doing so would require to add signal to ctkVTKSliceView allowing to know when the Layout is changed in order to instantiate or delete displatableManagerGroup as needed. git-svn-id: http://svn.slicer.org/Slicer4/trunk@14366 3bd1e089-480b-0410-8dfb-8563597acbee
-
jcfr authored
git-svn-id: http://svn.slicer.org/Slicer4/trunk@14365 3bd1e089-480b-0410-8dfb-8563597acbee
-
jcfr authored
ENH: class vtkMRMLAbstractThreeDViewDisplayableManager now inherits from a base class vtkMRMLAbstractDisplayableManager vtkThreeDViewMRMLDisplayableManagerGroup has been renamed into vtkMRMLDisplayableManagerGroup and its API updated: - Set/GetMRMLViewNode has been generalized and renamed into Set/GetMRMLDisplayableNode Similarly, vtkMRMLAbstractDisplayableManager provide two protected methods: GetMRMLDisplayableNode and SetAndObserveMRMLDisplayableManager GetMRMLDisplayableNode is used in vtkMRMLAbtractThreeDViewDisplayableManager within the method GetMRMLViewNode git-svn-id: http://svn.slicer.org/Slicer4/trunk@14363 3bd1e089-480b-0410-8dfb-8563597acbee
-
jcfr authored
This is the second step related to the renaming of all classes currently named vtkMRMLDisplayableManager* into vtkMRMLThreeDViewDisplayableManager* git-svn-id: http://svn.slicer.org/Slicer4/trunk@14357 3bd1e089-480b-0410-8dfb-8563597acbee
-
jcfr authored
This is the first step related to the renaming of all classes currently named vtkMRMLDisplayableManager into vtkMRMLThreeDViewDisplayableManager git-svn-id: http://svn.slicer.org/Slicer4/trunk@14356 3bd1e089-480b-0410-8dfb-8563597acbee
-