void ReadImagesNotThreaded(std::vector<vtkImageData*>& s,std::vector<std::string> files, int dim);
///Requests the reading of an image with priority and index in the
/// current selection (-1 if not in selection)
- void RequestReading(tree::Node* n, int prio, int selection_index , ImagePointerHolder *p);
+ //void RequestReading(tree::Node* n, int prio, int selection_index , ImagePointerHolder *p);
+ void RequestReading(tree::Node* n, int prio, int selection_index , boost::shared_ptr<ImagePointerHolder> p);
///Obtains the message of the state
private:
/// Controller which manages the interaction with the model
- Gimmick* mGimmick;
+ boost::shared_ptr< Gimmick> mGimmick;
/// The views
TreeViewMapType mTreeViewMap;
/// The message that results from the validation
struct ImageEventType
{
ImageEventType( tree::Node* no = 0,
- int sel_index = -1,
- ImagePointerHolder* ph= 0)
- : node(no), index(sel_index), pointerHolder(ph){}
+ int sel_index = -1)
+// ImagePointerHolder* ph= 0)
+: node(no), index(sel_index){}//, pointerHolder(ph){}
ImageEventType(vtkImageData* im )
: image(im) {}
tree::Node* node;
vtkImageData* image;
int index;
- ImagePointerHolder* pointerHolder;
+ boost::shared_ptr<ImagePointerHolder> pointerHolder;
};
typedef std::map<std::string,ImageEventType> ImageEventTypeMap;
/// Map of images' names to ImageEventType