59 #include <OpenFlipper/common/UpdateType.hh> 61 #include <ACG/Math/Matrix4x4T.hh> 62 #include <ACG/Math/VectorT.hh> 89 bool operator!=(
const unsigned int& _i )
const;
90 bool operator!=(
const DataType& _i )
const;
92 bool operator==(
const unsigned int& _i )
const;
93 bool operator==(
const DataType& _i )
const;
95 DataType& operator=(
const unsigned int& _i );
99 bool operator<(
const unsigned int& _i )
const;
100 bool operator<(
const DataType& _i )
const;
102 DataType& operator|=(
const unsigned int& _i );
105 bool operator&(
const unsigned int& _i )
const;
106 bool operator&(
const DataType& _i )
const;
110 bool contains(
const DataType& _i )
const;
122 unsigned int value()
const;
125 QString name()
const;
135 TypeInfo(
DataType _type, QString _name, QString _iconName, QString _readableName ) :
139 readableName(_readableName)
142 if ( _readableName ==
"" )
143 readableName = _name;
170 std::ostream &operator<<(std::ostream &stream,
DataType type);
185 Q_DECLARE_METATYPE(
IdList)
187 Q_DECLARE_METATYPE(QVector< int >)
188 Q_DECLARE_METATYPE(
Vector)
249 std::vector< TypeInfo >::const_iterator
typesBegin();
253 std::vector< TypeInfo >::const_iterator
typesEnd();
DLLEXPORT std::vector< TypeInfo >::const_iterator typesEnd()
Get iterator pointing to the last element in the types list.
DLLEXPORT QString dataTypeName(DataType _id)
Get DataType Human readable name ( this name might change. Use the typeName instead! ) ...
DLLEXPORT void setDataTypeName(DataType _id, QString _name)
Set DataType Human readable name.
ACG::Vec4d Vector4
Standard Type for 4d Vector used for scripting.
QString readableName
Human readable name.
DLLEXPORT bool typeExists(QString _name)
Check if a type with the given name exists.
DataType type
The id of the datatype.
QString name
The name of the datatype.
const DataType DATA_GROUP(1)
Items used for Grouping.
DLLEXPORT size_t typeCount()
Get the number of registered types.
DLLEXPORT DataType addDataType(QString _name, QString _readableName)
Adds a datatype and returns the id for the new type.
std::vector< int > IdList
Standard Type for id Lists used for scripting.
ACG::Vec3d Vector
Standard Type for 3d Vector used for scripting.
DLLEXPORT void registerTypes()
DLLEXPORT void setTypeIcon(DataType _id, QString _icon)
Set an Icon for a given DataType.
QString iconName
The icon of the datatype.
DLLEXPORT QString typeName(DataType _id)
Get the name of a type with given id.
DLLEXPORT QString typeIconName(QString _name)
Get a string with the filename of the icon for the DataType name.
ACG::Matrix4x4d Matrix4x4
Standard Type for a 4x4 Matrix used for scripting.
DLLEXPORT std::vector< TypeInfo >::const_iterator typesBegin()
Get iterator pointing to the first element in the types list.
const DataType DATA_UNKNOWN(0)
None of the other Objects.
const DataType DATA_ALL(UINT_MAX)
Identifier for all available objects.
DLLEXPORT QIcon & typeIcon(DataType _id)
Get an QIcon associated with the given DataType.
DLLEXPORT DataType typeId(QString _name)
Given a dataType Identifier string this function will return the id of the datatype.