CFx SDK Documentation  2022 SP0
BrepRendererImpl.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2017, Open Design Alliance (the "Alliance").
3 // All rights reserved.
4 //
5 // This software and its documentation and related materials are owned by
6 // the Alliance. The software may only be incorporated into application
7 // programs owned by members of the Alliance, subject to a signed
8 // Membership Agreement and Supplemental Software License Agreement with the
9 // Alliance. The structure and organization of this software are the valuable
10 // trade secrets of the Alliance and its suppliers. The software is also
11 // protected by copyright law and international treaty provisions. Application
12 // programs incorporating this software must include the following statement
13 // with their copyright notices:
14 //
15 // This application incorporates Teigha(R) software pursuant to a license
16 // agreement with Open Design Alliance.
17 // Teigha(R) Copyright (C) 2002-2017 by Open Design Alliance.
18 // All rights reserved.
19 //
20 // By use of this software, its documentation or related materials, you
21 // acknowledge and accept the above terms.
23 
24 
25 #ifndef _ODBREPRENDERERIMPL_INCLUDED_
26 #define _ODBREPRENDERERIMPL_INCLUDED_
27 
28 #include "Wr/wrExport.h"
29 #include "BrepRenderer.h"
30 #include "MaterialResolver.h"
31 
32 class OdBrBrep;
33 
34 class wrRenderCache;
35 class OdGiCommonDraw ;
36 class OdGiViewportDraw;
38 class OdGeMatrix3d;
39 
40 #include "TD_PackPush.h"
41 
48 {
49  const OdBrBrep *m_pBrep;
50  bool m_enableCache;
51  const wrTriangulationParams *m_pTriangulationParams;
52  wrRenderCache *m_pCache;
53  const OdMaterialResolver *m_pResolver;
54 public:
55 
58 
59  virtual void setMaterialResolver(const OdMaterialResolver *pResolver);
60 
61  virtual void setBrep(const OdBrBrep& brep);
62 
63  virtual void enableCaching();
64  virtual void disableCaching(bool clearCache = true);
65  virtual bool isCachingEnabled() const;
66 
67  virtual void setTriangulationParams(const wrTriangulationParams *pTriangulationParams);
68 
70 
71  virtual bool draw(OdGiCommonDraw * pWd, OdUInt32 geomType, const NumIsolines *pNumIsolines = 0);
72 
73  virtual bool drawSilhouettes(OdGiViewportDraw* pVd);
74 
75  virtual void transformBy(const OdGeMatrix3d &xfm);
76 };
77 
78 #include "TD_PackPop.h"
79 
80 #endif //_ODBREPRENDERERIMPL_INCLUDED_
unsigned int OdUInt32
virtual void setMaterialResolver(const OdMaterialResolver *pResolver)
virtual void disableCaching(bool clearCache=true)
virtual void enableCaching()
virtual bool draw(OdGiCommonDraw *pWd, OdUInt32 geomType, const NumIsolines *pNumIsolines=0)
virtual ~OdBrepRendererImpl()
virtual void setTriangulationParams(const wrTriangulationParams *pTriangulationParams)
virtual bool drawSilhouettes(OdGiViewportDraw *pVd)
virtual bool isCachingEnabled() const
virtual void setBrep(const OdBrBrep &brep)
virtual void transformBy(const OdGeMatrix3d &xfm)
virtual const wrTriangulationParams * getTriangulationParams() const
#define RENDER_EXPORT
Definition: wrExport.h:40