Version: 9.15.0
SVTK_TrihedronSetup.h
Go to the documentation of this file.
1 // Copyright (C) 2007-2025 CEA, EDF, OPEN CASCADE
2 //
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License, or (at your option) any later version.
10 //
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
15 //
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 //
20 // See https://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22 
23 #ifndef SVTK_TRIHEDRON_SETUP_H
24 #define SVTK_TRIHEDRON_SETUP_H
25 
26 #include "SVTK.h"
28 
30 
31 namespace salomevtk
32 {
33  class vtkPVAxesWidget;
34 }
35 
41 {
42 public:
43  SVTK_TrihedronSetupVTK(VTKViewer_Trihedron* trihedron) : myTrihedron(trihedron) {}
45 
46 protected:
47  virtual QFont getDefaultTextFont() const override;
48 
49  virtual void setTextFontX(const QFont& font) override;
50  virtual void setTextFontY(const QFont& font) override;
51  virtual void setTextFontZ(const QFont& font) override;
52 
53  virtual void setTextColorX(const QColor& color) override;
54  virtual void setTextColorY(const QColor& color) override;
55  virtual void setTextColorZ(const QColor& color) override;
56 
57 private:
58  VTKViewer_Trihedron* myTrihedron = nullptr;
59 };
60 
66 {
67 public:
68  SVTK_TrihedronSetupPVAxes(salomevtk::vtkPVAxesWidget* trihedron) : myTrihedron(trihedron) {}
70 
71 protected:
72  virtual QFont getDefaultTextFont() const override;
73 
74  virtual void setTextFontX(const QFont& font) override;
75  virtual void setTextFontY(const QFont& font) override;
76  virtual void setTextFontZ(const QFont& font) override;
77 
78  virtual void setTextColorX(const QColor& color) override;
79  virtual void setTextColorY(const QColor& color) override;
80  virtual void setTextColorZ(const QColor& color) override;
81 
82 private:
83  salomevtk::vtkPVAxesWidget* myTrihedron = nullptr;
84 };
85 
86 #endif
#define SVTK_EXPORT
Definition: SVTK.h:37
Definition: SVTK_TrihedronSetup.h:66
SVTK_TrihedronSetupPVAxes(salomevtk::vtkPVAxesWidget *trihedron)
Definition: SVTK_TrihedronSetup.h:68
virtual ~SVTK_TrihedronSetupPVAxes()
Definition: SVTK_TrihedronSetup.h:69
Definition: SVTK_TrihedronSetup.h:41
SVTK_TrihedronSetupVTK(VTKViewer_Trihedron *trihedron)
Definition: SVTK_TrihedronSetup.h:43
virtual ~SVTK_TrihedronSetupVTK()
Definition: SVTK_TrihedronSetup.h:44
Definition: VTKViewer_Trihedron.h:145
Definition: ViewerTools_TrihedronSetup.h:36
virtual void setTextColorY(const QColor &color)=0
virtual void setTextColorX(const QColor &color)=0
virtual void setTextFontX(const QFont &font)=0
virtual void setTextFontZ(const QFont &font)=0
virtual void setTextColorZ(const QColor &color)=0
virtual void setTextFontY(const QFont &font)=0
virtual QFont getDefaultTextFont() const =0
Definition: salomevtkPVAxesWidget.h:60
Quantity_Color color(const QColor &)
Convert QColor object to Quantity_Color object.
Definition: OCCViewer.cxx:28
Definition: salomevtkPVAxesActor.cxx:60