vtkIA_FEMeshLogic.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: vtkIA_FEMeshLogic.h,v $
00010   Date:      $Date: 2006/03/19 17:12:29 $
00011   Version:   $Revision: 1.3 $
00012 
00013 =========================================================================auto=*/
00014 #ifndef __vtkIA_FEMeshLogic_h
00015 #define __vtkIA_FEMeshLogic_h
00016 
00017 #include "vtkSlicerModuleLogic.h"
00018 #include "vtkMRMLScene.h"
00019 #include "vtkIA_FEMesh.h"
00020 #include "vtkMRMLIA_FEMeshNode.h"
00021 
00022 
00023 class VTK_IA_FEMesh_EXPORT vtkIA_FEMeshLogic : public vtkSlicerModuleLogic
00024 {
00025   public:
00026   static vtkIA_FEMeshLogic *New();
00027   vtkTypeMacro(vtkIA_FEMeshLogic,vtkSlicerModuleLogic);
00028   void PrintSelf(ostream& os, vtkIndent indent);
00029 
00030   // TODO: do we need to observe MRML here?
00031   virtual void ProcessMrmlEvents(vtkObject *vtkNotUsed(caller),
00032                                  unsigned long vtkNotUsed(event),
00033                                  void *vtkNotUsed(callData)){};
00034 
00035   // Description: Get/Set MRML node
00036   vtkGetObjectMacro (IA_FEMeshNode, vtkMRMLIA_FEMeshNode);
00037   vtkSetObjectMacro (IA_FEMeshNode, vtkMRMLIA_FEMeshNode);
00038   
00039   void Apply();
00040   
00041   // called during instantiation; so declare custom MRML nodes here
00042   virtual void SetMRMLScene(vtkMRMLScene *mrml);
00043 
00044   // here is where the declaration is performed
00045   void RegisterNodes();
00046 
00047 protected:
00048   vtkIA_FEMeshLogic();
00049   ~vtkIA_FEMeshLogic();
00050   vtkIA_FEMeshLogic(const vtkIA_FEMeshLogic&);
00051   void operator=(const vtkIA_FEMeshLogic&);
00052 
00053   vtkMRMLIA_FEMeshNode* IA_FEMeshNode;
00054   bool First;   // set during first time through mrml loading
00055 
00056 
00057 };
00058 
00059 #endif
00060 

Generated on 6 Apr 2011 for Slicer3 by  doxygen 1.6.1