CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
BrFace.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2022, 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 Open Design Alliance software pursuant to a license
16// agreement with Open Design Alliance.
17// Open Design Alliance Copyright (C) 2002-2022 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 _INC_DDBRFACE_3F82D5A203C8_INCLUDED
27#define _INC_DDBRFACE_3F82D5A203C8_INCLUDED
28
29#include "Br/BrEntity.h"
30#include "Br/BrEnums.h"
31#include "Ge/GeSurface.h"
32#include "Ge/GeNurbSurface.h"
33
34#include "TD_PackPush.h"
35
36class OdCmEntityColor;
38
51{
52public:
53
60
65
71
89 const double* tolRequired = NULL,
90 double* tolAchieved = NULL) const;
91
96 bool getOrientToSurface() const;
104 bool getColor(OdCmEntityColor &color) const;
105
113 bool getMaterialID(OdUInt64 &id) const;
114
122 bool getMaterialString(OdString& strMatName) const;
123
136 {
137 kInheritProjection = 0, // Inherits *projection* from the current material's mapper.
138 kPlanar = 1, // Maps directly to XY coordinates.
139 kBox = 2, // Maps to planes perpendicular to major axes.
140 kCylinder = 3, // Maps to cylinder aligned with Z-axis.
141 kSphere = 4 // Maps to sphere aligned with Z-axis
142 };
143
145 {
146 kInheritTiling = 0, // Inherits *tiling* from the current material's mapper.
147 kTile = 1, // Repeats map along image axes.
148 kCrop = 2, // Crops map < 0.0 or > 1.0 on image axes.
149 kClamp = 3, // Clamps (stretches) map between 0.0 and 1.0 on image axes.
150 kMirror = 4 // Mirror the material map at every integer boundary.
151 };
152
154 {
155 kInheritAutoTransform = 0x0, // Inherits automatic *transform* from the current material/s mapper.
156 kNone = 0x1, // No automatic *transform*.
157 kObject = 0x2, // Adjusts the mapper *transform* to align with and fit the current object.
158 kModel = 0x4 // Multiples the mapper *transform* by the current block *transform*.
159 };
160
161 bool getMaterialMapper(OdGeMatrix3d &mx, Projection &projection, Tiling& tiling, AutoTransform &autoTransform) const;
162
164
173 bool getFillPatternId(OdUInt64 &id) const;
174
185
198
205 const OdGiFill* getFill() const;
206
216 bool getFirstFaceRegion(OdBrFace& face) const;
217
227 bool getNextFaceRegion(OdBrFace& face) const;
228
230#ifdef OD_ADD_MOVE_CTOR_HAVE_DEF_DEL_FUNC
231 //DOM-IGNORE-BEGIN
232 OdBrFace(const OdBrFace&) = default;
233 OdBrFace& operator=(const OdBrFace&) = default;
234 OdBrFace(OdBrFace&&) = default;
235 OdBrFace& operator=(OdBrFace&&) = default;
236 //DOM-IGNORE-END
237#endif
238
240};
241
242#include "TD_PackPop.h"
243
244#endif /* _INC_DDBRFACE_3F82D5A203C8_INCLUDED */
245
OdBrErrorStatus
Definition: BrEnums.h:41
#define ODBR_TOOLKIT_EXPORT
Definition: BrExport.h:39
unsigned int OdUInt32
bool getOrientToSurface() const
bool getExtraFillingAttributes(OdGiFill *pFill) const
OdBrErrorStatus getArea(double &area, const double *tolRequired=NULL, double *tolAchieved=NULL) const
bool getFirstFaceRegion(OdBrFace &face) const
const OdGiFill * getFill() const
bool getMaterialString(OdString &strMatName) const
OdBrErrorStatus getSurfaceAsNurb(OdGeNurbSurface &nurb) const
OdBrErrorStatus getSurfaceType(OdGe::EntityId &surfaceType) const
bool getNextFaceRegion(OdBrFace &face) const
OdBrErrorStatus getSurfaceAsTrimmedNurbs(OdUInt32 &numNurbs, OdGeExternalBoundedSurface **&ppNurbs) const
bool getMaterialID(OdUInt64 &id) const
OdGeSurface * getSurface() const
bool getColor(OdCmEntityColor &color) const
bool getMaterialMapper(OdGeMatrix3d &mx, Projection &projection, Tiling &tiling, AutoTransform &autoTransform) const
bool getFillPatternId(OdUInt64 &id) const
bool getFillingAttributes(OdGePoint2d &origin, OdGeVector2d &dir) const
Projection
Definition: BrFace.h:136
AutoTransform
Definition: BrFace.h:154
EntityId
Definition: Ge.h:62