- 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
-
- 25 Aug, 2010 1 commit
-
-
jcfr authored
COMP: External_VTK - Now use branch "slicer-4.0" on github.com/Slicer/VTK - Also updated code to work with VTK_IGNORE_BTX:ON slicer-4.0 is an integration branch containing all slicer specific changed and rebased on VTK master 1) Change vtkFSIO to use "namespace" instead of "class" 2) Use vtkPythonUtil functions 3) vtkFSIO was causing problem with Tcl wrapping (python is working fine), vtkFSIO is now excluded using set_source_files_properties and WRAP_EXCLUDE property git-svn-id: http://svn.slicer.org/Slicer4/trunk@14684 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
-
- 19 Aug, 2010 5 commits
-
-
hayes authored
git-svn-id: http://svn.slicer.org/Slicer4/trunk@14655 3bd1e089-480b-0410-8dfb-8563597acbee
-
pieper authored
git-svn-id: http://svn.slicer.org/Slicer4/trunk@14648 3bd1e089-480b-0410-8dfb-8563597acbee
-
pieper authored
git-svn-id: http://svn.slicer.org/Slicer4/trunk@14646 3bd1e089-480b-0410-8dfb-8563597acbee
-
finetjul authored
When loading a scene, there is no need form removing the nodes in vtkMRMLSlice[Composite]Node::UpdateScene, because they are added back to the scene by the vtkMRMLSliceLogic. git-svn-id: http://svn.slicer.org/Slicer4/trunk@14643 3bd1e089-480b-0410-8dfb-8563597acbee
-
finetjul authored
calling vtkMRMLSlice(Composite)Node::SetLayoutName internally calls SetSingletonTag git-svn-id: http://svn.slicer.org/Slicer4/trunk@14642 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 7 commits
-
-
haehn authored
git-svn-id: http://svn.slicer.org/Slicer4/trunk@14592 3bd1e089-480b-0410-8dfb-8563597acbee
-
jcfr authored
This later one allow to conditionally include the code associated with the scripted DisplayableManager. git-svn-id: http://svn.slicer.org/Slicer4/trunk@14589 3bd1e089-480b-0410-8dfb-8563597acbee
-
pieper authored
git-svn-id: http://svn.slicer.org/Slicer4/trunk@14587 3bd1e089-480b-0410-8dfb-8563597acbee
-
millerjv authored
git-svn-id: http://svn.slicer.org/Slicer4/trunk@14586 3bd1e089-480b-0410-8dfb-8563597acbee
-
jcfr authored
git-svn-id: http://svn.slicer.org/Slicer4/trunk@14583 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
-
jcfr authored
BUG: Add virtual method onMRML{View,Slice}NodeModifiedEvent to vtkMRMLAbstract{ThreeD,Slice}ViewDisplayableManager These methods could be overloaded by DisplayableManager to re-act upon a modified event of the associated DisplayableNode (either a MRMLView node or a slicer view node) That should fix the crash happening after the MRML view node name was updated in the MRML node inspector of the Data module. git-svn-id: http://svn.slicer.org/Slicer4/trunk@14577 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 6 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
-
pieper authored
git-svn-id: http://svn.slicer.org/Slicer4/trunk@14527 3bd1e089-480b-0410-8dfb-8563597acbee
-
pieper authored
git-svn-id: http://svn.slicer.org/Slicer4/trunk@14522 3bd1e089-480b-0410-8dfb-8563597acbee
-
pieper authored
ENH: add client data point script handler function to support different interpreters (pythonqt, for instances) git-svn-id: http://svn.slicer.org/Slicer4/trunk@14521 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
-
- 09 Aug, 2010 4 commits
-
-
pieper authored
git-svn-id: http://svn.slicer.org/Slicer4/trunk@14510 3bd1e089-480b-0410-8dfb-8563597acbee
-
haehn authored
git-svn-id: http://svn.slicer.org/Slicer4/trunk@14508 3bd1e089-480b-0410-8dfb-8563597acbee
-
haehn authored
git-svn-id: http://svn.slicer.org/Slicer4/trunk@14504 3bd1e089-480b-0410-8dfb-8563597acbee
-
haehn authored
ENH: Introduced a customTagMode for interaction modes. A QAction is associated to this mode to provide icons, help text etc. git-svn-id: http://svn.slicer.org/Slicer4/trunk@14503 3bd1e089-480b-0410-8dfb-8563597acbee
-
- 08 Aug, 2010 1 commit
-
-
haehn authored
ENH: Added a subset of interaction modes to vtkMRMLInteractionNode to add support for different types of annotations. git-svn-id: http://svn.slicer.org/Slicer4/trunk@14500 3bd1e089-480b-0410-8dfb-8563597acbee
-
- 07 Aug, 2010 3 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
-