CFx SDK Documentation  2023 SP0
DbBlockParamValueSet.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 _DbBlockParamValueSet_h_Included_
25 #define _DbBlockParamValueSet_h_Included_
26 
27 #include "TD_PackPush.h"
28 
29 #include "Ge/GeDoubleArray.h"
30 #include "RxObjectImpl.h"
31 #include "DbEvalGraph.h"
32 class OdDbBlockParamValueSetImpl;
33 
34 #ifdef OD_HAVE_MATH_FILE
35 #include <math.h>
36 #endif
37 
38 #ifdef OD_HAVE_COMPLEX_FILE
39 #include <complex>
40 #endif
41 
50 {
51 protected:
53 public:
59  void assign(const OdDbBlockParamValueSet& vs){ *this = vs; }
60  bool angDir()const ;
61  bool angular()const ;
62  virtual double closestLegalValue(double value , double initial)const ;
64  virtual void dwgOutFieldsHelper(OdDbDwgFiler *)const ;
65  virtual void dxfInFieldsHelper(OdDbDxfFiler *,short,short,short,short);
66  virtual void dxfOutFieldsHelper(OdDbDxfFiler *,short,short,short,short)const ;
67  double increment()const ;
68  double maximum()const ;
69  double minimum()const ;
70  void setAngDir(bool);
71  void setAngular(bool);
72  void setIncrement(double);
73  void setIncrement(double,bool);
74  void setMaximum(double);
75  void setMaximum(double,bool);
76  void setMinimum(double);
77  void setMinimum(double,bool);
78  void setUseIncrement(bool);
79  void setUseMaximum(bool);
80  void setUseMinimum(bool);
81  void setUseValueList(bool);
83  void setValueList(OdGeDoubleArray const &,bool);
85  void updateValue(double);
86  bool useIncrement()const ;
87  bool useMaximum()const ;
88  bool useMinimum()const ;
89  bool useValueList()const ;
90  virtual bool valueIsLegal(double,double)const ;
92 private:
93  OdDbBlockParamValueSetImpl* m_pImpl;
94 };
95 
97 
98 #include "TD_PackPop.h"
99 
100 #endif // _DbBlockParamValueSet_h_Included_
OdSmartPtr< OdDbBlockParamValueSet > OdDbBlockParamValueSetPtr
#define DYNBLOCKS_EXPORT
Definition: DbEvalGraph.h:91
ODRX_DECLARE_MEMBERS(OdDbBlockParamValueSet)
bool useMinimum() const
void setMinimum(double, bool)
double maximum() const
OdGeDoubleArray valueList() const
virtual ~OdDbBlockParamValueSet()
void setValueList(OdGeDoubleArray const &)
virtual void dxfInFieldsHelper(OdDbDxfFiler *, short, short, short, short)
virtual void dwgOutFieldsHelper(OdDbDwgFiler *) const
class OdDbBlockParamValueSet & operator=(const OdDbBlockParamValueSet &)
double increment() const
virtual bool valueIsLegal(double, double) const
double minimum() const
void setUseIncrement(bool)
bool useValueList() const
virtual double closestLegalValue(double value, double initial) const
void setUseValueList(bool)
void setMinimum(double)
virtual void dxfOutFieldsHelper(OdDbDxfFiler *, short, short, short, short) const
void setIncrement(double)
void setIncrement(double, bool)
bool useMaximum() const
bool useIncrement() const
void setMaximum(double, bool)
void setMaximum(double)
virtual void dwgInFieldsHelper(OdDbDwgFiler *)
void setValueList(OdGeDoubleArray const &, bool)
void assign(const OdDbBlockParamValueSet &vs)
void updateValue(double)
OdDbBlockParamValueSet(const OdDbBlockParamValueSet &)
OdGeDoubleArray sortedValueListIncluding(double) const
GLsizei const GLfloat * value
Definition: gles2_ext.h:302