1 // Created on: 2011-03-06
2 // Created by: Sergey ZERCHANINOV
3 // Copyright (c) 2011-2012 OPEN CASCADE SAS
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.
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.
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.
21 #ifndef _Graphic3d_CGraduatedTrihedron_HeaderFile
22 #define _Graphic3d_CGraduatedTrihedron_HeaderFile
24 #include <Standard_Boolean.hxx>
25 #include <Standard_Integer.hxx>
26 #include <Standard_Type.hxx>
27 #include <Quantity_Color.hxx>
28 #include <TCollection_AsciiString.hxx>
29 #include <TCollection_ExtendedString.hxx>
30 #include <Font_FontAspect.hxx>
32 typedef void (*minMaxValuesCallback)(void*);
33 class Graphic3d_CGraduatedTrihedron
36 /* Default constructor. Nullifies the view pointer */
37 Graphic3d_CGraduatedTrihedron () : ptrVisual3dView(NULL) {}
40 TCollection_ExtendedString xname, yname, zname;
42 Standard_Boolean xdrawname, ydrawname, zdrawname;
44 Standard_Boolean xdrawvalues, ydrawvalues, zdrawvalues;
46 Standard_Boolean drawgrid;
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;
56 Standard_Boolean xdrawtickmarks, ydrawtickmarks, zdrawtickmarks;
57 /* Length of tickmarks */
58 Standard_Integer xtickmarklength, ytickmarklength, ztickmarklength;
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, ... */
68 Font_FontAspect styleOfNames;
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, ... */
74 Font_FontAspect styleOfValues;
75 /* Size of values: 8, 10, 12, 14, ... */
76 Standard_Integer sizeOfValues;
78 /* Callback function to define boundary box of displayed objects */
79 minMaxValuesCallback cbCubicAxes;
80 void* ptrVisual3dView;
83 const Handle(Standard_Type)& TYPE(Graphic3d_CGraduatedTrihedron);
85 #endif /*Graphic3d_CGraduatedTrihedron_HeaderFile*/