CFx SDK Documentation  2020SP3
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_
OdBrepRendererImpl
Definition: BrepRendererImpl.h:48
OdBrepRendererImpl::drawSilhouettes
virtual bool drawSilhouettes(OdGiViewportDraw *pVd)
OdBrepRendererImpl::OdBrepRendererImpl
OdBrepRendererImpl()
OdBrepRendererImpl::~OdBrepRendererImpl
virtual ~OdBrepRendererImpl()
RENDER_EXPORT
#define RENDER_EXPORT
Definition: wrExport.h:40
TD_PackPop.h
wrExport.h
OdUInt32
unsigned int OdUInt32
Definition: OdPlatformSettings.h:783
OdGeMatrix3d
Definition: GeMatrix3d.h:73
OdGiCommonDraw
Definition: GiCommonDraw.h:572
wrTriangulationParams
Definition: wrTriangulationParams.h:50
OdBrepRenderer
Definition: BrepRenderer.h:46
OdBrepRendererImpl::draw
virtual bool draw(OdGiCommonDraw *pWd, OdUInt32 geomType, const NumIsolines *pNumIsolines=0)
TD_PackPush.h
OdBrBrep
Definition: BrBrep.h:45
OdBrepRendererImpl::disableCaching
virtual void disableCaching(bool clearCache=true)
MaterialResolver.h
OdBrepRenderer::NumIsolines
Definition: BrepRenderer.h:85
OdBrepRendererImpl::transformBy
virtual void transformBy(const OdGeMatrix3d &xfm)
OdBrepRendererImpl::getTriangulationParams
virtual const wrTriangulationParams * getTriangulationParams() const
OdBrepRendererImpl::setBrep
virtual void setBrep(const OdBrBrep &brep)
BrepRenderer.h
OdBrepRendererImpl::setTriangulationParams
virtual void setTriangulationParams(const wrTriangulationParams *pTriangulationParams)
OdBrepRendererImpl::setMaterialResolver
virtual void setMaterialResolver(const OdMaterialResolver *pResolver)
OdBrepRendererImpl::isCachingEnabled
virtual bool isCachingEnabled() const
OdGiViewportDraw
Definition: GiViewportDraw.h:50
OdBrepRendererImpl::enableCaching
virtual void enableCaching()
OdMaterialResolver
Definition: MaterialResolver.h:35