Commit | Line | Data |
---|---|---|
b311480e | 1 | // Created on: 2011-03-06 |
2 | // Created by: Sergey ZERCHANINOV | |
973c2be1 | 3 | // Copyright (c) 2011-2014 OPEN CASCADE SAS |
b311480e | 4 | // |
973c2be1 | 5 | // This file is part of Open CASCADE Technology software library. |
b311480e | 6 | // |
d5f74e42 | 7 | // This library is free software; you can redistribute it and/or modify it under |
8 | // the terms of the GNU Lesser General Public License version 2.1 as published | |
973c2be1 | 9 | // by the Free Software Foundation, with special exception defined in the file |
10 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT | |
11 | // distribution for complete text of the license and disclaimer of any warranty. | |
b311480e | 12 | // |
973c2be1 | 13 | // Alternatively, this file may be used under the terms of Open CASCADE |
14 | // commercial license or contractual agreement. | |
7fd59977 | 15 | |
16 | #ifndef _Graphic3d_CGraduatedTrihedron_HeaderFile | |
17 | #define _Graphic3d_CGraduatedTrihedron_HeaderFile | |
18 | ||
13a22457 S |
19 | #include <Standard_Boolean.hxx> |
20 | #include <Standard_Integer.hxx> | |
13a22457 S |
21 | #include <Quantity_Color.hxx> |
22 | #include <TCollection_AsciiString.hxx> | |
23 | #include <TCollection_ExtendedString.hxx> | |
eeaaaefb | 24 | #include <Font_FontAspect.hxx> |
13a22457 | 25 | |
fd03ee4b | 26 | class Visual3d_View; |
27 | ||
13a22457 S |
28 | class Graphic3d_CGraduatedTrihedron |
29 | { | |
fd03ee4b | 30 | public: |
31 | typedef void (*minMaxValuesCallback)(Visual3d_View*); | |
32 | public: | |
13a22457 | 33 | /* Default constructor. Nullifies the view pointer */ |
c24d4017 | 34 | Graphic3d_CGraduatedTrihedron () : xdrawname ( Standard_False ), |
35 | ydrawname ( Standard_False ), | |
36 | zdrawname ( Standard_False ), | |
37 | xdrawvalues ( Standard_False ), | |
38 | ydrawvalues ( Standard_False ), | |
39 | zdrawvalues ( Standard_False ), | |
40 | drawgrid ( Standard_False ), | |
41 | drawaxes ( Standard_False ), | |
42 | nbx ( 0 ),nby ( 0 ),nbz ( 0 ), | |
43 | xoffset ( 0 ),yoffset ( 0 ),zoffset ( 0 ), | |
44 | xaxisoffset ( 0 ),yaxisoffset ( 0 ),zaxisoffset ( 0 ), | |
45 | xdrawtickmarks ( Standard_False ), | |
46 | ydrawtickmarks ( Standard_False ), | |
47 | zdrawtickmarks ( Standard_False ), | |
48 | xtickmarklength ( 0 ), ytickmarklength ( 0 ), ztickmarklength ( 0 ), | |
49 | styleOfNames ( Font_FA_Undefined ), | |
50 | sizeOfNames ( 0 ), | |
51 | styleOfValues ( Font_FA_Undefined ), | |
52 | sizeOfValues ( 0 ), | |
53 | cbCubicAxes ( NULL ), | |
54 | ptrVisual3dView(NULL) | |
55 | { | |
56 | // | |
57 | } | |
13a22457 S |
58 | |
59 | /* Names of axes */ | |
60 | TCollection_ExtendedString xname, yname, zname; | |
61 | /* Draw names */ | |
62 | Standard_Boolean xdrawname, ydrawname, zdrawname; | |
63 | /* Draw values */ | |
64 | Standard_Boolean xdrawvalues, ydrawvalues, zdrawvalues; | |
65 | /* Draw grid */ | |
66 | Standard_Boolean drawgrid; | |
67 | /* Draw axes */ | |
68 | Standard_Boolean drawaxes; | |
69 | /* Number of splits along axes */ | |
70 | Standard_Integer nbx, nby, nbz; | |
71 | /* Offset for drawing values */ | |
72 | Standard_Integer xoffset, yoffset, zoffset; | |
73 | /* Offset for drawing names of axes */ | |
74 | Standard_Integer xaxisoffset, yaxisoffset, zaxisoffset; | |
75 | /* Draw tickmarks */ | |
76 | Standard_Boolean xdrawtickmarks, ydrawtickmarks, zdrawtickmarks; | |
77 | /* Length of tickmarks */ | |
78 | Standard_Integer xtickmarklength, ytickmarklength, ztickmarklength; | |
79 | /* Grid color */ | |
80 | Quantity_Color gridcolor; | |
81 | /* Colors of axis names */ | |
82 | Quantity_Color xnamecolor, ynamecolor, znamecolor; | |
83 | /* Colors of axis and values */ | |
84 | Quantity_Color xcolor, ycolor, zcolor; | |
85 | /* Font name of names of axes: Courier, Arial, ... */ | |
86 | TCollection_AsciiString fontOfNames; | |
87 | /* Style of names of axes: OSD_FA_Regular, OSD_FA_Bold, ... */ | |
eeaaaefb | 88 | Font_FontAspect styleOfNames; |
13a22457 S |
89 | /* Size of names of axes: 8, 10, 12, 14, ... */ |
90 | Standard_Integer sizeOfNames; | |
91 | /* Font name of values: Courier, Arial, ... */ | |
92 | TCollection_AsciiString fontOfValues; | |
93 | /* Style of values: OSD_FA_Regular, OSD_FA_Bold, ... */ | |
eeaaaefb | 94 | Font_FontAspect styleOfValues; |
13a22457 S |
95 | /* Size of values: 8, 10, 12, 14, ... */ |
96 | Standard_Integer sizeOfValues; | |
97 | ||
98 | /* Callback function to define boundary box of displayed objects */ | |
99 | minMaxValuesCallback cbCubicAxes; | |
fd03ee4b | 100 | Visual3d_View* ptrVisual3dView; |
13a22457 S |
101 | }; |
102 | ||
7fd59977 | 103 | #endif /*Graphic3d_CGraduatedTrihedron_HeaderFile*/ |