Version: 9.16.0
OCCViewer_TrihedronSetup.h
Go to the documentation of this file.
1// Copyright (C) 2007-2026 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 OCCVIEWER_TRIHEDRON_SETUP_H
24#define OCCVIEWER_TRIHEDRON_SETUP_H
25
26#include "OCCViewer.h"
28
29class AIS_Trihedron;
30class V3d_Trihedron;
31
37{
38public:
39 OCCViewer_TrihedronSetupAIS(const Handle(AIS_Trihedron)& trihedron) : myTrihedron(trihedron) {}
41
42protected:
43 virtual QFont getDefaultTextFont() const override;
44
45 virtual void setTextFontX(const QFont& font) override;
46 virtual void setTextFontY(const QFont& font) override;
47 virtual void setTextFontZ(const QFont& font) override;
48
49 virtual void setTextColorX(const QColor& color) override;
50 virtual void setTextColorY(const QColor& color) override;
51 virtual void setTextColorZ(const QColor& color) override;
52
53private:
54 const Handle(AIS_Trihedron)& myTrihedron;
55};
56
62{
63public:
64 OCCViewer_TrihedronSetupV3d(const Handle(V3d_Trihedron)& trihedron) : myTrihedron(trihedron) {}
66
67protected:
68 virtual QFont getDefaultTextFont() const override;
69
70 virtual void setTextFontX(const QFont& font) override;
71 virtual void setTextFontY(const QFont& font) override;
72 virtual void setTextFontZ(const QFont& font) override;
73
74 virtual void setTextColorX(const QColor& color) override;
75 virtual void setTextColorY(const QColor& color) override;
76 virtual void setTextColorZ(const QColor& color) override;
77
78private:
79 const Handle(V3d_Trihedron)& myTrihedron;
80};
81
82#endif
Handle(TDocStd_Application) CAF_Application
Get OCAF application.
Definition: CAF_Application.cxx:97
#define OCCVIEWER_EXPORT
Definition: OCCViewer.h:33
Definition: OCCViewer_TrihedronSetup.h:37
const Handle(AIS_Trihedron) &myTrihedron
OCCViewer_TrihedronSetupAIS(const Handle(AIS_Trihedron)&trihedron)
Definition: OCCViewer_TrihedronSetup.h:39
virtual ~OCCViewer_TrihedronSetupAIS()
Definition: OCCViewer_TrihedronSetup.h:40
Definition: OCCViewer_TrihedronSetup.h:62
OCCViewer_TrihedronSetupV3d(const Handle(V3d_Trihedron)&trihedron)
Definition: OCCViewer_TrihedronSetup.h:64
const Handle(V3d_Trihedron) &myTrihedron
virtual ~OCCViewer_TrihedronSetupV3d()
Definition: OCCViewer_TrihedronSetup.h:65
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
Quantity_Color color(const QColor &)
Convert QColor object to Quantity_Color object.
Definition: OCCViewer.cxx:28