0031431: Visualization, PrsMgr_PresentableObject - simplify HLR computing interface
[occt.git] / src / StdPrs / StdPrs_HLRPolyShape.hxx
CommitLineData
42cf5bc1 1// Created on: 1995-09-19
2// Created by: Laurent PAINNOT
3// Copyright (c) 1995-1999 Matra Datavision
4// Copyright (c) 1999-2014 OPEN CASCADE SAS
5//
6// This file is part of Open CASCADE Technology software library.
7//
8// This library is free software; you can redistribute it and/or modify it under
9// the terms of the GNU Lesser General Public License version 2.1 as published
10// by the Free Software Foundation, with special exception defined in the file
11// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12// distribution for complete text of the license and disclaimer of any warranty.
13//
14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
16
17#ifndef _StdPrs_HLRPolyShape_HeaderFile
18#define _StdPrs_HLRPolyShape_HeaderFile
19
b5163d2f 20#include <StdPrs_HLRShapeI.hxx>
21
22//! Instantiates Prs3d_PolyHLRShape to define a display of a shape where hidden
23//! and visible lines are identified with respect to a given projection.
24//! StdPrs_HLRPolyShape works with a polyhedral simplification of the shape whereas
25//! StdPrs_HLRShape takes the shape itself into account.
26//! When you use StdPrs_HLRShape, you obtain an exact result, whereas, when you use StdPrs_HLRPolyShape,
27//! you reduce computation time but obtain polygonal segments.
42cf5bc1 28//! The polygonal algorithm is used.
b5163d2f 29class StdPrs_HLRPolyShape : public StdPrs_HLRShapeI
42cf5bc1 30{
b5163d2f 31 DEFINE_STANDARD_RTTIEXT(StdPrs_HLRPolyShape, StdPrs_HLRShapeI)
42cf5bc1 32public:
42cf5bc1 33
b5163d2f 34 //! Compute presentation for specified shape.
35 Standard_EXPORT virtual void ComputeHLR (const Handle(Prs3d_Presentation)& thePrs,
36 const TopoDS_Shape& theShape,
37 const Handle(Prs3d_Drawer)& theDrawer,
38 const Handle(Graphic3d_Camera)& theProjector) const Standard_OVERRIDE;
42cf5bc1 39
40};
41
42cf5bc1 42#endif // _StdPrs_HLRPolyShape_HeaderFile