CFx SDK Documentation  2022 SP0
BrEnums.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 // OdBrEnums.h -- declaration of enumerated types used in the
27 // OdBr B-Rep and traverser classes.
28 
29 #pragma warning ( disable : 4482 )
30 
31 #ifndef ODBRENUMS_H
32 #define ODBRENUMS_H
33 #include "OdError.h"
34 #include "BrExport.h"
35 #include "Gi/Gi.h"
36 
41 {
42  odbrOK = ::eOk, // The operation is finished successfully.
43  odbrWrongObjectType = eWrongObjectType, // The type of returned object is not supported as a B-rep.
44  odbrInvalidObject = eUnrecoverableErrors, // The OdBr* object is not initialized or is invalid.
46  odbrMissingGeometry = eDegenerateGeometry, // Represents the partially or fully missing geometry.
47  odbrInvalidInput = eInvalidInput, // The input arguments point to an invalid object.
48  odbrDegenerateTopology = 0XBCC, // The subentity does not map to the topology.
49  odbrUninitialisedObject = 0xBCD, // The OdBr* object is not initialized.
50  odbrOutOfMemory = eOutOfMemory, // The memory for the object could not be allocated.
51  odbrBrepChanged = 0xBC0, // The object has been modified since this OdBr* object was last set.
52  odbrNotImplementedYet = ::eNotImplementedYet, // Returned if the function is not implemented yet.
53  odbrNullObjectId = eNullObjectId, // Returned when the subentity path does not point to an object.
54  odbrNotApplicable = eNotApplicable, // Represents the situation when the inherited function is not applicable to this subclass.
55  odbrWrongSubentityType = eWrongSubentityType, // The subentity type does not match the subclass.
56  odbrNullSubentityId = eInvalidIndex, // Returned when the subentity path does not point to a subentity.
57  odbrNullObjectPointer = eUnrecoverableErrors, // Returned when the function implementation is missing.
58  odbrObjectIdMismatch = eWrongDatabase, // The traverser list owner and list position do not point to the same object.
59  odbrTopologyMismatch = eWrongDatabase, // Returned when the traverser list position cannot be set because the subentity is not connected to the list owner.
60  odbrUnsuitableGeometry = eAmbiguousOutput, // The geometry of OdGe object is unsuitable for this function.
61  odbrMissingSubentity = eNotInDatabase, // The topology does not map to a subentity.
62  odbrAmbiguousOutput = eAmbiguousOutput, // The result is ambiguous.
63 
64  odbrUnrecoverableErrors = eUnrecoverableErrors,
66  odbrWrongDatabase = eWrongDatabase,
67  odbrNotInDatabase = eNotInDatabase,
69 };
70 
75  odbrLoopUnclassified = 0, // The loop type is ambiguous or cannot be determined at this time.
76  odbrLoopExterior = 1, // The loop is on a peripheral boundary.
77  odbrLoopInterior = 2, // The loop represents a hole in the interior of a face.
78  odbrLoopWinding = 3, // The loop is winding on a conical surface.
79 };
80 
85  odbrShellUnclassified = 0, // The shell type cannot be determined at this time.
86  odbrShellExterior = 1, // The shell is on a peripheral boundary of region or B-rep.
87  odbrShellInterior = 2 // The shell is empty in the interior of a region or B-rep.
88 };
89 
96 };
97 
102  kDefault = 0,
105  kAllTriangles = 3
106 };
107 
112  kNoFlags = 0,
113  kDoubleSide = 0x001, //If it is DoubleSide then not SingleSide and vice versa
114  kVisible = 0x002, //Visible should be set by default. kNoFlags is default/drawings version.
115  kInvisible = 0x004,
116  kHighlight = 0x008,
117  kSelectionIgnore = 0x010 //It cannot be selected
118 };
119 
126 {
127 public:
134 
139 };
140 
141 #define BR_THROW(n) throw OdBrException(n)
142 
143 #endif // ODBRENUMS_H
OdBrErrorStatus
Definition: BrEnums.h:41
@ odbrNullSubentityId
Definition: BrEnums.h:56
@ odbrInvalidInput
Definition: BrEnums.h:47
@ odbrWrongSubentityType
Definition: BrEnums.h:55
@ odbrMissingSubentity
Definition: BrEnums.h:61
@ odbrDegenerateTopology
Definition: BrEnums.h:48
@ odbrBrepChanged
Definition: BrEnums.h:51
@ odbrWrongDatabase
Definition: BrEnums.h:66
@ odbrUnsuitableGeometry
Definition: BrEnums.h:60
@ odbrTopologyMismatch
Definition: BrEnums.h:59
@ odbrUnrecoverableErrors
Definition: BrEnums.h:64
@ odbrOutOfMemory
Definition: BrEnums.h:50
@ odbrWrongObjectType
Definition: BrEnums.h:43
@ odbrMissingTopology
Definition: BrEnums.h:65
@ odbrObjectIdMismatch
Definition: BrEnums.h:58
@ odbrNotImplementedYet
Definition: BrEnums.h:52
@ odbrDegenerateGeometry
Definition: BrEnums.h:68
@ odbrUnsuitableTopology
Definition: BrEnums.h:45
@ odbrOK
Definition: BrEnums.h:42
@ odbrNotApplicable
Definition: BrEnums.h:54
@ odbrMissingGeometry
Definition: BrEnums.h:46
@ odbrNullObjectPointer
Definition: BrEnums.h:57
@ odbrInvalidObject
Definition: BrEnums.h:44
@ odbrAmbiguousOutput
Definition: BrEnums.h:62
@ odbrUninitialisedObject
Definition: BrEnums.h:49
@ odbrNotInDatabase
Definition: BrEnums.h:67
@ odbrNullObjectId
Definition: BrEnums.h:53
Element2dShape
Definition: BrEnums.h:101
@ kAllPolygons
Definition: BrEnums.h:103
@ kDefault
Definition: BrEnums.h:102
@ kAllQuadrilaterals
Definition: BrEnums.h:104
@ kAllTriangles
Definition: BrEnums.h:105
BrEntityFlags
Definition: BrEnums.h:111
@ kInvisible
Definition: BrEnums.h:115
@ kVisible
Definition: BrEnums.h:114
@ kDoubleSide
Definition: BrEnums.h:113
@ kNoFlags
Definition: BrEnums.h:112
@ kSelectionIgnore
Definition: BrEnums.h:117
@ kHighlight
Definition: BrEnums.h:116
BrLoopType
Definition: BrEnums.h:74
@ odbrLoopExterior
Definition: BrEnums.h:76
@ odbrLoopInterior
Definition: BrEnums.h:77
@ odbrLoopWinding
Definition: BrEnums.h:78
@ odbrLoopUnclassified
Definition: BrEnums.h:75
BrValidationLevel
Definition: BrEnums.h:93
@ odbrFullValidation
Definition: BrEnums.h:94
@ odbrNoValidation
Definition: BrEnums.h:95
BrShellType
Definition: BrEnums.h:84
@ odbrShellExterior
Definition: BrEnums.h:86
@ odbrShellInterior
Definition: BrEnums.h:87
@ odbrShellUnclassified
Definition: BrEnums.h:85
#define ODBR_TOOLKIT_EXPORT
Definition: BrExport.h:39
@ eDegenerateGeometry
OdBrErrorStatus getErrorStatus() const
OdBrException(OdBrErrorStatus errorStatus)
@ eNotImplementedYet
The name of the base object is null.