Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-02 08:22:43

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 //! This class builds reflect lines on a shape
0031 //! according to the axes of view defined by user.
0032 //! Reflect lines are represented by edges in 3d.
0033 class HLRAppli_ReflectLines
0034 {
0035 public:
0036   DEFINE_STANDARD_ALLOC
0037 
0038   //! Constructor
0039   Standard_EXPORT HLRAppli_ReflectLines(const TopoDS_Shape& aShape);
0040 
0041   //! Sets the normal to the plane of visualisation,
0042   //! the coordinates of the view point and
0043   //! the coordinates of the vertical direction vector.
0044   Standard_EXPORT void SetAxes(const Standard_Real Nx,
0045                                const Standard_Real Ny,
0046                                const Standard_Real Nz,
0047                                const Standard_Real XAt,
0048                                const Standard_Real YAt,
0049                                const Standard_Real ZAt,
0050                                const Standard_Real XUp,
0051                                const Standard_Real YUp,
0052                                const Standard_Real ZUp);
0053 
0054   Standard_EXPORT void Perform();
0055 
0056   //! returns resulting compound of reflect lines
0057   //! represented by edges in 3d
0058   Standard_EXPORT TopoDS_Shape GetResult() const;
0059 
0060   //! returns resulting compound of lines
0061   //! of specified type and visibility
0062   //! represented by edges in 3d or 2d
0063   Standard_EXPORT TopoDS_Shape GetCompoundOf3dEdges(const HLRBRep_TypeOfResultingEdge type,
0064                                                     const Standard_Boolean            visible,
0065                                                     const Standard_Boolean            In3d) const;
0066 
0067 protected:
0068 private:
0069   HLRAlgo_Projector    myProjector;
0070   Handle(HLRBRep_Algo) myHLRAlgo;
0071   TopoDS_Shape         myShape;
0072   // TopoDS_Shape myCompound;
0073 };
0074 
0075 #endif // _HLRAppli_ReflectLines_HeaderFile