CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
DbBlockPropertiesTable.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2024, 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-2024 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 _DbBlockPropertiesTable_h_Included_
25#define _DbBlockPropertiesTable_h_Included_
26
27#include "DbBlock1PtParameter.h"
28#include "DbBlockGrips.h"
30#include "Int32Array.h" //FELIX_CHANGE
31
37{
38public:
39 //DOM-IGNORE-BEGIN
41 //DOM-IGNORE-END
42
47
52 {
56 kArea = 1,
60 kReal = 3,
62 kAngle = 4,
65 };
66
73
80
89 //OdResult setUserVarName(const OdString&);
90
91 /*
92
93 virtual OdString expression()const;
94 virtual void setExpression(const OdString&);
95
96 virtual UserParameterType userParameterType()const;
97 virtual void setUserParameterType(UserParameterType t);
98
99 virtual OdString userVarDescription()const;
100 virtual void setUserVarDescription(const OdString&);
101
102
103 OdResult convertValue(OdResBuf*)const;
104*/
106 UserParameterType userParameterType() const; //FELIX_CHANGE
107 OdDbObjectId GetVariableId() const; //FELIX_CHANGE
108
109};
110
115
188
194{
195public:
196 //DOM-IGNORE-BEGIN
198 //DOM-IGNORE-END
199
204
210 int numberOfColumns() const;
211
217 int numberOfRows() const;
218
227 OdResult getCellValue(int column, int row, OdResBufPtr &rb) const;
228
237 OdResult setCellValue(int column, int row, const OdResBuf* rb);
238
247 OdResult getCellValueString(int column, int row, OdString &s) const;
248
249 // column flags
258 bool constant(int column) const;
259
267 OdResult setConstant(int column, bool val);
268
277 bool editable(int column) const;
278
286 OdResult setEditable(int column, bool val);
287
296 bool removable(int column) const;
297
305 OdResult setRemovable(int column, bool val);
306
315 bool isAngular(int column) const;
316
325 bool isAttribute(int) const;
326
327 // column properties
338
347 void setCustomProperties(int column, const OdDbObjectId& id);
348
357 OdResBufPtr defaultValue(int column) const;
358
367 void setDefaultValue(int column, const OdResBuf* rb);
368
377 OdString format(int column) const;
378
387 void setFormat(int column, const OdString& f);
388
389 // if the values of the parameters must match some rows
395 bool mustMatch() const;
396
402 void setMustMatch(bool b);
403
404 // what is used in the context menu if parameter values do not match anything
413 void setUnmatchedValue(int column, const OdResBuf* rb);
414
423 OdResBufPtr unmatchedValue(int column) const;
424
438 OdString getColumnName(int column) const;
439
440 //FELIX_CHANGE_BEGIN
441 OdString GetName( OdInt32 iColumn ) const;
442
446
447 const OdDbObjectId& GetParameterId( OdInt32 iColumn ) const;
448 const OdResBufPtr GetValue( OdInt32 iColumn, OdInt32 iRow ) const;
449 //FELIX_CHANGE_END
450
451 const OdString GetConnectionAt( OdInt32 iColumn ) const; //FELIX_CHANGE_BEGIN - DESKTOP-313230
452
453 // Table description (used as a property description)
462
471
472 // Table name (used as a property name)
488 void setTableName(const OdString& s);
489
490 // rows may be reordered, but each row has unique (within the table) id that will not change
500 int idOfRow(int index) const;
501
511 int indexOfRow(int id) const;
512
522 void insertColumn(const OdDbObjectId& param, const OdString& connection, int after);
523
531 void insertRow(int after);
532
540 void removeColumn(int column);
541
549 void removeRow(int row);
550
557 void appendColumn(const OdDbObjectId& param, const OdString& connection);
558
562 void appendRow();
563
573 void moveColumn(int from, int to);
574
584 void moveRow(int from, int to);
585
595 virtual void addedToGraph(OdDbEvalGraph* ) override;
596 virtual void erased(const OdDbObject* , bool) override;
597 virtual void removedFromGraph(OdDbEvalGraph* gr) override;
598
607
615 void setDefaultActiveRow(int row);
616
625 bool columnValuesAreUnique(int col)const;
626
627 // (not implemented, no idea what it does)
634
635 // doesn't seem to have any effect besides the flag
642
649
657
666 void sortRows(int column, bool ascending);
667
674
678 int getCurrentRow() const;
679
684 bool setCurrentRow(int row);
685
690 OdDbObjectId getColumnParam(int column) const;
691
695 bool isValid() const;
696};
697
702
719
724
725#endif //_DbBlockPropertiesTable_h_Included_
OdSmartPtr< OdDbBlockUserParameter > OdDbBlockUserParameterPtr
OdSmartPtr< OdDbBlockPropertiesTableGrip > OdDbBlockPropertiesTableGripPtr
OdSmartPtr< OdDbBlockPropertiesTable > OdDbBlockPropertiesTablePtr
OdSmartPtr< OdResBuf > OdResBufPtr
Definition DbDatabase.h:105
#define DYNBLOCKS_EXPORT
Definition DbEvalGraph.h:91
unsigned long OdDbEvalNodeId
Definition DbEvalGraph.h:60
OdSmartPtr< OdDbParameterInterface > OdDbParameterInterfacePtr
OdArray< OdInt32, OdMemoryAllocator< OdInt32 > > OdInt32Array
Definition Int32Array.h:34
OdArray< int, OdMemoryAllocator< int > > OdIntArray
Definition IntArray.h:35
int OdInt32
OdResult
Definition OdResult.h:29
OdIntArray getRowIndex() const
BPTAuditErrorType errorType() const
void getCellIndex(int &row, int &col) const
ODDB_DECLARE_MEMBERS(OdDbBlockPropertiesTableGrip)
bool columnValuesAreUnique(int col) const
OdResult getCellValueString(int column, int row, OdString &s) const
bool setCurrentRow(int row)
bool disabledInDrawingEditor() const
OdResult setCellValue(int column, int row, const OdResBuf *rb)
void moveColumn(int from, int to)
bool isAngular(int column) const
void setFormat(int column, const OdString &f)
int getDefaultActiveRow() const
int idOfRow(int index) const
int indexOfRow(int id) const
ODDB_EVAL_DECLARE_MEMBERS(OdDbBlockPropertiesTable)
OdResBufPtr unmatchedValue(int column) const
void setRuntimeParametersOnly(bool b)
void setUnmatchedValue(int column, const OdResBuf *rb)
void setDefaultValue(int column, const OdResBuf *rb)
void removeColumn(int column)
OdDbParameterInterfacePtr parameterInterface(int column, const OdDbBlockReference *block)
void setCustomProperties(int column, const OdDbObjectId &id)
OdResult setEditable(int column, bool val)
OdResBufPtr defaultValue(int column) const
OdResult getCellValue(int column, int row, OdResBufPtr &rb) const
OdString format(int column) const
OdInt32 GetColumnCount() const
const OdString GetConnectionAt(OdInt32 iColumn) const
bool removable(int column) const
void tableAudit(OdArray< OdDbBPTAuditError > &)
void sortRows(int column, bool ascending)
OdString GetName(OdInt32 iColumn) const
void setTableDescription(const OdString &s)
void moveRow(int from, int to)
virtual void erased(const OdDbObject *, bool) override
bool runtimeParametersOnly() const
static OdDbEvalNodeId bptNodeId(const OdDbEvalGraph *gr)
bool constant(int column) const
OdResult setRemovable(int column, bool val)
OdInt32 GetRowCount() const
OdResult setConstant(int column, bool val)
void setTableName(const OdString &s)
void appendColumn(const OdDbObjectId &param, const OdString &connection)
virtual void removedFromGraph(OdDbEvalGraph *gr) override
const OdDbObjectId & GetParameterId(OdInt32 iColumn) const
virtual void addedToGraph(OdDbEvalGraph *) override
OdDbObjectId customProperties(int column) const
OdDbObjectId getColumnParam(int column) const
const OdResBufPtr GetValue(OdInt32 iColumn, OdInt32 iRow) const
bool editable(int column) const
OdString tableDescription() const
bool isAttribute(int) const
void insertRow(int after)
void insertColumn(const OdDbObjectId &param, const OdString &connection, int after)
OdString getColumnName(int column) const
OdString tableName() const
void setDefaultActiveRow(int row)
const OdInt32Array & GetRowIndices() const
ODDB_EVAL_DECLARE_MEMBERS(OdDbBlockUserParameter)
UserParameterType userParameterType() const
OdString userVarName() const
OdDbObjectId assocVarId() const
void setAssocVarId(OdDbObjectId id)
OdDbObjectId GetVariableId() const
OdDbObjectId dependency() const
GLfloat f
Definition gles2_ext.h:564
GLuint index
Definition gles2_ext.h:265