CFx SDK Documentation  2020SP3
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,
68  odbrDegenerateGeometry = eDegenerateGeometry
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
kHighlight
@ kHighlight
Definition: BrEnums.h:116
odbrNotApplicable
@ odbrNotApplicable
Definition: BrEnums.h:54
odbrBrepChanged
@ odbrBrepChanged
Definition: BrEnums.h:51
odbrInvalidObject
@ odbrInvalidObject
Definition: BrEnums.h:44
OdBrException::getErrorStatus
OdBrErrorStatus getErrorStatus() const
odbrNullObjectId
@ odbrNullObjectId
Definition: BrEnums.h:53
odbrLoopExterior
@ odbrLoopExterior
Definition: BrEnums.h:76
Element2dShape
Element2dShape
Definition: BrEnums.h:101
odbrTopologyMismatch
@ odbrTopologyMismatch
Definition: BrEnums.h:59
odbrDegenerateTopology
@ odbrDegenerateTopology
Definition: BrEnums.h:48
odbrShellInterior
@ odbrShellInterior
Definition: BrEnums.h:87
odbrWrongObjectType
@ odbrWrongObjectType
Definition: BrEnums.h:43
kDefault
@ kDefault
Definition: BrEnums.h:102
odbrMissingSubentity
@ odbrMissingSubentity
Definition: BrEnums.h:61
kAllPolygons
@ kAllPolygons
Definition: BrEnums.h:103
odbrNotImplementedYet
@ odbrNotImplementedYet
Definition: BrEnums.h:52
odbrUnrecoverableErrors
@ odbrUnrecoverableErrors
Definition: BrEnums.h:64
ODBR_TOOLKIT_EXPORT
#define ODBR_TOOLKIT_EXPORT
Definition: BrExport.h:39
odbrDegenerateGeometry
@ odbrDegenerateGeometry
Definition: BrEnums.h:68
BrLoopType
BrLoopType
Definition: BrEnums.h:74
odbrOK
@ odbrOK
Definition: BrEnums.h:42
odbrInvalidInput
@ odbrInvalidInput
Definition: BrEnums.h:47
OdBrErrorStatus
OdBrErrorStatus
Definition: BrEnums.h:41
OdPdfPublish::eNotImplementedYet
@ eNotImplementedYet
The name of the base object is null.
Definition: PdfPublishCommon.h:50
kSelectionIgnore
@ kSelectionIgnore
Definition: BrEnums.h:117
odbrUnsuitableTopology
@ odbrUnsuitableTopology
Definition: BrEnums.h:45
BrValidationLevel
BrValidationLevel
Definition: BrEnums.h:93
kAllQuadrilaterals
@ kAllQuadrilaterals
Definition: BrEnums.h:104
kInvisible
@ kInvisible
Definition: BrEnums.h:115
odbrObjectIdMismatch
@ odbrObjectIdMismatch
Definition: BrEnums.h:58
odbrFullValidation
@ odbrFullValidation
Definition: BrEnums.h:94
odbrNullSubentityId
@ odbrNullSubentityId
Definition: BrEnums.h:56
odbrWrongDatabase
@ odbrWrongDatabase
Definition: BrEnums.h:66
BrExport.h
kAllTriangles
@ kAllTriangles
Definition: BrEnums.h:105
odbrUnsuitableGeometry
@ odbrUnsuitableGeometry
Definition: BrEnums.h:60
OdPdfPublish::eOk
@ eOk
Definition: PdfPublishCommon.h:42
odbrMissingTopology
@ odbrMissingTopology
Definition: BrEnums.h:65
odbrAmbiguousOutput
@ odbrAmbiguousOutput
Definition: BrEnums.h:62
odbrLoopInterior
@ odbrLoopInterior
Definition: BrEnums.h:77
odbrNoValidation
@ odbrNoValidation
Definition: BrEnums.h:95
odbrShellExterior
@ odbrShellExterior
Definition: BrEnums.h:86
kVisible
@ kVisible
Definition: BrEnums.h:114
odbrUninitialisedObject
@ odbrUninitialisedObject
Definition: BrEnums.h:49
kNoFlags
@ kNoFlags
Definition: BrEnums.h:112
OdBrException
Definition: BrEnums.h:126
odbrLoopUnclassified
@ odbrLoopUnclassified
Definition: BrEnums.h:75
OdError
Definition: OdError.h:43
odbrNotInDatabase
@ odbrNotInDatabase
Definition: BrEnums.h:67
OdBrException::OdBrException
OdBrException(OdBrErrorStatus errorStatus)
BrShellType
BrShellType
Definition: BrEnums.h:84
odbrOutOfMemory
@ odbrOutOfMemory
Definition: BrEnums.h:50
odbrMissingGeometry
@ odbrMissingGeometry
Definition: BrEnums.h:46
OdError.h
BrEntityFlags
BrEntityFlags
Definition: BrEnums.h:111
kDoubleSide
@ kDoubleSide
Definition: BrEnums.h:113
odbrLoopWinding
@ odbrLoopWinding
Definition: BrEnums.h:78
odbrWrongSubentityType
@ odbrWrongSubentityType
Definition: BrEnums.h:55
odbrNullObjectPointer
@ odbrNullObjectPointer
Definition: BrEnums.h:57
odbrShellUnclassified
@ odbrShellUnclassified
Definition: BrEnums.h:85
Gi.h