CFx SDK Documentation  2022 SP0
DbBlockElement.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 _DbBlockElement_h_Included_
25 #define _DbBlockElement_h_Included_
26 
27 #include "DbEvalGraph.h"
28 #include "IntArray.h"
29 #include "Ge/GePoint3dArray.h"
30 
33 
34 #define ODDB_EVAL_DECLARE_MEMBERS(ClassName) \
35  ODDB_DECLARE_MEMBERS(ClassName);\
36  OdResult dwgInFields(OdDbDwgFiler* pFiler);\
37  void dwgOutFields(OdDbDwgFiler* pFiler) const;\
38  OdResult dxfInFields(OdDbDxfFiler* pFiler);\
39  void dxfOutFields(OdDbDxfFiler* pFiler) const
40 
41 // #define DEBUG_EVALGRAPH 1
42 
51 {
52 public:
53  enum HistoryCompression{kHistoryCompression0,kHistoryCompression1,kHistoryCompression2,kHistoryCompression3};
57  virtual bool evaluate( const OdDbEvalContext* );
59  virtual bool connectionAllowed(const OdString&,OdDbEvalNodeId,const OdString&) const;
60  virtual bool connectTo(const OdString&,OdDbEvalNodeId,const OdString&);
61  virtual bool disconnectFrom(const OdString&,OdDbEvalNodeId,const OdString&);
62  virtual bool hasConnectionNamed(const OdString&) const;
63  virtual bool getConnectedNames(const OdString&,unsigned long,OdStringArray&) const;
64  virtual bool getConnectedObjects(const OdString&,OdDbEvalNodeIdArray&) const;
65  virtual void getConnectionNames(OdStringArray&) const;
66  virtual bool getConnectionType (const OdString& name, OdResBuf::ValueType& type) const;
67  virtual OdResBufPtr getConnectionValue (const OdString& name) const;
69  virtual OdString name() const;
70  virtual void setName( const OdString& );
77  virtual void getStretchPoints( OdGePoint3dArray& )const;
78  virtual void moveStretchPointsAt( const OdIntArray &, const OdGeVector3d &);
80  virtual bool historyRequired() const;
82  virtual bool hasInstanceData()const; // has instance data loaded
83  virtual bool loadInstanceData(const OdResBuf*, bool bRequireEvaluate = false); // loads instance data from xdata chain
84  virtual OdResBufPtr saveInstanceData()const; // saves instance data to xdata chain
85  virtual void updateConnections();
88 
97  virtual bool isMemberOfCurrentVisibilitySet()const;
98  virtual void setMemberOfCurrentVisibilitySet(bool);
101  virtual OdResult transformBy( const OdGeMatrix3d& );
102 };
104 
105 #endif // _DbBlockElement_h_Included_
OdSmartPtr< OdDbBlockElement > OdDbBlockElementPtr
#define DYNBLOCKS_EXPORT
Definition: DbEvalGraph.h:91
unsigned long OdDbEvalNodeId
Definition: DbEvalGraph.h:60
OdResult
Definition: OdResult.h:29
virtual OdString name() const
DOM
virtual OdDb::MaintReleaseVer getInstanceMaintenanceVersion()
virtual void updateConnections()
virtual bool loadInstanceData(const OdResBuf *, bool bRequireEvaluate=false)
virtual void moveStretchPointsAt(const OdIntArray &, const OdGeVector3d &)
virtual void getConnectionNames(OdStringArray &) const
virtual bool getConnectedNames(const OdString &, unsigned long, OdStringArray &) const
virtual bool getConnectedObjects(const OdString &, OdDbEvalNodeIdArray &) const
virtual OdResBufPtr saveInstanceData() const
virtual OdResBufPtr getConnectionValue(const OdString &name) const
virtual HistoryCompression historyCompression() const
virtual void getStretchPoints(OdGePoint3dArray &) const
virtual bool connectionAllowed(const OdString &, OdDbEvalNodeId, const OdString &) const
DOM OdDbEvalConnectable interface.
virtual bool getConnectionType(const OdString &name, OdResBuf::ValueType &type) const
virtual bool connectTo(const OdString &, OdDbEvalNodeId, const OdString &)
ODDB_EVAL_DECLARE_MEMBERS(OdDbBlockElement)
virtual bool evaluate(const OdDbEvalContext *)
virtual void setName(const OdString &)
virtual OdDb::DwgVersion getInstanceVersion()
virtual bool historyRequired() const
virtual bool disconnectFrom(const OdString &, OdDbEvalNodeId, const OdString &)
virtual void setMemberOfCurrentVisibilitySet(bool)
virtual bool hasInstanceData() const
DOM static bool isNameUnique(class OdDbEvalGraph* graph, const OdString& name, OdString* result );.
virtual bool hasConnectionNamed(const OdString &) const
virtual OdResult transformBy(const OdGeMatrix3d &)
virtual bool isMemberOfCurrentVisibilitySet() const
ValueType
Definition: ResBuf.h:171
GLuint const GLchar * name
Definition: gles2_ext.h:265
GLuint GLsizei GLsizei GLint GLenum * type
Definition: gles2_ext.h:274
DwgVersion
Definition: OdaDefs.h:46
MaintReleaseVer
Definition: OdaDefs.h:107