20 #ifndef ModelAPI_AttributeTables_H_
21 #define ModelAPI_AttributeTables_H_
24 #include <ModelAPI_Attribute.h>
57 MODELAPI_EXPORT
virtual int rows() = 0;
59 MODELAPI_EXPORT
virtual int columns() = 0;
61 MODELAPI_EXPORT
virtual int tables() = 0;
66 const int theRows,
const int theColumns,
const int theTables = 1) = 0;
74 const Value theValue,
const int theRow,
const int theColumn,
const int theTable = 0) = 0;
77 const int theRow,
const int theColumn,
const int theTable = 0) = 0;
81 const int theRow,
const int theColumn,
const int theTable = 0) = 0;
84 MODELAPI_EXPORT
static std::string
typeId()
99 typedef std::shared_ptr<ModelAPI_AttributeTables> AttributeTablesPtr;
API for the attribute that contains tables of some values type.
Definition: ModelAPI_AttributeTables.h:39
virtual MODELAPI_EXPORT void setType(ValueType theType)=0
Defines the tyoe of values in the table. If it differs from the current, erases the content.
virtual MODELAPI_EXPORT void setValue(const Value theValue, const int theRow, const int theColumn, const int theTable=0)=0
Defines the value by the index in the tables set (indexes are zero-based).
virtual MODELAPI_EXPORT int rows()=0
Returns the number of rows in the table.
MODELAPI_EXPORT ModelAPI_AttributeTables()
Objects are created for features automatically.
Definition: ModelAPI_AttributeTables.cpp:34
virtual MODELAPI_EXPORT int tables()=0
Returns the number of tables.
virtual MODELAPI_EXPORT Value value(const int theRow, const int theColumn, const int theTable=0)=0
Returns the value by the index (indexes are zero-based).
virtual MODELAPI_EXPORT std::string attributeType()
Returns the type of this class of attributes, not static method.
Definition: ModelAPI_AttributeTables.cpp:23
virtual MODELAPI_EXPORT std::string valueStr(const int theRow, const int theColumn, const int theTable=0)=0
Returns the value in the format of string (useful for the python connection)
ValueType
Type of the value in the table.
Definition: ModelAPI_AttributeTables.h:42
virtual MODELAPI_EXPORT const ValueType & type() const =0
Defines the tyoe of values in the table. If it differs from the current, erases the content.
virtual MODELAPI_EXPORT void setSize(const int theRows, const int theColumns, const int theTables=1)=0
Sets the new size of the tables set.
virtual MODELAPI_EXPORT ~ModelAPI_AttributeTables()
To virtually destroy the fields of successors.
Definition: ModelAPI_AttributeTables.cpp:29
virtual MODELAPI_EXPORT int columns()=0
Returns the number of columns in the table.
static MODELAPI_EXPORT std::string typeId()
Returns the type of this class of attributes.
Definition: ModelAPI_AttributeTables.h:84
Generic attribute of the Object.
Definition: ModelAPI_Attribute.h:34
Definition: ModelAPI_AttributeTables.h:49