NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
niftkCustomVTKAxesActor.h
Go to the documentation of this file.
1 /*=============================================================================
2 
3  NifTK: A software platform for medical image computing.
4 
5  Copyright (c) University College London (UCL). All rights reserved.
6 
7  This software is distributed WITHOUT ANY WARRANTY; without even
8  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9  PURPOSE.
10 
11  See LICENSE.txt in the top level directory for details.
12 
13 =============================================================================*/
14 
15 
16 #ifndef niftkCustomVTKAxesActor_h
17 #define niftkCustomVTKAxesActor_h
18 
19 #include "niftkCoreExports.h"
20 
21 #include <vtkAxesActor.h>
22 #include <vtkCaptionActor2D.h>
23 
24 namespace niftk
25 {
26 
27 class NIFTKCORE_EXPORT CustomVTKAxesActor : public vtkAxesActor
28 {
29  public:
30  inline void SetAxisLabelWidth(double w) {this->XAxisLabel->SetWidth(w); this->YAxisLabel->SetWidth(w); this->ZAxisLabel->SetWidth(w);}
31  inline double GetAxisLabelWidth() {return m_AxesLabelWidth;}
32  inline void SetAxisLabelHeight(double h) {this->XAxisLabel->SetHeight(h); this->YAxisLabel->SetHeight(h); this->ZAxisLabel->SetHeight(h);}
33  inline double GetAxisLabelHeight() {return m_AxesLabelHeight;}
34 
36 
37  private:
38  double m_AxesLabelWidth;
39  double m_AxesLabelHeight;
40 };
41 
42 }
43 
44 #endif
double GetAxisLabelHeight()
Definition: niftkCustomVTKAxesActor.h:33
Definition: niftkCustomVTKAxesActor.h:27
GLubyte GLubyte GLubyte GLubyte w
Definition: glew.h:1874
void SetAxisLabelHeight(double h)
Definition: niftkCustomVTKAxesActor.h:32
GLfloat GLfloat GLfloat GLfloat h
Definition: glew.h:6796
double GetAxisLabelWidth()
Definition: niftkCustomVTKAxesActor.h:31
void SetAxisLabelWidth(double w)
Definition: niftkCustomVTKAxesActor.h:30
Definition: niftkExceptionObject.h:21