1 // Created on: 1993-04-26
2 // Created by: Jean-Louis Frenkel
3 // Copyright (c) 1993-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #ifndef _Prs3d_IsoAspect_HeaderFile
18 #define _Prs3d_IsoAspect_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
23 #include <Standard_Integer.hxx>
24 #include <Prs3d_LineAspect.hxx>
25 #include <Quantity_NameOfColor.hxx>
26 #include <Aspect_TypeOfLine.hxx>
27 #include <Standard_Real.hxx>
31 class Prs3d_IsoAspect;
32 DEFINE_STANDARD_HANDLE(Prs3d_IsoAspect, Prs3d_LineAspect)
34 //! A framework to define the display attributes of isoparameters.
35 //! This framework can be used to modify the default
36 //! setting for isoparameters in Prs3d_Drawer.
37 class Prs3d_IsoAspect : public Prs3d_LineAspect
43 //! Constructs a framework to define display attributes of isoparameters.
45 //! - the color attribute aColor
46 //! - the type of line aType
47 //! - the width value aWidth
48 //! - aNumber, the number of isoparameters to be displayed.
49 Standard_EXPORT Prs3d_IsoAspect(const Quantity_NameOfColor aColor, const Aspect_TypeOfLine aType, const Standard_Real aWidth, const Standard_Integer aNumber);
51 Standard_EXPORT Prs3d_IsoAspect(const Quantity_Color& aColor, const Aspect_TypeOfLine aType, const Standard_Real aWidth, const Standard_Integer aNumber);
53 //! defines the number of U or V isoparametric curves
54 //! to be drawn for a single face.
56 Standard_EXPORT void SetNumber (const Standard_Integer aNumber);
58 //! returns the number of U or V isoparametric curves drawn for a single face.
59 Standard_EXPORT Standard_Integer Number() const;
64 DEFINE_STANDARD_RTTIEXT(Prs3d_IsoAspect,Prs3d_LineAspect)
74 Standard_Integer myNumber;
85 #endif // _Prs3d_IsoAspect_HeaderFile