0023466: Move OSD_FontMgr class outside TKernel
[occt.git] / src / Graphic3d / Graphic3d_CGraduatedTrihedron.hxx
CommitLineData
b311480e 1// Created on: 2011-03-06
2// Created by: Sergey ZERCHANINOV
3// Copyright (c) 2011-2012 OPEN CASCADE SAS
4//
5// The content of this file is subject to the Open CASCADE Technology Public
6// License Version 6.5 (the "License"). You may not use the content of this file
7// except in compliance with the License. Please obtain a copy of the License
8// at http://www.opencascade.org and read it completely before using this file.
9//
10// The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
11// main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
12//
13// The Original Code and all software distributed under the License is
14// distributed on an "AS IS" basis, without warranty of any kind, and the
15// Initial Developer hereby disclaims all such warranties, including without
16// limitation, any warranties of merchantability, fitness for a particular
17// purpose or non-infringement. Please see the License for the specific terms
18// and conditions governing the rights and limitations under the License.
19
7fd59977 20
21#ifndef _Graphic3d_CGraduatedTrihedron_HeaderFile
22#define _Graphic3d_CGraduatedTrihedron_HeaderFile
23
13a22457
S
24#include <Standard_Boolean.hxx>
25#include <Standard_Integer.hxx>
7fd59977 26#include <Standard_Type.hxx>
13a22457
S
27#include <Quantity_Color.hxx>
28#include <TCollection_AsciiString.hxx>
29#include <TCollection_ExtendedString.hxx>
eeaaaefb 30#include <Font_FontAspect.hxx>
13a22457
S
31
32typedef void (*minMaxValuesCallback)(void*);
33class Graphic3d_CGraduatedTrihedron
34{
35 public:
36 /* Default constructor. Nullifies the view pointer */
37 Graphic3d_CGraduatedTrihedron () : ptrVisual3dView(NULL) {}
38
39 /* Names of axes */
40 TCollection_ExtendedString xname, yname, zname;
41 /* Draw names */
42 Standard_Boolean xdrawname, ydrawname, zdrawname;
43 /* Draw values */
44 Standard_Boolean xdrawvalues, ydrawvalues, zdrawvalues;
45 /* Draw grid */
46 Standard_Boolean drawgrid;
47 /* Draw axes */
48 Standard_Boolean drawaxes;
49 /* Number of splits along axes */
50 Standard_Integer nbx, nby, nbz;
51 /* Offset for drawing values */
52 Standard_Integer xoffset, yoffset, zoffset;
53 /* Offset for drawing names of axes */
54 Standard_Integer xaxisoffset, yaxisoffset, zaxisoffset;
55 /* Draw tickmarks */
56 Standard_Boolean xdrawtickmarks, ydrawtickmarks, zdrawtickmarks;
57 /* Length of tickmarks */
58 Standard_Integer xtickmarklength, ytickmarklength, ztickmarklength;
59 /* Grid color */
60 Quantity_Color gridcolor;
61 /* Colors of axis names */
62 Quantity_Color xnamecolor, ynamecolor, znamecolor;
63 /* Colors of axis and values */
64 Quantity_Color xcolor, ycolor, zcolor;
65 /* Font name of names of axes: Courier, Arial, ... */
66 TCollection_AsciiString fontOfNames;
67 /* Style of names of axes: OSD_FA_Regular, OSD_FA_Bold, ... */
eeaaaefb 68 Font_FontAspect styleOfNames;
13a22457
S
69 /* Size of names of axes: 8, 10, 12, 14, ... */
70 Standard_Integer sizeOfNames;
71 /* Font name of values: Courier, Arial, ... */
72 TCollection_AsciiString fontOfValues;
73 /* Style of values: OSD_FA_Regular, OSD_FA_Bold, ... */
eeaaaefb 74 Font_FontAspect styleOfValues;
13a22457
S
75 /* Size of values: 8, 10, 12, 14, ... */
76 Standard_Integer sizeOfValues;
77
78 /* Callback function to define boundary box of displayed objects */
79 minMaxValuesCallback cbCubicAxes;
80 void* ptrVisual3dView;
81};
82
7fd59977 83const Handle(Standard_Type)& TYPE(Graphic3d_CGraduatedTrihedron);
7fd59977 84
7fd59977 85#endif /*Graphic3d_CGraduatedTrihedron_HeaderFile*/