20 #ifndef Model_AttributeTables_H_
21 #define Model_AttributeTables_H_
25 #include <ModelAPI_AttributeTables.h>
27 #include <TDF_Label.hxx>
28 #include <TDataStd_IntegerList.hxx>
46 MODEL_EXPORT
virtual int rows();
48 MODEL_EXPORT
virtual int columns();
50 MODEL_EXPORT
virtual int tables();
54 MODEL_EXPORT
virtual void setSize(
55 const int theRows,
const int theColumns,
const int theTables = 1);
63 const Value theValue,
const int theRow,
const int theColumn,
const int theTable = 0);
66 const int theRow,
const int theColumn,
const int theTable = 0);
69 MODEL_EXPORT
virtual std::string
valueStr(
70 const int theRow,
const int theColumn,
const int theTable = 0);
85 Handle_TDataStd_IntegerList myProp;
88 int myTables, myRows, myCols;
API for the attribute that contains tables of some values type.
Definition: ModelAPI_AttributeTables.h:39
ValueType
Type of the value in the table.
Definition: ModelAPI_AttributeTables.h:42
API for the attribute that contains tables of some values type.
Definition: Model_AttributeTables.h:43
virtual void setSize(const int theRows, const int theColumns, const int theTables=1)
Sets the new size of the tables set.
Definition: Model_AttributeTables.cpp:60
virtual Value value(const int theRow, const int theColumn, const int theTable=0)
Returns the value by the index (indexes are zero-based).
Definition: Model_AttributeTables.cpp:217
virtual void reinit()
Reinitializes the internal state of the attribute (may be needed on undo/redo, abort,...
Definition: Model_AttributeTables.cpp:275
Model_AttributeTables(TDF_Label &theLabel)
Objects are created for features automatically.
Definition: Model_AttributeTables.cpp:269
virtual int rows()
Returns the number of rows in the table.
Definition: Model_AttributeTables.cpp:45
virtual std::string valueStr(const int theRow, const int theColumn, const int theTable=0)
Returns the value in the format of string (useful for the python connection)
Definition: Model_AttributeTables.cpp:247
virtual void setValue(const Value theValue, const int theRow, const int theColumn, const int theTable=0)
Defines the value by the index in the tables set (indexes are zero-based).
Definition: Model_AttributeTables.cpp:190
virtual int columns()
Returns the number of columns in the table.
Definition: Model_AttributeTables.cpp:50
virtual const ValueType & type() const
Defines the tyoe of values in the table. If it differs from the current, erases the content.
Definition: Model_AttributeTables.cpp:185
virtual void setType(ValueType theType)
Defines the tyoe of values in the table. If it differs from the current, erases the content.
Definition: Model_AttributeTables.cpp:167
virtual int tables()
Returns the number of tables.
Definition: Model_AttributeTables.cpp:55
General object of the application that allows to get/set attributes from the document and compute res...
Definition: Model_Data.h:62
Definition: ModelAPI_AttributeTables.h:49