debian/tmp/usr/include/KWWidgets/vtkKWCornerAnnotationEditor.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __vtkKWCornerAnnotationEditor_h
00021 #define __vtkKWCornerAnnotationEditor_h
00022
00023 #include "vtkKWCheckButtonWithPopupFrame.h"
00024
00025 class vtkCornerAnnotation;
00026 class vtkKWFrame;
00027 class vtkKWGenericComposite;
00028 class vtkKWLabel;
00029 class vtkKWPopupButtonWithLabel;
00030 class vtkKWTextWithLabel;
00031 class vtkKWRenderWidget;
00032 class vtkKWScaleWithEntry;
00033 class vtkKWTextPropertyEditor;
00034
00035 class KWWidgets_EXPORT vtkKWCornerAnnotationEditor : public vtkKWCheckButtonWithPopupFrame
00036 {
00037 public:
00038 static vtkKWCornerAnnotationEditor* New();
00039 vtkTypeRevisionMacro(vtkKWCornerAnnotationEditor,vtkKWCheckButtonWithPopupFrame);
00040 void PrintSelf(ostream& os, vtkIndent indent);
00041
00042
00043
00044
00045
00046 vtkSetMacro(PopupTextProperty, int);
00047 vtkGetMacro(PopupTextProperty, int);
00048 vtkBooleanMacro(PopupTextProperty, int);
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058 virtual void SetRenderWidget(vtkKWRenderWidget*);
00059 vtkGetObjectMacro(RenderWidget,vtkKWRenderWidget);
00060
00061
00062
00063
00064
00065
00066
00067
00068 vtkGetObjectMacro(CornerAnnotation, vtkCornerAnnotation);
00069
00070
00071
00072 virtual void SetVisibility(int i);
00073 virtual int GetVisibility();
00074 vtkBooleanMacro(Visibility, int);
00075
00076
00077
00078 virtual void SetCornerText(const char *txt, int corner);
00079 virtual const char *GetCornerText(int i);
00080
00081
00082
00083 virtual void SetTextColor(double r, double g, double b);
00084 virtual void SetTextColor(double *rgb)
00085 { this->SetTextColor(rgb[0], rgb[1], rgb[2]); }
00086 virtual double *GetTextColor();
00087
00088
00089
00090 virtual void SetMaximumLineHeight(float);
00091
00092
00093
00094
00095 vtkSetMacro(AnnotationChangedEvent, int);
00096 vtkGetMacro(AnnotationChangedEvent, int);
00097
00098
00099
00100 virtual vtkKWCheckButton* GetCornerVisibilityButton()
00101 { return this->GetCheckButton(); };
00102
00103
00104
00105 virtual void Update();
00106
00107
00108
00109
00110 virtual void Close();
00111
00112
00113
00114
00115
00116
00117
00118
00119 virtual void UpdateEnableState();
00120
00121
00122
00123 vtkGetObjectMacro(TextPropertyWidget, vtkKWTextPropertyEditor);
00124
00125
00126
00127 virtual void CheckButtonCallback(int state);
00128 virtual void CornerTextCallback(int i);
00129 virtual void MaximumLineHeightCallback(double value);
00130 virtual void MaximumLineHeightEndCallback(double value);
00131 virtual void TextPropertyCallback();
00132
00133 protected:
00134 vtkKWCornerAnnotationEditor();
00135 ~vtkKWCornerAnnotationEditor();
00136
00137
00138
00139 virtual void CreateWidget();
00140
00141 int AnnotationChangedEvent;
00142
00143 vtkCornerAnnotation *CornerAnnotation;
00144
00145 vtkKWRenderWidget *RenderWidget;
00146
00147
00148
00149 int PopupTextProperty;
00150
00151 vtkKWFrame *CornerFrame;
00152 vtkKWTextWithLabel *CornerText[4];
00153 vtkKWFrame *PropertiesFrame;
00154 vtkKWScaleWithEntry *MaximumLineHeightScale;
00155 vtkKWTextPropertyEditor *TextPropertyWidget;
00156 vtkKWPopupButtonWithLabel *TextPropertyPopupButton;
00157
00158 virtual void Render();
00159
00160
00161
00162
00163
00164 virtual int GetCheckButtonState() { return this->GetVisibility(); };
00165
00166
00167 virtual void SendChangedEvent();
00168
00169 private:
00170 vtkKWCornerAnnotationEditor(const vtkKWCornerAnnotationEditor&);
00171 void operator=(const vtkKWCornerAnnotationEditor&);
00172 };
00173
00174 #endif
00175