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 <Prs3d_LineAspect.hxx>
22 //! A framework to define the display attributes of isoparameters.
23 //! This framework can be used to modify the default
24 //! setting for isoparameters in Prs3d_Drawer.
25 class Prs3d_IsoAspect : public Prs3d_LineAspect
27 DEFINE_STANDARD_RTTIEXT(Prs3d_IsoAspect, Prs3d_LineAspect)
30 //! Constructs a framework to define display attributes of isoparameters.
32 //! - the color attribute aColor
33 //! - the type of line aType
34 //! - the width value aWidth
35 //! - aNumber, the number of isoparameters to be displayed.
36 Prs3d_IsoAspect (const Quantity_Color& theColor,
37 const Aspect_TypeOfLine theType,
38 const Standard_Real theWidth,
39 const Standard_Integer theNumber)
40 : Prs3d_LineAspect (theColor, theType, theWidth),
41 myNumber (theNumber) {}
43 //! defines the number of U or V isoparametric curves
44 //! to be drawn for a single face.
46 void SetNumber (const Standard_Integer theNumber) { myNumber = theNumber; }
48 //! returns the number of U or V isoparametric curves drawn for a single face.
49 Standard_Integer Number() const { return myNumber; }
53 Standard_Integer myNumber;
57 DEFINE_STANDARD_HANDLE(Prs3d_IsoAspect, Prs3d_LineAspect)
59 #endif // _Prs3d_IsoAspect_HeaderFile