Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:03:51

0001 // File:      HLRAppli_ReflectLines.cdl
0002 // Created:   05.12.12 15:53:35
0003 // Created by: Julia GERASIMOVA
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 _HLRAppli_ReflectLines_HeaderFile
0018 #define _HLRAppli_ReflectLines_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 #include <HLRAlgo_Projector.hxx>
0025 #include <HLRBRep_Algo.hxx>
0026 #include <HLRBRep_TypeOfResultingEdge.hxx>
0027 #include <TopoDS_Shape.hxx>
0028 #include <Standard_Real.hxx>
0029 
0030 
0031 //! This class builds reflect lines on a shape
0032 //! according to the axes of view defined by user.
0033 //! Reflect lines are represented by edges in 3d.
0034 class HLRAppli_ReflectLines 
0035 {
0036 public:
0037 
0038   DEFINE_STANDARD_ALLOC
0039 
0040   
0041   //! Constructor
0042   Standard_EXPORT HLRAppli_ReflectLines(const TopoDS_Shape& aShape);
0043   
0044   //! Sets the normal to the plane of visualisation,
0045   //! the coordinates of the view point and
0046   //! the coordinates of the vertical direction vector.
0047   Standard_EXPORT void SetAxes (const Standard_Real Nx, const Standard_Real Ny, const Standard_Real Nz, const Standard_Real XAt, const Standard_Real YAt, const Standard_Real ZAt, const Standard_Real XUp, const Standard_Real YUp, const Standard_Real ZUp);
0048   
0049   Standard_EXPORT void Perform();
0050   
0051   //! returns resulting compound of reflect lines
0052   //! represented by edges in 3d
0053   Standard_EXPORT TopoDS_Shape GetResult() const;
0054 
0055   //! returns resulting compound of lines
0056   //! of specified type and visibility
0057   //! represented by edges in 3d or 2d
0058   Standard_EXPORT TopoDS_Shape GetCompoundOf3dEdges(const HLRBRep_TypeOfResultingEdge type,
0059                                                     const Standard_Boolean            visible,
0060                                                     const Standard_Boolean            In3d) const;
0061 
0062 
0063 
0064 protected:
0065 
0066 
0067 
0068 
0069 
0070 private:
0071 
0072 
0073 
0074   HLRAlgo_Projector myProjector;
0075   Handle(HLRBRep_Algo) myHLRAlgo;
0076   TopoDS_Shape myShape;
0077   //TopoDS_Shape myCompound;
0078 
0079 
0080 };
0081 
0082 
0083 
0084 
0085 
0086 
0087 
0088 #endif // _HLRAppli_ReflectLines_HeaderFile