CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
odiv.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2024, 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-2024 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#pragma once
25
26#include "OdaDefs.h"
27#include "OdArray.h"
28#include "OdGUID.h"
29#include "DbHandle.h"
30
31#include "Ge/GePoint3d.h"
32#include "Ge/GeMatrix3d.h"
33#include "Ge/GeExtents3d.h"
34
35#define STL_USING_VECTOR
36#include "OdaSTL.h"
37
38namespace odiv
39{
41 {
42 unsigned int miMajor;
43 unsigned int miMinor;
44 };
45
52 using DWGBodyRecordArray = std::vector<DWGBodyRecord>;
53
69 using DWGBodyOccurrenceArray = std::vector<DWGBodyOccurrence>;
70
78
79 namespace ViewEnums
80 {
101 {
103 };
119 {
121 /* Standard parts should always be sectioned irrespective of the settings. */
123 /* Standard parts should never be sectioned irrespective of the settings. */
125 /* The drawing browser settings should be obeyed when sectioning standard parts. */
127 };
156 {
157 /* Value for constructor. */
159 /* Shaded style with hidden lines. */
161 /* Hidden line style. */
163 /* Hidden lines removed style. */
165 /* Shaded style with hidden lines removed. */
167 /* Derive the style from the base view. */
169
174 };
184 };
185
186 using namespace ViewEnums;
187
189 {
190 public:
191 enum Flags : uint64_t
192 {
193 kShaded = 0x1,
201 kShowTrails = 0x100,
205 kBendEdges = 0x1000,
206 kDeferUpdate = 0x2000,
207 kUnk0x4000 = 0x4000,
209 kUnk0x10000 = 0x10000,
214 kUnk0x200000 = 0x200000,
215 kGetDimensions = 0x400000,
216 kIsEditing = 0x800000,
217 kInheritStyle = 0x1000000,
218 kInheritScale = 0x2000000,
219 kShowHatch = 0x4000000,
220 kAlignToBase = 0x8000000,
222 kSwizzlePartslists = 0x20000000,
225#ifndef SWIG
227 kInheritSliceFromParent = 0x200000000ull,
228 kOrientToParent = 0x400000000ull,
229 kUnk0x800000000 = 0x800000000ull,
230 kIsRasterViewOnly = 0x1000000000ull,
231 kSectionMethodAligned = 0x2000000000ull,
232 kSectionFullDepth = 0x4000000000ull,
233 kJagged = 0x8000000000ull,
234 kIncludeSurfaces = 0x10000000000ull,
235 kIncludeMeshes = 0x20000000000ull,
236 kCopiedView = 0x40000000000ull,
237#else
238 kInheritSectionsFromParent = 0x100000000ul,
239 kInheritSliceFromParent = 0x200000000ul,
240 kOrientToParent = 0x400000000ul,
241 kUnk0x800000000 = 0x800000000ul,
242 kIsRasterViewOnly = 0x1000000000ul,
243 kSectionMethodAligned = 0x2000000000ul,
244 kSectionFullDepth = 0x4000000000ul,
245 kJagged = 0x8000000000ul,
246 kIncludeSurfaces = 0x10000000000ul,
247 kIncludeMeshes = 0x20000000000ul,
248 kCopiedView = 0x40000000000ul,
249#endif
256 kShowHatch |
261 };
262
263 union
264 {
266 uint64_t m_flags;
267 };
268
269
270 // Camera
275
284
285 double scale = 1.0;
286 double referenceMargin = 0.0;
287 double sectionDepth = 0.0;
288
296 int unk = 0;
303 };
304
320}
OdArray< OdDbHandle > OdHandleArray
Definition DbHandle.h:351
unsigned int OdUInt32
ERefAndNonRefTreatment refAndNonRefTreatment
Definition odiv.h:295
EGroupType weldmentGroup
Definition odiv.h:301
double sectionDepth
Definition odiv.h:287
uint64_t m_flags
Definition odiv.h:266
EViewType viewType
Definition odiv.h:299
double scale
Definition odiv.h:285
OdString label
Definition odiv.h:276
Flags flags
Definition odiv.h:265
OdString designView
Definition odiv.h:278
OdString LOD
Definition odiv.h:279
ESectionConstrainTo sectionConstrainTo
Definition odiv.h:291
OdGePoint3d center
Definition odiv.h:274
@ kInheritScale
Definition odiv.h:218
@ kWantFlatPattern
Definition odiv.h:212
@ kSwizzlePartslists
Definition odiv.h:222
@ kIncludeSurfaces
Definition odiv.h:234
@ kLabelVisibility
Definition odiv.h:199
@ kDisplayWeldCosmetics
Definition odiv.h:203
@ kForeshortened
Definition odiv.h:195
@ kInheritSectionsFromParent
Definition odiv.h:226
@ kOrientToParent
Definition odiv.h:228
@ kDisplayThreadFeatures
Definition odiv.h:202
@ kPreviewAllComponents
Definition odiv.h:211
@ kUnk0x800000000
Definition odiv.h:229
@ kShowDefinitionInBaseView
Definition odiv.h:221
@ kInheritSliceFromParent
Definition odiv.h:227
@ kGetWeldSymbols
Definition odiv.h:200
@ kCustomScaleString
Definition odiv.h:208
@ kDisplayPunchCenter
Definition odiv.h:210
@ kIsRasterViewOnly
Definition odiv.h:230
@ kInheritBreaksFromParent
Definition odiv.h:223
@ kDisplayWorkFeatures
Definition odiv.h:204
@ kGetDimensions
Definition odiv.h:215
@ kSectionMethodAligned
Definition odiv.h:231
@ kInheritBreakoutsFromParent
Definition odiv.h:224
@ kIncludeMeshes
Definition odiv.h:235
@ kShowInterferenceEdges
Definition odiv.h:196
@ kShowTangentEdges
Definition odiv.h:194
@ kAssociativeView
Definition odiv.h:213
@ kCustomViewDirty
Definition odiv.h:198
@ kInheritStyle
Definition odiv.h:217
@ kSectionFullDepth
Definition odiv.h:232
OdString memberName
Definition odiv.h:280
OdString positionalName
Definition odiv.h:281
EViewOrientType viewOrientType
Definition odiv.h:300
EDetailViewFenceType boundaryType
Definition odiv.h:292
OdGeVector3d upVector
Definition odiv.h:273
EFrontViewPlane viewFrontPlane
Definition odiv.h:293
EViewStyle viewStyleType
Definition odiv.h:294
OdString presentationView
Definition odiv.h:282
OdString weldInstanceName
Definition odiv.h:283
ESectionParticipation sectionParticipation
Definition odiv.h:290
ESectionStandardPartsSetting sectionStandardPartsSetting
Definition odiv.h:297
int weldInstanceId
Definition odiv.h:289
double referenceMargin
Definition odiv.h:286
OdGePoint3d target
Definition odiv.h:272
OdGePoint3d eye
Definition odiv.h:271
EViewJustification viewJustification
Definition odiv.h:298
OdString fullFileName
Definition odiv.h:277
EViewReferenceDataState refDataState
Definition odiv.h:302
MeasurementValue
Definition OdaDefs.h:442
@ kEnglish
English system.
Definition OdaDefs.h:443
@ kDefaultConstraintStatus
Definition odiv.h:83
ESectionParticipation
Definition odiv.h:115
@ kDefaultSectionParticipation
Definition odiv.h:116
@ kDefaultGroupType
Definition odiv.h:102
@ kZoneBottomRight
Definition odiv.h:139
@ kZoneBottomLeft
Definition odiv.h:137
@ kDefaultViewOrientType
Definition odiv.h:149
ERefAndNonRefTreatment
Definition odiv.h:105
@ kRefAndNonRefCombine
Definition odiv.h:108
@ kRefAndNonRefSeparate
Definition odiv.h:107
@ kDefaultRefAndNonRefTreatment
Definition odiv.h:106
@ kDefaultViewJustification
Definition odiv.h:143
@ kCenteredViewJustification
Definition odiv.h:144
@ kFixedViewJustification
Definition odiv.h:145
@ kDefaultSectionConstrainTo
Definition odiv.h:112
EAllowSectionParticipation
Definition odiv.h:86
@ kDefaultAllowSectionParticipation
Definition odiv.h:87
@ kDefaultFrontViewPlane
Definition odiv.h:98
ESectionStandardPartsSetting
Definition odiv.h:119
@ kAlwaysSectionStandardParts
Definition odiv.h:122
@ kNeverSectionStandardParts
Definition odiv.h:124
@ kObeyBrowserSettingsSectionStandardParts
Definition odiv.h:126
@ kDefaultSectionStandardPartsSetting
Definition odiv.h:120
EDetailViewFenceType
Definition odiv.h:90
@ kRectangularBoundary
Definition odiv.h:93
@ kDefaultDetailViewFenceType
Definition odiv.h:91
@ kCircularBoundary
Definition odiv.h:94
@ kShadedDrawingViewStyle
Definition odiv.h:166
@ kShadedVisibleAndHiddenLines
Definition odiv.h:173
@ kShadedVisibleLines
Definition odiv.h:172
@ kVisibleAndHiddenLines
Definition odiv.h:171
@ kDefaultViewStyle
Definition odiv.h:158
@ kHiddenLineDrawingViewStyle
Definition odiv.h:162
@ kHiddenLineRemovedDrawingViewStyle
Definition odiv.h:164
@ kShadedHiddenLineDrawingViewStyle
Definition odiv.h:160
@ kFromBaseDrawingViewStyle
Definition odiv.h:168
EViewReferenceDataState
Definition odiv.h:152
@ kDefaultViewReferenceDataState
Definition odiv.h:153
@ kDetailViewType
Definition odiv.h:180
@ kProjectedViewType
Definition odiv.h:182
@ kSectionViewType
Definition odiv.h:181
@ kDefaultViewType
Definition odiv.h:177
Definition odiv.h:39
std::vector< DWGBodyOccurrence > DWGBodyOccurrenceArray
Definition odiv.h:69
std::vector< DWGBodyRecord > DWGBodyRecordArray
Definition odiv.h:52
unsigned int miMinor
Definition odiv.h:43
unsigned int miMajor
Definition odiv.h:42
OdArray< odiv::DVO::featureId > maFutureIds
Definition odiv.h:315
OdGePoint3d mptPoint
Definition odiv.h:316
OdGeVector3d mvVector
Definition odiv.h:317
odiv::ASMVersion mVersion
Definition odiv.h:314
unsigned int id1
Definition odiv.h:310
unsigned int id0
Definition odiv.h:309
OdDbHandle handle
Definition odiv.h:57
OdHandleArray path
Definition odiv.h:56
OdGeMatrix3d transform
Definition odiv.h:59
OdDbHandle handle
Definition odiv.h:49
OdGeExtents3d box
Definition odiv.h:50
OdGUID bodyVer
Definition odiv.h:48
DWGBodyOccurrenceArray occurrences
Definition odiv.h:74
OdDb::MeasurementValue measurement
Definition odiv.h:76
DWGBodyRecordArray records
Definition odiv.h:73