|
||||
File indexing completed on 2025-01-18 10:04:40
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 0030 //! Constructs a framework to define display attributes of isoparameters. 0031 //! These include: 0032 //! - the color attribute aColor 0033 //! - the type of line aType 0034 //! - the width value aWidth 0035 //! - aNumber, the number of isoparameters to be displayed. 0036 Prs3d_IsoAspect (const Quantity_Color& theColor, 0037 const Aspect_TypeOfLine theType, 0038 const Standard_Real theWidth, 0039 const Standard_Integer theNumber) 0040 : Prs3d_LineAspect (theColor, theType, theWidth), 0041 myNumber (theNumber) {} 0042 0043 //! defines the number of U or V isoparametric curves 0044 //! to be drawn for a single face. 0045 //! Default value: 10 0046 void SetNumber (const Standard_Integer theNumber) { myNumber = theNumber; } 0047 0048 //! returns the number of U or V isoparametric curves drawn for a single face. 0049 Standard_Integer Number() const { return myNumber; } 0050 0051 protected: 0052 0053 Standard_Integer myNumber; 0054 0055 }; 0056 0057 DEFINE_STANDARD_HANDLE(Prs3d_IsoAspect, Prs3d_LineAspect) 0058 0059 #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 |