CFx SDK Documentation  2020SP3
AveDefs.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 OD_AVEDEFS_H
27 #define OD_AVEDEFS_H
28 
29 #include "Ve/AveExport.h"
30 #include "OdString.h"
31 #include "RxIterator.h"
32 
37 namespace OdAve
38 {
40  {
41  kStandard = 0,
42  kGranite = 1,
43  kMarble = 2,
44  kWood = 3
45  };
46 
48  {
49  kAmbient = 0x1,
50  kDiffuse = 0x2,
51  kSpecular = 0x4,
52  kTransparency = 0x8,
53  kRoughness = 0x20,
54  kBumpMap = 0x40,
55  kReflectionProp = 0x100,
56  kRefraction = 0x200
57  };
58 
60  {
61  kRndSimple = 30,
63  kRndRaytrace = 60
64  };
65 
67  {
70  kDestFile = 40
71  };
72 
74  {
75  kGouraud = 0,
76  kPhong = 1
77  };
78 
80  {
85  kAntiAliasHigh = 5
86  };
87 
89  {
92  kTMapSampMipMap = 3
93  };
94 
96  {
100  kBackgroundMerge = 3
101  };
102 
104  {
105  kRndPref = 0,
112  kRndBGOpt = 7,
113  kRndOptAmount = 8
114  };
115 
117  {
118  kPlanar = 1,
119  kBox = 2,
121  kSphere = 4
122  };
123 
125  {
126  kTmDefault = 0, // Tiling as set for the material.
127  kTmTile = 1, // Tiled.
128  kTmCrop = 2, // Cropped.
129  kTmClamp = 3 // Clamped.
130  };
131 
133  {
137  kSetuvSolid = 6
138  };
139 }
140 
148 {
149 public:
150  virtual ~OdAveBitmap() {}
151 
161  virtual double blendFactor() = 0;
162 
168  virtual void source(OdString& filename) = 0;
169 
176  virtual double scaleU() = 0;
183  virtual double scaleV() = 0;
189  virtual double offsetU() = 0;
195  virtual double offsetV() = 0;
218  virtual bool useAutoAxis() = 0;
223  virtual bool fitToObject() = 0;
224 
232  virtual void setBlendFactor(double blendFactor) = 0;
239  virtual void setSource(const OdString& filename) = 0;
246  virtual void setScaleU(double scaleU) = 0;
253  virtual void setScaleV(double scaleV) = 0;
258  virtual void setOffsetU(double offsetU) = 0;
263  virtual void setOffsetV(double offsetV) = 0;
280  virtual void setTileMethod(OdAve::TileMethod tileMethod) = 0;
290  virtual void setUseAutoAxis(bool useAutoAxis) = 0;
291 
297  virtual void setFitToObject(bool fitToObject) = 0;
298 };
299 
300 #endif // OD_AVEDEFS_H
OdAve::kTmClamp
@ kTmClamp
Definition: AveDefs.h:129
OdAve::kAmbient
@ kAmbient
Definition: AveDefs.h:49
OdAve::kMarble
@ kMarble
Definition: AveDefs.h:43
OdAveBitmap::setOffsetV
virtual void setOffsetV(double offsetV)=0
OdString
Definition: OdString.h:95
OdAve::kDestViewport
@ kDestViewport
Definition: AveDefs.h:68
OdAve::kRndSimple
@ kRndSimple
Definition: AveDefs.h:61
OdAve::kSpecular
@ kSpecular
Definition: AveDefs.h:51
OdAve::kGouraud
@ kGouraud
Definition: AveDefs.h:75
OdAveBitmap::setUseAutoAxis
virtual void setUseAutoAxis(bool useAutoAxis)=0
OdAveBitmap::setBlendFactor
virtual void setBlendFactor(double blendFactor)=0
OdAveBitmap::scaleU
virtual double scaleU()=0
OdAveBitmap::setFitToObject
virtual void setFitToObject(bool fitToObject)=0
OdAveBitmap::tileMethod
virtual OdAve::TileMethod tileMethod()=0
OdAve::kBackgroundGradient
@ kBackgroundGradient
Definition: AveDefs.h:98
OdAve::kTmTile
@ kTmTile
Definition: AveDefs.h:127
OdAve::kRndFogOpt
@ kRndFogOpt
Definition: AveDefs.h:111
AveExport.h
OdAve::RenderQuality
RenderQuality
Definition: AveDefs.h:74
OdAveBitmap::setScaleV
virtual void setScaleV(double scaleV)=0
OdAve::kTMapSampMipMap
@ kTMapSampMipMap
Definition: AveDefs.h:92
RxIterator.h
OdAve::BackgroundType
BackgroundType
Definition: AveDefs.h:96
OdAve::SetuvType
SetuvType
Definition: AveDefs.h:133
OdAve::MaterialType
MaterialType
Definition: AveDefs.h:40
OdAve::kRndPref
@ kRndPref
Definition: AveDefs.h:105
OdAveBitmap::useAutoAxis
virtual bool useAutoAxis()=0
OdAve::kDestFile
@ kDestFile
Definition: AveDefs.h:70
OdAve::kRndRaytrOpt
@ kRndRaytrOpt
Definition: AveDefs.h:109
OdAve::kRndQuickOpt
@ kRndQuickOpt
Definition: AveDefs.h:107
OdAve::kTmCrop
@ kTmCrop
Definition: AveDefs.h:128
OdAve::kRndRFileOpt
@ kRndRFileOpt
Definition: AveDefs.h:110
OdAve::kAntiAliasNone
@ kAntiAliasNone
Definition: AveDefs.h:81
OdAveBitmap::blendFactor
virtual double blendFactor()=0
OdAve::ProjectionMethod
ProjectionMethod
Definition: AveDefs.h:117
OdAve::kDiffuse
@ kDiffuse
Definition: AveDefs.h:50
OdAve::kRndOptAmount
@ kRndOptAmount
Definition: AveDefs.h:113
OdAve::kRndFullOpt
@ kRndFullOpt
Definition: AveDefs.h:106
OdAve::MaterialAttrib
MaterialAttrib
Definition: AveDefs.h:48
OdString.h
OdAve::kSetuvSolid
@ kSetuvSolid
Definition: AveDefs.h:137
OdAve::kCylinder
@ kCylinder
Definition: AveDefs.h:120
OdAve::kAntiAliasMedium
@ kAntiAliasMedium
Definition: AveDefs.h:84
OdAve::kRndScanlOpt
@ kRndScanlOpt
Definition: AveDefs.h:108
OdAve::kSetuvPlanar
@ kSetuvPlanar
Definition: AveDefs.h:134
OdAve::kRoughness
@ kRoughness
Definition: AveDefs.h:53
OdAveBitmap::scaleV
virtual double scaleV()=0
OdAve::TileMethod
TileMethod
Definition: AveDefs.h:125
OdAve::kSphere
@ kSphere
Definition: AveDefs.h:121
OdAveBitmap::offsetU
virtual double offsetU()=0
OdAve::kRndPhotoReal
@ kRndPhotoReal
Definition: AveDefs.h:62
OdAve::kTransparency
@ kTransparency
Definition: AveDefs.h:52
OdAveBitmap::setOffsetU
virtual void setOffsetU(double offsetU)=0
OdAve::kAntiAliasHigh
@ kAntiAliasHigh
Definition: AveDefs.h:85
OdAveBitmap
Definition: AveDefs.h:148
OdAve::kBackgroundSolid
@ kBackgroundSolid
Definition: AveDefs.h:97
OdAve::kBackgroundMerge
@ kBackgroundMerge
Definition: AveDefs.h:100
OdAve::OptionType
OptionType
Definition: AveDefs.h:104
OdAve::kTmDefault
@ kTmDefault
Definition: AveDefs.h:126
OdAve::kGranite
@ kGranite
Definition: AveDefs.h:42
OdAve::kStandard
@ kStandard
Definition: AveDefs.h:41
OdAve::kSetuvCylindrical
@ kSetuvCylindrical
Definition: AveDefs.h:135
OdAveBitmap::fitToObject
virtual bool fitToObject()=0
OdAve::kWood
@ kWood
Definition: AveDefs.h:44
OdAveBitmap::setTileMethod
virtual void setTileMethod(OdAve::TileMethod tileMethod)=0
OdAve::kPhong
@ kPhong
Definition: AveDefs.h:76
OdAveBitmap::setScaleU
virtual void setScaleU(double scaleU)=0
OdAveBitmap::source
virtual void source(OdString &filename)=0
OdAve::kSetuvSpherical
@ kSetuvSpherical
Definition: AveDefs.h:136
OdAveBitmap::setSource
virtual void setSource(const OdString &filename)=0
OdAveBitmap::offsetV
virtual double offsetV()=0
OdAve::kDestWindow
@ kDestWindow
Definition: AveDefs.h:69
OdAve::kBackgroundImage
@ kBackgroundImage
Definition: AveDefs.h:99
OdAve::kRefraction
@ kRefraction
Definition: AveDefs.h:56
OdAve::kTMapSampPoint
@ kTMapSampPoint
Definition: AveDefs.h:90
OdAve::kRndBGOpt
@ kRndBGOpt
Definition: AveDefs.h:112
OdAve::kAntiAliasMinimal
@ kAntiAliasMinimal
Definition: AveDefs.h:82
OdAve::RenderDestination
RenderDestination
Definition: AveDefs.h:67
OdAveBitmap::~OdAveBitmap
virtual ~OdAveBitmap()
Definition: AveDefs.h:150
OdAve
Definition: AveDefs.h:38
OdAve::AntiAliasing
AntiAliasing
Definition: AveDefs.h:80
OdAve::kBumpMap
@ kBumpMap
Definition: AveDefs.h:54
AVE_EXPORT
#define AVE_EXPORT
Definition: AveExport.h:37
OdAve::kAntiAliasLow
@ kAntiAliasLow
Definition: AveDefs.h:83
OdAve::TextureMapSampling
TextureMapSampling
Definition: AveDefs.h:89
OdAve::kRndRaytrace
@ kRndRaytrace
Definition: AveDefs.h:63
OdAve::kPlanar
@ kPlanar
Definition: AveDefs.h:118
OdAve::RenderType
RenderType
Definition: AveDefs.h:60
OdAve::kBox
@ kBox
Definition: AveDefs.h:119
OdAve::kTMapSampLinear
@ kTMapSampLinear
Definition: AveDefs.h:91
OdAve::kReflectionProp
@ kReflectionProp
Definition: AveDefs.h:55