Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:04:00

0001 // Created on: 1993-01-09
0002 // Created by: CKY / Contract Toubro-Larsen ( TCD )
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 _IGESDraw_SegmentedViewsVisible_HeaderFile
0018 #define _IGESDraw_SegmentedViewsVisible_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 
0022 #include <IGESDraw_HArray1OfViewKindEntity.hxx>
0023 #include <TColStd_HArray1OfReal.hxx>
0024 #include <TColStd_HArray1OfInteger.hxx>
0025 #include <IGESGraph_HArray1OfColor.hxx>
0026 #include <IGESBasic_HArray1OfLineFontEntity.hxx>
0027 #include <IGESData_ViewKindEntity.hxx>
0028 #include <Standard_Integer.hxx>
0029 #include <Standard_Real.hxx>
0030 class IGESGraph_Color;
0031 class IGESData_LineFontEntity;
0032 
0033 
0034 class IGESDraw_SegmentedViewsVisible;
0035 DEFINE_STANDARD_HANDLE(IGESDraw_SegmentedViewsVisible, IGESData_ViewKindEntity)
0036 
0037 //! defines IGESSegmentedViewsVisible, Type <402> Form <19>
0038 //! in package IGESDraw
0039 //!
0040 //! Permits the association of display parameters with the
0041 //! segments of curves in a given view
0042 class IGESDraw_SegmentedViewsVisible : public IGESData_ViewKindEntity
0043 {
0044 
0045 public:
0046 
0047   
0048   Standard_EXPORT IGESDraw_SegmentedViewsVisible();
0049   
0050   //! This method is used to set the fields of the class
0051   //! SegmentedViewsVisible
0052   //! - allViews                : Pointers to View Entities
0053   //! - allBreakpointParameters : Parameters of breakpoints
0054   //! - allDisplayFlags         : Display flags
0055   //! - allColorValues          : Color Values
0056   //! - allColorDefinitions     : Color Definitions
0057   //! - allLineFontValues       : LineFont values
0058   //! - allLineFontDefinitions  : LineFont Definitions
0059   //! - allLineWeights          : Line weights
0060   //! raises exception if Lengths of allViews, allBreakpointParameters,
0061   //! allDisplayFlags, allColorValues, allColorDefinitions,
0062   //! allLineFontValues, allLineFontDefinitions and allLineWeights
0063   //! are not same.
0064   Standard_EXPORT void Init (const Handle(IGESDraw_HArray1OfViewKindEntity)& allViews, const Handle(TColStd_HArray1OfReal)& allBreakpointParameters, const Handle(TColStd_HArray1OfInteger)& allDisplayFlags, const Handle(TColStd_HArray1OfInteger)& allColorValues, const Handle(IGESGraph_HArray1OfColor)& allColorDefinitions, const Handle(TColStd_HArray1OfInteger)& allLineFontValues, const Handle(IGESBasic_HArray1OfLineFontEntity)& allLineFontDefinitions, const Handle(TColStd_HArray1OfInteger)& allLineWeights);
0065   
0066   //! Returns False (for a complex view)
0067   Standard_EXPORT Standard_Boolean IsSingle() const Standard_OVERRIDE;
0068   
0069   //! Returns the count of Views referenced by <me> (inherited)
0070   Standard_EXPORT Standard_Integer NbViews() const Standard_OVERRIDE;
0071   
0072   //! returns the number of view/segment blocks in <me>
0073   //! Similar to NbViews but has a more general significance
0074   Standard_EXPORT Standard_Integer NbSegmentBlocks() const;
0075   
0076   //! returns the View entity indicated by ViewIndex
0077   //! raises an exception if ViewIndex <= 0 or
0078   //! ViewIndex > NbSegmentBlocks()
0079   Standard_EXPORT Handle(IGESData_ViewKindEntity) ViewItem (const Standard_Integer ViewIndex) const Standard_OVERRIDE;
0080   
0081   //! returns the parameter of the breakpoint indicated by
0082   //! BreakpointIndex
0083   //! raises an exception if BreakpointIndex <= 0 or
0084   //! BreakpointIndex > NbSegmentBlocks().
0085   Standard_EXPORT Standard_Real BreakpointParameter (const Standard_Integer BreakpointIndex) const;
0086   
0087   //! returns the Display flag indicated by FlagIndex
0088   //! raises an exception if FlagIndex <= 0 or
0089   //! FlagIndex > NbSegmentBlocks().
0090   Standard_EXPORT Standard_Integer DisplayFlag (const Standard_Integer FlagIndex) const;
0091   
0092   //! returns True if the ColorIndex'th value of the
0093   //! "theColorDefinitions" field of <me> is a pointer
0094   //! raises an exception if ColorIndex <= 0 or
0095   //! ColorIndex > NbSegmentBlocks().
0096   Standard_EXPORT Standard_Boolean IsColorDefinition (const Standard_Integer ColorIndex) const;
0097   
0098   //! returns the Color value indicated by ColorIndex
0099   //! raises an exception if ColorIndex <= 0 or
0100   //! ColorIndex > NbSegmentBlocks().
0101   Standard_EXPORT Standard_Integer ColorValue (const Standard_Integer ColorIndex) const;
0102   
0103   //! returns the Color definition entity indicated by ColorIndex
0104   //! raises an exception if ColorIndex <= 0 or
0105   //! ColorIndex > NbSegmentBlocks().
0106   Standard_EXPORT Handle(IGESGraph_Color) ColorDefinition (const Standard_Integer ColorIndex) const;
0107   
0108   //! returns True if the FontIndex'th value of the
0109   //! "theLineFontDefinitions" field of <me> is a pointer
0110   //! raises an exception if FontIndex <= 0 or
0111   //! FontIndex > NbSegmentBlocks().
0112   Standard_EXPORT Standard_Boolean IsFontDefinition (const Standard_Integer FontIndex) const;
0113   
0114   //! returns the LineFont value indicated by FontIndex
0115   //! raises an exception if FontIndex <= 0 or
0116   //! FontIndex > NbSegmentBlocks().
0117   Standard_EXPORT Standard_Integer LineFontValue (const Standard_Integer FontIndex) const;
0118   
0119   //! returns the LineFont definition entity indicated by FontIndex
0120   //! raises an exception if FontIndex <= 0 or
0121   //! FontIndex > NbSegmentBlocks().
0122   Standard_EXPORT Handle(IGESData_LineFontEntity) LineFontDefinition (const Standard_Integer FontIndex) const;
0123   
0124   //! returns the LineWeight value indicated by WeightIndex
0125   //! raises an exception if WeightIndex <= 0 or
0126   //! WeightIndex > NbSegmentBlocks().
0127   Standard_EXPORT Standard_Integer LineWeightItem (const Standard_Integer WeightIndex) const;
0128 
0129 
0130 
0131 
0132   DEFINE_STANDARD_RTTIEXT(IGESDraw_SegmentedViewsVisible,IGESData_ViewKindEntity)
0133 
0134 protected:
0135 
0136 
0137 
0138 
0139 private:
0140 
0141 
0142   Handle(IGESDraw_HArray1OfViewKindEntity) theViews;
0143   Handle(TColStd_HArray1OfReal) theBreakpointParameters;
0144   Handle(TColStd_HArray1OfInteger) theDisplayFlags;
0145   Handle(TColStd_HArray1OfInteger) theColorValues;
0146   Handle(IGESGraph_HArray1OfColor) theColorDefinitions;
0147   Handle(TColStd_HArray1OfInteger) theLineFontValues;
0148   Handle(IGESBasic_HArray1OfLineFontEntity) theLineFontDefinitions;
0149   Handle(TColStd_HArray1OfInteger) theLineWeights;
0150 
0151 
0152 };
0153 
0154 
0155 
0156 
0157 
0158 
0159 
0160 #endif // _IGESDraw_SegmentedViewsVisible_HeaderFile