CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
DbBlockElement.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 _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
49{
50public:
51 enum HistoryCompression{kHistoryCompression0,kHistoryCompression1,kHistoryCompression2,kHistoryCompression3};
55 virtual bool evaluate( const OdDbEvalContext* );
57 virtual bool connectionAllowed(const OdString&,OdDbEvalNodeId,const OdString&) const;
58 virtual bool connectTo(const OdString&,OdDbEvalNodeId,const OdString&);
59 virtual bool disconnectFrom(const OdString&,OdDbEvalNodeId,const OdString&);
60 virtual bool hasConnectionNamed(const OdString&) const;
61 virtual bool getConnectedNames(const OdString&,unsigned long,OdStringArray&) const;
63 virtual void getConnectionNames(OdStringArray&) const;
67 virtual OdString name() const;
68 virtual void setName( const OdString& );
75 virtual void getStretchPoints( OdGePoint3dArray& )const;
76 virtual void moveStretchPointsAt( const OdIntArray &, const OdGeVector3d &);
78 virtual bool historyRequired() const;
80 virtual bool hasInstanceData()const; // has instance data loaded
81 virtual bool loadInstanceData(const OdResBuf*, bool bRequireEvaluate = false); // loads instance data from xdata chain
82 virtual OdResBufPtr saveInstanceData()const; // saves instance data to xdata chain
83 virtual void updateConnections();
86
95 virtual bool isMemberOfCurrentVisibilitySet()const;
100};
102
103#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:167
GLuint const GLchar * name
Definition: gles2_ext.h:265
GLuint GLsizei GLsizei GLint GLenum * type
Definition: gles2_ext.h:274
DwgVersion
Definition: OdaDefs.h:47
MaintReleaseVer
Definition: OdaDefs.h:109