CFx SDK Documentation  2023 SP0
DbLSDefinition.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 #ifndef ODDGNLS_DBLSDEFINITION_H
25 #define ODDGNLS_DBLSDEFINITION_H
26 
27 #include "DbLSObject.h"
28 
29 #include "TD_PackPush.h"
30 
32 {
33  kMSLSMasterUnits = 0, // Master Units
34  kMSLSUORS = 1, // Design UORs
35  kMSLSDeviceUnits = 2 // Device Units
36 };
37 
45 {
46  public:
48 
50 
60  void setComponent(const OdDbObjectId &compId);
61 
68  const OdUInt8 *componentUID() const;
69 
73  bool isContinuous() const;
79  void setIsContinuous(bool bSet);
80 
84  bool isElement() const;
90  void setIsElement(bool bSet);
91 
98  bool isPhysical() const;
104  void setIsPhysical(bool bSet);
105 
109  bool isSCScaleIndependent() const;
115  void setIsSCScaleIndependent(bool bSet);
116 
124  bool isSnappable() const;
130  void setIsSnappable(bool bSet);
131 
135  OdString name() const;
141  void setName(const OdString &str);
142 
154  void setStyleNumber(OdInt32 nStyle);
155 
162  double unitDef() const;
170  void setUnitDef(double fUnit);
171 
178  double unitScale() const;
184  void setUnitScale(double fUnit);
185 
199 };
200 
205 
206 #include "TD_PackPop.h"
207 
208 #endif // ODDGNLS_DBLSDEFINITION_H
MSLSUnits
@ kMSLSUORS
@ kMSLSMasterUnits
@ kMSLSDeviceUnits
OdSmartPtr< OdDbLSDefinition > OdDbLSDefinitionPtr
#define ODDGNLS_EXPORT
Definition: OdDgnLSExport.h:33
int OdInt32
unsigned char OdUInt8
double unitScale() const
void setIsContinuous(bool bSet)
bool isContinuous() const
void setUnitScale(double fUnit)
void setIsPhysical(bool bSet)
void setIsSCScaleIndependent(bool bSet)
bool isSCScaleIndependent() const
bool isPhysical() const
ODDB_DECLARE_MEMBERS(OdDbLSDefinition)
bool isSnappable() const
OdInt32 styleNumber() const
double unitDef() const
void setIsSnappable(bool bSet)
MSLSUnits unitsType() const
void setName(const OdString &str)
OdDbObjectId component() const
void setComponent(const OdDbObjectId &compId)
void setUnitsType(MSLSUnits type)
void setStyleNumber(OdInt32 nStyle)
const OdUInt8 * componentUID() const
bool isElement() const
OdString name() const
void setUnitDef(double fUnit)
void setIsElement(bool bSet)
GLuint GLsizei GLsizei GLint GLenum * type
Definition: gles2_ext.h:274