CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
DbLSDefinition.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#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
43{
44 public:
46
48
58 void setComponent(const OdDbObjectId &compId);
59
66 const OdUInt8 *componentUID() const;
67
71 bool isContinuous() const;
77 void setIsContinuous(bool bSet);
78
82 bool isElement() const;
88 void setIsElement(bool bSet);
89
96 bool isPhysical() const;
102 void setIsPhysical(bool bSet);
103
113 void setIsSCScaleIndependent(bool bSet);
114
122 bool isSnappable() const;
128 void setIsSnappable(bool bSet);
129
133 OdString name() const;
139 void setName(const OdString &str);
140
153
160 double unitDef() const;
168 void setUnitDef(double fUnit);
169
176 double unitScale() const;
182 void setUnitScale(double fUnit);
183
197};
198
203
204#include "TD_PackPop.h"
205
206#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)
const OdUInt8 * componentUID() const
void setUnitsType(MSLSUnits type)
void setStyleNumber(OdInt32 nStyle)
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