00001 #ifndef _VTKMRMLSIGNCOLORTRANSFERFUNCTIONPOINTNODE_H 00002 #define _VTKMRMLSIGNCOLORTRANSFERFUNCTIONPOINTNODE_H 00003 00004 #include <vtkMRMLNode.h> 00005 00006 #include <string> 00007 00008 class vtkMRMLSIGNColorTransferFunctionPointNode : public vtkMRMLNode 00009 { 00010 public: 00011 static vtkMRMLSIGNColorTransferFunctionPointNode *New(); 00012 vtkTypeMacro(vtkMRMLSIGNColorTransferFunctionPointNode,vtkMRMLNode); 00013 virtual vtkMRMLNode* CreateNodeInstance(); 00014 00015 virtual const char* GetNodeTagName() {return "SIGNColorTransferFunctionPoint";}; 00016 00017 virtual void ReadXMLAttributes(const char** atts); 00018 virtual void WriteXML(std::ostream& of, int indent); 00019 void Copy(vtkMRMLNode *anode); 00020 00021 double GetX(); 00022 double GetR(); 00023 double GetG(); 00024 double GetB(); 00025 double GetMidpoint(); 00026 double GetSharpness(); 00027 00028 void SetX(double _x); 00029 void SetR(double _r); 00030 void SetG(double _g); 00031 void SetB(double _b); 00032 void SetMidpoint(double m); 00033 void SetSharpness(double s); 00034 00035 protected: 00036 vtkMRMLSIGNColorTransferFunctionPointNode(); 00037 ~vtkMRMLSIGNColorTransferFunctionPointNode(); 00038 00039 private: 00040 double x,r,g,b,midpoint,sharpness; 00041 }; 00042 00043 #endif
1.4.6