0031313: Foundation Classes - Dump improvement for classes
[occt.git] / src / Prs3d / Prs3d_IsoAspect.hxx
CommitLineData
42cf5bc1 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
5//
6// This file is part of Open CASCADE Technology software library.
7//
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.
13//
14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
16
17#ifndef _Prs3d_IsoAspect_HeaderFile
18#define _Prs3d_IsoAspect_HeaderFile
19
42cf5bc1 20#include <Prs3d_LineAspect.hxx>
42cf5bc1 21
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.
25class Prs3d_IsoAspect : public Prs3d_LineAspect
26{
4e1bc39a 27 DEFINE_STANDARD_RTTIEXT(Prs3d_IsoAspect, Prs3d_LineAspect)
42cf5bc1 28public:
29
42cf5bc1 30 //! Constructs a framework to define display attributes of isoparameters.
31 //! These include:
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.
4e1bc39a 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) {}
42
42cf5bc1 43 //! defines the number of U or V isoparametric curves
44 //! to be drawn for a single face.
45 //! Default value: 10
4e1bc39a 46 void SetNumber (const Standard_Integer theNumber) { myNumber = theNumber; }
42cf5bc1 47
4e1bc39a 48 //! returns the number of U or V isoparametric curves drawn for a single face.
49 Standard_Integer Number() const { return myNumber; }
42cf5bc1 50
51protected:
52
42cf5bc1 53 Standard_Integer myNumber;
54
42cf5bc1 55};
56
4e1bc39a 57DEFINE_STANDARD_HANDLE(Prs3d_IsoAspect, Prs3d_LineAspect)
42cf5bc1 58
59#endif // _Prs3d_IsoAspect_HeaderFile