]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxVtkSceneManager.h
2396 bbGEditor Feature New Normal Feature Show Tree 2014-06-18 15:29
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsWxGUIEditorGraphic / wxVtkSceneManager.h
index f92b9064e057a733e11e12eaaedbeb68624881e3..4bad6682421d5113b925e6efae088a18e430370f 100644 (file)
@@ -1,3 +1,28 @@
+/*
+# ---------------------------------------------------------------------
+#
+# Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image 
+#                        pour la Santé)
+# Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+#
+#  This software is governed by the CeCILL-B license under French law and 
+#  abiding by the rules of distribution of free software. You can  use, 
+#  modify and/ or redistribute the software under the terms of the CeCILL-B 
+#  license as circulated by CEA, CNRS and INRIA at the following URL 
+#  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html 
+#  or in the file LICENSE.txt.
+#
+#  As a counterpart to the access to the source code and  rights to copy,
+#  modify and redistribute granted by the license, users are provided only
+#  with a limited warranty  and the software's author,  the holder of the
+#  economic rights,  and the successive licensors  have only  limited
+#  liability. 
+#
+#  The fact that you are presently reading this means that you have had
+#  knowledge of the CeCILL-B license and that you accept its terms.
+# ------------------------------------------------------------------------  
+*/
+
 /*=========================================================================
 Program:   bbtk
 Module:    $RCSfile$
@@ -93,8 +118,10 @@ namespace bbtk
        class wxVtkSceneManager : public InteractorStyleMaracas , public Observer
        {
        public:
-
-               wxVtkSceneManager(wxGEditorTabPanel *parent, wxVtk3DBaseView *baseView, int idManager);
+               
+//EED 15 oct 2012              wxVtkSceneManager(wxGEditorTabPanel *parent, wxVtk3DBaseView *baseView, int idManager);
+               wxVtkSceneManager(wxGEditorTabPanel *parent, wxVtk3DBaseView *baseView, int idManager,Factory::Pointer bbtkfactory);
+               
                ~wxVtkSceneManager();
                void disconnectDrop();
 
@@ -202,12 +229,16 @@ namespace bbtk
         void SetAuthor(std::string author);
         void SetCategory(std::string category);
         void SetDescription(std::string description);
+                               void SetMessageKind(std::string kind);
+                               void SetMessageLevel(std::string Level);
 
         std::string GetCbName();
         std::string GetCbPackageName();
         std::string GetAuthor();
         std::string GetCategory();
         std::string GetDescription();
+                               std::string GetMessageKind();
+        std::string GetMessageLevel();
   
         // RaC2012 2nd HackFest
         // External Inputs was the complex inputs in previous versions
@@ -219,7 +250,8 @@ namespace bbtk
         void printAll( int com, int sta );
 
                
-               
+               std::vector<std::string> boxesDiagram;//CFT
+
        private:
 
         std::string                         _cbName;
@@ -227,6 +259,8 @@ namespace bbtk
         std::string                         _Author;
         std::string                         _Category;
         std::string                         _Description;
+                               std::string                         _MessageKind;
+                               std::string                         _MessageLevel;
 
                //wxPanel that uses the manager
                wxGEditorTabPanel                                       *_parent;
@@ -260,15 +294,22 @@ namespace bbtk
                int _contLastId;
 
                vtkTextActor3D                                          *_textActor;
-               vtkPoints                                                       *_pts;
-               vtkActor                                                        *_fillObjectActor;
+               std::string                                             _bugTextActor_text;
+               int                                                     _bugTextActor_status;
+
+               vtkPoints                                               *_pts;
+               vtkActor                                                *_fillObjectActor;
                vtkDataSetMapper                                        *_aPolygonMapper;
 
+               Factory::Pointer                                        _bbtkfactory;
+               
+               
         std::string LineNumber(bool withLineNumber, int &value);
         int GetIndexInSelected(int idControler);
         void UnSelectBlackBoxes();
         GObjectController *GetGBlackBoxControlerPointedByMouse();
                void CancelConnection();
+               
 
        protected: