CFx SDK Documentation
2020SP3
SDK
CFx
dd_inc
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
"
30
#include "
Wr/wrTriangulationParams.h
"
31
#include "
BrepRenderModes.h
"
32
33
class
OdGiCommonDraw
;
34
class
OdGiViewportDraw
;
35
class
OdBrBrep
;
36
class
OdGeMatrix3d
;
37
45
class
RENDER_EXPORT
OdBrepRenderer
46
{
47
protected
:
48
OdBrepRenderer
() {}
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_
OdBrepRenderer::draw
virtual bool draw(OdGiCommonDraw *pWd, OdUInt32 geomType, const NumIsolines *pNumIsolines=0)=0
OdBrepRenderer::disableCaching
virtual void disableCaching(bool clearCache=true)=0
OdBrepRenderer::isCachingEnabled
virtual bool isCachingEnabled() const =0
OdBrepRenderer::drawSilhouettes
virtual bool drawSilhouettes(OdGiViewportDraw *pVd)=0
RENDER_EXPORT
#define RENDER_EXPORT
Definition:
wrExport.h:40
wrExport.h
OdUInt32
unsigned int OdUInt32
Definition:
OdPlatformSettings.h:783
OdGeMatrix3d
Definition:
GeMatrix3d.h:73
OdGiCommonDraw
Definition:
GiCommonDraw.h:572
OdBrepRenderer::enableCaching
virtual void enableCaching()=0
wrTriangulationParams
Definition:
wrTriangulationParams.h:50
OdBrepRenderer::OdBrepRenderer
OdBrepRenderer()
Definition:
BrepRenderer.h:48
OdBrepRenderer
Definition:
BrepRenderer.h:46
BrepRenderModes.h
OdBrepRenderer::~OdBrepRenderer
virtual ~OdBrepRenderer()
Definition:
BrepRenderer.h:52
wrTriangulationParams.h
OdBrepRenderer::setBrep
virtual void setBrep(const OdBrBrep &brep)=0
OdBrBrep
Definition:
BrBrep.h:45
OdBrepRenderer::NumIsolines
Definition:
BrepRenderer.h:85
OdBrepRenderer::setTriangulationParams
virtual void setTriangulationParams(const wrTriangulationParams *pTriangulationParams)=0
OdBrepRenderer::NumIsolines::numV
OdUInt32 numV
Definition:
BrepRenderer.h:86
OdBrepRenderer::getTriangulationParams
virtual const wrTriangulationParams * getTriangulationParams() const =0
OdGiViewportDraw
Definition:
GiViewportDraw.h:50
OdBrepRenderer::transformBy
virtual void transformBy(const OdGeMatrix3d &xfm)=0
Generated on Mon Oct 12 2020 11:49:29