72 #include <OpenFlipper/common/UpdateType.hh>
74 #include <ACG/Math/Matrix4x4T.hh>
75 #include <ACG/Math/VectorT.hh>
101 bool operator!=(
const unsigned int& _i )
const;
102 bool operator!=(
const DataType& _i )
const;
104 bool operator==(
const unsigned int& _i )
const;
105 bool operator==(
const DataType& _i )
const;
107 DataType& operator=(
const unsigned int& _i );
110 bool operator<(
const unsigned int& _i )
const;
111 bool operator<(
const DataType& _i )
const;
113 DataType& operator|=(
const unsigned int& _i );
116 bool operator&(
const unsigned int& _i )
const;
117 bool operator&(
const DataType& _i )
const;
121 bool contains(
const DataType& _i )
const;
133 unsigned int value()
const;
136 QString name()
const;
146 TypeInfo(
DataType _type, QString _name, QString _iconName, QString _readableName ) :
153 if ( _readableName ==
"" )
196 Q_DECLARE_METATYPE(
IdList)
198 Q_DECLARE_METATYPE(QVector<
int >)
199 Q_DECLARE_METATYPE(
Vector)
328 #endif // DATATYPES_HH defined
std::vector< int > IdList
Standard Type for id Lists used for scripting.
DLLEXPORT QString dataTypeName(DataType _id)
Get DataType Human readable name ( this name might change. Use the typeName instead! ) ...
const DataType DATA_UNKNOWN(0)
None of the other Objects.
ACG::Vec4d Vector4
Standard Type for 4d Vector used for scripting.
DLLEXPORT std::vector< TypeInfo >::const_iterator typesEnd()
Get iterator pointing to the last element in the types list.
DLLEXPORT QString typeIconName(QString _name)
Get a string with the filename of the icon for the DataType name.
DLLEXPORT std::vector< TypeInfo >::const_iterator typesBegin()
Get iterator pointing to the first element in the types list.
DataType type
The id of the datatype.
DLLEXPORT void registerTypes()
QString name
The name of the datatype.
DLLEXPORT void setTypeIcon(DataType _id, QString _icon)
Set an Icon for a given DataType.
const DataType DATA_ALL(UINT_MAX)
Identifier for all available objects.
DLLEXPORT size_t typeCount()
Get the number of registered types.
DLLEXPORT QString typeName(DataType _id)
Get the name of a type with given id.
DLLEXPORT DataType typeId(QString _name)
Given a dataType Identifier string this function will return the id of the datatype.
QString iconName
The icon of the datatype.
ACG::Matrix4x4d Matrix4x4
Standard Type for a 4x4 Matrix used for scripting.
const DataType DATA_GROUP(1)
Items used for Grouping.
DLLEXPORT void setDataTypeName(DataType _id, QString _name)
Set DataType Human readable name.
std::ostream & operator<<(std::ostream &_o, const Timer &_t)
ACG::Vec3d Vector
Standard Type for 3d Vector used for scripting.
DLLEXPORT QIcon & typeIcon(DataType _id)
Get an QIcon associated with the given DataType.
DLLEXPORT bool typeExists(QString _name)
Check if a type with the given name exists.
DLLEXPORT DataType addDataType(QString _name, QString _readableName)
Adds a datatype and returns the id for the new type.
QString readableName
Human readable name.