CFx SDK Documentation  2023 SP0
DbBlockParameter.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 _DbBlockParameter_h_Included_
25 #define _DbBlockParameter_h_Included_
26 
27 #include "TD_PackPush.h"
28 
29 #include "DbBlockElement.h"
30 #include "DbEvalGraph.h"
31 #include "Ge/GeMatrix3d.h"
32 #include "DbDynBlockReference.h"
33 
34 class OdDbBlockGrip;
37 
43 {
49  bool m_bVisible;
54 };
56 
66 {
67 public:
70  {
72  End,
75  InvalidComponent
76  };
77  //virtual void removedFromGraph( OdDbEvalGraph* );
78 
81  virtual OdResBufPtr getPropertyValue( const OdString& )const;
82  virtual OdResBufPtr getPropertyValue( const OdString&, const OdGeMatrix3d& )const;
83 
84  //virtual void gripErased( ParameterComponent );
85  //virtual bool historyRequired() const;
86  //static bool isPropertyLabelUnique( OdDbEvalGraph*, const OdString &, class OdString* );
87  //virtual void getGrips( OdDbBlockGripPtrArray&, OdDb::OpenMode );
88  //virtual int getNumberOfGrips() const;
89 
91 
92  //virtual void removeGrip( ParameterComponent );
93  //virtual void resetGrips();
94  //virtual void setNumberOfGrips( int );
95 
96  virtual bool setPropertyValue( const OdString&, const OdResBuf* );
97  virtual bool setPropertyValue( const OdString&, const OdGeMatrix3d&, const OdResBuf* );
98  virtual bool chainActions()const;
99  virtual void setChainActions( bool );
100  virtual bool showProperties()const;
101  virtual void setShowProperties( bool );
103 };
104 
106 
107 #include "TD_PackPop.h"
108 
109 #endif // _DbBlockParameter_h_Included_
OdSmartPtr< OdDbBlockParameter > OdDbBlockParameterPtr
OdSmartPtr< OdDbBlockGrip > OdDbBlockGripPtr
OdArray< OdDbBlkParamPropertyDescriptor > OdDbBlkParamPropertyDescriptorArray
OdArray< OdDbBlockGripPtr, OdMemoryAllocator< OdDbBlockGripPtr > > OdDbBlockGripPtrArray
#define DYNBLOCKS_EXPORT
Definition: DbEvalGraph.h:91
unsigned long OdDbEvalNodeId
Definition: DbEvalGraph.h:60
virtual ParameterComponent getComponentForGrip(OdDbEvalNodeId)
virtual OdString getPropertyConnectionName(const OdString &) const
OdDbEvalNodeId addGrip(ParameterComponent)
virtual bool setPropertyValue(const OdString &, const OdResBuf *)
virtual void setChainActions(bool)
virtual void getPropertyDescription(OdDbBlkParamPropertyDescriptorArray &) const
virtual OdResBufPtr getPropertyValue(const OdString &) const
ODDB_EVAL_DECLARE_MEMBERS(OdDbBlockParameter)
virtual void setShowProperties(bool)
virtual bool chainActions() const
virtual bool showProperties() const
virtual bool setPropertyValue(const OdString &, const OdGeMatrix3d &, const OdResBuf *)
virtual OdResBufPtr getPropertyValue(const OdString &, const OdGeMatrix3d &) const
ValueType
Definition: ResBuf.h:171
OdDbDynBlockReferenceProperty::UnitsType m_nUnitsType