vtkSlicerColorLogic.h

Go to the documentation of this file.
00001 /*=auto=========================================================================
00002 
00003   Portions (c) Copyright 2005 Brigham and Women's Hospital (BWH) All Rights Reserved.
00004 
00005   See Doc/copyright/copyright.txt
00006   or http://www.slicer.org/copyright/copyright.txt for details.
00007 
00008   Program:   3D Slicer
00009   Module:    $RCSfile: vtkSlicerColorLogic.h,v $
00010   Date:      $Date: 2011-01-07 15:39:48 -0500 (Fri, 07 Jan 2011) $
00011   Version:   $Revision: 15736 $
00012 
00013 =========================================================================auto=*/
00014 
00019 
00020 
00021 #ifndef __vtkSlicerColorLogic_h
00022 #define __vtkSlicerColorLogic_h
00023 
00024 #include <stdlib.h>
00025 
00026 #include "vtkSlicerBaseLogic.h"
00027 #include "vtkSlicerLogic.h"
00028 
00029 #include "vtkMRML.h"
00030 
00031 class vtkMRMLColorNode;
00032 class VTK_SLICER_BASE_LOGIC_EXPORT vtkSlicerColorLogic : public vtkSlicerLogic 
00033 {
00034   public:
00035   
00037   static vtkSlicerColorLogic *New();
00038   vtkTypeRevisionMacro(vtkSlicerColorLogic,vtkObject);
00039   void PrintSelf(ostream& os, vtkIndent indent);
00040 
00043   void ProcessMRMLEvents(vtkObject * caller,
00044                          unsigned long event,
00045                          void * callData);
00046 
00050   void AddDefaultColorNodes();
00051 
00054   void RemoveDefaultColorNodes();
00055 
00058   const char * GetDefaultColorTableNodeID(int type);
00059 
00062   const char * GetDefaultFreeSurferColorNodeID(int type);
00063 
00066   const char * GetDefaultdGEMRICColorNodeID(int type);
00067 
00070   const char * GetDefaultPETColorNodeID(int type);
00071 
00074   const char * GetDefaultFreeSurferLabelMapColorNodeID();
00075   
00078   const char * GetDefaultVolumeColorNodeID();
00079 
00082   const char * GetDefaultLabelMapColorNodeID();
00083 
00086   const char * GetDefaultEditorColorNodeID();
00087 
00090   const char * GetDefaultModelColorNodeID();
00091 
00094   char * GetDefaultProceduralColorNodeID(const char *name);
00095 
00098   char * GetDefaultFileColorNodeID(const char *fileName);
00099 
00104   void FindColorFiles();
00105 
00108 //BTX
00109   void AddColorFile(const char *fileName, std::vector<std::string> *Files);
00110 //ETX
00114   int LoadColorFile(const char *fileName, const char *nodeName = NULL);
00115 
00118   vtkGetStringMacro(UserColorFilePaths);
00119   vtkSetStringMacro(UserColorFilePaths);
00120 
00121 protected:
00122   vtkSlicerColorLogic();
00123   ~vtkSlicerColorLogic();
00124   vtkSlicerColorLogic(const vtkSlicerColorLogic&);
00125   void operator=(const vtkSlicerColorLogic&);
00126 
00132   //BTX
00133   std::vector<std::string> ColorFiles;
00136   std::vector<std::string> UserColorFiles;
00137   //ETX
00142   char *UserColorFilePaths;
00143 };
00144 
00145 #endif
00146 

Generated on 6 Apr 2011 for Slicer3 by  doxygen 1.6.1