CFx SDK Documentation  2020SP3
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_
OdResult
OdResult
Definition: OdResult.h:29
OdDbBlockElement::setMemberOfCurrentVisibilitySet
virtual void setMemberOfCurrentVisibilitySet(bool)
OdDbBlockElementPtr
OdSmartPtr< OdDbBlockElement > OdDbBlockElementPtr
Definition: DbBlockElement.h:103
OdGeVector3d
Definition: GeVector3d.h:54
OdString
Definition: OdString.h:95
OdDbBlockRepresentationContext
Definition: DbBlockRepresentation.h:48
OdDbBlockElement::getStretchPoints
virtual void getStretchPoints(OdGePoint3dArray &) const
name
GLuint const GLchar * name
Definition: gles2_ext.h:265
OdDbBlockElement::connectTo
virtual bool connectTo(const OdString &, OdDbEvalNodeId, const OdString &)
OdResBuf
Definition: ResBuf.h:112
type
GLuint GLsizei GLsizei GLint GLenum * type
Definition: gles2_ext.h:274
DYNBLOCKS_EXPORT
#define DYNBLOCKS_EXPORT
Definition: DbEvalGraph.h:91
GePoint3dArray.h
OdArray< OdString >
OdDbBlockElement
Definition: DbBlockElement.h:51
IntArray.h
OdDbBlockElement::hasConnectionNamed
virtual bool hasConnectionNamed(const OdString &) const
OdDbBlockElement::saveInstanceData
virtual OdResBufPtr saveInstanceData() const
OdGeMatrix3d
Definition: GeMatrix3d.h:73
OdDb::DwgVersion
DwgVersion
Definition: OdaDefs.h:46
OdDbBlockElement::getInstanceMaintenanceVersion
virtual OdDb::MaintReleaseVer getInstanceMaintenanceVersion()
OdDbBlockElement::historyRequired
virtual bool historyRequired() const
OdDbEvalNodeId
unsigned long OdDbEvalNodeId
Definition: DbEvalGraph.h:60
OdDbBlockElement::setName
virtual void setName(const OdString &)
OdDb::MaintReleaseVer
MaintReleaseVer
Definition: OdaDefs.h:107
OdDbBlockElement::hasInstanceData
virtual bool hasInstanceData() const
DOM static bool isNameUnique(class OdDbEvalGraph* graph, const OdString& name, OdString* result );.
OdSmartPtr< OdResBuf >
OdDbEvalContext
Definition: DbEvalGraph.h:972
OdDbBlockElement::historyCompression
virtual HistoryCompression historyCompression() const
OdDbBlockElement::getInstanceVersion
virtual OdDb::DwgVersion getInstanceVersion()
OdDbBlockElement::evaluate
virtual bool evaluate(const OdDbEvalContext *)
OdDbBlockElement::getConnectionType
virtual bool getConnectionType(const OdString &name, OdResBuf::ValueType &type) const
OdDbBlockElement::transformBy
virtual OdResult transformBy(const OdGeMatrix3d &)
OdDbBlockElement::name
virtual OdString name() const
DOM
OdDbBlockElement::connectionAllowed
virtual bool connectionAllowed(const OdString &, OdDbEvalNodeId, const OdString &) const
DOM OdDbEvalConnectable interface.
OdResBuf::ValueType
ValueType
Definition: ResBuf.h:171
OdDbBlockElement::updateConnections
virtual void updateConnections()
OdDbBlockElement::ODDB_EVAL_DECLARE_MEMBERS
ODDB_EVAL_DECLARE_MEMBERS(OdDbBlockElement)
OdDbEvalConnectable
Definition: DbEvalGraph.h:814
OdDbBlockElement::moveStretchPointsAt
virtual void moveStretchPointsAt(const OdIntArray &, const OdGeVector3d &)
OdDbBlockTableRecord
Definition: DbBlockTableRecord.h:57
OdDbBlockElement::disconnectFrom
virtual bool disconnectFrom(const OdString &, OdDbEvalNodeId, const OdString &)
OdDbBlockElement::getConnectedObjects
virtual bool getConnectedObjects(const OdString &, OdDbEvalNodeIdArray &) const
OdDbBlockElement::getConnectionValue
virtual OdResBufPtr getConnectionValue(const OdString &name) const
DbEvalGraph.h
OdDbBlockElement::loadInstanceData
virtual bool loadInstanceData(const OdResBuf *, bool bRequireEvaluate=false)
OdDbBlockElement::HistoryCompression
HistoryCompression
Definition: DbBlockElement.h:53
OdDbBlockElement::isMemberOfCurrentVisibilitySet
virtual bool isMemberOfCurrentVisibilitySet() const
OdDbBlockElement::getConnectionNames
virtual void getConnectionNames(OdStringArray &) const
OdDbBlockElement::getConnectedNames
virtual bool getConnectedNames(const OdString &, unsigned long, OdStringArray &) const