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
DLLEXPORT DataType typeId(QString _name)
Given a dataType Identifier string this function will return the id of the datatype.
DLLEXPORT QIcon & typeIcon(DataType _id)
Get an QIcon associated with the given DataType.
DLLEXPORT void setTypeIcon(DataType _id, QString _icon)
Set an Icon for a given DataType.
DLLEXPORT QString dataTypeName(DataType _id)
Get DataType Human readable name ( this name might change. Use the typeName instead! ) ...
DataType type
The id of the datatype.
const DataType DATA_UNKNOWN(0)
None of the other Objects.
const DataType DATA_GROUP(1)
Items used for Grouping.
ACG::Matrix4x4d Matrix4x4
Standard Type for a 4x4 Matrix used for scripting.
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.
DLLEXPORT bool typeExists(QString _name)
Check if a type with the given name exists.
QString iconName
The icon of the datatype.
DLLEXPORT QString typeName(DataType _id)
Get the name of a type with given id.
ACG::Vec3d Vector
Standard Type for 3d Vector used for scripting.
DLLEXPORT QString typeIconName(QString _name)
Get a string with the filename of the icon for the DataType name.
std::vector< int > IdList
Standard Type for id Lists used for scripting.
ACG::Vec4d Vector4
Standard Type for 4d Vector used for scripting.
std::ostream & operator<<(std::ostream &_o, const Timer &_t)
DLLEXPORT void setDataTypeName(DataType _id, QString _name)
Set DataType Human readable name.
QString readableName
Human readable name.
const DataType DATA_ALL(UINT_MAX)
Identifier for all available objects.
QString name
The name of the datatype.
DLLEXPORT std::vector< TypeInfo >::const_iterator typesBegin()
Get iterator pointing to the first element in the types list.
DLLEXPORT void registerTypes()
DLLEXPORT std::vector< TypeInfo >::const_iterator typesEnd()
Get iterator pointing to the last element in the types list.