CFx SDK Documentation  2023 SP0
BrepRenderer.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 
26 #ifndef _BREPRENDERER_H_
27 #define _BREPRENDERER_H_
28 
29 #include "Wr/wrExport.h"
31 #include "BrepRenderModes.h"
32 
33 class OdGiCommonDraw ;
34 class OdGiViewportDraw;
35 class OdBrBrep;
36 class OdGeMatrix3d;
37 
46 {
47 protected:
49 
50 public:
51 
52  virtual ~OdBrepRenderer() {}
53 
58  virtual void setBrep(const OdBrBrep& brep) = 0;
59 
63  virtual void enableCaching() = 0;
68  virtual void disableCaching(bool clearCache = true) = 0;
72  virtual bool isCachingEnabled() const = 0;
73 
78  virtual void setTriangulationParams(const wrTriangulationParams *pTriangulationParams) = 0;
82  virtual const wrTriangulationParams * getTriangulationParams() const = 0;
83 
84  struct NumIsolines
85  {
86  OdUInt32 numU, numV;
87  };
88 
111  virtual bool draw(OdGiCommonDraw * pWd, OdUInt32 geomType, const NumIsolines *pNumIsolines = 0) = 0;
112 
120  virtual bool drawSilhouettes(OdGiViewportDraw* pVd) = 0;
121 
127  virtual void transformBy(const OdGeMatrix3d &xfm) = 0;
128 };
129 
130 #endif //_BREPRENDERER_H_
unsigned int OdUInt32
virtual void setTriangulationParams(const wrTriangulationParams *pTriangulationParams)=0
virtual void enableCaching()=0
virtual bool draw(OdGiCommonDraw *pWd, OdUInt32 geomType, const NumIsolines *pNumIsolines=0)=0
virtual const wrTriangulationParams * getTriangulationParams() const =0
virtual ~OdBrepRenderer()
Definition: BrepRenderer.h:52
virtual void setBrep(const OdBrBrep &brep)=0
virtual bool isCachingEnabled() const =0
virtual void disableCaching(bool clearCache=true)=0
virtual void transformBy(const OdGeMatrix3d &xfm)=0
virtual bool drawSilhouettes(OdGiViewportDraw *pVd)=0
#define RENDER_EXPORT
Definition: wrExport.h:40