|
|
|||
File indexing completed on 2026-09-11 09:18:55
0001 // Created on: 1993-04-26 0002 // Created by: Jean-Louis Frenkel 0003 // Copyright (c) 1993-1999 Matra Datavision 0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS 0005 // 0006 // This file is part of Open CASCADE Technology software library. 0007 // 0008 // This library is free software; you can redistribute it and/or modify it under 0009 // the terms of the GNU Lesser General Public License version 2.1 as published 0010 // by the Free Software Foundation, with special exception defined in the file 0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT 0012 // distribution for complete text of the license and disclaimer of any warranty. 0013 // 0014 // Alternatively, this file may be used under the terms of Open CASCADE 0015 // commercial license or contractual agreement. 0016 0017 #ifndef _Prs3d_IsoAspect_HeaderFile 0018 #define _Prs3d_IsoAspect_HeaderFile 0019 0020 #include <Prs3d_LineAspect.hxx> 0021 0022 //! A framework to define the display attributes of isoparameters. 0023 //! This framework can be used to modify the default 0024 //! setting for isoparameters in Prs3d_Drawer. 0025 class Prs3d_IsoAspect : public Prs3d_LineAspect 0026 { 0027 DEFINE_STANDARD_RTTIEXT(Prs3d_IsoAspect, Prs3d_LineAspect) 0028 public: 0029 //! Constructs a framework to define display attributes of isoparameters. 0030 //! These include: 0031 //! - the color attribute aColor 0032 //! - the type of line aType 0033 //! - the width value aWidth 0034 //! - aNumber, the number of isoparameters to be displayed. 0035 Prs3d_IsoAspect(const Quantity_Color& theColor, 0036 const Aspect_TypeOfLine theType, 0037 const double theWidth, 0038 const int theNumber) 0039 : Prs3d_LineAspect(theColor, theType, theWidth), 0040 myNumber(theNumber) 0041 { 0042 } 0043 0044 //! defines the number of U or V isoparametric curves 0045 //! to be drawn for a single face. 0046 //! Default value: 10 0047 void SetNumber(const int theNumber) { myNumber = theNumber; } 0048 0049 //! returns the number of U or V isoparametric curves drawn for a single face. 0050 int Number() const { return myNumber; } 0051 0052 protected: 0053 int myNumber; 0054 }; 0055 0056 #endif // _Prs3d_IsoAspect_HeaderFile
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|