Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:05:20

0001 // Created on: 2009-04-06
0002 // Created by: Sergey ZARITCHNY
0003 // Copyright (c) 2009-2014 OPEN CASCADE SAS
0004 //
0005 // This file is part of Open CASCADE Technology software library.
0006 //
0007 // This library is free software; you can redistribute it and/or modify it under
0008 // the terms of the GNU Lesser General Public License version 2.1 as published
0009 // by the Free Software Foundation, with special exception defined in the file
0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0011 // distribution for complete text of the license and disclaimer of any warranty.
0012 //
0013 // Alternatively, this file may be used under the terms of Open CASCADE
0014 // commercial license or contractual agreement.
0015 
0016 #ifndef _TDataXtd_PatternStd_HeaderFile
0017 #define _TDataXtd_PatternStd_HeaderFile
0018 
0019 #include <Standard.hxx>
0020 #include <Standard_Type.hxx>
0021 
0022 #include <Standard_Integer.hxx>
0023 #include <TDataXtd_Pattern.hxx>
0024 #include <TDataXtd_Array1OfTrsf.hxx>
0025 #include <Standard_OStream.hxx>
0026 class TNaming_NamedShape;
0027 class TDataStd_Real;
0028 class TDataStd_Integer;
0029 class Standard_GUID;
0030 class TDF_Label;
0031 class TDF_Attribute;
0032 class TDF_RelocationTable;
0033 class TDF_DataSet;
0034 
0035 
0036 class TDataXtd_PatternStd;
0037 DEFINE_STANDARD_HANDLE(TDataXtd_PatternStd, TDataXtd_Pattern)
0038 
0039 //! to create a PatternStd
0040 //! (LinearPattern, CircularPattern, RectangularPattern,
0041 //! RadialCircularPattern, MirrorPattern)
0042 class TDataXtd_PatternStd : public TDataXtd_Pattern
0043 {
0044 
0045 public:
0046 
0047   
0048   Standard_EXPORT static const Standard_GUID& GetPatternID();
0049   
0050   //! Find, or  create,  a PatternStd  attribute
0051   Standard_EXPORT static Handle(TDataXtd_PatternStd) Set (const TDF_Label& label);
0052   
0053   Standard_EXPORT TDataXtd_PatternStd();
0054   
0055   Standard_EXPORT void Signature (const Standard_Integer signature);
0056   
0057   Standard_EXPORT void Axis1 (const Handle(TNaming_NamedShape)& Axis1);
0058   
0059   Standard_EXPORT void Axis2 (const Handle(TNaming_NamedShape)& Axis2);
0060   
0061   Standard_EXPORT void Axis1Reversed (const Standard_Boolean Axis1Reversed);
0062   
0063   Standard_EXPORT void Axis2Reversed (const Standard_Boolean Axis2Reversed);
0064   
0065   Standard_EXPORT void Value1 (const Handle(TDataStd_Real)& value);
0066   
0067   Standard_EXPORT void Value2 (const Handle(TDataStd_Real)& value);
0068   
0069   Standard_EXPORT void NbInstances1 (const Handle(TDataStd_Integer)& NbInstances1);
0070   
0071   Standard_EXPORT void NbInstances2 (const Handle(TDataStd_Integer)& NbInstances2);
0072   
0073   Standard_EXPORT void Mirror (const Handle(TNaming_NamedShape)& plane);
0074   
0075     Standard_Integer Signature() const;
0076   
0077     Handle(TNaming_NamedShape) Axis1() const;
0078   
0079     Handle(TNaming_NamedShape) Axis2() const;
0080   
0081     Standard_Boolean Axis1Reversed() const;
0082   
0083     Standard_Boolean Axis2Reversed() const;
0084   
0085     Handle(TDataStd_Real) Value1() const;
0086   
0087     Handle(TDataStd_Real) Value2() const;
0088   
0089     Handle(TDataStd_Integer) NbInstances1() const;
0090   
0091     Handle(TDataStd_Integer) NbInstances2() const;
0092   
0093     Handle(TNaming_NamedShape) Mirror() const;
0094   
0095   Standard_EXPORT Standard_Integer NbTrsfs() const Standard_OVERRIDE;
0096   
0097   Standard_EXPORT void ComputeTrsfs (TDataXtd_Array1OfTrsf& Trsfs) const Standard_OVERRIDE;
0098   
0099   Standard_EXPORT const Standard_GUID& PatternID() const Standard_OVERRIDE;
0100   
0101   Standard_EXPORT void Restore (const Handle(TDF_Attribute)& With) Standard_OVERRIDE;
0102   
0103   Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
0104   
0105   Standard_EXPORT void Paste (const Handle(TDF_Attribute)& Into, const Handle(TDF_RelocationTable)& RT) const Standard_OVERRIDE;
0106   
0107   Standard_EXPORT virtual void References (const Handle(TDF_DataSet)& aDataSet) const Standard_OVERRIDE;
0108   
0109   Standard_EXPORT virtual Standard_OStream& Dump (Standard_OStream& anOS) const Standard_OVERRIDE;
0110 
0111 
0112 
0113 
0114   DEFINE_STANDARD_RTTIEXT(TDataXtd_PatternStd,TDataXtd_Pattern)
0115 
0116 protected:
0117 
0118 
0119 
0120 
0121 private:
0122 
0123 
0124   Standard_Integer mySignature;
0125   Standard_Boolean myAxis1Reversed;
0126   Standard_Boolean myAxis2Reversed;
0127   Handle(TNaming_NamedShape) myAxis1;
0128   Handle(TNaming_NamedShape) myAxis2;
0129   Handle(TDataStd_Real) myValue1;
0130   Handle(TDataStd_Real) myValue2;
0131   Handle(TDataStd_Integer) myNb1;
0132   Handle(TDataStd_Integer) myNb2;
0133   Handle(TNaming_NamedShape) myMirror;
0134 
0135 
0136 };
0137 
0138 
0139 #include <TDataXtd_PatternStd.lxx>
0140 
0141 
0142 
0143 
0144 
0145 #endif // _TDataXtd_PatternStd_HeaderFile