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 ) :
150 readableName(_readableName)
153 if ( _readableName ==
"" )
154 readableName = _name;
181 std::ostream &operator<<(std::ostream &stream,
DataType type);
196 Q_DECLARE_METATYPE(
IdList)
198 Q_DECLARE_METATYPE(QVector<
int >)
199 Q_DECLARE_METATYPE(
Vector)
328 #endif // DATATYPES_HH defined ACG::Vec4d Vector4
Standard Type for 4d Vector used for scripting.
DLLEXPORT DataType typeId(QString _name)
Given a dataType Identifier string this function will return the id of the datatype.
DLLEXPORT void registerTypes()
DLLEXPORT std::vector< TypeInfo >::const_iterator typesBegin()
Get iterator pointing to the first element in the types list.
DLLEXPORT size_t typeCount()
Get the number of registered types.
const DataType DATA_UNKNOWN(0)
None of the other Objects.
ACG::Matrix4x4d Matrix4x4
Standard Type for a 4x4 Matrix used for scripting.
DLLEXPORT QString dataTypeName(DataType _id)
Get DataType Human readable name ( this name might change. Use the typeName instead! ) ...
DLLEXPORT std::vector< TypeInfo >::const_iterator typesEnd()
Get iterator pointing to the last element in the types list.
DLLEXPORT void setDataTypeName(DataType _id, QString _name)
Set DataType Human readable name.
DLLEXPORT DataType addDataType(QString _name, QString _readableName)
Adds a datatype and returns the id for the new type.
DLLEXPORT QString typeIconName(QString _name)
Get a string with the filename of the icon for the DataType name.
QString iconName
The icon of the datatype.
const DataType DATA_ALL(UINT_MAX)
Identifier for all available objects.
DataType type
The id of the datatype.
const DataType DATA_GROUP(1)
Items used for Grouping.
QString name
The name of the datatype.
ACG::Vec3d Vector
Standard Type for 3d Vector used for scripting.
std::vector< int > IdList
Standard Type for id Lists used for scripting.
DLLEXPORT void setTypeIcon(DataType _id, QString _icon)
Set an Icon for a given DataType.
QString readableName
Human readable name.
DLLEXPORT QString typeName(DataType _id)
Get the name of a type with given id.
DLLEXPORT bool typeExists(QString _name)
Check if a type with the given name exists.
DLLEXPORT QIcon & typeIcon(DataType _id)
Get an QIcon associated with the given DataType.